573c9fbc4d8f61daef03d899b64511feaa275c78
[rtl-433.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for rtl433 UNKNOWN-dirty.
4 #
5 # Report bugs to <rtl_433@googlegroups.com>.
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
202   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206     PATH=/empty FPATH=/empty; export PATH FPATH
207     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || 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: rtl_433@googlegroups.com 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='rtl433'
592 PACKAGE_TARNAME='rtl433'
593 PACKAGE_VERSION='UNKNOWN-dirty'
594 PACKAGE_STRING='rtl433 UNKNOWN-dirty'
595 PACKAGE_BUGREPORT='rtl_433@googlegroups.com'
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 SYMBOL_VISIBILITY
639 RTLSDR_PC_CFLAGS
640 RTLSDR_PC_LIBS
641 HAVE_DOXYGEN_FALSE
642 HAVE_DOXYGEN_TRUE
643 DOXYGEN
644 LIBRTLSDR_LIBS
645 LIBRTLSDR_CFLAGS
646 PKG_CONFIG_LIBDIR
647 PKG_CONFIG_PATH
648 PKG_CONFIG
649 CPP
650 LT_SYS_LIBRARY_PATH
651 OTOOL64
652 OTOOL
653 LIPO
654 NMEDIT
655 DSYMUTIL
656 MANIFEST_TOOL
657 RANLIB
658 ac_ct_AR
659 AR
660 DLLTOOL
661 OBJDUMP
662 LN_S
663 NM
664 ac_ct_DUMPBIN
665 DUMPBIN
666 LD
667 FGREP
668 EGREP
669 GREP
670 SED
671 host_os
672 host_vendor
673 host_cpu
674 host
675 build_os
676 build_vendor
677 build_cpu
678 build
679 LIBTOOL
680 am__fastdepCC_FALSE
681 am__fastdepCC_TRUE
682 CCDEPMODE
683 am__nodep
684 AMDEPBACKSLASH
685 AMDEP_FALSE
686 AMDEP_TRUE
687 am__quote
688 am__include
689 DEPDIR
690 OBJEXT
691 EXEEXT
692 ac_ct_CC
693 CPPFLAGS
694 LDFLAGS
695 CFLAGS
696 CC
697 AM_BACKSLASH
698 AM_DEFAULT_VERBOSITY
699 AM_DEFAULT_V
700 AM_V
701 am__untar
702 am__tar
703 AMTAR
704 am__leading_dot
705 SET_MAKE
706 AWK
707 mkdir_p
708 MKDIR_P
709 INSTALL_STRIP_PROGRAM
710 STRIP
711 install_sh
712 MAKEINFO
713 AUTOHEADER
714 AUTOMAKE
715 AUTOCONF
716 ACLOCAL
717 VERSION
718 PACKAGE
719 CYGPATH_W
720 am__isrc
721 INSTALL_DATA
722 INSTALL_SCRIPT
723 INSTALL_PROGRAM
724 target_alias
725 host_alias
726 build_alias
727 LIBS
728 ECHO_T
729 ECHO_N
730 ECHO_C
731 DEFS
732 mandir
733 localedir
734 libdir
735 psdir
736 pdfdir
737 dvidir
738 htmldir
739 infodir
740 docdir
741 oldincludedir
742 includedir
743 runstatedir
744 localstatedir
745 sharedstatedir
746 sysconfdir
747 datadir
748 datarootdir
749 libexecdir
750 sbindir
751 bindir
752 program_transform_name
753 prefix
754 exec_prefix
755 PACKAGE_URL
756 PACKAGE_BUGREPORT
757 PACKAGE_STRING
758 PACKAGE_VERSION
759 PACKAGE_TARNAME
760 PACKAGE_NAME
761 PATH_SEPARATOR
762 SHELL'
763 ac_subst_files=''
764 ac_user_opts='
765 enable_option_checking
766 enable_silent_rules
767 enable_dependency_tracking
768 enable_shared
769 enable_static
770 with_pic
771 enable_fast_install
772 with_aix_soname
773 with_gnu_ld
774 with_sysroot
775 enable_libtool_lock
776 '
777       ac_precious_vars='build_alias
778 host_alias
779 target_alias
780 CC
781 CFLAGS
782 LDFLAGS
783 LIBS
784 CPPFLAGS
785 LT_SYS_LIBRARY_PATH
786 CPP
787 PKG_CONFIG
788 PKG_CONFIG_PATH
789 PKG_CONFIG_LIBDIR
790 LIBRTLSDR_CFLAGS
791 LIBRTLSDR_LIBS'
792
793
794 # Initialize some variables set by options.
795 ac_init_help=
796 ac_init_version=false
797 ac_unrecognized_opts=
798 ac_unrecognized_sep=
799 # The variables have the same names as the options, with
800 # dashes changed to underlines.
801 cache_file=/dev/null
802 exec_prefix=NONE
803 no_create=
804 no_recursion=
805 prefix=NONE
806 program_prefix=NONE
807 program_suffix=NONE
808 program_transform_name=s,x,x,
809 silent=
810 site=
811 srcdir=
812 verbose=
813 x_includes=NONE
814 x_libraries=NONE
815
816 # Installation directory options.
817 # These are left unexpanded so users can "make install exec_prefix=/foo"
818 # and all the variables that are supposed to be based on exec_prefix
819 # by default will actually change.
820 # Use braces instead of parens because sh, perl, etc. also accept them.
821 # (The list follows the same order as the GNU Coding Standards.)
822 bindir='${exec_prefix}/bin'
823 sbindir='${exec_prefix}/sbin'
824 libexecdir='${exec_prefix}/libexec'
825 datarootdir='${prefix}/share'
826 datadir='${datarootdir}'
827 sysconfdir='${prefix}/etc'
828 sharedstatedir='${prefix}/com'
829 localstatedir='${prefix}/var'
830 runstatedir='${localstatedir}/run'
831 includedir='${prefix}/include'
832 oldincludedir='/usr/include'
833 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
834 infodir='${datarootdir}/info'
835 htmldir='${docdir}'
836 dvidir='${docdir}'
837 pdfdir='${docdir}'
838 psdir='${docdir}'
839 libdir='${exec_prefix}/lib'
840 localedir='${datarootdir}/locale'
841 mandir='${datarootdir}/man'
842
843 ac_prev=
844 ac_dashdash=
845 for ac_option
846 do
847   # If the previous option needs an argument, assign it.
848   if test -n "$ac_prev"; then
849     eval $ac_prev=\$ac_option
850     ac_prev=
851     continue
852   fi
853
854   case $ac_option in
855   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
856   *=)   ac_optarg= ;;
857   *)    ac_optarg=yes ;;
858   esac
859
860   # Accept the important Cygnus configure options, so we can diagnose typos.
861
862   case $ac_dashdash$ac_option in
863   --)
864     ac_dashdash=yes ;;
865
866   -bindir | --bindir | --bindi | --bind | --bin | --bi)
867     ac_prev=bindir ;;
868   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
869     bindir=$ac_optarg ;;
870
871   -build | --build | --buil | --bui | --bu)
872     ac_prev=build_alias ;;
873   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
874     build_alias=$ac_optarg ;;
875
876   -cache-file | --cache-file | --cache-fil | --cache-fi \
877   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
878     ac_prev=cache_file ;;
879   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
880   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
881     cache_file=$ac_optarg ;;
882
883   --config-cache | -C)
884     cache_file=config.cache ;;
885
886   -datadir | --datadir | --datadi | --datad)
887     ac_prev=datadir ;;
888   -datadir=* | --datadir=* | --datadi=* | --datad=*)
889     datadir=$ac_optarg ;;
890
891   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
892   | --dataroo | --dataro | --datar)
893     ac_prev=datarootdir ;;
894   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
895   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
896     datarootdir=$ac_optarg ;;
897
898   -disable-* | --disable-*)
899     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
900     # Reject names that are not valid shell variable names.
901     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
902       as_fn_error $? "invalid feature name: $ac_useropt"
903     ac_useropt_orig=$ac_useropt
904     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
905     case $ac_user_opts in
906       *"
907 "enable_$ac_useropt"
908 "*) ;;
909       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
910          ac_unrecognized_sep=', ';;
911     esac
912     eval enable_$ac_useropt=no ;;
913
914   -docdir | --docdir | --docdi | --doc | --do)
915     ac_prev=docdir ;;
916   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
917     docdir=$ac_optarg ;;
918
919   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
920     ac_prev=dvidir ;;
921   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
922     dvidir=$ac_optarg ;;
923
924   -enable-* | --enable-*)
925     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
926     # Reject names that are not valid shell variable names.
927     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
928       as_fn_error $? "invalid feature name: $ac_useropt"
929     ac_useropt_orig=$ac_useropt
930     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
931     case $ac_user_opts in
932       *"
933 "enable_$ac_useropt"
934 "*) ;;
935       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
936          ac_unrecognized_sep=', ';;
937     esac
938     eval enable_$ac_useropt=\$ac_optarg ;;
939
940   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
941   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
942   | --exec | --exe | --ex)
943     ac_prev=exec_prefix ;;
944   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
945   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
946   | --exec=* | --exe=* | --ex=*)
947     exec_prefix=$ac_optarg ;;
948
949   -gas | --gas | --ga | --g)
950     # Obsolete; use --with-gas.
951     with_gas=yes ;;
952
953   -help | --help | --hel | --he | -h)
954     ac_init_help=long ;;
955   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
956     ac_init_help=recursive ;;
957   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
958     ac_init_help=short ;;
959
960   -host | --host | --hos | --ho)
961     ac_prev=host_alias ;;
962   -host=* | --host=* | --hos=* | --ho=*)
963     host_alias=$ac_optarg ;;
964
965   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
966     ac_prev=htmldir ;;
967   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
968   | --ht=*)
969     htmldir=$ac_optarg ;;
970
971   -includedir | --includedir | --includedi | --included | --include \
972   | --includ | --inclu | --incl | --inc)
973     ac_prev=includedir ;;
974   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
975   | --includ=* | --inclu=* | --incl=* | --inc=*)
976     includedir=$ac_optarg ;;
977
978   -infodir | --infodir | --infodi | --infod | --info | --inf)
979     ac_prev=infodir ;;
980   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
981     infodir=$ac_optarg ;;
982
983   -libdir | --libdir | --libdi | --libd)
984     ac_prev=libdir ;;
985   -libdir=* | --libdir=* | --libdi=* | --libd=*)
986     libdir=$ac_optarg ;;
987
988   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
989   | --libexe | --libex | --libe)
990     ac_prev=libexecdir ;;
991   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
992   | --libexe=* | --libex=* | --libe=*)
993     libexecdir=$ac_optarg ;;
994
995   -localedir | --localedir | --localedi | --localed | --locale)
996     ac_prev=localedir ;;
997   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
998     localedir=$ac_optarg ;;
999
1000   -localstatedir | --localstatedir | --localstatedi | --localstated \
1001   | --localstate | --localstat | --localsta | --localst | --locals)
1002     ac_prev=localstatedir ;;
1003   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1004   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1005     localstatedir=$ac_optarg ;;
1006
1007   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1008     ac_prev=mandir ;;
1009   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1010     mandir=$ac_optarg ;;
1011
1012   -nfp | --nfp | --nf)
1013     # Obsolete; use --without-fp.
1014     with_fp=no ;;
1015
1016   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1017   | --no-cr | --no-c | -n)
1018     no_create=yes ;;
1019
1020   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1021   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1022     no_recursion=yes ;;
1023
1024   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1025   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1026   | --oldin | --oldi | --old | --ol | --o)
1027     ac_prev=oldincludedir ;;
1028   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1029   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1030   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1031     oldincludedir=$ac_optarg ;;
1032
1033   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1034     ac_prev=prefix ;;
1035   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1036     prefix=$ac_optarg ;;
1037
1038   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1039   | --program-pre | --program-pr | --program-p)
1040     ac_prev=program_prefix ;;
1041   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1042   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1043     program_prefix=$ac_optarg ;;
1044
1045   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1046   | --program-suf | --program-su | --program-s)
1047     ac_prev=program_suffix ;;
1048   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1049   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1050     program_suffix=$ac_optarg ;;
1051
1052   -program-transform-name | --program-transform-name \
1053   | --program-transform-nam | --program-transform-na \
1054   | --program-transform-n | --program-transform- \
1055   | --program-transform | --program-transfor \
1056   | --program-transfo | --program-transf \
1057   | --program-trans | --program-tran \
1058   | --progr-tra | --program-tr | --program-t)
1059     ac_prev=program_transform_name ;;
1060   -program-transform-name=* | --program-transform-name=* \
1061   | --program-transform-nam=* | --program-transform-na=* \
1062   | --program-transform-n=* | --program-transform-=* \
1063   | --program-transform=* | --program-transfor=* \
1064   | --program-transfo=* | --program-transf=* \
1065   | --program-trans=* | --program-tran=* \
1066   | --progr-tra=* | --program-tr=* | --program-t=*)
1067     program_transform_name=$ac_optarg ;;
1068
1069   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1070     ac_prev=pdfdir ;;
1071   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1072     pdfdir=$ac_optarg ;;
1073
1074   -psdir | --psdir | --psdi | --psd | --ps)
1075     ac_prev=psdir ;;
1076   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1077     psdir=$ac_optarg ;;
1078
1079   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1080   | -silent | --silent | --silen | --sile | --sil)
1081     silent=yes ;;
1082
1083   -runstatedir | --runstatedir | --runstatedi | --runstated \
1084   | --runstate | --runstat | --runsta | --runst | --runs \
1085   | --run | --ru | --r)
1086     ac_prev=runstatedir ;;
1087   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1088   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1089   | --run=* | --ru=* | --r=*)
1090     runstatedir=$ac_optarg ;;
1091
1092   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1093     ac_prev=sbindir ;;
1094   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1095   | --sbi=* | --sb=*)
1096     sbindir=$ac_optarg ;;
1097
1098   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1099   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1100   | --sharedst | --shareds | --shared | --share | --shar \
1101   | --sha | --sh)
1102     ac_prev=sharedstatedir ;;
1103   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1104   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1105   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1106   | --sha=* | --sh=*)
1107     sharedstatedir=$ac_optarg ;;
1108
1109   -site | --site | --sit)
1110     ac_prev=site ;;
1111   -site=* | --site=* | --sit=*)
1112     site=$ac_optarg ;;
1113
1114   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1115     ac_prev=srcdir ;;
1116   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1117     srcdir=$ac_optarg ;;
1118
1119   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1120   | --syscon | --sysco | --sysc | --sys | --sy)
1121     ac_prev=sysconfdir ;;
1122   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1123   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1124     sysconfdir=$ac_optarg ;;
1125
1126   -target | --target | --targe | --targ | --tar | --ta | --t)
1127     ac_prev=target_alias ;;
1128   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1129     target_alias=$ac_optarg ;;
1130
1131   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1132     verbose=yes ;;
1133
1134   -version | --version | --versio | --versi | --vers | -V)
1135     ac_init_version=: ;;
1136
1137   -with-* | --with-*)
1138     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1139     # Reject names that are not valid shell variable names.
1140     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1141       as_fn_error $? "invalid package name: $ac_useropt"
1142     ac_useropt_orig=$ac_useropt
1143     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1144     case $ac_user_opts in
1145       *"
1146 "with_$ac_useropt"
1147 "*) ;;
1148       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1149          ac_unrecognized_sep=', ';;
1150     esac
1151     eval with_$ac_useropt=\$ac_optarg ;;
1152
1153   -without-* | --without-*)
1154     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1155     # Reject names that are not valid shell variable names.
1156     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1157       as_fn_error $? "invalid package name: $ac_useropt"
1158     ac_useropt_orig=$ac_useropt
1159     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1160     case $ac_user_opts in
1161       *"
1162 "with_$ac_useropt"
1163 "*) ;;
1164       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1165          ac_unrecognized_sep=', ';;
1166     esac
1167     eval with_$ac_useropt=no ;;
1168
1169   --x)
1170     # Obsolete; use --with-x.
1171     with_x=yes ;;
1172
1173   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1174   | --x-incl | --x-inc | --x-in | --x-i)
1175     ac_prev=x_includes ;;
1176   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1177   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1178     x_includes=$ac_optarg ;;
1179
1180   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1181   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1182     ac_prev=x_libraries ;;
1183   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1184   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1185     x_libraries=$ac_optarg ;;
1186
1187   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1188 Try \`$0 --help' for more information"
1189     ;;
1190
1191   *=*)
1192     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1193     # Reject names that are not valid shell variable names.
1194     case $ac_envvar in #(
1195       '' | [0-9]* | *[!_$as_cr_alnum]* )
1196       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1197     esac
1198     eval $ac_envvar=\$ac_optarg
1199     export $ac_envvar ;;
1200
1201   *)
1202     # FIXME: should be removed in autoconf 3.0.
1203     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1204     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1205       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1206     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1207     ;;
1208
1209   esac
1210 done
1211
1212 if test -n "$ac_prev"; then
1213   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1214   as_fn_error $? "missing argument to $ac_option"
1215 fi
1216
1217 if test -n "$ac_unrecognized_opts"; then
1218   case $enable_option_checking in
1219     no) ;;
1220     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1221     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1222   esac
1223 fi
1224
1225 # Check all directory arguments for consistency.
1226 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1227                 datadir sysconfdir sharedstatedir localstatedir includedir \
1228                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1229                 libdir localedir mandir runstatedir
1230 do
1231   eval ac_val=\$$ac_var
1232   # Remove trailing slashes.
1233   case $ac_val in
1234     */ )
1235       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1236       eval $ac_var=\$ac_val;;
1237   esac
1238   # Be sure to have absolute directory names.
1239   case $ac_val in
1240     [\\/$]* | ?:[\\/]* )  continue;;
1241     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1242   esac
1243   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1244 done
1245
1246 # There might be people who depend on the old broken behavior: `$host'
1247 # used to hold the argument of --host etc.
1248 # FIXME: To remove some day.
1249 build=$build_alias
1250 host=$host_alias
1251 target=$target_alias
1252
1253 # FIXME: To remove some day.
1254 if test "x$host_alias" != x; then
1255   if test "x$build_alias" = x; then
1256     cross_compiling=maybe
1257   elif test "x$build_alias" != "x$host_alias"; then
1258     cross_compiling=yes
1259   fi
1260 fi
1261
1262 ac_tool_prefix=
1263 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1264
1265 test "$silent" = yes && exec 6>/dev/null
1266
1267
1268 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1269 ac_ls_di=`ls -di .` &&
1270 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1271   as_fn_error $? "working directory cannot be determined"
1272 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1273   as_fn_error $? "pwd does not report name of working directory"
1274
1275
1276 # Find the source files, if location was not specified.
1277 if test -z "$srcdir"; then
1278   ac_srcdir_defaulted=yes
1279   # Try the directory containing this script, then the parent directory.
1280   ac_confdir=`$as_dirname -- "$as_myself" ||
1281 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1282          X"$as_myself" : 'X\(//\)[^/]' \| \
1283          X"$as_myself" : 'X\(//\)$' \| \
1284          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1285 $as_echo X"$as_myself" |
1286     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1287             s//\1/
1288             q
1289           }
1290           /^X\(\/\/\)[^/].*/{
1291             s//\1/
1292             q
1293           }
1294           /^X\(\/\/\)$/{
1295             s//\1/
1296             q
1297           }
1298           /^X\(\/\).*/{
1299             s//\1/
1300             q
1301           }
1302           s/.*/./; q'`
1303   srcdir=$ac_confdir
1304   if test ! -r "$srcdir/$ac_unique_file"; then
1305     srcdir=..
1306   fi
1307 else
1308   ac_srcdir_defaulted=no
1309 fi
1310 if test ! -r "$srcdir/$ac_unique_file"; then
1311   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1312   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1313 fi
1314 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1315 ac_abs_confdir=`(
1316         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1317         pwd)`
1318 # When building in place, set srcdir=.
1319 if test "$ac_abs_confdir" = "$ac_pwd"; then
1320   srcdir=.
1321 fi
1322 # Remove unnecessary trailing slashes from srcdir.
1323 # Double slashes in file names in object file debugging info
1324 # mess up M-x gdb in Emacs.
1325 case $srcdir in
1326 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1327 esac
1328 for ac_var in $ac_precious_vars; do
1329   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1330   eval ac_env_${ac_var}_value=\$${ac_var}
1331   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1332   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1333 done
1334
1335 #
1336 # Report the --help message.
1337 #
1338 if test "$ac_init_help" = "long"; then
1339   # Omit some internal or obsolete options to make the list less imposing.
1340   # This message is too long to be a string in the A/UX 3.1 sh.
1341   cat <<_ACEOF
1342 \`configure' configures rtl433 UNKNOWN-dirty to adapt to many kinds of systems.
1343
1344 Usage: $0 [OPTION]... [VAR=VALUE]...
1345
1346 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1347 VAR=VALUE.  See below for descriptions of some of the useful variables.
1348
1349 Defaults for the options are specified in brackets.
1350
1351 Configuration:
1352   -h, --help              display this help and exit
1353       --help=short        display options specific to this package
1354       --help=recursive    display the short help of all the included packages
1355   -V, --version           display version information and exit
1356   -q, --quiet, --silent   do not print \`checking ...' messages
1357       --cache-file=FILE   cache test results in FILE [disabled]
1358   -C, --config-cache      alias for \`--cache-file=config.cache'
1359   -n, --no-create         do not create output files
1360       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1361
1362 Installation directories:
1363   --prefix=PREFIX         install architecture-independent files in PREFIX
1364                           [$ac_default_prefix]
1365   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1366                           [PREFIX]
1367
1368 By default, \`make install' will install all the files in
1369 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1370 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1371 for instance \`--prefix=\$HOME'.
1372
1373 For better control, use the options below.
1374
1375 Fine tuning of the installation directories:
1376   --bindir=DIR            user executables [EPREFIX/bin]
1377   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1378   --libexecdir=DIR        program executables [EPREFIX/libexec]
1379   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1380   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1381   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1382   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1383   --libdir=DIR            object code libraries [EPREFIX/lib]
1384   --includedir=DIR        C header files [PREFIX/include]
1385   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1386   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1387   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1388   --infodir=DIR           info documentation [DATAROOTDIR/info]
1389   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1390   --mandir=DIR            man documentation [DATAROOTDIR/man]
1391   --docdir=DIR            documentation root [DATAROOTDIR/doc/rtl433]
1392   --htmldir=DIR           html documentation [DOCDIR]
1393   --dvidir=DIR            dvi documentation [DOCDIR]
1394   --pdfdir=DIR            pdf documentation [DOCDIR]
1395   --psdir=DIR             ps documentation [DOCDIR]
1396 _ACEOF
1397
1398   cat <<\_ACEOF
1399
1400 Program names:
1401   --program-prefix=PREFIX            prepend PREFIX to installed program names
1402   --program-suffix=SUFFIX            append SUFFIX to installed program names
1403   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1404
1405 System types:
1406   --build=BUILD     configure for building on BUILD [guessed]
1407   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1408 _ACEOF
1409 fi
1410
1411 if test -n "$ac_init_help"; then
1412   case $ac_init_help in
1413      short | recursive ) echo "Configuration of rtl433 UNKNOWN-dirty:";;
1414    esac
1415   cat <<\_ACEOF
1416
1417 Optional Features:
1418   --disable-option-checking  ignore unrecognized --enable/--with options
1419   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1420   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1421   --enable-silent-rules   less verbose build output (undo: "make V=1")
1422   --disable-silent-rules  verbose build output (undo: "make V=0")
1423   --enable-dependency-tracking
1424                           do not reject slow dependency extractors
1425   --disable-dependency-tracking
1426                           speeds up one-time build
1427   --enable-shared[=PKGS]  build shared libraries [default=yes]
1428   --enable-static[=PKGS]  build static libraries [default=yes]
1429   --enable-fast-install[=PKGS]
1430                           optimize for fast installation [default=yes]
1431   --disable-libtool-lock  avoid locking (might break parallel builds)
1432
1433 Optional Packages:
1434   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1435   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1436   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1437                           both]
1438   --with-aix-soname=aix|svr4|both
1439                           shared library versioning (aka "SONAME") variant to
1440                           provide on AIX, [default=aix].
1441   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1442   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1443                           compiler's sysroot if not specified).
1444
1445 Some influential environment variables:
1446   CC          C compiler command
1447   CFLAGS      C compiler flags
1448   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1449               nonstandard directory <lib dir>
1450   LIBS        libraries to pass to the linker, e.g. -l<library>
1451   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1452               you have headers in a nonstandard directory <include dir>
1453   LT_SYS_LIBRARY_PATH
1454               User-defined run-time library search path.
1455   CPP         C preprocessor
1456   PKG_CONFIG  path to pkg-config utility
1457   PKG_CONFIG_PATH
1458               directories to add to pkg-config's search path
1459   PKG_CONFIG_LIBDIR
1460               path overriding pkg-config's built-in search path
1461   LIBRTLSDR_CFLAGS
1462               C compiler flags for LIBRTLSDR, overriding pkg-config
1463   LIBRTLSDR_LIBS
1464               linker flags for LIBRTLSDR, overriding pkg-config
1465
1466 Use these variables to override the choices made by `configure' or to help
1467 it to find libraries and programs with nonstandard names/locations.
1468
1469 Report bugs to <rtl_433@googlegroups.com>.
1470 _ACEOF
1471 ac_status=$?
1472 fi
1473
1474 if test "$ac_init_help" = "recursive"; then
1475   # If there are subdirs, report their specific --help.
1476   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1477     test -d "$ac_dir" ||
1478       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1479       continue
1480     ac_builddir=.
1481
1482 case "$ac_dir" in
1483 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1484 *)
1485   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1486   # A ".." for each directory in $ac_dir_suffix.
1487   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1488   case $ac_top_builddir_sub in
1489   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1490   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1491   esac ;;
1492 esac
1493 ac_abs_top_builddir=$ac_pwd
1494 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1495 # for backward compatibility:
1496 ac_top_builddir=$ac_top_build_prefix
1497
1498 case $srcdir in
1499   .)  # We are building in place.
1500     ac_srcdir=.
1501     ac_top_srcdir=$ac_top_builddir_sub
1502     ac_abs_top_srcdir=$ac_pwd ;;
1503   [\\/]* | ?:[\\/]* )  # Absolute name.
1504     ac_srcdir=$srcdir$ac_dir_suffix;
1505     ac_top_srcdir=$srcdir
1506     ac_abs_top_srcdir=$srcdir ;;
1507   *) # Relative name.
1508     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1509     ac_top_srcdir=$ac_top_build_prefix$srcdir
1510     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1511 esac
1512 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1513
1514     cd "$ac_dir" || { ac_status=$?; continue; }
1515     # Check for guested configure.
1516     if test -f "$ac_srcdir/configure.gnu"; then
1517       echo &&
1518       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1519     elif test -f "$ac_srcdir/configure"; then
1520       echo &&
1521       $SHELL "$ac_srcdir/configure" --help=recursive
1522     else
1523       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1524     fi || ac_status=$?
1525     cd "$ac_pwd" || { ac_status=$?; break; }
1526   done
1527 fi
1528
1529 test -n "$ac_init_help" && exit $ac_status
1530 if $ac_init_version; then
1531   cat <<\_ACEOF
1532 rtl433 configure UNKNOWN-dirty
1533 generated by GNU Autoconf 2.69
1534
1535 Copyright (C) 2012 Free Software Foundation, Inc.
1536 This configure script is free software; the Free Software Foundation
1537 gives unlimited permission to copy, distribute and modify it.
1538 _ACEOF
1539   exit
1540 fi
1541
1542 ## ------------------------ ##
1543 ## Autoconf initialization. ##
1544 ## ------------------------ ##
1545
1546 # ac_fn_c_try_compile LINENO
1547 # --------------------------
1548 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1549 ac_fn_c_try_compile ()
1550 {
1551   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1552   rm -f conftest.$ac_objext
1553   if { { ac_try="$ac_compile"
1554 case "(($ac_try" in
1555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1556   *) ac_try_echo=$ac_try;;
1557 esac
1558 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1559 $as_echo "$ac_try_echo"; } >&5
1560   (eval "$ac_compile") 2>conftest.err
1561   ac_status=$?
1562   if test -s conftest.err; then
1563     grep -v '^ *+' conftest.err >conftest.er1
1564     cat conftest.er1 >&5
1565     mv -f conftest.er1 conftest.err
1566   fi
1567   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1568   test $ac_status = 0; } && {
1569          test -z "$ac_c_werror_flag" ||
1570          test ! -s conftest.err
1571        } && test -s conftest.$ac_objext; then :
1572   ac_retval=0
1573 else
1574   $as_echo "$as_me: failed program was:" >&5
1575 sed 's/^/| /' conftest.$ac_ext >&5
1576
1577         ac_retval=1
1578 fi
1579   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1580   as_fn_set_status $ac_retval
1581
1582 } # ac_fn_c_try_compile
1583
1584 # ac_fn_c_try_link LINENO
1585 # -----------------------
1586 # Try to link conftest.$ac_ext, and return whether this succeeded.
1587 ac_fn_c_try_link ()
1588 {
1589   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1590   rm -f conftest.$ac_objext conftest$ac_exeext
1591   if { { ac_try="$ac_link"
1592 case "(($ac_try" in
1593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1594   *) ac_try_echo=$ac_try;;
1595 esac
1596 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1597 $as_echo "$ac_try_echo"; } >&5
1598   (eval "$ac_link") 2>conftest.err
1599   ac_status=$?
1600   if test -s conftest.err; then
1601     grep -v '^ *+' conftest.err >conftest.er1
1602     cat conftest.er1 >&5
1603     mv -f conftest.er1 conftest.err
1604   fi
1605   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1606   test $ac_status = 0; } && {
1607          test -z "$ac_c_werror_flag" ||
1608          test ! -s conftest.err
1609        } && test -s conftest$ac_exeext && {
1610          test "$cross_compiling" = yes ||
1611          test -x conftest$ac_exeext
1612        }; then :
1613   ac_retval=0
1614 else
1615   $as_echo "$as_me: failed program was:" >&5
1616 sed 's/^/| /' conftest.$ac_ext >&5
1617
1618         ac_retval=1
1619 fi
1620   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1621   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1622   # interfere with the next link command; also delete a directory that is
1623   # left behind by Apple's compiler.  We do this before executing the actions.
1624   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1625   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1626   as_fn_set_status $ac_retval
1627
1628 } # ac_fn_c_try_link
1629
1630 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1631 # -------------------------------------------------------
1632 # Tests whether HEADER exists and can be compiled using the include files in
1633 # INCLUDES, setting the cache variable VAR accordingly.
1634 ac_fn_c_check_header_compile ()
1635 {
1636   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1637   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1638 $as_echo_n "checking for $2... " >&6; }
1639 if eval \${$3+:} false; then :
1640   $as_echo_n "(cached) " >&6
1641 else
1642   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1643 /* end confdefs.h.  */
1644 $4
1645 #include <$2>
1646 _ACEOF
1647 if ac_fn_c_try_compile "$LINENO"; then :
1648   eval "$3=yes"
1649 else
1650   eval "$3=no"
1651 fi
1652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1653 fi
1654 eval ac_res=\$$3
1655                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1656 $as_echo "$ac_res" >&6; }
1657   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1658
1659 } # ac_fn_c_check_header_compile
1660
1661 # ac_fn_c_try_cpp LINENO
1662 # ----------------------
1663 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1664 ac_fn_c_try_cpp ()
1665 {
1666   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1667   if { { ac_try="$ac_cpp conftest.$ac_ext"
1668 case "(($ac_try" in
1669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1670   *) ac_try_echo=$ac_try;;
1671 esac
1672 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1673 $as_echo "$ac_try_echo"; } >&5
1674   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1675   ac_status=$?
1676   if test -s conftest.err; then
1677     grep -v '^ *+' conftest.err >conftest.er1
1678     cat conftest.er1 >&5
1679     mv -f conftest.er1 conftest.err
1680   fi
1681   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1682   test $ac_status = 0; } > conftest.i && {
1683          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1684          test ! -s conftest.err
1685        }; then :
1686   ac_retval=0
1687 else
1688   $as_echo "$as_me: failed program was:" >&5
1689 sed 's/^/| /' conftest.$ac_ext >&5
1690
1691     ac_retval=1
1692 fi
1693   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1694   as_fn_set_status $ac_retval
1695
1696 } # ac_fn_c_try_cpp
1697
1698 # ac_fn_c_try_run LINENO
1699 # ----------------------
1700 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1701 # that executables *can* be run.
1702 ac_fn_c_try_run ()
1703 {
1704   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1705   if { { ac_try="$ac_link"
1706 case "(($ac_try" in
1707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1708   *) ac_try_echo=$ac_try;;
1709 esac
1710 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1711 $as_echo "$ac_try_echo"; } >&5
1712   (eval "$ac_link") 2>&5
1713   ac_status=$?
1714   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1715   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1716   { { case "(($ac_try" in
1717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1718   *) ac_try_echo=$ac_try;;
1719 esac
1720 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1721 $as_echo "$ac_try_echo"; } >&5
1722   (eval "$ac_try") 2>&5
1723   ac_status=$?
1724   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1725   test $ac_status = 0; }; }; then :
1726   ac_retval=0
1727 else
1728   $as_echo "$as_me: program exited with status $ac_status" >&5
1729        $as_echo "$as_me: failed program was:" >&5
1730 sed 's/^/| /' conftest.$ac_ext >&5
1731
1732        ac_retval=$ac_status
1733 fi
1734   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1735   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1736   as_fn_set_status $ac_retval
1737
1738 } # ac_fn_c_try_run
1739
1740 # ac_fn_c_check_func LINENO FUNC VAR
1741 # ----------------------------------
1742 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1743 ac_fn_c_check_func ()
1744 {
1745   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1746   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1747 $as_echo_n "checking for $2... " >&6; }
1748 if eval \${$3+:} false; then :
1749   $as_echo_n "(cached) " >&6
1750 else
1751   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1752 /* end confdefs.h.  */
1753 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1754    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1755 #define $2 innocuous_$2
1756
1757 /* System header to define __stub macros and hopefully few prototypes,
1758     which can conflict with char $2 (); below.
1759     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1760     <limits.h> exists even on freestanding compilers.  */
1761
1762 #ifdef __STDC__
1763 # include <limits.h>
1764 #else
1765 # include <assert.h>
1766 #endif
1767
1768 #undef $2
1769
1770 /* Override any GCC internal prototype to avoid an error.
1771    Use char because int might match the return type of a GCC
1772    builtin and then its argument prototype would still apply.  */
1773 #ifdef __cplusplus
1774 extern "C"
1775 #endif
1776 char $2 ();
1777 /* The GNU C library defines this for functions which it implements
1778     to always fail with ENOSYS.  Some functions are actually named
1779     something starting with __ and the normal name is an alias.  */
1780 #if defined __stub_$2 || defined __stub___$2
1781 choke me
1782 #endif
1783
1784 int
1785 main ()
1786 {
1787 return $2 ();
1788   ;
1789   return 0;
1790 }
1791 _ACEOF
1792 if ac_fn_c_try_link "$LINENO"; then :
1793   eval "$3=yes"
1794 else
1795   eval "$3=no"
1796 fi
1797 rm -f core conftest.err conftest.$ac_objext \
1798     conftest$ac_exeext conftest.$ac_ext
1799 fi
1800 eval ac_res=\$$3
1801                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1802 $as_echo "$ac_res" >&6; }
1803   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1804
1805 } # ac_fn_c_check_func
1806
1807 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1808 # -------------------------------------------------------
1809 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1810 # the include files in INCLUDES and setting the cache variable VAR
1811 # accordingly.
1812 ac_fn_c_check_header_mongrel ()
1813 {
1814   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1815   if eval \${$3+:} false; then :
1816   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1817 $as_echo_n "checking for $2... " >&6; }
1818 if eval \${$3+:} false; then :
1819   $as_echo_n "(cached) " >&6
1820 fi
1821 eval ac_res=\$$3
1822                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1823 $as_echo "$ac_res" >&6; }
1824 else
1825   # Is the header compilable?
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1827 $as_echo_n "checking $2 usability... " >&6; }
1828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1829 /* end confdefs.h.  */
1830 $4
1831 #include <$2>
1832 _ACEOF
1833 if ac_fn_c_try_compile "$LINENO"; then :
1834   ac_header_compiler=yes
1835 else
1836   ac_header_compiler=no
1837 fi
1838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1840 $as_echo "$ac_header_compiler" >&6; }
1841
1842 # Is the header present?
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1844 $as_echo_n "checking $2 presence... " >&6; }
1845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1846 /* end confdefs.h.  */
1847 #include <$2>
1848 _ACEOF
1849 if ac_fn_c_try_cpp "$LINENO"; then :
1850   ac_header_preproc=yes
1851 else
1852   ac_header_preproc=no
1853 fi
1854 rm -f conftest.err conftest.i conftest.$ac_ext
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1856 $as_echo "$ac_header_preproc" >&6; }
1857
1858 # So?  What about this header?
1859 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1860   yes:no: )
1861     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1862 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1863     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1864 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1865     ;;
1866   no:yes:* )
1867     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1868 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1869     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1870 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1871     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1872 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1873     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1874 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1875     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1876 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1877 ( $as_echo "## --------------------------------------- ##
1878 ## Report this to rtl_433@googlegroups.com ##
1879 ## --------------------------------------- ##"
1880      ) | sed "s/^/$as_me: WARNING:     /" >&2
1881     ;;
1882 esac
1883   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1884 $as_echo_n "checking for $2... " >&6; }
1885 if eval \${$3+:} false; then :
1886   $as_echo_n "(cached) " >&6
1887 else
1888   eval "$3=\$ac_header_compiler"
1889 fi
1890 eval ac_res=\$$3
1891                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1892 $as_echo "$ac_res" >&6; }
1893 fi
1894   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1895
1896 } # ac_fn_c_check_header_mongrel
1897 cat >config.log <<_ACEOF
1898 This file contains any messages produced by compilers while
1899 running configure, to aid debugging if configure makes a mistake.
1900
1901 It was created by rtl433 $as_me UNKNOWN-dirty, which was
1902 generated by GNU Autoconf 2.69.  Invocation command line was
1903
1904   $ $0 $@
1905
1906 _ACEOF
1907 exec 5>>config.log
1908 {
1909 cat <<_ASUNAME
1910 ## --------- ##
1911 ## Platform. ##
1912 ## --------- ##
1913
1914 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1915 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1916 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1917 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1918 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1919
1920 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1921 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1922
1923 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1924 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1925 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1926 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1927 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1928 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1929 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1930
1931 _ASUNAME
1932
1933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1934 for as_dir in $PATH
1935 do
1936   IFS=$as_save_IFS
1937   test -z "$as_dir" && as_dir=.
1938     $as_echo "PATH: $as_dir"
1939   done
1940 IFS=$as_save_IFS
1941
1942 } >&5
1943
1944 cat >&5 <<_ACEOF
1945
1946
1947 ## ----------- ##
1948 ## Core tests. ##
1949 ## ----------- ##
1950
1951 _ACEOF
1952
1953
1954 # Keep a trace of the command line.
1955 # Strip out --no-create and --no-recursion so they do not pile up.
1956 # Strip out --silent because we don't want to record it for future runs.
1957 # Also quote any args containing shell meta-characters.
1958 # Make two passes to allow for proper duplicate-argument suppression.
1959 ac_configure_args=
1960 ac_configure_args0=
1961 ac_configure_args1=
1962 ac_must_keep_next=false
1963 for ac_pass in 1 2
1964 do
1965   for ac_arg
1966   do
1967     case $ac_arg in
1968     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1969     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1970     | -silent | --silent | --silen | --sile | --sil)
1971       continue ;;
1972     *\'*)
1973       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1974     esac
1975     case $ac_pass in
1976     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1977     2)
1978       as_fn_append ac_configure_args1 " '$ac_arg'"
1979       if test $ac_must_keep_next = true; then
1980         ac_must_keep_next=false # Got value, back to normal.
1981       else
1982         case $ac_arg in
1983           *=* | --config-cache | -C | -disable-* | --disable-* \
1984           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1985           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1986           | -with-* | --with-* | -without-* | --without-* | --x)
1987             case "$ac_configure_args0 " in
1988               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1989             esac
1990             ;;
1991           -* ) ac_must_keep_next=true ;;
1992         esac
1993       fi
1994       as_fn_append ac_configure_args " '$ac_arg'"
1995       ;;
1996     esac
1997   done
1998 done
1999 { ac_configure_args0=; unset ac_configure_args0;}
2000 { ac_configure_args1=; unset ac_configure_args1;}
2001
2002 # When interrupted or exit'd, cleanup temporary files, and complete
2003 # config.log.  We remove comments because anyway the quotes in there
2004 # would cause problems or look ugly.
2005 # WARNING: Use '\'' to represent an apostrophe within the trap.
2006 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2007 trap 'exit_status=$?
2008   # Save into config.log some information that might help in debugging.
2009   {
2010     echo
2011
2012     $as_echo "## ---------------- ##
2013 ## Cache variables. ##
2014 ## ---------------- ##"
2015     echo
2016     # The following way of writing the cache mishandles newlines in values,
2017 (
2018   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2019     eval ac_val=\$$ac_var
2020     case $ac_val in #(
2021     *${as_nl}*)
2022       case $ac_var in #(
2023       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2024 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2025       esac
2026       case $ac_var in #(
2027       _ | IFS | as_nl) ;; #(
2028       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2029       *) { eval $ac_var=; unset $ac_var;} ;;
2030       esac ;;
2031     esac
2032   done
2033   (set) 2>&1 |
2034     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2035     *${as_nl}ac_space=\ *)
2036       sed -n \
2037         "s/'\''/'\''\\\\'\'''\''/g;
2038           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2039       ;; #(
2040     *)
2041       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2042       ;;
2043     esac |
2044     sort
2045 )
2046     echo
2047
2048     $as_echo "## ----------------- ##
2049 ## Output variables. ##
2050 ## ----------------- ##"
2051     echo
2052     for ac_var in $ac_subst_vars
2053     do
2054       eval ac_val=\$$ac_var
2055       case $ac_val in
2056       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2057       esac
2058       $as_echo "$ac_var='\''$ac_val'\''"
2059     done | sort
2060     echo
2061
2062     if test -n "$ac_subst_files"; then
2063       $as_echo "## ------------------- ##
2064 ## File substitutions. ##
2065 ## ------------------- ##"
2066       echo
2067       for ac_var in $ac_subst_files
2068       do
2069         eval ac_val=\$$ac_var
2070         case $ac_val in
2071         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2072         esac
2073         $as_echo "$ac_var='\''$ac_val'\''"
2074       done | sort
2075       echo
2076     fi
2077
2078     if test -s confdefs.h; then
2079       $as_echo "## ----------- ##
2080 ## confdefs.h. ##
2081 ## ----------- ##"
2082       echo
2083       cat confdefs.h
2084       echo
2085     fi
2086     test "$ac_signal" != 0 &&
2087       $as_echo "$as_me: caught signal $ac_signal"
2088     $as_echo "$as_me: exit $exit_status"
2089   } >&5
2090   rm -f core *.core core.conftest.* &&
2091     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2092     exit $exit_status
2093 ' 0
2094 for ac_signal in 1 2 13 15; do
2095   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2096 done
2097 ac_signal=0
2098
2099 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2100 rm -f -r conftest* confdefs.h
2101
2102 $as_echo "/* confdefs.h */" > confdefs.h
2103
2104 # Predefined preprocessor variables.
2105
2106 cat >>confdefs.h <<_ACEOF
2107 #define PACKAGE_NAME "$PACKAGE_NAME"
2108 _ACEOF
2109
2110 cat >>confdefs.h <<_ACEOF
2111 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2112 _ACEOF
2113
2114 cat >>confdefs.h <<_ACEOF
2115 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2116 _ACEOF
2117
2118 cat >>confdefs.h <<_ACEOF
2119 #define PACKAGE_STRING "$PACKAGE_STRING"
2120 _ACEOF
2121
2122 cat >>confdefs.h <<_ACEOF
2123 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2124 _ACEOF
2125
2126 cat >>confdefs.h <<_ACEOF
2127 #define PACKAGE_URL "$PACKAGE_URL"
2128 _ACEOF
2129
2130
2131 # Let the site file select an alternate cache file if it wants to.
2132 # Prefer an explicitly selected file to automatically selected ones.
2133 ac_site_file1=NONE
2134 ac_site_file2=NONE
2135 if test -n "$CONFIG_SITE"; then
2136   # We do not want a PATH search for config.site.
2137   case $CONFIG_SITE in #((
2138     -*)  ac_site_file1=./$CONFIG_SITE;;
2139     */*) ac_site_file1=$CONFIG_SITE;;
2140     *)   ac_site_file1=./$CONFIG_SITE;;
2141   esac
2142 elif test "x$prefix" != xNONE; then
2143   ac_site_file1=$prefix/share/config.site
2144   ac_site_file2=$prefix/etc/config.site
2145 else
2146   ac_site_file1=$ac_default_prefix/share/config.site
2147   ac_site_file2=$ac_default_prefix/etc/config.site
2148 fi
2149 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2150 do
2151   test "x$ac_site_file" = xNONE && continue
2152   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2153     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2154 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2155     sed 's/^/| /' "$ac_site_file" >&5
2156     . "$ac_site_file" \
2157       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2158 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2159 as_fn_error $? "failed to load site script $ac_site_file
2160 See \`config.log' for more details" "$LINENO" 5; }
2161   fi
2162 done
2163
2164 if test -r "$cache_file"; then
2165   # Some versions of bash will fail to source /dev/null (special files
2166   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2167   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2168     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2169 $as_echo "$as_me: loading cache $cache_file" >&6;}
2170     case $cache_file in
2171       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2172       *)                      . "./$cache_file";;
2173     esac
2174   fi
2175 else
2176   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2177 $as_echo "$as_me: creating cache $cache_file" >&6;}
2178   >$cache_file
2179 fi
2180
2181 # Check that the precious variables saved in the cache have kept the same
2182 # value.
2183 ac_cache_corrupted=false
2184 for ac_var in $ac_precious_vars; do
2185   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2186   eval ac_new_set=\$ac_env_${ac_var}_set
2187   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2188   eval ac_new_val=\$ac_env_${ac_var}_value
2189   case $ac_old_set,$ac_new_set in
2190     set,)
2191       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2192 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2193       ac_cache_corrupted=: ;;
2194     ,set)
2195       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2196 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2197       ac_cache_corrupted=: ;;
2198     ,);;
2199     *)
2200       if test "x$ac_old_val" != "x$ac_new_val"; then
2201         # differences in whitespace do not lead to failure.
2202         ac_old_val_w=`echo x $ac_old_val`
2203         ac_new_val_w=`echo x $ac_new_val`
2204         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2205           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2206 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2207           ac_cache_corrupted=:
2208         else
2209           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2210 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2211           eval $ac_var=\$ac_old_val
2212         fi
2213         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2214 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2215         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2216 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2217       fi;;
2218   esac
2219   # Pass precious variables to config.status.
2220   if test "$ac_new_set" = set; then
2221     case $ac_new_val in
2222     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2223     *) ac_arg=$ac_var=$ac_new_val ;;
2224     esac
2225     case " $ac_configure_args " in
2226       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2227       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2228     esac
2229   fi
2230 done
2231 if $ac_cache_corrupted; then
2232   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2233 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2234   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2235 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2236   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2237 fi
2238 ## -------------------- ##
2239 ## Main body of script. ##
2240 ## -------------------- ##
2241
2242 ac_ext=c
2243 ac_cpp='$CPP $CPPFLAGS'
2244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2247
2248
2249
2250 am__api_version='1.15'
2251
2252 ac_aux_dir=
2253 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2254   if test -f "$ac_dir/install-sh"; then
2255     ac_aux_dir=$ac_dir
2256     ac_install_sh="$ac_aux_dir/install-sh -c"
2257     break
2258   elif test -f "$ac_dir/install.sh"; then
2259     ac_aux_dir=$ac_dir
2260     ac_install_sh="$ac_aux_dir/install.sh -c"
2261     break
2262   elif test -f "$ac_dir/shtool"; then
2263     ac_aux_dir=$ac_dir
2264     ac_install_sh="$ac_aux_dir/shtool install -c"
2265     break
2266   fi
2267 done
2268 if test -z "$ac_aux_dir"; then
2269   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2270 fi
2271
2272 # These three variables are undocumented and unsupported,
2273 # and are intended to be withdrawn in a future Autoconf release.
2274 # They can cause serious problems if a builder's source tree is in a directory
2275 # whose full name contains unusual characters.
2276 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2277 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2278 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2279
2280
2281 # Find a good install program.  We prefer a C program (faster),
2282 # so one script is as good as another.  But avoid the broken or
2283 # incompatible versions:
2284 # SysV /etc/install, /usr/sbin/install
2285 # SunOS /usr/etc/install
2286 # IRIX /sbin/install
2287 # AIX /bin/install
2288 # AmigaOS /C/install, which installs bootblocks on floppy discs
2289 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2290 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2291 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2292 # OS/2's system install, which has a completely different semantic
2293 # ./install, which can be erroneously created by make from ./install.sh.
2294 # Reject install programs that cannot install multiple files.
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2296 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2297 if test -z "$INSTALL"; then
2298 if ${ac_cv_path_install+:} false; then :
2299   $as_echo_n "(cached) " >&6
2300 else
2301   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2302 for as_dir in $PATH
2303 do
2304   IFS=$as_save_IFS
2305   test -z "$as_dir" && as_dir=.
2306     # Account for people who put trailing slashes in PATH elements.
2307 case $as_dir/ in #((
2308   ./ | .// | /[cC]/* | \
2309   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2310   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2311   /usr/ucb/* ) ;;
2312   *)
2313     # OSF1 and SCO ODT 3.0 have their own names for install.
2314     # Don't use installbsd from OSF since it installs stuff as root
2315     # by default.
2316     for ac_prog in ginstall scoinst install; do
2317       for ac_exec_ext in '' $ac_executable_extensions; do
2318         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2319           if test $ac_prog = install &&
2320             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2321             # AIX install.  It has an incompatible calling convention.
2322             :
2323           elif test $ac_prog = install &&
2324             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2325             # program-specific install script used by HP pwplus--don't use.
2326             :
2327           else
2328             rm -rf conftest.one conftest.two conftest.dir
2329             echo one > conftest.one
2330             echo two > conftest.two
2331             mkdir conftest.dir
2332             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2333               test -s conftest.one && test -s conftest.two &&
2334               test -s conftest.dir/conftest.one &&
2335               test -s conftest.dir/conftest.two
2336             then
2337               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2338               break 3
2339             fi
2340           fi
2341         fi
2342       done
2343     done
2344     ;;
2345 esac
2346
2347   done
2348 IFS=$as_save_IFS
2349
2350 rm -rf conftest.one conftest.two conftest.dir
2351
2352 fi
2353   if test "${ac_cv_path_install+set}" = set; then
2354     INSTALL=$ac_cv_path_install
2355   else
2356     # As a last resort, use the slow shell script.  Don't cache a
2357     # value for INSTALL within a source directory, because that will
2358     # break other packages using the cache if that directory is
2359     # removed, or if the value is a relative name.
2360     INSTALL=$ac_install_sh
2361   fi
2362 fi
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2364 $as_echo "$INSTALL" >&6; }
2365
2366 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2367 # It thinks the first close brace ends the variable substitution.
2368 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2369
2370 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2371
2372 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2373
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2375 $as_echo_n "checking whether build environment is sane... " >&6; }
2376 # Reject unsafe characters in $srcdir or the absolute working directory
2377 # name.  Accept space and tab only in the latter.
2378 am_lf='
2379 '
2380 case `pwd` in
2381   *[\\\"\#\$\&\'\`$am_lf]*)
2382     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2383 esac
2384 case $srcdir in
2385   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2386     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2387 esac
2388
2389 # Do 'set' in a subshell so we don't clobber the current shell's
2390 # arguments.  Must try -L first in case configure is actually a
2391 # symlink; some systems play weird games with the mod time of symlinks
2392 # (eg FreeBSD returns the mod time of the symlink's containing
2393 # directory).
2394 if (
2395    am_has_slept=no
2396    for am_try in 1 2; do
2397      echo "timestamp, slept: $am_has_slept" > conftest.file
2398      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2399      if test "$*" = "X"; then
2400         # -L didn't work.
2401         set X `ls -t "$srcdir/configure" conftest.file`
2402      fi
2403      if test "$*" != "X $srcdir/configure conftest.file" \
2404         && test "$*" != "X conftest.file $srcdir/configure"; then
2405
2406         # If neither matched, then we have a broken ls.  This can happen
2407         # if, for instance, CONFIG_SHELL is bash and it inherits a
2408         # broken ls alias from the environment.  This has actually
2409         # happened.  Such a system could not be considered "sane".
2410         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2411   alias in your environment" "$LINENO" 5
2412      fi
2413      if test "$2" = conftest.file || test $am_try -eq 2; then
2414        break
2415      fi
2416      # Just in case.
2417      sleep 1
2418      am_has_slept=yes
2419    done
2420    test "$2" = conftest.file
2421    )
2422 then
2423    # Ok.
2424    :
2425 else
2426    as_fn_error $? "newly created file is older than distributed files!
2427 Check your system clock" "$LINENO" 5
2428 fi
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2430 $as_echo "yes" >&6; }
2431 # If we didn't sleep, we still need to ensure time stamps of config.status and
2432 # generated files are strictly newer.
2433 am_sleep_pid=
2434 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2435   ( sleep 1 ) &
2436   am_sleep_pid=$!
2437 fi
2438
2439 rm -f conftest.file
2440
2441 test "$program_prefix" != NONE &&
2442   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2443 # Use a double $ so make ignores it.
2444 test "$program_suffix" != NONE &&
2445   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2446 # Double any \ or $.
2447 # By default was `s,x,x', remove it if useless.
2448 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2449 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2450
2451 # Expand $ac_aux_dir to an absolute path.
2452 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2453
2454 if test x"${MISSING+set}" != xset; then
2455   case $am_aux_dir in
2456   *\ * | *\     *)
2457     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2458   *)
2459     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2460   esac
2461 fi
2462 # Use eval to expand $SHELL
2463 if eval "$MISSING --is-lightweight"; then
2464   am_missing_run="$MISSING "
2465 else
2466   am_missing_run=
2467   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2468 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2469 fi
2470
2471 if test x"${install_sh+set}" != xset; then
2472   case $am_aux_dir in
2473   *\ * | *\     *)
2474     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2475   *)
2476     install_sh="\${SHELL} $am_aux_dir/install-sh"
2477   esac
2478 fi
2479
2480 # Installed binaries are usually stripped using 'strip' when the user
2481 # run "make install-strip".  However 'strip' might not be the right
2482 # tool to use in cross-compilation environments, therefore Automake
2483 # will honor the 'STRIP' environment variable to overrule this program.
2484 if test "$cross_compiling" != no; then
2485   if test -n "$ac_tool_prefix"; then
2486   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2487 set dummy ${ac_tool_prefix}strip; ac_word=$2
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2489 $as_echo_n "checking for $ac_word... " >&6; }
2490 if ${ac_cv_prog_STRIP+:} false; then :
2491   $as_echo_n "(cached) " >&6
2492 else
2493   if test -n "$STRIP"; then
2494   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2495 else
2496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2497 for as_dir in $PATH
2498 do
2499   IFS=$as_save_IFS
2500   test -z "$as_dir" && as_dir=.
2501     for ac_exec_ext in '' $ac_executable_extensions; do
2502   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2503     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2504     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2505     break 2
2506   fi
2507 done
2508   done
2509 IFS=$as_save_IFS
2510
2511 fi
2512 fi
2513 STRIP=$ac_cv_prog_STRIP
2514 if test -n "$STRIP"; then
2515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2516 $as_echo "$STRIP" >&6; }
2517 else
2518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2519 $as_echo "no" >&6; }
2520 fi
2521
2522
2523 fi
2524 if test -z "$ac_cv_prog_STRIP"; then
2525   ac_ct_STRIP=$STRIP
2526   # Extract the first word of "strip", so it can be a program name with args.
2527 set dummy strip; ac_word=$2
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2529 $as_echo_n "checking for $ac_word... " >&6; }
2530 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2531   $as_echo_n "(cached) " >&6
2532 else
2533   if test -n "$ac_ct_STRIP"; then
2534   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2535 else
2536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2537 for as_dir in $PATH
2538 do
2539   IFS=$as_save_IFS
2540   test -z "$as_dir" && as_dir=.
2541     for ac_exec_ext in '' $ac_executable_extensions; do
2542   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2543     ac_cv_prog_ac_ct_STRIP="strip"
2544     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2545     break 2
2546   fi
2547 done
2548   done
2549 IFS=$as_save_IFS
2550
2551 fi
2552 fi
2553 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2554 if test -n "$ac_ct_STRIP"; then
2555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2556 $as_echo "$ac_ct_STRIP" >&6; }
2557 else
2558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2559 $as_echo "no" >&6; }
2560 fi
2561
2562   if test "x$ac_ct_STRIP" = x; then
2563     STRIP=":"
2564   else
2565     case $cross_compiling:$ac_tool_warned in
2566 yes:)
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2568 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2569 ac_tool_warned=yes ;;
2570 esac
2571     STRIP=$ac_ct_STRIP
2572   fi
2573 else
2574   STRIP="$ac_cv_prog_STRIP"
2575 fi
2576
2577 fi
2578 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2579
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2581 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2582 if test -z "$MKDIR_P"; then
2583   if ${ac_cv_path_mkdir+:} false; then :
2584   $as_echo_n "(cached) " >&6
2585 else
2586   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2587 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2588 do
2589   IFS=$as_save_IFS
2590   test -z "$as_dir" && as_dir=.
2591     for ac_prog in mkdir gmkdir; do
2592          for ac_exec_ext in '' $ac_executable_extensions; do
2593            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2594            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2595              'mkdir (GNU coreutils) '* | \
2596              'mkdir (coreutils) '* | \
2597              'mkdir (fileutils) '4.1*)
2598                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2599                break 3;;
2600            esac
2601          done
2602        done
2603   done
2604 IFS=$as_save_IFS
2605
2606 fi
2607
2608   test -d ./--version && rmdir ./--version
2609   if test "${ac_cv_path_mkdir+set}" = set; then
2610     MKDIR_P="$ac_cv_path_mkdir -p"
2611   else
2612     # As a last resort, use the slow shell script.  Don't cache a
2613     # value for MKDIR_P within a source directory, because that will
2614     # break other packages using the cache if that directory is
2615     # removed, or if the value is a relative name.
2616     MKDIR_P="$ac_install_sh -d"
2617   fi
2618 fi
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2620 $as_echo "$MKDIR_P" >&6; }
2621
2622 for ac_prog in gawk mawk nawk awk
2623 do
2624   # Extract the first word of "$ac_prog", so it can be a program name with args.
2625 set dummy $ac_prog; ac_word=$2
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2627 $as_echo_n "checking for $ac_word... " >&6; }
2628 if ${ac_cv_prog_AWK+:} false; then :
2629   $as_echo_n "(cached) " >&6
2630 else
2631   if test -n "$AWK"; then
2632   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2633 else
2634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2635 for as_dir in $PATH
2636 do
2637   IFS=$as_save_IFS
2638   test -z "$as_dir" && as_dir=.
2639     for ac_exec_ext in '' $ac_executable_extensions; do
2640   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2641     ac_cv_prog_AWK="$ac_prog"
2642     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2643     break 2
2644   fi
2645 done
2646   done
2647 IFS=$as_save_IFS
2648
2649 fi
2650 fi
2651 AWK=$ac_cv_prog_AWK
2652 if test -n "$AWK"; then
2653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2654 $as_echo "$AWK" >&6; }
2655 else
2656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2657 $as_echo "no" >&6; }
2658 fi
2659
2660
2661   test -n "$AWK" && break
2662 done
2663
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2665 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2666 set x ${MAKE-make}
2667 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2668 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2669   $as_echo_n "(cached) " >&6
2670 else
2671   cat >conftest.make <<\_ACEOF
2672 SHELL = /bin/sh
2673 all:
2674         @echo '@@@%%%=$(MAKE)=@@@%%%'
2675 _ACEOF
2676 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2677 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2678   *@@@%%%=?*=@@@%%%*)
2679     eval ac_cv_prog_make_${ac_make}_set=yes;;
2680   *)
2681     eval ac_cv_prog_make_${ac_make}_set=no;;
2682 esac
2683 rm -f conftest.make
2684 fi
2685 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2687 $as_echo "yes" >&6; }
2688   SET_MAKE=
2689 else
2690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2691 $as_echo "no" >&6; }
2692   SET_MAKE="MAKE=${MAKE-make}"
2693 fi
2694
2695 rm -rf .tst 2>/dev/null
2696 mkdir .tst 2>/dev/null
2697 if test -d .tst; then
2698   am__leading_dot=.
2699 else
2700   am__leading_dot=_
2701 fi
2702 rmdir .tst 2>/dev/null
2703
2704 # Check whether --enable-silent-rules was given.
2705 if test "${enable_silent_rules+set}" = set; then :
2706   enableval=$enable_silent_rules;
2707 fi
2708
2709 case $enable_silent_rules in # (((
2710   yes) AM_DEFAULT_VERBOSITY=0;;
2711    no) AM_DEFAULT_VERBOSITY=1;;
2712     *) AM_DEFAULT_VERBOSITY=1;;
2713 esac
2714 am_make=${MAKE-make}
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2716 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2717 if ${am_cv_make_support_nested_variables+:} false; then :
2718   $as_echo_n "(cached) " >&6
2719 else
2720   if $as_echo 'TRUE=$(BAR$(V))
2721 BAR0=false
2722 BAR1=true
2723 V=1
2724 am__doit:
2725         @$(TRUE)
2726 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2727   am_cv_make_support_nested_variables=yes
2728 else
2729   am_cv_make_support_nested_variables=no
2730 fi
2731 fi
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2733 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2734 if test $am_cv_make_support_nested_variables = yes; then
2735     AM_V='$(V)'
2736   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2737 else
2738   AM_V=$AM_DEFAULT_VERBOSITY
2739   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2740 fi
2741 AM_BACKSLASH='\'
2742
2743 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2744   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2745   # is not polluted with repeated "-I."
2746   am__isrc=' -I$(srcdir)'
2747   # test to see if srcdir already configured
2748   if test -f $srcdir/config.status; then
2749     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2750   fi
2751 fi
2752
2753 # test whether we have cygpath
2754 if test -z "$CYGPATH_W"; then
2755   if (cygpath --version) >/dev/null 2>/dev/null; then
2756     CYGPATH_W='cygpath -w'
2757   else
2758     CYGPATH_W=echo
2759   fi
2760 fi
2761
2762
2763 # Define the identity of the package.
2764  PACKAGE='rtl433'
2765  VERSION='UNKNOWN-dirty'
2766
2767
2768 cat >>confdefs.h <<_ACEOF
2769 #define PACKAGE "$PACKAGE"
2770 _ACEOF
2771
2772
2773 cat >>confdefs.h <<_ACEOF
2774 #define VERSION "$VERSION"
2775 _ACEOF
2776
2777 # Some tools Automake needs.
2778
2779 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2780
2781
2782 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2783
2784
2785 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2786
2787
2788 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2789
2790
2791 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2792
2793 # For better backward compatibility.  To be removed once Automake 1.9.x
2794 # dies out for good.  For more background, see:
2795 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2796 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2797 mkdir_p='$(MKDIR_P)'
2798
2799 # We need awk for the "check" target (and possibly the TAP driver).  The
2800 # system "awk" is bad on some platforms.
2801 # Always define AMTAR for backward compatibility.  Yes, it's still used
2802 # in the wild :-(  We should find a proper way to deprecate it ...
2803 AMTAR='$${TAR-tar}'
2804
2805
2806 # We'll loop over all known methods to create a tar archive until one works.
2807 _am_tools='gnutar  pax cpio none'
2808
2809 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2810
2811
2812
2813
2814
2815
2816 # POSIX will say in a future version that running "rm -f" with no argument
2817 # is OK; and we want to be able to make that assumption in our Makefile
2818 # recipes.  So use an aggressive probe to check that the usage we want is
2819 # actually supported "in the wild" to an acceptable degree.
2820 # See automake bug#10828.
2821 # To make any issue more visible, cause the running configure to be aborted
2822 # by default if the 'rm' program in use doesn't match our expectations; the
2823 # user can still override this though.
2824 if rm -f && rm -fr && rm -rf; then : OK; else
2825   cat >&2 <<'END'
2826 Oops!
2827
2828 Your 'rm' program seems unable to run without file operands specified
2829 on the command line, even when the '-f' option is present.  This is contrary
2830 to the behaviour of most rm programs out there, and not conforming with
2831 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2832
2833 Please tell bug-automake@gnu.org about your system, including the value
2834 of your $PATH and any error possibly output before this message.  This
2835 can help us improve future automake versions.
2836
2837 END
2838   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2839     echo 'Configuration will proceed anyway, since you have set the' >&2
2840     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2841     echo >&2
2842   else
2843     cat >&2 <<'END'
2844 Aborting the configuration process, to ensure you take notice of the issue.
2845
2846 You can download and install GNU coreutils to get an 'rm' implementation
2847 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2848
2849 If you want to complete the configuration process using your problematic
2850 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2851 to "yes", and re-run configure.
2852
2853 END
2854     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2855   fi
2856 fi
2857
2858
2859 # Check whether --enable-silent-rules was given.
2860 if test "${enable_silent_rules+set}" = set; then :
2861   enableval=$enable_silent_rules;
2862 fi
2863
2864 case $enable_silent_rules in # (((
2865   yes) AM_DEFAULT_VERBOSITY=0;;
2866    no) AM_DEFAULT_VERBOSITY=1;;
2867     *) AM_DEFAULT_VERBOSITY=0;;
2868 esac
2869 am_make=${MAKE-make}
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2871 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2872 if ${am_cv_make_support_nested_variables+:} false; then :
2873   $as_echo_n "(cached) " >&6
2874 else
2875   if $as_echo 'TRUE=$(BAR$(V))
2876 BAR0=false
2877 BAR1=true
2878 V=1
2879 am__doit:
2880         @$(TRUE)
2881 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2882   am_cv_make_support_nested_variables=yes
2883 else
2884   am_cv_make_support_nested_variables=no
2885 fi
2886 fi
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2888 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2889 if test $am_cv_make_support_nested_variables = yes; then
2890     AM_V='$(V)'
2891   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2892 else
2893   AM_V=$AM_DEFAULT_VERBOSITY
2894   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2895 fi
2896 AM_BACKSLASH='\'
2897
2898
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2900 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2901 set x ${MAKE-make}
2902 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2903 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2904   $as_echo_n "(cached) " >&6
2905 else
2906   cat >conftest.make <<\_ACEOF
2907 SHELL = /bin/sh
2908 all:
2909         @echo '@@@%%%=$(MAKE)=@@@%%%'
2910 _ACEOF
2911 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2912 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2913   *@@@%%%=?*=@@@%%%*)
2914     eval ac_cv_prog_make_${ac_make}_set=yes;;
2915   *)
2916     eval ac_cv_prog_make_${ac_make}_set=no;;
2917 esac
2918 rm -f conftest.make
2919 fi
2920 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2922 $as_echo "yes" >&6; }
2923   SET_MAKE=
2924 else
2925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2926 $as_echo "no" >&6; }
2927   SET_MAKE="MAKE=${MAKE-make}"
2928 fi
2929
2930 ac_ext=c
2931 ac_cpp='$CPP $CPPFLAGS'
2932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2935 if test -n "$ac_tool_prefix"; then
2936   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2937 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2939 $as_echo_n "checking for $ac_word... " >&6; }
2940 if ${ac_cv_prog_CC+:} false; then :
2941   $as_echo_n "(cached) " >&6
2942 else
2943   if test -n "$CC"; then
2944   ac_cv_prog_CC="$CC" # Let the user override the test.
2945 else
2946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2947 for as_dir in $PATH
2948 do
2949   IFS=$as_save_IFS
2950   test -z "$as_dir" && as_dir=.
2951     for ac_exec_ext in '' $ac_executable_extensions; do
2952   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2953     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2954     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2955     break 2
2956   fi
2957 done
2958   done
2959 IFS=$as_save_IFS
2960
2961 fi
2962 fi
2963 CC=$ac_cv_prog_CC
2964 if test -n "$CC"; then
2965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2966 $as_echo "$CC" >&6; }
2967 else
2968   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2969 $as_echo "no" >&6; }
2970 fi
2971
2972
2973 fi
2974 if test -z "$ac_cv_prog_CC"; then
2975   ac_ct_CC=$CC
2976   # Extract the first word of "gcc", so it can be a program name with args.
2977 set dummy gcc; ac_word=$2
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2979 $as_echo_n "checking for $ac_word... " >&6; }
2980 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2981   $as_echo_n "(cached) " >&6
2982 else
2983   if test -n "$ac_ct_CC"; then
2984   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2985 else
2986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2987 for as_dir in $PATH
2988 do
2989   IFS=$as_save_IFS
2990   test -z "$as_dir" && as_dir=.
2991     for ac_exec_ext in '' $ac_executable_extensions; do
2992   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2993     ac_cv_prog_ac_ct_CC="gcc"
2994     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2995     break 2
2996   fi
2997 done
2998   done
2999 IFS=$as_save_IFS
3000
3001 fi
3002 fi
3003 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3004 if test -n "$ac_ct_CC"; then
3005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3006 $as_echo "$ac_ct_CC" >&6; }
3007 else
3008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3009 $as_echo "no" >&6; }
3010 fi
3011
3012   if test "x$ac_ct_CC" = x; then
3013     CC=""
3014   else
3015     case $cross_compiling:$ac_tool_warned in
3016 yes:)
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3018 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3019 ac_tool_warned=yes ;;
3020 esac
3021     CC=$ac_ct_CC
3022   fi
3023 else
3024   CC="$ac_cv_prog_CC"
3025 fi
3026
3027 if test -z "$CC"; then
3028           if test -n "$ac_tool_prefix"; then
3029     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3030 set dummy ${ac_tool_prefix}cc; ac_word=$2
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3032 $as_echo_n "checking for $ac_word... " >&6; }
3033 if ${ac_cv_prog_CC+:} false; then :
3034   $as_echo_n "(cached) " >&6
3035 else
3036   if test -n "$CC"; then
3037   ac_cv_prog_CC="$CC" # Let the user override the test.
3038 else
3039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3040 for as_dir in $PATH
3041 do
3042   IFS=$as_save_IFS
3043   test -z "$as_dir" && as_dir=.
3044     for ac_exec_ext in '' $ac_executable_extensions; do
3045   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3046     ac_cv_prog_CC="${ac_tool_prefix}cc"
3047     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3048     break 2
3049   fi
3050 done
3051   done
3052 IFS=$as_save_IFS
3053
3054 fi
3055 fi
3056 CC=$ac_cv_prog_CC
3057 if test -n "$CC"; then
3058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3059 $as_echo "$CC" >&6; }
3060 else
3061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3062 $as_echo "no" >&6; }
3063 fi
3064
3065
3066   fi
3067 fi
3068 if test -z "$CC"; then
3069   # Extract the first word of "cc", so it can be a program name with args.
3070 set dummy cc; ac_word=$2
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3072 $as_echo_n "checking for $ac_word... " >&6; }
3073 if ${ac_cv_prog_CC+:} false; then :
3074   $as_echo_n "(cached) " >&6
3075 else
3076   if test -n "$CC"; then
3077   ac_cv_prog_CC="$CC" # Let the user override the test.
3078 else
3079   ac_prog_rejected=no
3080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3081 for as_dir in $PATH
3082 do
3083   IFS=$as_save_IFS
3084   test -z "$as_dir" && as_dir=.
3085     for ac_exec_ext in '' $ac_executable_extensions; do
3086   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3087     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3088        ac_prog_rejected=yes
3089        continue
3090      fi
3091     ac_cv_prog_CC="cc"
3092     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3093     break 2
3094   fi
3095 done
3096   done
3097 IFS=$as_save_IFS
3098
3099 if test $ac_prog_rejected = yes; then
3100   # We found a bogon in the path, so make sure we never use it.
3101   set dummy $ac_cv_prog_CC
3102   shift
3103   if test $# != 0; then
3104     # We chose a different compiler from the bogus one.
3105     # However, it has the same basename, so the bogon will be chosen
3106     # first if we set CC to just the basename; use the full file name.
3107     shift
3108     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3109   fi
3110 fi
3111 fi
3112 fi
3113 CC=$ac_cv_prog_CC
3114 if test -n "$CC"; then
3115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3116 $as_echo "$CC" >&6; }
3117 else
3118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3119 $as_echo "no" >&6; }
3120 fi
3121
3122
3123 fi
3124 if test -z "$CC"; then
3125   if test -n "$ac_tool_prefix"; then
3126   for ac_prog in cl.exe
3127   do
3128     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3129 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3131 $as_echo_n "checking for $ac_word... " >&6; }
3132 if ${ac_cv_prog_CC+:} false; then :
3133   $as_echo_n "(cached) " >&6
3134 else
3135   if test -n "$CC"; then
3136   ac_cv_prog_CC="$CC" # Let the user override the test.
3137 else
3138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3139 for as_dir in $PATH
3140 do
3141   IFS=$as_save_IFS
3142   test -z "$as_dir" && as_dir=.
3143     for ac_exec_ext in '' $ac_executable_extensions; do
3144   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3145     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3146     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3147     break 2
3148   fi
3149 done
3150   done
3151 IFS=$as_save_IFS
3152
3153 fi
3154 fi
3155 CC=$ac_cv_prog_CC
3156 if test -n "$CC"; then
3157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3158 $as_echo "$CC" >&6; }
3159 else
3160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3161 $as_echo "no" >&6; }
3162 fi
3163
3164
3165     test -n "$CC" && break
3166   done
3167 fi
3168 if test -z "$CC"; then
3169   ac_ct_CC=$CC
3170   for ac_prog in cl.exe
3171 do
3172   # Extract the first word of "$ac_prog", so it can be a program name with args.
3173 set dummy $ac_prog; ac_word=$2
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3175 $as_echo_n "checking for $ac_word... " >&6; }
3176 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3177   $as_echo_n "(cached) " >&6
3178 else
3179   if test -n "$ac_ct_CC"; then
3180   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3181 else
3182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3183 for as_dir in $PATH
3184 do
3185   IFS=$as_save_IFS
3186   test -z "$as_dir" && as_dir=.
3187     for ac_exec_ext in '' $ac_executable_extensions; do
3188   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3189     ac_cv_prog_ac_ct_CC="$ac_prog"
3190     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3191     break 2
3192   fi
3193 done
3194   done
3195 IFS=$as_save_IFS
3196
3197 fi
3198 fi
3199 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3200 if test -n "$ac_ct_CC"; then
3201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3202 $as_echo "$ac_ct_CC" >&6; }
3203 else
3204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3205 $as_echo "no" >&6; }
3206 fi
3207
3208
3209   test -n "$ac_ct_CC" && break
3210 done
3211
3212   if test "x$ac_ct_CC" = x; then
3213     CC=""
3214   else
3215     case $cross_compiling:$ac_tool_warned in
3216 yes:)
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3218 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3219 ac_tool_warned=yes ;;
3220 esac
3221     CC=$ac_ct_CC
3222   fi
3223 fi
3224
3225 fi
3226
3227
3228 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3229 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3230 as_fn_error $? "no acceptable C compiler found in \$PATH
3231 See \`config.log' for more details" "$LINENO" 5; }
3232
3233 # Provide some information about the compiler.
3234 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3235 set X $ac_compile
3236 ac_compiler=$2
3237 for ac_option in --version -v -V -qversion; do
3238   { { ac_try="$ac_compiler $ac_option >&5"
3239 case "(($ac_try" in
3240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3241   *) ac_try_echo=$ac_try;;
3242 esac
3243 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3244 $as_echo "$ac_try_echo"; } >&5
3245   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3246   ac_status=$?
3247   if test -s conftest.err; then
3248     sed '10a\
3249 ... rest of stderr output deleted ...
3250          10q' conftest.err >conftest.er1
3251     cat conftest.er1 >&5
3252   fi
3253   rm -f conftest.er1 conftest.err
3254   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3255   test $ac_status = 0; }
3256 done
3257
3258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3259 /* end confdefs.h.  */
3260
3261 int
3262 main ()
3263 {
3264
3265   ;
3266   return 0;
3267 }
3268 _ACEOF
3269 ac_clean_files_save=$ac_clean_files
3270 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3271 # Try to create an executable without -o first, disregard a.out.
3272 # It will help us diagnose broken compilers, and finding out an intuition
3273 # of exeext.
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3275 $as_echo_n "checking whether the C compiler works... " >&6; }
3276 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3277
3278 # The possible output files:
3279 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3280
3281 ac_rmfiles=
3282 for ac_file in $ac_files
3283 do
3284   case $ac_file in
3285     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3286     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3287   esac
3288 done
3289 rm -f $ac_rmfiles
3290
3291 if { { ac_try="$ac_link_default"
3292 case "(($ac_try" in
3293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3294   *) ac_try_echo=$ac_try;;
3295 esac
3296 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3297 $as_echo "$ac_try_echo"; } >&5
3298   (eval "$ac_link_default") 2>&5
3299   ac_status=$?
3300   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3301   test $ac_status = 0; }; then :
3302   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3303 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3304 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3305 # so that the user can short-circuit this test for compilers unknown to
3306 # Autoconf.
3307 for ac_file in $ac_files ''
3308 do
3309   test -f "$ac_file" || continue
3310   case $ac_file in
3311     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3312         ;;
3313     [ab].out )
3314         # We found the default executable, but exeext='' is most
3315         # certainly right.
3316         break;;
3317     *.* )
3318         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3319         then :; else
3320            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3321         fi
3322         # We set ac_cv_exeext here because the later test for it is not
3323         # safe: cross compilers may not add the suffix if given an `-o'
3324         # argument, so we may need to know it at that point already.
3325         # Even if this section looks crufty: it has the advantage of
3326         # actually working.
3327         break;;
3328     * )
3329         break;;
3330   esac
3331 done
3332 test "$ac_cv_exeext" = no && ac_cv_exeext=
3333
3334 else
3335   ac_file=''
3336 fi
3337 if test -z "$ac_file"; then :
3338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3339 $as_echo "no" >&6; }
3340 $as_echo "$as_me: failed program was:" >&5
3341 sed 's/^/| /' conftest.$ac_ext >&5
3342
3343 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3344 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3345 as_fn_error 77 "C compiler cannot create executables
3346 See \`config.log' for more details" "$LINENO" 5; }
3347 else
3348   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3349 $as_echo "yes" >&6; }
3350 fi
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3352 $as_echo_n "checking for C compiler default output file name... " >&6; }
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3354 $as_echo "$ac_file" >&6; }
3355 ac_exeext=$ac_cv_exeext
3356
3357 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3358 ac_clean_files=$ac_clean_files_save
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3360 $as_echo_n "checking for suffix of executables... " >&6; }
3361 if { { ac_try="$ac_link"
3362 case "(($ac_try" in
3363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3364   *) ac_try_echo=$ac_try;;
3365 esac
3366 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3367 $as_echo "$ac_try_echo"; } >&5
3368   (eval "$ac_link") 2>&5
3369   ac_status=$?
3370   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3371   test $ac_status = 0; }; then :
3372   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3373 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3374 # work properly (i.e., refer to `conftest.exe'), while it won't with
3375 # `rm'.
3376 for ac_file in conftest.exe conftest conftest.*; do
3377   test -f "$ac_file" || continue
3378   case $ac_file in
3379     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3380     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3381           break;;
3382     * ) break;;
3383   esac
3384 done
3385 else
3386   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3387 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3388 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3389 See \`config.log' for more details" "$LINENO" 5; }
3390 fi
3391 rm -f conftest conftest$ac_cv_exeext
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3393 $as_echo "$ac_cv_exeext" >&6; }
3394
3395 rm -f conftest.$ac_ext
3396 EXEEXT=$ac_cv_exeext
3397 ac_exeext=$EXEEXT
3398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3399 /* end confdefs.h.  */
3400 #include <stdio.h>
3401 int
3402 main ()
3403 {
3404 FILE *f = fopen ("conftest.out", "w");
3405  return ferror (f) || fclose (f) != 0;
3406
3407   ;
3408   return 0;
3409 }
3410 _ACEOF
3411 ac_clean_files="$ac_clean_files conftest.out"
3412 # Check that the compiler produces executables we can run.  If not, either
3413 # the compiler is broken, or we cross compile.
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3415 $as_echo_n "checking whether we are cross compiling... " >&6; }
3416 if test "$cross_compiling" != yes; then
3417   { { ac_try="$ac_link"
3418 case "(($ac_try" in
3419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3420   *) ac_try_echo=$ac_try;;
3421 esac
3422 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3423 $as_echo "$ac_try_echo"; } >&5
3424   (eval "$ac_link") 2>&5
3425   ac_status=$?
3426   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3427   test $ac_status = 0; }
3428   if { ac_try='./conftest$ac_cv_exeext'
3429   { { case "(($ac_try" in
3430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3431   *) ac_try_echo=$ac_try;;
3432 esac
3433 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3434 $as_echo "$ac_try_echo"; } >&5
3435   (eval "$ac_try") 2>&5
3436   ac_status=$?
3437   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3438   test $ac_status = 0; }; }; then
3439     cross_compiling=no
3440   else
3441     if test "$cross_compiling" = maybe; then
3442         cross_compiling=yes
3443     else
3444         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3445 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3446 as_fn_error $? "cannot run C compiled programs.
3447 If you meant to cross compile, use \`--host'.
3448 See \`config.log' for more details" "$LINENO" 5; }
3449     fi
3450   fi
3451 fi
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3453 $as_echo "$cross_compiling" >&6; }
3454
3455 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3456 ac_clean_files=$ac_clean_files_save
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3458 $as_echo_n "checking for suffix of object files... " >&6; }
3459 if ${ac_cv_objext+:} false; then :
3460   $as_echo_n "(cached) " >&6
3461 else
3462   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3463 /* end confdefs.h.  */
3464
3465 int
3466 main ()
3467 {
3468
3469   ;
3470   return 0;
3471 }
3472 _ACEOF
3473 rm -f conftest.o conftest.obj
3474 if { { ac_try="$ac_compile"
3475 case "(($ac_try" in
3476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3477   *) ac_try_echo=$ac_try;;
3478 esac
3479 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3480 $as_echo "$ac_try_echo"; } >&5
3481   (eval "$ac_compile") 2>&5
3482   ac_status=$?
3483   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3484   test $ac_status = 0; }; then :
3485   for ac_file in conftest.o conftest.obj conftest.*; do
3486   test -f "$ac_file" || continue;
3487   case $ac_file in
3488     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3489     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3490        break;;
3491   esac
3492 done
3493 else
3494   $as_echo "$as_me: failed program was:" >&5
3495 sed 's/^/| /' conftest.$ac_ext >&5
3496
3497 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3498 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3499 as_fn_error $? "cannot compute suffix of object files: cannot compile
3500 See \`config.log' for more details" "$LINENO" 5; }
3501 fi
3502 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3503 fi
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3505 $as_echo "$ac_cv_objext" >&6; }
3506 OBJEXT=$ac_cv_objext
3507 ac_objext=$OBJEXT
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3509 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3510 if ${ac_cv_c_compiler_gnu+:} false; then :
3511   $as_echo_n "(cached) " >&6
3512 else
3513   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3514 /* end confdefs.h.  */
3515
3516 int
3517 main ()
3518 {
3519 #ifndef __GNUC__
3520        choke me
3521 #endif
3522
3523   ;
3524   return 0;
3525 }
3526 _ACEOF
3527 if ac_fn_c_try_compile "$LINENO"; then :
3528   ac_compiler_gnu=yes
3529 else
3530   ac_compiler_gnu=no
3531 fi
3532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3533 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3534
3535 fi
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3537 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3538 if test $ac_compiler_gnu = yes; then
3539   GCC=yes
3540 else
3541   GCC=
3542 fi
3543 ac_test_CFLAGS=${CFLAGS+set}
3544 ac_save_CFLAGS=$CFLAGS
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3546 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3547 if ${ac_cv_prog_cc_g+:} false; then :
3548   $as_echo_n "(cached) " >&6
3549 else
3550   ac_save_c_werror_flag=$ac_c_werror_flag
3551    ac_c_werror_flag=yes
3552    ac_cv_prog_cc_g=no
3553    CFLAGS="-g"
3554    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3555 /* end confdefs.h.  */
3556
3557 int
3558 main ()
3559 {
3560
3561   ;
3562   return 0;
3563 }
3564 _ACEOF
3565 if ac_fn_c_try_compile "$LINENO"; then :
3566   ac_cv_prog_cc_g=yes
3567 else
3568   CFLAGS=""
3569       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3570 /* end confdefs.h.  */
3571
3572 int
3573 main ()
3574 {
3575
3576   ;
3577   return 0;
3578 }
3579 _ACEOF
3580 if ac_fn_c_try_compile "$LINENO"; then :
3581
3582 else
3583   ac_c_werror_flag=$ac_save_c_werror_flag
3584          CFLAGS="-g"
3585          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3586 /* end confdefs.h.  */
3587
3588 int
3589 main ()
3590 {
3591
3592   ;
3593   return 0;
3594 }
3595 _ACEOF
3596 if ac_fn_c_try_compile "$LINENO"; then :
3597   ac_cv_prog_cc_g=yes
3598 fi
3599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3600 fi
3601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3602 fi
3603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3604    ac_c_werror_flag=$ac_save_c_werror_flag
3605 fi
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3607 $as_echo "$ac_cv_prog_cc_g" >&6; }
3608 if test "$ac_test_CFLAGS" = set; then
3609   CFLAGS=$ac_save_CFLAGS
3610 elif test $ac_cv_prog_cc_g = yes; then
3611   if test "$GCC" = yes; then
3612     CFLAGS="-g -O2"
3613   else
3614     CFLAGS="-g"
3615   fi
3616 else
3617   if test "$GCC" = yes; then
3618     CFLAGS="-O2"
3619   else
3620     CFLAGS=
3621   fi
3622 fi
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3624 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3625 if ${ac_cv_prog_cc_c89+:} false; then :
3626   $as_echo_n "(cached) " >&6
3627 else
3628   ac_cv_prog_cc_c89=no
3629 ac_save_CC=$CC
3630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3631 /* end confdefs.h.  */
3632 #include <stdarg.h>
3633 #include <stdio.h>
3634 struct stat;
3635 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3636 struct buf { int x; };
3637 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3638 static char *e (p, i)
3639      char **p;
3640      int i;
3641 {
3642   return p[i];
3643 }
3644 static char *f (char * (*g) (char **, int), char **p, ...)
3645 {
3646   char *s;
3647   va_list v;
3648   va_start (v,p);
3649   s = g (p, va_arg (v,int));
3650   va_end (v);
3651   return s;
3652 }
3653
3654 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3655    function prototypes and stuff, but not '\xHH' hex character constants.
3656    These don't provoke an error unfortunately, instead are silently treated
3657    as 'x'.  The following induces an error, until -std is added to get
3658    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3659    array size at least.  It's necessary to write '\x00'==0 to get something
3660    that's true only with -std.  */
3661 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3662
3663 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3664    inside strings and character constants.  */
3665 #define FOO(x) 'x'
3666 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3667
3668 int test (int i, double x);
3669 struct s1 {int (*f) (int a);};
3670 struct s2 {int (*f) (double a);};
3671 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3672 int argc;
3673 char **argv;
3674 int
3675 main ()
3676 {
3677 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3678   ;
3679   return 0;
3680 }
3681 _ACEOF
3682 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3683         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3684 do
3685   CC="$ac_save_CC $ac_arg"
3686   if ac_fn_c_try_compile "$LINENO"; then :
3687   ac_cv_prog_cc_c89=$ac_arg
3688 fi
3689 rm -f core conftest.err conftest.$ac_objext
3690   test "x$ac_cv_prog_cc_c89" != "xno" && break
3691 done
3692 rm -f conftest.$ac_ext
3693 CC=$ac_save_CC
3694
3695 fi
3696 # AC_CACHE_VAL
3697 case "x$ac_cv_prog_cc_c89" in
3698   x)
3699     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3700 $as_echo "none needed" >&6; } ;;
3701   xno)
3702     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3703 $as_echo "unsupported" >&6; } ;;
3704   *)
3705     CC="$CC $ac_cv_prog_cc_c89"
3706     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3707 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3708 esac
3709 if test "x$ac_cv_prog_cc_c89" != xno; then :
3710
3711 fi
3712
3713 ac_ext=c
3714 ac_cpp='$CPP $CPPFLAGS'
3715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3718
3719 ac_ext=c
3720 ac_cpp='$CPP $CPPFLAGS'
3721 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3722 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3723 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3725 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3726 if ${am_cv_prog_cc_c_o+:} false; then :
3727   $as_echo_n "(cached) " >&6
3728 else
3729   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3730 /* end confdefs.h.  */
3731
3732 int
3733 main ()
3734 {
3735
3736   ;
3737   return 0;
3738 }
3739 _ACEOF
3740   # Make sure it works both with $CC and with simple cc.
3741   # Following AC_PROG_CC_C_O, we do the test twice because some
3742   # compilers refuse to overwrite an existing .o file with -o,
3743   # though they will create one.
3744   am_cv_prog_cc_c_o=yes
3745   for am_i in 1 2; do
3746     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3747    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3748    ac_status=$?
3749    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3750    (exit $ac_status); } \
3751          && test -f conftest2.$ac_objext; then
3752       : OK
3753     else
3754       am_cv_prog_cc_c_o=no
3755       break
3756     fi
3757   done
3758   rm -f core conftest*
3759   unset am_i
3760 fi
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3762 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3763 if test "$am_cv_prog_cc_c_o" != yes; then
3764    # Losing compiler, so override with the script.
3765    # FIXME: It is wrong to rewrite CC.
3766    # But if we don't then we get into trouble of one sort or another.
3767    # A longer-term fix would be to have automake use am__CC in this case,
3768    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3769    CC="$am_aux_dir/compile $CC"
3770 fi
3771 ac_ext=c
3772 ac_cpp='$CPP $CPPFLAGS'
3773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3776
3777 DEPDIR="${am__leading_dot}deps"
3778
3779 ac_config_commands="$ac_config_commands depfiles"
3780
3781
3782 am_make=${MAKE-make}
3783 cat > confinc << 'END'
3784 am__doit:
3785         @echo this is the am__doit target
3786 .PHONY: am__doit
3787 END
3788 # If we don't find an include directive, just comment out the code.
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3790 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3791 am__include="#"
3792 am__quote=
3793 _am_result=none
3794 # First try GNU make style include.
3795 echo "include confinc" > confmf
3796 # Ignore all kinds of additional output from 'make'.
3797 case `$am_make -s -f confmf 2> /dev/null` in #(
3798 *the\ am__doit\ target*)
3799   am__include=include
3800   am__quote=
3801   _am_result=GNU
3802   ;;
3803 esac
3804 # Now try BSD make style include.
3805 if test "$am__include" = "#"; then
3806    echo '.include "confinc"' > confmf
3807    case `$am_make -s -f confmf 2> /dev/null` in #(
3808    *the\ am__doit\ target*)
3809      am__include=.include
3810      am__quote="\""
3811      _am_result=BSD
3812      ;;
3813    esac
3814 fi
3815
3816
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3818 $as_echo "$_am_result" >&6; }
3819 rm -f confinc confmf
3820
3821 # Check whether --enable-dependency-tracking was given.
3822 if test "${enable_dependency_tracking+set}" = set; then :
3823   enableval=$enable_dependency_tracking;
3824 fi
3825
3826 if test "x$enable_dependency_tracking" != xno; then
3827   am_depcomp="$ac_aux_dir/depcomp"
3828   AMDEPBACKSLASH='\'
3829   am__nodep='_no'
3830 fi
3831  if test "x$enable_dependency_tracking" != xno; then
3832   AMDEP_TRUE=
3833   AMDEP_FALSE='#'
3834 else
3835   AMDEP_TRUE='#'
3836   AMDEP_FALSE=
3837 fi
3838
3839
3840
3841 depcc="$CC"   am_compiler_list=
3842
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3844 $as_echo_n "checking dependency style of $depcc... " >&6; }
3845 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3846   $as_echo_n "(cached) " >&6
3847 else
3848   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3849   # We make a subdir and do the tests there.  Otherwise we can end up
3850   # making bogus files that we don't know about and never remove.  For
3851   # instance it was reported that on HP-UX the gcc test will end up
3852   # making a dummy file named 'D' -- because '-MD' means "put the output
3853   # in D".
3854   rm -rf conftest.dir
3855   mkdir conftest.dir
3856   # Copy depcomp to subdir because otherwise we won't find it if we're
3857   # using a relative directory.
3858   cp "$am_depcomp" conftest.dir
3859   cd conftest.dir
3860   # We will build objects and dependencies in a subdirectory because
3861   # it helps to detect inapplicable dependency modes.  For instance
3862   # both Tru64's cc and ICC support -MD to output dependencies as a
3863   # side effect of compilation, but ICC will put the dependencies in
3864   # the current directory while Tru64 will put them in the object
3865   # directory.
3866   mkdir sub
3867
3868   am_cv_CC_dependencies_compiler_type=none
3869   if test "$am_compiler_list" = ""; then
3870      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3871   fi
3872   am__universal=false
3873   case " $depcc " in #(
3874      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3875      esac
3876
3877   for depmode in $am_compiler_list; do
3878     # Setup a source with many dependencies, because some compilers
3879     # like to wrap large dependency lists on column 80 (with \), and
3880     # we should not choose a depcomp mode which is confused by this.
3881     #
3882     # We need to recreate these files for each test, as the compiler may
3883     # overwrite some of them when testing with obscure command lines.
3884     # This happens at least with the AIX C compiler.
3885     : > sub/conftest.c
3886     for i in 1 2 3 4 5 6; do
3887       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3888       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3889       # Solaris 10 /bin/sh.
3890       echo '/* dummy */' > sub/conftst$i.h
3891     done
3892     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3893
3894     # We check with '-c' and '-o' for the sake of the "dashmstdout"
3895     # mode.  It turns out that the SunPro C++ compiler does not properly
3896     # handle '-M -o', and we need to detect this.  Also, some Intel
3897     # versions had trouble with output in subdirs.
3898     am__obj=sub/conftest.${OBJEXT-o}
3899     am__minus_obj="-o $am__obj"
3900     case $depmode in
3901     gcc)
3902       # This depmode causes a compiler race in universal mode.
3903       test "$am__universal" = false || continue
3904       ;;
3905     nosideeffect)
3906       # After this tag, mechanisms are not by side-effect, so they'll
3907       # only be used when explicitly requested.
3908       if test "x$enable_dependency_tracking" = xyes; then
3909         continue
3910       else
3911         break
3912       fi
3913       ;;
3914     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3915       # This compiler won't grok '-c -o', but also, the minuso test has
3916       # not run yet.  These depmodes are late enough in the game, and
3917       # so weak that their functioning should not be impacted.
3918       am__obj=conftest.${OBJEXT-o}
3919       am__minus_obj=
3920       ;;
3921     none) break ;;
3922     esac
3923     if depmode=$depmode \
3924        source=sub/conftest.c object=$am__obj \
3925        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3926        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3927          >/dev/null 2>conftest.err &&
3928        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3929        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3930        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3931        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3932       # icc doesn't choke on unknown options, it will just issue warnings
3933       # or remarks (even with -Werror).  So we grep stderr for any message
3934       # that says an option was ignored or not supported.
3935       # When given -MP, icc 7.0 and 7.1 complain thusly:
3936       #   icc: Command line warning: ignoring option '-M'; no argument required
3937       # The diagnosis changed in icc 8.0:
3938       #   icc: Command line remark: option '-MP' not supported
3939       if (grep 'ignoring option' conftest.err ||
3940           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3941         am_cv_CC_dependencies_compiler_type=$depmode
3942         break
3943       fi
3944     fi
3945   done
3946
3947   cd ..
3948   rm -rf conftest.dir
3949 else
3950   am_cv_CC_dependencies_compiler_type=none
3951 fi
3952
3953 fi
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3955 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3956 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3957
3958  if
3959   test "x$enable_dependency_tracking" != xno \
3960   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3961   am__fastdepCC_TRUE=
3962   am__fastdepCC_FALSE='#'
3963 else
3964   am__fastdepCC_TRUE='#'
3965   am__fastdepCC_FALSE=
3966 fi
3967
3968
3969    case $ac_cv_prog_cc_stdc in #(
3970   no) :
3971     ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3972   *) :
3973     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3974 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3975 if ${ac_cv_prog_cc_c99+:} false; then :
3976   $as_echo_n "(cached) " >&6
3977 else
3978   ac_cv_prog_cc_c99=no
3979 ac_save_CC=$CC
3980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3981 /* end confdefs.h.  */
3982 #include <stdarg.h>
3983 #include <stdbool.h>
3984 #include <stdlib.h>
3985 #include <wchar.h>
3986 #include <stdio.h>
3987
3988 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
3989 #define debug(...) fprintf (stderr, __VA_ARGS__)
3990 #define showlist(...) puts (#__VA_ARGS__)
3991 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3992 static void
3993 test_varargs_macros (void)
3994 {
3995   int x = 1234;
3996   int y = 5678;
3997   debug ("Flag");
3998   debug ("X = %d\n", x);
3999   showlist (The first, second, and third items.);
4000   report (x>y, "x is %d but y is %d", x, y);
4001 }
4002
4003 // Check long long types.
4004 #define BIG64 18446744073709551615ull
4005 #define BIG32 4294967295ul
4006 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4007 #if !BIG_OK
4008   your preprocessor is broken;
4009 #endif
4010 #if BIG_OK
4011 #else
4012   your preprocessor is broken;
4013 #endif
4014 static long long int bignum = -9223372036854775807LL;
4015 static unsigned long long int ubignum = BIG64;
4016
4017 struct incomplete_array
4018 {
4019   int datasize;
4020   double data[];
4021 };
4022
4023 struct named_init {
4024   int number;
4025   const wchar_t *name;
4026   double average;
4027 };
4028
4029 typedef const char *ccp;
4030
4031 static inline int
4032 test_restrict (ccp restrict text)
4033 {
4034   // See if C++-style comments work.
4035   // Iterate through items via the restricted pointer.
4036   // Also check for declarations in for loops.
4037   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4038     continue;
4039   return 0;
4040 }
4041
4042 // Check varargs and va_copy.
4043 static void
4044 test_varargs (const char *format, ...)
4045 {
4046   va_list args;
4047   va_start (args, format);
4048   va_list args_copy;
4049   va_copy (args_copy, args);
4050
4051   const char *str;
4052   int number;
4053   float fnumber;
4054
4055   while (*format)
4056     {
4057       switch (*format++)
4058         {
4059         case 's': // string
4060           str = va_arg (args_copy, const char *);
4061           break;
4062         case 'd': // int
4063           number = va_arg (args_copy, int);
4064           break;
4065         case 'f': // float
4066           fnumber = va_arg (args_copy, double);
4067           break;
4068         default:
4069           break;
4070         }
4071     }
4072   va_end (args_copy);
4073   va_end (args);
4074 }
4075
4076 int
4077 main ()
4078 {
4079
4080   // Check bool.
4081   _Bool success = false;
4082
4083   // Check restrict.
4084   if (test_restrict ("String literal") == 0)
4085     success = true;
4086   char *restrict newvar = "Another string";
4087
4088   // Check varargs.
4089   test_varargs ("s, d' f .", "string", 65, 34.234);
4090   test_varargs_macros ();
4091
4092   // Check flexible array members.
4093   struct incomplete_array *ia =
4094     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4095   ia->datasize = 10;
4096   for (int i = 0; i < ia->datasize; ++i)
4097     ia->data[i] = i * 1.234;
4098
4099   // Check named initializers.
4100   struct named_init ni = {
4101     .number = 34,
4102     .name = L"Test wide string",
4103     .average = 543.34343,
4104   };
4105
4106   ni.number = 58;
4107
4108   int dynamic_array[ni.number];
4109   dynamic_array[ni.number - 1] = 543;
4110
4111   // work around unused variable warnings
4112   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4113           || dynamic_array[ni.number - 1] != 543);
4114
4115   ;
4116   return 0;
4117 }
4118 _ACEOF
4119 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4120 do
4121   CC="$ac_save_CC $ac_arg"
4122   if ac_fn_c_try_compile "$LINENO"; then :
4123   ac_cv_prog_cc_c99=$ac_arg
4124 fi
4125 rm -f core conftest.err conftest.$ac_objext
4126   test "x$ac_cv_prog_cc_c99" != "xno" && break
4127 done
4128 rm -f conftest.$ac_ext
4129 CC=$ac_save_CC
4130
4131 fi
4132 # AC_CACHE_VAL
4133 case "x$ac_cv_prog_cc_c99" in
4134   x)
4135     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4136 $as_echo "none needed" >&6; } ;;
4137   xno)
4138     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4139 $as_echo "unsupported" >&6; } ;;
4140   *)
4141     CC="$CC $ac_cv_prog_cc_c99"
4142     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4143 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4144 esac
4145 if test "x$ac_cv_prog_cc_c99" != xno; then :
4146   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4147 else
4148   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4149 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4150 if ${ac_cv_prog_cc_c89+:} false; then :
4151   $as_echo_n "(cached) " >&6
4152 else
4153   ac_cv_prog_cc_c89=no
4154 ac_save_CC=$CC
4155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4156 /* end confdefs.h.  */
4157 #include <stdarg.h>
4158 #include <stdio.h>
4159 struct stat;
4160 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4161 struct buf { int x; };
4162 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4163 static char *e (p, i)
4164      char **p;
4165      int i;
4166 {
4167   return p[i];
4168 }
4169 static char *f (char * (*g) (char **, int), char **p, ...)
4170 {
4171   char *s;
4172   va_list v;
4173   va_start (v,p);
4174   s = g (p, va_arg (v,int));
4175   va_end (v);
4176   return s;
4177 }
4178
4179 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4180    function prototypes and stuff, but not '\xHH' hex character constants.
4181    These don't provoke an error unfortunately, instead are silently treated
4182    as 'x'.  The following induces an error, until -std is added to get
4183    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4184    array size at least.  It's necessary to write '\x00'==0 to get something
4185    that's true only with -std.  */
4186 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4187
4188 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4189    inside strings and character constants.  */
4190 #define FOO(x) 'x'
4191 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4192
4193 int test (int i, double x);
4194 struct s1 {int (*f) (int a);};
4195 struct s2 {int (*f) (double a);};
4196 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4197 int argc;
4198 char **argv;
4199 int
4200 main ()
4201 {
4202 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4203   ;
4204   return 0;
4205 }
4206 _ACEOF
4207 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4208         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4209 do
4210   CC="$ac_save_CC $ac_arg"
4211   if ac_fn_c_try_compile "$LINENO"; then :
4212   ac_cv_prog_cc_c89=$ac_arg
4213 fi
4214 rm -f core conftest.err conftest.$ac_objext
4215   test "x$ac_cv_prog_cc_c89" != "xno" && break
4216 done
4217 rm -f conftest.$ac_ext
4218 CC=$ac_save_CC
4219
4220 fi
4221 # AC_CACHE_VAL
4222 case "x$ac_cv_prog_cc_c89" in
4223   x)
4224     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4225 $as_echo "none needed" >&6; } ;;
4226   xno)
4227     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4228 $as_echo "unsupported" >&6; } ;;
4229   *)
4230     CC="$CC $ac_cv_prog_cc_c89"
4231     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4232 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4233 esac
4234 if test "x$ac_cv_prog_cc_c89" != xno; then :
4235   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4236 else
4237   ac_cv_prog_cc_stdc=no
4238 fi
4239
4240 fi
4241  ;;
4242 esac
4243   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
4244 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4245   if ${ac_cv_prog_cc_stdc+:} false; then :
4246   $as_echo_n "(cached) " >&6
4247 fi
4248
4249   case $ac_cv_prog_cc_stdc in #(
4250   no) :
4251     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4252 $as_echo "unsupported" >&6; } ;; #(
4253   '') :
4254     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4255 $as_echo "none needed" >&6; } ;; #(
4256   *) :
4257     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
4258 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4259 esac
4260
4261
4262 case `pwd` in
4263   *\ * | *\     *)
4264     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4265 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4266 esac
4267
4268
4269
4270 macro_version='2.4.6'
4271 macro_revision='2.4.6'
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285 ltmain=$ac_aux_dir/ltmain.sh
4286
4287 # Make sure we can run config.sub.
4288 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4289   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4290
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4292 $as_echo_n "checking build system type... " >&6; }
4293 if ${ac_cv_build+:} false; then :
4294   $as_echo_n "(cached) " >&6
4295 else
4296   ac_build_alias=$build_alias
4297 test "x$ac_build_alias" = x &&
4298   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4299 test "x$ac_build_alias" = x &&
4300   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4301 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4302   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4303
4304 fi
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4306 $as_echo "$ac_cv_build" >&6; }
4307 case $ac_cv_build in
4308 *-*-*) ;;
4309 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4310 esac
4311 build=$ac_cv_build
4312 ac_save_IFS=$IFS; IFS='-'
4313 set x $ac_cv_build
4314 shift
4315 build_cpu=$1
4316 build_vendor=$2
4317 shift; shift
4318 # Remember, the first character of IFS is used to create $*,
4319 # except with old shells:
4320 build_os=$*
4321 IFS=$ac_save_IFS
4322 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4323
4324
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4326 $as_echo_n "checking host system type... " >&6; }
4327 if ${ac_cv_host+:} false; then :
4328   $as_echo_n "(cached) " >&6
4329 else
4330   if test "x$host_alias" = x; then
4331   ac_cv_host=$ac_cv_build
4332 else
4333   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4334     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4335 fi
4336
4337 fi
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4339 $as_echo "$ac_cv_host" >&6; }
4340 case $ac_cv_host in
4341 *-*-*) ;;
4342 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4343 esac
4344 host=$ac_cv_host
4345 ac_save_IFS=$IFS; IFS='-'
4346 set x $ac_cv_host
4347 shift
4348 host_cpu=$1
4349 host_vendor=$2
4350 shift; shift
4351 # Remember, the first character of IFS is used to create $*,
4352 # except with old shells:
4353 host_os=$*
4354 IFS=$ac_save_IFS
4355 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4356
4357
4358 # Backslashify metacharacters that are still active within
4359 # double-quoted strings.
4360 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4361
4362 # Same as above, but do not quote variable references.
4363 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4364
4365 # Sed substitution to delay expansion of an escaped shell variable in a
4366 # double_quote_subst'ed string.
4367 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4368
4369 # Sed substitution to delay expansion of an escaped single quote.
4370 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4371
4372 # Sed substitution to avoid accidental globbing in evaled expressions
4373 no_glob_subst='s/\*/\\\*/g'
4374
4375 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4376 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4377 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4378
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4380 $as_echo_n "checking how to print strings... " >&6; }
4381 # Test print first, because it will be a builtin if present.
4382 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4383    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4384   ECHO='print -r --'
4385 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4386   ECHO='printf %s\n'
4387 else
4388   # Use this function as a fallback that always works.
4389   func_fallback_echo ()
4390   {
4391     eval 'cat <<_LTECHO_EOF
4392 $1
4393 _LTECHO_EOF'
4394   }
4395   ECHO='func_fallback_echo'
4396 fi
4397
4398 # func_echo_all arg...
4399 # Invoke $ECHO with all args, space-separated.
4400 func_echo_all ()
4401 {
4402     $ECHO ""
4403 }
4404
4405 case $ECHO in
4406   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4407 $as_echo "printf" >&6; } ;;
4408   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4409 $as_echo "print -r" >&6; } ;;
4410   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4411 $as_echo "cat" >&6; } ;;
4412 esac
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4428 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4429 if ${ac_cv_path_SED+:} false; then :
4430   $as_echo_n "(cached) " >&6
4431 else
4432             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4433      for ac_i in 1 2 3 4 5 6 7; do
4434        ac_script="$ac_script$as_nl$ac_script"
4435      done
4436      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4437      { ac_script=; unset ac_script;}
4438      if test -z "$SED"; then
4439   ac_path_SED_found=false
4440   # Loop through the user's path and test for each of PROGNAME-LIST
4441   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4442 for as_dir in $PATH
4443 do
4444   IFS=$as_save_IFS
4445   test -z "$as_dir" && as_dir=.
4446     for ac_prog in sed gsed; do
4447     for ac_exec_ext in '' $ac_executable_extensions; do
4448       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4449       as_fn_executable_p "$ac_path_SED" || continue
4450 # Check for GNU ac_path_SED and select it if it is found.
4451   # Check for GNU $ac_path_SED
4452 case `"$ac_path_SED" --version 2>&1` in
4453 *GNU*)
4454   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4455 *)
4456   ac_count=0
4457   $as_echo_n 0123456789 >"conftest.in"
4458   while :
4459   do
4460     cat "conftest.in" "conftest.in" >"conftest.tmp"
4461     mv "conftest.tmp" "conftest.in"
4462     cp "conftest.in" "conftest.nl"
4463     $as_echo '' >> "conftest.nl"
4464     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4465     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4466     as_fn_arith $ac_count + 1 && ac_count=$as_val
4467     if test $ac_count -gt ${ac_path_SED_max-0}; then
4468       # Best one so far, save it but keep looking for a better one
4469       ac_cv_path_SED="$ac_path_SED"
4470       ac_path_SED_max=$ac_count
4471     fi
4472     # 10*(2^10) chars as input seems more than enough
4473     test $ac_count -gt 10 && break
4474   done
4475   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4476 esac
4477
4478       $ac_path_SED_found && break 3
4479     done
4480   done
4481   done
4482 IFS=$as_save_IFS
4483   if test -z "$ac_cv_path_SED"; then
4484     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4485   fi
4486 else
4487   ac_cv_path_SED=$SED
4488 fi
4489
4490 fi
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4492 $as_echo "$ac_cv_path_SED" >&6; }
4493  SED="$ac_cv_path_SED"
4494   rm -f conftest.sed
4495
4496 test -z "$SED" && SED=sed
4497 Xsed="$SED -e 1s/^X//"
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4510 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4511 if ${ac_cv_path_GREP+:} false; then :
4512   $as_echo_n "(cached) " >&6
4513 else
4514   if test -z "$GREP"; then
4515   ac_path_GREP_found=false
4516   # Loop through the user's path and test for each of PROGNAME-LIST
4517   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4518 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4519 do
4520   IFS=$as_save_IFS
4521   test -z "$as_dir" && as_dir=.
4522     for ac_prog in grep ggrep; do
4523     for ac_exec_ext in '' $ac_executable_extensions; do
4524       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4525       as_fn_executable_p "$ac_path_GREP" || continue
4526 # Check for GNU ac_path_GREP and select it if it is found.
4527   # Check for GNU $ac_path_GREP
4528 case `"$ac_path_GREP" --version 2>&1` in
4529 *GNU*)
4530   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4531 *)
4532   ac_count=0
4533   $as_echo_n 0123456789 >"conftest.in"
4534   while :
4535   do
4536     cat "conftest.in" "conftest.in" >"conftest.tmp"
4537     mv "conftest.tmp" "conftest.in"
4538     cp "conftest.in" "conftest.nl"
4539     $as_echo 'GREP' >> "conftest.nl"
4540     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4541     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4542     as_fn_arith $ac_count + 1 && ac_count=$as_val
4543     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4544       # Best one so far, save it but keep looking for a better one
4545       ac_cv_path_GREP="$ac_path_GREP"
4546       ac_path_GREP_max=$ac_count
4547     fi
4548     # 10*(2^10) chars as input seems more than enough
4549     test $ac_count -gt 10 && break
4550   done
4551   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4552 esac
4553
4554       $ac_path_GREP_found && break 3
4555     done
4556   done
4557   done
4558 IFS=$as_save_IFS
4559   if test -z "$ac_cv_path_GREP"; then
4560     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4561   fi
4562 else
4563   ac_cv_path_GREP=$GREP
4564 fi
4565
4566 fi
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4568 $as_echo "$ac_cv_path_GREP" >&6; }
4569  GREP="$ac_cv_path_GREP"
4570
4571
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4573 $as_echo_n "checking for egrep... " >&6; }
4574 if ${ac_cv_path_EGREP+:} false; then :
4575   $as_echo_n "(cached) " >&6
4576 else
4577   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4578    then ac_cv_path_EGREP="$GREP -E"
4579    else
4580      if test -z "$EGREP"; then
4581   ac_path_EGREP_found=false
4582   # Loop through the user's path and test for each of PROGNAME-LIST
4583   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4584 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4585 do
4586   IFS=$as_save_IFS
4587   test -z "$as_dir" && as_dir=.
4588     for ac_prog in egrep; do
4589     for ac_exec_ext in '' $ac_executable_extensions; do
4590       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4591       as_fn_executable_p "$ac_path_EGREP" || continue
4592 # Check for GNU ac_path_EGREP and select it if it is found.
4593   # Check for GNU $ac_path_EGREP
4594 case `"$ac_path_EGREP" --version 2>&1` in
4595 *GNU*)
4596   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4597 *)
4598   ac_count=0
4599   $as_echo_n 0123456789 >"conftest.in"
4600   while :
4601   do
4602     cat "conftest.in" "conftest.in" >"conftest.tmp"
4603     mv "conftest.tmp" "conftest.in"
4604     cp "conftest.in" "conftest.nl"
4605     $as_echo 'EGREP' >> "conftest.nl"
4606     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4607     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4608     as_fn_arith $ac_count + 1 && ac_count=$as_val
4609     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4610       # Best one so far, save it but keep looking for a better one
4611       ac_cv_path_EGREP="$ac_path_EGREP"
4612       ac_path_EGREP_max=$ac_count
4613     fi
4614     # 10*(2^10) chars as input seems more than enough
4615     test $ac_count -gt 10 && break
4616   done
4617   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4618 esac
4619
4620       $ac_path_EGREP_found && break 3
4621     done
4622   done
4623   done
4624 IFS=$as_save_IFS
4625   if test -z "$ac_cv_path_EGREP"; then
4626     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4627   fi
4628 else
4629   ac_cv_path_EGREP=$EGREP
4630 fi
4631
4632    fi
4633 fi
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4635 $as_echo "$ac_cv_path_EGREP" >&6; }
4636  EGREP="$ac_cv_path_EGREP"
4637
4638
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4640 $as_echo_n "checking for fgrep... " >&6; }
4641 if ${ac_cv_path_FGREP+:} false; then :
4642   $as_echo_n "(cached) " >&6
4643 else
4644   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4645    then ac_cv_path_FGREP="$GREP -F"
4646    else
4647      if test -z "$FGREP"; then
4648   ac_path_FGREP_found=false
4649   # Loop through the user's path and test for each of PROGNAME-LIST
4650   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4651 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4652 do
4653   IFS=$as_save_IFS
4654   test -z "$as_dir" && as_dir=.
4655     for ac_prog in fgrep; do
4656     for ac_exec_ext in '' $ac_executable_extensions; do
4657       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4658       as_fn_executable_p "$ac_path_FGREP" || continue
4659 # Check for GNU ac_path_FGREP and select it if it is found.
4660   # Check for GNU $ac_path_FGREP
4661 case `"$ac_path_FGREP" --version 2>&1` in
4662 *GNU*)
4663   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4664 *)
4665   ac_count=0
4666   $as_echo_n 0123456789 >"conftest.in"
4667   while :
4668   do
4669     cat "conftest.in" "conftest.in" >"conftest.tmp"
4670     mv "conftest.tmp" "conftest.in"
4671     cp "conftest.in" "conftest.nl"
4672     $as_echo 'FGREP' >> "conftest.nl"
4673     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4674     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4675     as_fn_arith $ac_count + 1 && ac_count=$as_val
4676     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4677       # Best one so far, save it but keep looking for a better one
4678       ac_cv_path_FGREP="$ac_path_FGREP"
4679       ac_path_FGREP_max=$ac_count
4680     fi
4681     # 10*(2^10) chars as input seems more than enough
4682     test $ac_count -gt 10 && break
4683   done
4684   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4685 esac
4686
4687       $ac_path_FGREP_found && break 3
4688     done
4689   done
4690   done
4691 IFS=$as_save_IFS
4692   if test -z "$ac_cv_path_FGREP"; then
4693     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4694   fi
4695 else
4696   ac_cv_path_FGREP=$FGREP
4697 fi
4698
4699    fi
4700 fi
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4702 $as_echo "$ac_cv_path_FGREP" >&6; }
4703  FGREP="$ac_cv_path_FGREP"
4704
4705
4706 test -z "$GREP" && GREP=grep
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726 # Check whether --with-gnu-ld was given.
4727 if test "${with_gnu_ld+set}" = set; then :
4728   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4729 else
4730   with_gnu_ld=no
4731 fi
4732
4733 ac_prog=ld
4734 if test yes = "$GCC"; then
4735   # Check if gcc -print-prog-name=ld gives a path.
4736   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4737 $as_echo_n "checking for ld used by $CC... " >&6; }
4738   case $host in
4739   *-*-mingw*)
4740     # gcc leaves a trailing carriage return, which upsets mingw
4741     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4742   *)
4743     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4744   esac
4745   case $ac_prog in
4746     # Accept absolute paths.
4747     [\\/]* | ?:[\\/]*)
4748       re_direlt='/[^/][^/]*/\.\./'
4749       # Canonicalize the pathname of ld
4750       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4751       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4752         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4753       done
4754       test -z "$LD" && LD=$ac_prog
4755       ;;
4756   "")
4757     # If it fails, then pretend we aren't using GCC.
4758     ac_prog=ld
4759     ;;
4760   *)
4761     # If it is relative, then search for the first ld in PATH.
4762     with_gnu_ld=unknown
4763     ;;
4764   esac
4765 elif test yes = "$with_gnu_ld"; then
4766   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4767 $as_echo_n "checking for GNU ld... " >&6; }
4768 else
4769   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4770 $as_echo_n "checking for non-GNU ld... " >&6; }
4771 fi
4772 if ${lt_cv_path_LD+:} false; then :
4773   $as_echo_n "(cached) " >&6
4774 else
4775   if test -z "$LD"; then
4776   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4777   for ac_dir in $PATH; do
4778     IFS=$lt_save_ifs
4779     test -z "$ac_dir" && ac_dir=.
4780     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4781       lt_cv_path_LD=$ac_dir/$ac_prog
4782       # Check to see if the program is GNU ld.  I'd rather use --version,
4783       # but apparently some variants of GNU ld only accept -v.
4784       # Break only if it was the GNU/non-GNU ld that we prefer.
4785       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4786       *GNU* | *'with BFD'*)
4787         test no != "$with_gnu_ld" && break
4788         ;;
4789       *)
4790         test yes != "$with_gnu_ld" && break
4791         ;;
4792       esac
4793     fi
4794   done
4795   IFS=$lt_save_ifs
4796 else
4797   lt_cv_path_LD=$LD # Let the user override the test with a path.
4798 fi
4799 fi
4800
4801 LD=$lt_cv_path_LD
4802 if test -n "$LD"; then
4803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4804 $as_echo "$LD" >&6; }
4805 else
4806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4807 $as_echo "no" >&6; }
4808 fi
4809 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4811 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4812 if ${lt_cv_prog_gnu_ld+:} false; then :
4813   $as_echo_n "(cached) " >&6
4814 else
4815   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4816 case `$LD -v 2>&1 </dev/null` in
4817 *GNU* | *'with BFD'*)
4818   lt_cv_prog_gnu_ld=yes
4819   ;;
4820 *)
4821   lt_cv_prog_gnu_ld=no
4822   ;;
4823 esac
4824 fi
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4826 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4827 with_gnu_ld=$lt_cv_prog_gnu_ld
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4838 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4839 if ${lt_cv_path_NM+:} false; then :
4840   $as_echo_n "(cached) " >&6
4841 else
4842   if test -n "$NM"; then
4843   # Let the user override the test.
4844   lt_cv_path_NM=$NM
4845 else
4846   lt_nm_to_check=${ac_tool_prefix}nm
4847   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4848     lt_nm_to_check="$lt_nm_to_check nm"
4849   fi
4850   for lt_tmp_nm in $lt_nm_to_check; do
4851     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4852     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4853       IFS=$lt_save_ifs
4854       test -z "$ac_dir" && ac_dir=.
4855       tmp_nm=$ac_dir/$lt_tmp_nm
4856       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4857         # Check to see if the nm accepts a BSD-compat flag.
4858         # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4859         #   nm: unknown option "B" ignored
4860         # Tru64's nm complains that /dev/null is an invalid object file
4861         # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4862         case $build_os in
4863         mingw*) lt_bad_file=conftest.nm/nofile ;;
4864         *) lt_bad_file=/dev/null ;;
4865         esac
4866         case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4867         *$lt_bad_file* | *'Invalid file or object type'*)
4868           lt_cv_path_NM="$tmp_nm -B"
4869           break 2
4870           ;;
4871         *)
4872           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4873           */dev/null*)
4874             lt_cv_path_NM="$tmp_nm -p"
4875             break 2
4876             ;;
4877           *)
4878             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4879             continue # so that we can try to find one that supports BSD flags
4880             ;;
4881           esac
4882           ;;
4883         esac
4884       fi
4885     done
4886     IFS=$lt_save_ifs
4887   done
4888   : ${lt_cv_path_NM=no}
4889 fi
4890 fi
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4892 $as_echo "$lt_cv_path_NM" >&6; }
4893 if test no != "$lt_cv_path_NM"; then
4894   NM=$lt_cv_path_NM
4895 else
4896   # Didn't find any BSD compatible name lister, look for dumpbin.
4897   if test -n "$DUMPBIN"; then :
4898     # Let the user override the test.
4899   else
4900     if test -n "$ac_tool_prefix"; then
4901   for ac_prog in dumpbin "link -dump"
4902   do
4903     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4904 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4906 $as_echo_n "checking for $ac_word... " >&6; }
4907 if ${ac_cv_prog_DUMPBIN+:} false; then :
4908   $as_echo_n "(cached) " >&6
4909 else
4910   if test -n "$DUMPBIN"; then
4911   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4912 else
4913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4914 for as_dir in $PATH
4915 do
4916   IFS=$as_save_IFS
4917   test -z "$as_dir" && as_dir=.
4918     for ac_exec_ext in '' $ac_executable_extensions; do
4919   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4920     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4921     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4922     break 2
4923   fi
4924 done
4925   done
4926 IFS=$as_save_IFS
4927
4928 fi
4929 fi
4930 DUMPBIN=$ac_cv_prog_DUMPBIN
4931 if test -n "$DUMPBIN"; then
4932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4933 $as_echo "$DUMPBIN" >&6; }
4934 else
4935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4936 $as_echo "no" >&6; }
4937 fi
4938
4939
4940     test -n "$DUMPBIN" && break
4941   done
4942 fi
4943 if test -z "$DUMPBIN"; then
4944   ac_ct_DUMPBIN=$DUMPBIN
4945   for ac_prog in dumpbin "link -dump"
4946 do
4947   # Extract the first word of "$ac_prog", so it can be a program name with args.
4948 set dummy $ac_prog; ac_word=$2
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4950 $as_echo_n "checking for $ac_word... " >&6; }
4951 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4952   $as_echo_n "(cached) " >&6
4953 else
4954   if test -n "$ac_ct_DUMPBIN"; then
4955   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4956 else
4957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4958 for as_dir in $PATH
4959 do
4960   IFS=$as_save_IFS
4961   test -z "$as_dir" && as_dir=.
4962     for ac_exec_ext in '' $ac_executable_extensions; do
4963   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4964     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4965     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4966     break 2
4967   fi
4968 done
4969   done
4970 IFS=$as_save_IFS
4971
4972 fi
4973 fi
4974 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4975 if test -n "$ac_ct_DUMPBIN"; then
4976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4977 $as_echo "$ac_ct_DUMPBIN" >&6; }
4978 else
4979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4980 $as_echo "no" >&6; }
4981 fi
4982
4983
4984   test -n "$ac_ct_DUMPBIN" && break
4985 done
4986
4987   if test "x$ac_ct_DUMPBIN" = x; then
4988     DUMPBIN=":"
4989   else
4990     case $cross_compiling:$ac_tool_warned in
4991 yes:)
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4993 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4994 ac_tool_warned=yes ;;
4995 esac
4996     DUMPBIN=$ac_ct_DUMPBIN
4997   fi
4998 fi
4999
5000     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5001     *COFF*)
5002       DUMPBIN="$DUMPBIN -symbols -headers"
5003       ;;
5004     *)
5005       DUMPBIN=:
5006       ;;
5007     esac
5008   fi
5009
5010   if test : != "$DUMPBIN"; then
5011     NM=$DUMPBIN
5012   fi
5013 fi
5014 test -z "$NM" && NM=nm
5015
5016
5017
5018
5019
5020
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5022 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5023 if ${lt_cv_nm_interface+:} false; then :
5024   $as_echo_n "(cached) " >&6
5025 else
5026   lt_cv_nm_interface="BSD nm"
5027   echo "int some_variable = 0;" > conftest.$ac_ext
5028   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5029   (eval "$ac_compile" 2>conftest.err)
5030   cat conftest.err >&5
5031   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5032   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5033   cat conftest.err >&5
5034   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5035   cat conftest.out >&5
5036   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5037     lt_cv_nm_interface="MS dumpbin"
5038   fi
5039   rm -f conftest*
5040 fi
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5042 $as_echo "$lt_cv_nm_interface" >&6; }
5043
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5045 $as_echo_n "checking whether ln -s works... " >&6; }
5046 LN_S=$as_ln_s
5047 if test "$LN_S" = "ln -s"; then
5048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5049 $as_echo "yes" >&6; }
5050 else
5051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5052 $as_echo "no, using $LN_S" >&6; }
5053 fi
5054
5055 # find the maximum length of command line arguments
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5057 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5058 if ${lt_cv_sys_max_cmd_len+:} false; then :
5059   $as_echo_n "(cached) " >&6
5060 else
5061     i=0
5062   teststring=ABCD
5063
5064   case $build_os in
5065   msdosdjgpp*)
5066     # On DJGPP, this test can blow up pretty badly due to problems in libc
5067     # (any single argument exceeding 2000 bytes causes a buffer overrun
5068     # during glob expansion).  Even if it were fixed, the result of this
5069     # check would be larger than it should be.
5070     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5071     ;;
5072
5073   gnu*)
5074     # Under GNU Hurd, this test is not required because there is
5075     # no limit to the length of command line arguments.
5076     # Libtool will interpret -1 as no limit whatsoever
5077     lt_cv_sys_max_cmd_len=-1;
5078     ;;
5079
5080   cygwin* | mingw* | cegcc*)
5081     # On Win9x/ME, this test blows up -- it succeeds, but takes
5082     # about 5 minutes as the teststring grows exponentially.
5083     # Worse, since 9x/ME are not pre-emptively multitasking,
5084     # you end up with a "frozen" computer, even though with patience
5085     # the test eventually succeeds (with a max line length of 256k).
5086     # Instead, let's just punt: use the minimum linelength reported by
5087     # all of the supported platforms: 8192 (on NT/2K/XP).
5088     lt_cv_sys_max_cmd_len=8192;
5089     ;;
5090
5091   mint*)
5092     # On MiNT this can take a long time and run out of memory.
5093     lt_cv_sys_max_cmd_len=8192;
5094     ;;
5095
5096   amigaos*)
5097     # On AmigaOS with pdksh, this test takes hours, literally.
5098     # So we just punt and use a minimum line length of 8192.
5099     lt_cv_sys_max_cmd_len=8192;
5100     ;;
5101
5102   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5103     # This has been around since 386BSD, at least.  Likely further.
5104     if test -x /sbin/sysctl; then
5105       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5106     elif test -x /usr/sbin/sysctl; then
5107       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5108     else
5109       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5110     fi
5111     # And add a safety zone
5112     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5113     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5114     ;;
5115
5116   interix*)
5117     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5118     lt_cv_sys_max_cmd_len=196608
5119     ;;
5120
5121   os2*)
5122     # The test takes a long time on OS/2.
5123     lt_cv_sys_max_cmd_len=8192
5124     ;;
5125
5126   osf*)
5127     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5128     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5129     # nice to cause kernel panics so lets avoid the loop below.
5130     # First set a reasonable default.
5131     lt_cv_sys_max_cmd_len=16384
5132     #
5133     if test -x /sbin/sysconfig; then
5134       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5135         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5136       esac
5137     fi
5138     ;;
5139   sco3.2v5*)
5140     lt_cv_sys_max_cmd_len=102400
5141     ;;
5142   sysv5* | sco5v6* | sysv4.2uw2*)
5143     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5144     if test -n "$kargmax"; then
5145       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5146     else
5147       lt_cv_sys_max_cmd_len=32768
5148     fi
5149     ;;
5150   *)
5151     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5152     if test -n "$lt_cv_sys_max_cmd_len" && \
5153        test undefined != "$lt_cv_sys_max_cmd_len"; then
5154       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5155       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5156     else
5157       # Make teststring a little bigger before we do anything with it.
5158       # a 1K string should be a reasonable start.
5159       for i in 1 2 3 4 5 6 7 8; do
5160         teststring=$teststring$teststring
5161       done
5162       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5163       # If test is not a shell built-in, we'll probably end up computing a
5164       # maximum length that is only half of the actual maximum length, but
5165       # we can't tell.
5166       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5167                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5168               test 17 != "$i" # 1/2 MB should be enough
5169       do
5170         i=`expr $i + 1`
5171         teststring=$teststring$teststring
5172       done
5173       # Only check the string length outside the loop.
5174       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5175       teststring=
5176       # Add a significant safety factor because C++ compilers can tack on
5177       # massive amounts of additional arguments before passing them to the
5178       # linker.  It appears as though 1/2 is a usable value.
5179       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5180     fi
5181     ;;
5182   esac
5183
5184 fi
5185
5186 if test -n "$lt_cv_sys_max_cmd_len"; then
5187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5188 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5189 else
5190   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5191 $as_echo "none" >&6; }
5192 fi
5193 max_cmd_len=$lt_cv_sys_max_cmd_len
5194
5195
5196
5197
5198
5199
5200 : ${CP="cp -f"}
5201 : ${MV="mv -f"}
5202 : ${RM="rm -f"}
5203
5204 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5205   lt_unset=unset
5206 else
5207   lt_unset=false
5208 fi
5209
5210
5211
5212
5213
5214 # test EBCDIC or ASCII
5215 case `echo X|tr X '\101'` in
5216  A) # ASCII based system
5217     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5218   lt_SP2NL='tr \040 \012'
5219   lt_NL2SP='tr \015\012 \040\040'
5220   ;;
5221  *) # EBCDIC based system
5222   lt_SP2NL='tr \100 \n'
5223   lt_NL2SP='tr \r\n \100\100'
5224   ;;
5225 esac
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5236 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5237 if ${lt_cv_to_host_file_cmd+:} false; then :
5238   $as_echo_n "(cached) " >&6
5239 else
5240   case $host in
5241   *-*-mingw* )
5242     case $build in
5243       *-*-mingw* ) # actually msys
5244         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5245         ;;
5246       *-*-cygwin* )
5247         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5248         ;;
5249       * ) # otherwise, assume *nix
5250         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5251         ;;
5252     esac
5253     ;;
5254   *-*-cygwin* )
5255     case $build in
5256       *-*-mingw* ) # actually msys
5257         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5258         ;;
5259       *-*-cygwin* )
5260         lt_cv_to_host_file_cmd=func_convert_file_noop
5261         ;;
5262       * ) # otherwise, assume *nix
5263         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5264         ;;
5265     esac
5266     ;;
5267   * ) # unhandled hosts (and "normal" native builds)
5268     lt_cv_to_host_file_cmd=func_convert_file_noop
5269     ;;
5270 esac
5271
5272 fi
5273
5274 to_host_file_cmd=$lt_cv_to_host_file_cmd
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5276 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5277
5278
5279
5280
5281
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5283 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5284 if ${lt_cv_to_tool_file_cmd+:} false; then :
5285   $as_echo_n "(cached) " >&6
5286 else
5287   #assume ordinary cross tools, or native build.
5288 lt_cv_to_tool_file_cmd=func_convert_file_noop
5289 case $host in
5290   *-*-mingw* )
5291     case $build in
5292       *-*-mingw* ) # actually msys
5293         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5294         ;;
5295     esac
5296     ;;
5297 esac
5298
5299 fi
5300
5301 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5303 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5304
5305
5306
5307
5308
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5310 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5311 if ${lt_cv_ld_reload_flag+:} false; then :
5312   $as_echo_n "(cached) " >&6
5313 else
5314   lt_cv_ld_reload_flag='-r'
5315 fi
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5317 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5318 reload_flag=$lt_cv_ld_reload_flag
5319 case $reload_flag in
5320 "" | " "*) ;;
5321 *) reload_flag=" $reload_flag" ;;
5322 esac
5323 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5324 case $host_os in
5325   cygwin* | mingw* | pw32* | cegcc*)
5326     if test yes != "$GCC"; then
5327       reload_cmds=false
5328     fi
5329     ;;
5330   darwin*)
5331     if test yes = "$GCC"; then
5332       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5333     else
5334       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5335     fi
5336     ;;
5337 esac
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347 if test -n "$ac_tool_prefix"; then
5348   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5349 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5351 $as_echo_n "checking for $ac_word... " >&6; }
5352 if ${ac_cv_prog_OBJDUMP+:} false; then :
5353   $as_echo_n "(cached) " >&6
5354 else
5355   if test -n "$OBJDUMP"; then
5356   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5357 else
5358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5359 for as_dir in $PATH
5360 do
5361   IFS=$as_save_IFS
5362   test -z "$as_dir" && as_dir=.
5363     for ac_exec_ext in '' $ac_executable_extensions; do
5364   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5365     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5366     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5367     break 2
5368   fi
5369 done
5370   done
5371 IFS=$as_save_IFS
5372
5373 fi
5374 fi
5375 OBJDUMP=$ac_cv_prog_OBJDUMP
5376 if test -n "$OBJDUMP"; then
5377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5378 $as_echo "$OBJDUMP" >&6; }
5379 else
5380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5381 $as_echo "no" >&6; }
5382 fi
5383
5384
5385 fi
5386 if test -z "$ac_cv_prog_OBJDUMP"; then
5387   ac_ct_OBJDUMP=$OBJDUMP
5388   # Extract the first word of "objdump", so it can be a program name with args.
5389 set dummy objdump; ac_word=$2
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5391 $as_echo_n "checking for $ac_word... " >&6; }
5392 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5393   $as_echo_n "(cached) " >&6
5394 else
5395   if test -n "$ac_ct_OBJDUMP"; then
5396   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5397 else
5398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5399 for as_dir in $PATH
5400 do
5401   IFS=$as_save_IFS
5402   test -z "$as_dir" && as_dir=.
5403     for ac_exec_ext in '' $ac_executable_extensions; do
5404   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5405     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5406     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5407     break 2
5408   fi
5409 done
5410   done
5411 IFS=$as_save_IFS
5412
5413 fi
5414 fi
5415 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5416 if test -n "$ac_ct_OBJDUMP"; then
5417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5418 $as_echo "$ac_ct_OBJDUMP" >&6; }
5419 else
5420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5421 $as_echo "no" >&6; }
5422 fi
5423
5424   if test "x$ac_ct_OBJDUMP" = x; then
5425     OBJDUMP="false"
5426   else
5427     case $cross_compiling:$ac_tool_warned in
5428 yes:)
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5430 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5431 ac_tool_warned=yes ;;
5432 esac
5433     OBJDUMP=$ac_ct_OBJDUMP
5434   fi
5435 else
5436   OBJDUMP="$ac_cv_prog_OBJDUMP"
5437 fi
5438
5439 test -z "$OBJDUMP" && OBJDUMP=objdump
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5450 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5451 if ${lt_cv_deplibs_check_method+:} false; then :
5452   $as_echo_n "(cached) " >&6
5453 else
5454   lt_cv_file_magic_cmd='$MAGIC_CMD'
5455 lt_cv_file_magic_test_file=
5456 lt_cv_deplibs_check_method='unknown'
5457 # Need to set the preceding variable on all platforms that support
5458 # interlibrary dependencies.
5459 # 'none' -- dependencies not supported.
5460 # 'unknown' -- same as none, but documents that we really don't know.
5461 # 'pass_all' -- all dependencies passed with no checks.
5462 # 'test_compile' -- check by making test program.
5463 # 'file_magic [[regex]]' -- check by looking for files in library path
5464 # that responds to the $file_magic_cmd with a given extended regex.
5465 # If you have 'file' or equivalent on your system and you're not sure
5466 # whether 'pass_all' will *always* work, you probably want this one.
5467
5468 case $host_os in
5469 aix[4-9]*)
5470   lt_cv_deplibs_check_method=pass_all
5471   ;;
5472
5473 beos*)
5474   lt_cv_deplibs_check_method=pass_all
5475   ;;
5476
5477 bsdi[45]*)
5478   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5479   lt_cv_file_magic_cmd='/usr/bin/file -L'
5480   lt_cv_file_magic_test_file=/shlib/libc.so
5481   ;;
5482
5483 cygwin*)
5484   # func_win32_libid is a shell function defined in ltmain.sh
5485   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5486   lt_cv_file_magic_cmd='func_win32_libid'
5487   ;;
5488
5489 mingw* | pw32*)
5490   # Base MSYS/MinGW do not provide the 'file' command needed by
5491   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5492   # unless we find 'file', for example because we are cross-compiling.
5493   if ( file / ) >/dev/null 2>&1; then
5494     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5495     lt_cv_file_magic_cmd='func_win32_libid'
5496   else
5497     # Keep this pattern in sync with the one in func_win32_libid.
5498     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5499     lt_cv_file_magic_cmd='$OBJDUMP -f'
5500   fi
5501   ;;
5502
5503 cegcc*)
5504   # use the weaker test based on 'objdump'. See mingw*.
5505   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5506   lt_cv_file_magic_cmd='$OBJDUMP -f'
5507   ;;
5508
5509 darwin* | rhapsody*)
5510   lt_cv_deplibs_check_method=pass_all
5511   ;;
5512
5513 freebsd* | dragonfly*)
5514   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5515     case $host_cpu in
5516     i*86 )
5517       # Not sure whether the presence of OpenBSD here was a mistake.
5518       # Let's accept both of them until this is cleared up.
5519       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5520       lt_cv_file_magic_cmd=/usr/bin/file
5521       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5522       ;;
5523     esac
5524   else
5525     lt_cv_deplibs_check_method=pass_all
5526   fi
5527   ;;
5528
5529 haiku*)
5530   lt_cv_deplibs_check_method=pass_all
5531   ;;
5532
5533 hpux10.20* | hpux11*)
5534   lt_cv_file_magic_cmd=/usr/bin/file
5535   case $host_cpu in
5536   ia64*)
5537     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5538     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5539     ;;
5540   hppa*64*)
5541     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]'
5542     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5543     ;;
5544   *)
5545     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5546     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5547     ;;
5548   esac
5549   ;;
5550
5551 interix[3-9]*)
5552   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5553   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5554   ;;
5555
5556 irix5* | irix6* | nonstopux*)
5557   case $LD in
5558   *-32|*"-32 ") libmagic=32-bit;;
5559   *-n32|*"-n32 ") libmagic=N32;;
5560   *-64|*"-64 ") libmagic=64-bit;;
5561   *) libmagic=never-match;;
5562   esac
5563   lt_cv_deplibs_check_method=pass_all
5564   ;;
5565
5566 # This must be glibc/ELF.
5567 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5568   lt_cv_deplibs_check_method=pass_all
5569   ;;
5570
5571 netbsd* | netbsdelf*-gnu)
5572   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5573     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5574   else
5575     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5576   fi
5577   ;;
5578
5579 newos6*)
5580   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5581   lt_cv_file_magic_cmd=/usr/bin/file
5582   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5583   ;;
5584
5585 *nto* | *qnx*)
5586   lt_cv_deplibs_check_method=pass_all
5587   ;;
5588
5589 openbsd* | bitrig*)
5590   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5591     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5592   else
5593     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5594   fi
5595   ;;
5596
5597 osf3* | osf4* | osf5*)
5598   lt_cv_deplibs_check_method=pass_all
5599   ;;
5600
5601 rdos*)
5602   lt_cv_deplibs_check_method=pass_all
5603   ;;
5604
5605 solaris*)
5606   lt_cv_deplibs_check_method=pass_all
5607   ;;
5608
5609 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5610   lt_cv_deplibs_check_method=pass_all
5611   ;;
5612
5613 sysv4 | sysv4.3*)
5614   case $host_vendor in
5615   motorola)
5616     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]'
5617     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5618     ;;
5619   ncr)
5620     lt_cv_deplibs_check_method=pass_all
5621     ;;
5622   sequent)
5623     lt_cv_file_magic_cmd='/bin/file'
5624     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5625     ;;
5626   sni)
5627     lt_cv_file_magic_cmd='/bin/file'
5628     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5629     lt_cv_file_magic_test_file=/lib/libc.so
5630     ;;
5631   siemens)
5632     lt_cv_deplibs_check_method=pass_all
5633     ;;
5634   pc)
5635     lt_cv_deplibs_check_method=pass_all
5636     ;;
5637   esac
5638   ;;
5639
5640 tpf*)
5641   lt_cv_deplibs_check_method=pass_all
5642   ;;
5643 os2*)
5644   lt_cv_deplibs_check_method=pass_all
5645   ;;
5646 esac
5647
5648 fi
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5650 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5651
5652 file_magic_glob=
5653 want_nocaseglob=no
5654 if test "$build" = "$host"; then
5655   case $host_os in
5656   mingw* | pw32*)
5657     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5658       want_nocaseglob=yes
5659     else
5660       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5661     fi
5662     ;;
5663   esac
5664 fi
5665
5666 file_magic_cmd=$lt_cv_file_magic_cmd
5667 deplibs_check_method=$lt_cv_deplibs_check_method
5668 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691 if test -n "$ac_tool_prefix"; then
5692   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5693 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5695 $as_echo_n "checking for $ac_word... " >&6; }
5696 if ${ac_cv_prog_DLLTOOL+:} false; then :
5697   $as_echo_n "(cached) " >&6
5698 else
5699   if test -n "$DLLTOOL"; then
5700   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5701 else
5702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5703 for as_dir in $PATH
5704 do
5705   IFS=$as_save_IFS
5706   test -z "$as_dir" && as_dir=.
5707     for ac_exec_ext in '' $ac_executable_extensions; do
5708   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5709     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5710     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5711     break 2
5712   fi
5713 done
5714   done
5715 IFS=$as_save_IFS
5716
5717 fi
5718 fi
5719 DLLTOOL=$ac_cv_prog_DLLTOOL
5720 if test -n "$DLLTOOL"; then
5721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5722 $as_echo "$DLLTOOL" >&6; }
5723 else
5724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5725 $as_echo "no" >&6; }
5726 fi
5727
5728
5729 fi
5730 if test -z "$ac_cv_prog_DLLTOOL"; then
5731   ac_ct_DLLTOOL=$DLLTOOL
5732   # Extract the first word of "dlltool", so it can be a program name with args.
5733 set dummy dlltool; ac_word=$2
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5735 $as_echo_n "checking for $ac_word... " >&6; }
5736 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5737   $as_echo_n "(cached) " >&6
5738 else
5739   if test -n "$ac_ct_DLLTOOL"; then
5740   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5741 else
5742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5743 for as_dir in $PATH
5744 do
5745   IFS=$as_save_IFS
5746   test -z "$as_dir" && as_dir=.
5747     for ac_exec_ext in '' $ac_executable_extensions; do
5748   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5749     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5750     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5751     break 2
5752   fi
5753 done
5754   done
5755 IFS=$as_save_IFS
5756
5757 fi
5758 fi
5759 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5760 if test -n "$ac_ct_DLLTOOL"; then
5761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5762 $as_echo "$ac_ct_DLLTOOL" >&6; }
5763 else
5764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5765 $as_echo "no" >&6; }
5766 fi
5767
5768   if test "x$ac_ct_DLLTOOL" = x; then
5769     DLLTOOL="false"
5770   else
5771     case $cross_compiling:$ac_tool_warned in
5772 yes:)
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5774 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5775 ac_tool_warned=yes ;;
5776 esac
5777     DLLTOOL=$ac_ct_DLLTOOL
5778   fi
5779 else
5780   DLLTOOL="$ac_cv_prog_DLLTOOL"
5781 fi
5782
5783 test -z "$DLLTOOL" && DLLTOOL=dlltool
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5795 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5796 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5797   $as_echo_n "(cached) " >&6
5798 else
5799   lt_cv_sharedlib_from_linklib_cmd='unknown'
5800
5801 case $host_os in
5802 cygwin* | mingw* | pw32* | cegcc*)
5803   # two different shell functions defined in ltmain.sh;
5804   # decide which one to use based on capabilities of $DLLTOOL
5805   case `$DLLTOOL --help 2>&1` in
5806   *--identify-strict*)
5807     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5808     ;;
5809   *)
5810     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5811     ;;
5812   esac
5813   ;;
5814 *)
5815   # fallback: assume linklib IS sharedlib
5816   lt_cv_sharedlib_from_linklib_cmd=$ECHO
5817   ;;
5818 esac
5819
5820 fi
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5822 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5823 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5824 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5825
5826
5827
5828
5829
5830
5831
5832
5833 if test -n "$ac_tool_prefix"; then
5834   for ac_prog in ar
5835   do
5836     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5837 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5839 $as_echo_n "checking for $ac_word... " >&6; }
5840 if ${ac_cv_prog_AR+:} false; then :
5841   $as_echo_n "(cached) " >&6
5842 else
5843   if test -n "$AR"; then
5844   ac_cv_prog_AR="$AR" # Let the user override the test.
5845 else
5846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5847 for as_dir in $PATH
5848 do
5849   IFS=$as_save_IFS
5850   test -z "$as_dir" && as_dir=.
5851     for ac_exec_ext in '' $ac_executable_extensions; do
5852   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5853     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5854     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5855     break 2
5856   fi
5857 done
5858   done
5859 IFS=$as_save_IFS
5860
5861 fi
5862 fi
5863 AR=$ac_cv_prog_AR
5864 if test -n "$AR"; then
5865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5866 $as_echo "$AR" >&6; }
5867 else
5868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5869 $as_echo "no" >&6; }
5870 fi
5871
5872
5873     test -n "$AR" && break
5874   done
5875 fi
5876 if test -z "$AR"; then
5877   ac_ct_AR=$AR
5878   for ac_prog in ar
5879 do
5880   # Extract the first word of "$ac_prog", so it can be a program name with args.
5881 set dummy $ac_prog; ac_word=$2
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5883 $as_echo_n "checking for $ac_word... " >&6; }
5884 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5885   $as_echo_n "(cached) " >&6
5886 else
5887   if test -n "$ac_ct_AR"; then
5888   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5889 else
5890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5891 for as_dir in $PATH
5892 do
5893   IFS=$as_save_IFS
5894   test -z "$as_dir" && as_dir=.
5895     for ac_exec_ext in '' $ac_executable_extensions; do
5896   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5897     ac_cv_prog_ac_ct_AR="$ac_prog"
5898     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5899     break 2
5900   fi
5901 done
5902   done
5903 IFS=$as_save_IFS
5904
5905 fi
5906 fi
5907 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5908 if test -n "$ac_ct_AR"; then
5909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5910 $as_echo "$ac_ct_AR" >&6; }
5911 else
5912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5913 $as_echo "no" >&6; }
5914 fi
5915
5916
5917   test -n "$ac_ct_AR" && break
5918 done
5919
5920   if test "x$ac_ct_AR" = x; then
5921     AR="false"
5922   else
5923     case $cross_compiling:$ac_tool_warned in
5924 yes:)
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5926 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5927 ac_tool_warned=yes ;;
5928 esac
5929     AR=$ac_ct_AR
5930   fi
5931 fi
5932
5933 : ${AR=ar}
5934 : ${AR_FLAGS=cru}
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5947 $as_echo_n "checking for archiver @FILE support... " >&6; }
5948 if ${lt_cv_ar_at_file+:} false; then :
5949   $as_echo_n "(cached) " >&6
5950 else
5951   lt_cv_ar_at_file=no
5952    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5953 /* end confdefs.h.  */
5954
5955 int
5956 main ()
5957 {
5958
5959   ;
5960   return 0;
5961 }
5962 _ACEOF
5963 if ac_fn_c_try_compile "$LINENO"; then :
5964   echo conftest.$ac_objext > conftest.lst
5965       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5966       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5967   (eval $lt_ar_try) 2>&5
5968   ac_status=$?
5969   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5970   test $ac_status = 0; }
5971       if test 0 -eq "$ac_status"; then
5972         # Ensure the archiver fails upon bogus file names.
5973         rm -f conftest.$ac_objext libconftest.a
5974         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5975   (eval $lt_ar_try) 2>&5
5976   ac_status=$?
5977   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5978   test $ac_status = 0; }
5979         if test 0 -ne "$ac_status"; then
5980           lt_cv_ar_at_file=@
5981         fi
5982       fi
5983       rm -f conftest.* libconftest.a
5984
5985 fi
5986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5987
5988 fi
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5990 $as_echo "$lt_cv_ar_at_file" >&6; }
5991
5992 if test no = "$lt_cv_ar_at_file"; then
5993   archiver_list_spec=
5994 else
5995   archiver_list_spec=$lt_cv_ar_at_file
5996 fi
5997
5998
5999
6000
6001
6002
6003
6004 if test -n "$ac_tool_prefix"; then
6005   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6006 set dummy ${ac_tool_prefix}strip; ac_word=$2
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6008 $as_echo_n "checking for $ac_word... " >&6; }
6009 if ${ac_cv_prog_STRIP+:} false; then :
6010   $as_echo_n "(cached) " >&6
6011 else
6012   if test -n "$STRIP"; then
6013   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6014 else
6015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6016 for as_dir in $PATH
6017 do
6018   IFS=$as_save_IFS
6019   test -z "$as_dir" && as_dir=.
6020     for ac_exec_ext in '' $ac_executable_extensions; do
6021   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6022     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6023     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6024     break 2
6025   fi
6026 done
6027   done
6028 IFS=$as_save_IFS
6029
6030 fi
6031 fi
6032 STRIP=$ac_cv_prog_STRIP
6033 if test -n "$STRIP"; then
6034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6035 $as_echo "$STRIP" >&6; }
6036 else
6037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6038 $as_echo "no" >&6; }
6039 fi
6040
6041
6042 fi
6043 if test -z "$ac_cv_prog_STRIP"; then
6044   ac_ct_STRIP=$STRIP
6045   # Extract the first word of "strip", so it can be a program name with args.
6046 set dummy strip; ac_word=$2
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6048 $as_echo_n "checking for $ac_word... " >&6; }
6049 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6050   $as_echo_n "(cached) " >&6
6051 else
6052   if test -n "$ac_ct_STRIP"; then
6053   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6054 else
6055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6056 for as_dir in $PATH
6057 do
6058   IFS=$as_save_IFS
6059   test -z "$as_dir" && as_dir=.
6060     for ac_exec_ext in '' $ac_executable_extensions; do
6061   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6062     ac_cv_prog_ac_ct_STRIP="strip"
6063     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6064     break 2
6065   fi
6066 done
6067   done
6068 IFS=$as_save_IFS
6069
6070 fi
6071 fi
6072 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6073 if test -n "$ac_ct_STRIP"; then
6074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6075 $as_echo "$ac_ct_STRIP" >&6; }
6076 else
6077   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6078 $as_echo "no" >&6; }
6079 fi
6080
6081   if test "x$ac_ct_STRIP" = x; then
6082     STRIP=":"
6083   else
6084     case $cross_compiling:$ac_tool_warned in
6085 yes:)
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6087 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6088 ac_tool_warned=yes ;;
6089 esac
6090     STRIP=$ac_ct_STRIP
6091   fi
6092 else
6093   STRIP="$ac_cv_prog_STRIP"
6094 fi
6095
6096 test -z "$STRIP" && STRIP=:
6097
6098
6099
6100
6101
6102
6103 if test -n "$ac_tool_prefix"; then
6104   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6105 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6107 $as_echo_n "checking for $ac_word... " >&6; }
6108 if ${ac_cv_prog_RANLIB+:} false; then :
6109   $as_echo_n "(cached) " >&6
6110 else
6111   if test -n "$RANLIB"; then
6112   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6113 else
6114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6115 for as_dir in $PATH
6116 do
6117   IFS=$as_save_IFS
6118   test -z "$as_dir" && as_dir=.
6119     for ac_exec_ext in '' $ac_executable_extensions; do
6120   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6121     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6122     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6123     break 2
6124   fi
6125 done
6126   done
6127 IFS=$as_save_IFS
6128
6129 fi
6130 fi
6131 RANLIB=$ac_cv_prog_RANLIB
6132 if test -n "$RANLIB"; then
6133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6134 $as_echo "$RANLIB" >&6; }
6135 else
6136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6137 $as_echo "no" >&6; }
6138 fi
6139
6140
6141 fi
6142 if test -z "$ac_cv_prog_RANLIB"; then
6143   ac_ct_RANLIB=$RANLIB
6144   # Extract the first word of "ranlib", so it can be a program name with args.
6145 set dummy ranlib; ac_word=$2
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6147 $as_echo_n "checking for $ac_word... " >&6; }
6148 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6149   $as_echo_n "(cached) " >&6
6150 else
6151   if test -n "$ac_ct_RANLIB"; then
6152   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6153 else
6154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6155 for as_dir in $PATH
6156 do
6157   IFS=$as_save_IFS
6158   test -z "$as_dir" && as_dir=.
6159     for ac_exec_ext in '' $ac_executable_extensions; do
6160   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6161     ac_cv_prog_ac_ct_RANLIB="ranlib"
6162     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6163     break 2
6164   fi
6165 done
6166   done
6167 IFS=$as_save_IFS
6168
6169 fi
6170 fi
6171 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6172 if test -n "$ac_ct_RANLIB"; then
6173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6174 $as_echo "$ac_ct_RANLIB" >&6; }
6175 else
6176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6177 $as_echo "no" >&6; }
6178 fi
6179
6180   if test "x$ac_ct_RANLIB" = x; then
6181     RANLIB=":"
6182   else
6183     case $cross_compiling:$ac_tool_warned in
6184 yes:)
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6186 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6187 ac_tool_warned=yes ;;
6188 esac
6189     RANLIB=$ac_ct_RANLIB
6190   fi
6191 else
6192   RANLIB="$ac_cv_prog_RANLIB"
6193 fi
6194
6195 test -z "$RANLIB" && RANLIB=:
6196
6197
6198
6199
6200
6201
6202 # Determine commands to create old-style static archives.
6203 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6204 old_postinstall_cmds='chmod 644 $oldlib'
6205 old_postuninstall_cmds=
6206
6207 if test -n "$RANLIB"; then
6208   case $host_os in
6209   bitrig* | openbsd*)
6210     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6211     ;;
6212   *)
6213     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6214     ;;
6215   esac
6216   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6217 fi
6218
6219 case $host_os in
6220   darwin*)
6221     lock_old_archive_extraction=yes ;;
6222   *)
6223     lock_old_archive_extraction=no ;;
6224 esac
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264 # If no C compiler was specified, use CC.
6265 LTCC=${LTCC-"$CC"}
6266
6267 # If no C compiler flags were specified, use CFLAGS.
6268 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6269
6270 # Allow CC to be a program name with arguments.
6271 compiler=$CC
6272
6273
6274 # Check for command to grab the raw symbol name followed by C symbol from nm.
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6276 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6277 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6278   $as_echo_n "(cached) " >&6
6279 else
6280
6281 # These are sane defaults that work on at least a few old systems.
6282 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6283
6284 # Character class describing NM global symbol codes.
6285 symcode='[BCDEGRST]'
6286
6287 # Regexp to match symbols that can be accessed directly from C.
6288 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6289
6290 # Define system-specific variables.
6291 case $host_os in
6292 aix*)
6293   symcode='[BCDT]'
6294   ;;
6295 cygwin* | mingw* | pw32* | cegcc*)
6296   symcode='[ABCDGISTW]'
6297   ;;
6298 hpux*)
6299   if test ia64 = "$host_cpu"; then
6300     symcode='[ABCDEGRST]'
6301   fi
6302   ;;
6303 irix* | nonstopux*)
6304   symcode='[BCDEGRST]'
6305   ;;
6306 osf*)
6307   symcode='[BCDEGQRST]'
6308   ;;
6309 solaris*)
6310   symcode='[BDRT]'
6311   ;;
6312 sco3.2v5*)
6313   symcode='[DT]'
6314   ;;
6315 sysv4.2uw2*)
6316   symcode='[DT]'
6317   ;;
6318 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6319   symcode='[ABDT]'
6320   ;;
6321 sysv4)
6322   symcode='[DFNSTU]'
6323   ;;
6324 esac
6325
6326 # If we're using GNU nm, then use its standard symbol codes.
6327 case `$NM -V 2>&1` in
6328 *GNU* | *'with BFD'*)
6329   symcode='[ABCDGIRSTW]' ;;
6330 esac
6331
6332 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6333   # Gets list of data symbols to import.
6334   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6335   # Adjust the below global symbol transforms to fixup imported variables.
6336   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6337   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6338   lt_c_name_lib_hook="\
6339   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6340   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6341 else
6342   # Disable hooks by default.
6343   lt_cv_sys_global_symbol_to_import=
6344   lt_cdecl_hook=
6345   lt_c_name_hook=
6346   lt_c_name_lib_hook=
6347 fi
6348
6349 # Transform an extracted symbol line into a proper C declaration.
6350 # Some systems (esp. on ia64) link data and code symbols differently,
6351 # so use this general approach.
6352 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6353 $lt_cdecl_hook\
6354 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6355 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6356
6357 # Transform an extracted symbol line into symbol name and symbol address
6358 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6359 $lt_c_name_hook\
6360 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6361 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6362
6363 # Transform an extracted symbol line into symbol name with lib prefix and
6364 # symbol address.
6365 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6366 $lt_c_name_lib_hook\
6367 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6368 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6369 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6370
6371 # Handle CRLF in mingw tool chain
6372 opt_cr=
6373 case $build_os in
6374 mingw*)
6375   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6376   ;;
6377 esac
6378
6379 # Try without a prefix underscore, then with it.
6380 for ac_symprfx in "" "_"; do
6381
6382   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6383   symxfrm="\\1 $ac_symprfx\\2 \\2"
6384
6385   # Write the raw and C identifiers.
6386   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6387     # Fake it for dumpbin and say T for any non-static function,
6388     # D for any global variable and I for any imported variable.
6389     # Also find C++ and __fastcall symbols from MSVC++,
6390     # which start with @ or ?.
6391     lt_cv_sys_global_symbol_pipe="$AWK '"\
6392 "     {last_section=section; section=\$ 3};"\
6393 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6394 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6395 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6396 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6397 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6398 "     \$ 0!~/External *\|/{next};"\
6399 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6400 "     {if(hide[section]) next};"\
6401 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6402 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6403 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6404 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6405 "     ' prfx=^$ac_symprfx"
6406   else
6407     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6408   fi
6409   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6410
6411   # Check to see that the pipe works correctly.
6412   pipe_works=no
6413
6414   rm -f conftest*
6415   cat > conftest.$ac_ext <<_LT_EOF
6416 #ifdef __cplusplus
6417 extern "C" {
6418 #endif
6419 char nm_test_var;
6420 void nm_test_func(void);
6421 void nm_test_func(void){}
6422 #ifdef __cplusplus
6423 }
6424 #endif
6425 int main(){nm_test_var='a';nm_test_func();return(0);}
6426 _LT_EOF
6427
6428   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6429   (eval $ac_compile) 2>&5
6430   ac_status=$?
6431   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6432   test $ac_status = 0; }; then
6433     # Now try to grab the symbols.
6434     nlist=conftest.nm
6435     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6436   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6437   ac_status=$?
6438   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6439   test $ac_status = 0; } && test -s "$nlist"; then
6440       # Try sorting and uniquifying the output.
6441       if sort "$nlist" | uniq > "$nlist"T; then
6442         mv -f "$nlist"T "$nlist"
6443       else
6444         rm -f "$nlist"T
6445       fi
6446
6447       # Make sure that we snagged all the symbols we need.
6448       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6449         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6450           cat <<_LT_EOF > conftest.$ac_ext
6451 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6452 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6453 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6454    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6455 # define LT_DLSYM_CONST
6456 #elif defined __osf__
6457 /* This system does not cope well with relocations in const data.  */
6458 # define LT_DLSYM_CONST
6459 #else
6460 # define LT_DLSYM_CONST const
6461 #endif
6462
6463 #ifdef __cplusplus
6464 extern "C" {
6465 #endif
6466
6467 _LT_EOF
6468           # Now generate the symbol file.
6469           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6470
6471           cat <<_LT_EOF >> conftest.$ac_ext
6472
6473 /* The mapping between symbol names and symbols.  */
6474 LT_DLSYM_CONST struct {
6475   const char *name;
6476   void       *address;
6477 }
6478 lt__PROGRAM__LTX_preloaded_symbols[] =
6479 {
6480   { "@PROGRAM@", (void *) 0 },
6481 _LT_EOF
6482           $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6483           cat <<\_LT_EOF >> conftest.$ac_ext
6484   {0, (void *) 0}
6485 };
6486
6487 /* This works around a problem in FreeBSD linker */
6488 #ifdef FREEBSD_WORKAROUND
6489 static const void *lt_preloaded_setup() {
6490   return lt__PROGRAM__LTX_preloaded_symbols;
6491 }
6492 #endif
6493
6494 #ifdef __cplusplus
6495 }
6496 #endif
6497 _LT_EOF
6498           # Now try linking the two files.
6499           mv conftest.$ac_objext conftstm.$ac_objext
6500           lt_globsym_save_LIBS=$LIBS
6501           lt_globsym_save_CFLAGS=$CFLAGS
6502           LIBS=conftstm.$ac_objext
6503           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6504           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6505   (eval $ac_link) 2>&5
6506   ac_status=$?
6507   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6508   test $ac_status = 0; } && test -s conftest$ac_exeext; then
6509             pipe_works=yes
6510           fi
6511           LIBS=$lt_globsym_save_LIBS
6512           CFLAGS=$lt_globsym_save_CFLAGS
6513         else
6514           echo "cannot find nm_test_func in $nlist" >&5
6515         fi
6516       else
6517         echo "cannot find nm_test_var in $nlist" >&5
6518       fi
6519     else
6520       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6521     fi
6522   else
6523     echo "$progname: failed program was:" >&5
6524     cat conftest.$ac_ext >&5
6525   fi
6526   rm -rf conftest* conftst*
6527
6528   # Do not use the global_symbol_pipe unless it works.
6529   if test yes = "$pipe_works"; then
6530     break
6531   else
6532     lt_cv_sys_global_symbol_pipe=
6533   fi
6534 done
6535
6536 fi
6537
6538 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6539   lt_cv_sys_global_symbol_to_cdecl=
6540 fi
6541 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6543 $as_echo "failed" >&6; }
6544 else
6545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6546 $as_echo "ok" >&6; }
6547 fi
6548
6549 # Response file support.
6550 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6551   nm_file_list_spec='@'
6552 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6553   nm_file_list_spec='@'
6554 fi
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
6584
6585
6586
6587
6588
6589
6590
6591
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6593 $as_echo_n "checking for sysroot... " >&6; }
6594
6595 # Check whether --with-sysroot was given.
6596 if test "${with_sysroot+set}" = set; then :
6597   withval=$with_sysroot;
6598 else
6599   with_sysroot=no
6600 fi
6601
6602
6603 lt_sysroot=
6604 case $with_sysroot in #(
6605  yes)
6606    if test yes = "$GCC"; then
6607      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6608    fi
6609    ;; #(
6610  /*)
6611    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6612    ;; #(
6613  no|'')
6614    ;; #(
6615  *)
6616    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6617 $as_echo "$with_sysroot" >&6; }
6618    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6619    ;;
6620 esac
6621
6622  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6623 $as_echo "${lt_sysroot:-no}" >&6; }
6624
6625
6626
6627
6628
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6630 $as_echo_n "checking for a working dd... " >&6; }
6631 if ${ac_cv_path_lt_DD+:} false; then :
6632   $as_echo_n "(cached) " >&6
6633 else
6634   printf 0123456789abcdef0123456789abcdef >conftest.i
6635 cat conftest.i conftest.i >conftest2.i
6636 : ${lt_DD:=$DD}
6637 if test -z "$lt_DD"; then
6638   ac_path_lt_DD_found=false
6639   # Loop through the user's path and test for each of PROGNAME-LIST
6640   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6641 for as_dir in $PATH
6642 do
6643   IFS=$as_save_IFS
6644   test -z "$as_dir" && as_dir=.
6645     for ac_prog in dd; do
6646     for ac_exec_ext in '' $ac_executable_extensions; do
6647       ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6648       as_fn_executable_p "$ac_path_lt_DD" || continue
6649 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6650   cmp -s conftest.i conftest.out \
6651   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6652 fi
6653       $ac_path_lt_DD_found && break 3
6654     done
6655   done
6656   done
6657 IFS=$as_save_IFS
6658   if test -z "$ac_cv_path_lt_DD"; then
6659     :
6660   fi
6661 else
6662   ac_cv_path_lt_DD=$lt_DD
6663 fi
6664
6665 rm -f conftest.i conftest2.i conftest.out
6666 fi
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6668 $as_echo "$ac_cv_path_lt_DD" >&6; }
6669
6670
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6672 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6673 if ${lt_cv_truncate_bin+:} false; then :
6674   $as_echo_n "(cached) " >&6
6675 else
6676   printf 0123456789abcdef0123456789abcdef >conftest.i
6677 cat conftest.i conftest.i >conftest2.i
6678 lt_cv_truncate_bin=
6679 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6680   cmp -s conftest.i conftest.out \
6681   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6682 fi
6683 rm -f conftest.i conftest2.i conftest.out
6684 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6685 fi
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6687 $as_echo "$lt_cv_truncate_bin" >&6; }
6688
6689
6690
6691
6692
6693
6694
6695 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
6696 func_cc_basename ()
6697 {
6698     for cc_temp in $*""; do
6699       case $cc_temp in
6700         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6701         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6702         \-*) ;;
6703         *) break;;
6704       esac
6705     done
6706     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6707 }
6708
6709 # Check whether --enable-libtool-lock was given.
6710 if test "${enable_libtool_lock+set}" = set; then :
6711   enableval=$enable_libtool_lock;
6712 fi
6713
6714 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6715
6716 # Some flags need to be propagated to the compiler or linker for good
6717 # libtool support.
6718 case $host in
6719 ia64-*-hpux*)
6720   # Find out what ABI is being produced by ac_compile, and set mode
6721   # options accordingly.
6722   echo 'int i;' > conftest.$ac_ext
6723   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6724   (eval $ac_compile) 2>&5
6725   ac_status=$?
6726   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6727   test $ac_status = 0; }; then
6728     case `/usr/bin/file conftest.$ac_objext` in
6729       *ELF-32*)
6730         HPUX_IA64_MODE=32
6731         ;;
6732       *ELF-64*)
6733         HPUX_IA64_MODE=64
6734         ;;
6735     esac
6736   fi
6737   rm -rf conftest*
6738   ;;
6739 *-*-irix6*)
6740   # Find out what ABI is being produced by ac_compile, and set linker
6741   # options accordingly.
6742   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6743   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6744   (eval $ac_compile) 2>&5
6745   ac_status=$?
6746   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6747   test $ac_status = 0; }; then
6748     if test yes = "$lt_cv_prog_gnu_ld"; then
6749       case `/usr/bin/file conftest.$ac_objext` in
6750         *32-bit*)
6751           LD="${LD-ld} -melf32bsmip"
6752           ;;
6753         *N32*)
6754           LD="${LD-ld} -melf32bmipn32"
6755           ;;
6756         *64-bit*)
6757           LD="${LD-ld} -melf64bmip"
6758         ;;
6759       esac
6760     else
6761       case `/usr/bin/file conftest.$ac_objext` in
6762         *32-bit*)
6763           LD="${LD-ld} -32"
6764           ;;
6765         *N32*)
6766           LD="${LD-ld} -n32"
6767           ;;
6768         *64-bit*)
6769           LD="${LD-ld} -64"
6770           ;;
6771       esac
6772     fi
6773   fi
6774   rm -rf conftest*
6775   ;;
6776
6777 mips64*-*linux*)
6778   # Find out what ABI is being produced by ac_compile, and set linker
6779   # options accordingly.
6780   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6781   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6782   (eval $ac_compile) 2>&5
6783   ac_status=$?
6784   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6785   test $ac_status = 0; }; then
6786     emul=elf
6787     case `/usr/bin/file conftest.$ac_objext` in
6788       *32-bit*)
6789         emul="${emul}32"
6790         ;;
6791       *64-bit*)
6792         emul="${emul}64"
6793         ;;
6794     esac
6795     case `/usr/bin/file conftest.$ac_objext` in
6796       *MSB*)
6797         emul="${emul}btsmip"
6798         ;;
6799       *LSB*)
6800         emul="${emul}ltsmip"
6801         ;;
6802     esac
6803     case `/usr/bin/file conftest.$ac_objext` in
6804       *N32*)
6805         emul="${emul}n32"
6806         ;;
6807     esac
6808     LD="${LD-ld} -m $emul"
6809   fi
6810   rm -rf conftest*
6811   ;;
6812
6813 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6814 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6815   # Find out what ABI is being produced by ac_compile, and set linker
6816   # options accordingly.  Note that the listed cases only cover the
6817   # situations where additional linker options are needed (such as when
6818   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6819   # vice versa); the common cases where no linker options are needed do
6820   # not appear in the list.
6821   echo 'int i;' > conftest.$ac_ext
6822   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6823   (eval $ac_compile) 2>&5
6824   ac_status=$?
6825   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6826   test $ac_status = 0; }; then
6827     case `/usr/bin/file conftest.o` in
6828       *32-bit*)
6829         case $host in
6830           x86_64-*kfreebsd*-gnu)
6831             LD="${LD-ld} -m elf_i386_fbsd"
6832             ;;
6833           x86_64-*linux*)
6834             case `/usr/bin/file conftest.o` in
6835               *x86-64*)
6836                 LD="${LD-ld} -m elf32_x86_64"
6837                 ;;
6838               *)
6839                 LD="${LD-ld} -m elf_i386"
6840                 ;;
6841             esac
6842             ;;
6843           powerpc64le-*linux*)
6844             LD="${LD-ld} -m elf32lppclinux"
6845             ;;
6846           powerpc64-*linux*)
6847             LD="${LD-ld} -m elf32ppclinux"
6848             ;;
6849           s390x-*linux*)
6850             LD="${LD-ld} -m elf_s390"
6851             ;;
6852           sparc64-*linux*)
6853             LD="${LD-ld} -m elf32_sparc"
6854             ;;
6855         esac
6856         ;;
6857       *64-bit*)
6858         case $host in
6859           x86_64-*kfreebsd*-gnu)
6860             LD="${LD-ld} -m elf_x86_64_fbsd"
6861             ;;
6862           x86_64-*linux*)
6863             LD="${LD-ld} -m elf_x86_64"
6864             ;;
6865           powerpcle-*linux*)
6866             LD="${LD-ld} -m elf64lppc"
6867             ;;
6868           powerpc-*linux*)
6869             LD="${LD-ld} -m elf64ppc"
6870             ;;
6871           s390*-*linux*|s390*-*tpf*)
6872             LD="${LD-ld} -m elf64_s390"
6873             ;;
6874           sparc*-*linux*)
6875             LD="${LD-ld} -m elf64_sparc"
6876             ;;
6877         esac
6878         ;;
6879     esac
6880   fi
6881   rm -rf conftest*
6882   ;;
6883
6884 *-*-sco3.2v5*)
6885   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6886   SAVE_CFLAGS=$CFLAGS
6887   CFLAGS="$CFLAGS -belf"
6888   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6889 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6890 if ${lt_cv_cc_needs_belf+:} false; then :
6891   $as_echo_n "(cached) " >&6
6892 else
6893   ac_ext=c
6894 ac_cpp='$CPP $CPPFLAGS'
6895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6898
6899      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6900 /* end confdefs.h.  */
6901
6902 int
6903 main ()
6904 {
6905
6906   ;
6907   return 0;
6908 }
6909 _ACEOF
6910 if ac_fn_c_try_link "$LINENO"; then :
6911   lt_cv_cc_needs_belf=yes
6912 else
6913   lt_cv_cc_needs_belf=no
6914 fi
6915 rm -f core conftest.err conftest.$ac_objext \
6916     conftest$ac_exeext conftest.$ac_ext
6917      ac_ext=c
6918 ac_cpp='$CPP $CPPFLAGS'
6919 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6920 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6921 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6922
6923 fi
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6925 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6926   if test yes != "$lt_cv_cc_needs_belf"; then
6927     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6928     CFLAGS=$SAVE_CFLAGS
6929   fi
6930   ;;
6931 *-*solaris*)
6932   # Find out what ABI is being produced by ac_compile, and set linker
6933   # options accordingly.
6934   echo 'int i;' > conftest.$ac_ext
6935   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6936   (eval $ac_compile) 2>&5
6937   ac_status=$?
6938   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6939   test $ac_status = 0; }; then
6940     case `/usr/bin/file conftest.o` in
6941     *64-bit*)
6942       case $lt_cv_prog_gnu_ld in
6943       yes*)
6944         case $host in
6945         i?86-*-solaris*|x86_64-*-solaris*)
6946           LD="${LD-ld} -m elf_x86_64"
6947           ;;
6948         sparc*-*-solaris*)
6949           LD="${LD-ld} -m elf64_sparc"
6950           ;;
6951         esac
6952         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6953         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6954           LD=${LD-ld}_sol2
6955         fi
6956         ;;
6957       *)
6958         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6959           LD="${LD-ld} -64"
6960         fi
6961         ;;
6962       esac
6963       ;;
6964     esac
6965   fi
6966   rm -rf conftest*
6967   ;;
6968 esac
6969
6970 need_locks=$enable_libtool_lock
6971
6972 if test -n "$ac_tool_prefix"; then
6973   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6974 set dummy ${ac_tool_prefix}mt; ac_word=$2
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6976 $as_echo_n "checking for $ac_word... " >&6; }
6977 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6978   $as_echo_n "(cached) " >&6
6979 else
6980   if test -n "$MANIFEST_TOOL"; then
6981   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6982 else
6983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6984 for as_dir in $PATH
6985 do
6986   IFS=$as_save_IFS
6987   test -z "$as_dir" && as_dir=.
6988     for ac_exec_ext in '' $ac_executable_extensions; do
6989   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6990     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6991     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6992     break 2
6993   fi
6994 done
6995   done
6996 IFS=$as_save_IFS
6997
6998 fi
6999 fi
7000 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7001 if test -n "$MANIFEST_TOOL"; then
7002   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7003 $as_echo "$MANIFEST_TOOL" >&6; }
7004 else
7005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7006 $as_echo "no" >&6; }
7007 fi
7008
7009
7010 fi
7011 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7012   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7013   # Extract the first word of "mt", so it can be a program name with args.
7014 set dummy mt; ac_word=$2
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7016 $as_echo_n "checking for $ac_word... " >&6; }
7017 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7018   $as_echo_n "(cached) " >&6
7019 else
7020   if test -n "$ac_ct_MANIFEST_TOOL"; then
7021   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7022 else
7023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7024 for as_dir in $PATH
7025 do
7026   IFS=$as_save_IFS
7027   test -z "$as_dir" && as_dir=.
7028     for ac_exec_ext in '' $ac_executable_extensions; do
7029   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7030     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7031     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7032     break 2
7033   fi
7034 done
7035   done
7036 IFS=$as_save_IFS
7037
7038 fi
7039 fi
7040 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7041 if test -n "$ac_ct_MANIFEST_TOOL"; then
7042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7043 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7044 else
7045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7046 $as_echo "no" >&6; }
7047 fi
7048
7049   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7050     MANIFEST_TOOL=":"
7051   else
7052     case $cross_compiling:$ac_tool_warned in
7053 yes:)
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7055 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7056 ac_tool_warned=yes ;;
7057 esac
7058     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7059   fi
7060 else
7061   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7062 fi
7063
7064 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7066 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7067 if ${lt_cv_path_mainfest_tool+:} false; then :
7068   $as_echo_n "(cached) " >&6
7069 else
7070   lt_cv_path_mainfest_tool=no
7071   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7072   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7073   cat conftest.err >&5
7074   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7075     lt_cv_path_mainfest_tool=yes
7076   fi
7077   rm -f conftest*
7078 fi
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7080 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7081 if test yes != "$lt_cv_path_mainfest_tool"; then
7082   MANIFEST_TOOL=:
7083 fi
7084
7085
7086
7087
7088
7089
7090   case $host_os in
7091     rhapsody* | darwin*)
7092     if test -n "$ac_tool_prefix"; then
7093   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7094 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7096 $as_echo_n "checking for $ac_word... " >&6; }
7097 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7098   $as_echo_n "(cached) " >&6
7099 else
7100   if test -n "$DSYMUTIL"; then
7101   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7102 else
7103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7104 for as_dir in $PATH
7105 do
7106   IFS=$as_save_IFS
7107   test -z "$as_dir" && as_dir=.
7108     for ac_exec_ext in '' $ac_executable_extensions; do
7109   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7110     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7111     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7112     break 2
7113   fi
7114 done
7115   done
7116 IFS=$as_save_IFS
7117
7118 fi
7119 fi
7120 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7121 if test -n "$DSYMUTIL"; then
7122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7123 $as_echo "$DSYMUTIL" >&6; }
7124 else
7125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7126 $as_echo "no" >&6; }
7127 fi
7128
7129
7130 fi
7131 if test -z "$ac_cv_prog_DSYMUTIL"; then
7132   ac_ct_DSYMUTIL=$DSYMUTIL
7133   # Extract the first word of "dsymutil", so it can be a program name with args.
7134 set dummy dsymutil; ac_word=$2
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7136 $as_echo_n "checking for $ac_word... " >&6; }
7137 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7138   $as_echo_n "(cached) " >&6
7139 else
7140   if test -n "$ac_ct_DSYMUTIL"; then
7141   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7142 else
7143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7144 for as_dir in $PATH
7145 do
7146   IFS=$as_save_IFS
7147   test -z "$as_dir" && as_dir=.
7148     for ac_exec_ext in '' $ac_executable_extensions; do
7149   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7150     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7151     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7152     break 2
7153   fi
7154 done
7155   done
7156 IFS=$as_save_IFS
7157
7158 fi
7159 fi
7160 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7161 if test -n "$ac_ct_DSYMUTIL"; then
7162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7163 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7164 else
7165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7166 $as_echo "no" >&6; }
7167 fi
7168
7169   if test "x$ac_ct_DSYMUTIL" = x; then
7170     DSYMUTIL=":"
7171   else
7172     case $cross_compiling:$ac_tool_warned in
7173 yes:)
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7175 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7176 ac_tool_warned=yes ;;
7177 esac
7178     DSYMUTIL=$ac_ct_DSYMUTIL
7179   fi
7180 else
7181   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7182 fi
7183
7184     if test -n "$ac_tool_prefix"; then
7185   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7186 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7188 $as_echo_n "checking for $ac_word... " >&6; }
7189 if ${ac_cv_prog_NMEDIT+:} false; then :
7190   $as_echo_n "(cached) " >&6
7191 else
7192   if test -n "$NMEDIT"; then
7193   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7194 else
7195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7196 for as_dir in $PATH
7197 do
7198   IFS=$as_save_IFS
7199   test -z "$as_dir" && as_dir=.
7200     for ac_exec_ext in '' $ac_executable_extensions; do
7201   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7202     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7203     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7204     break 2
7205   fi
7206 done
7207   done
7208 IFS=$as_save_IFS
7209
7210 fi
7211 fi
7212 NMEDIT=$ac_cv_prog_NMEDIT
7213 if test -n "$NMEDIT"; then
7214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7215 $as_echo "$NMEDIT" >&6; }
7216 else
7217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7218 $as_echo "no" >&6; }
7219 fi
7220
7221
7222 fi
7223 if test -z "$ac_cv_prog_NMEDIT"; then
7224   ac_ct_NMEDIT=$NMEDIT
7225   # Extract the first word of "nmedit", so it can be a program name with args.
7226 set dummy nmedit; ac_word=$2
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7228 $as_echo_n "checking for $ac_word... " >&6; }
7229 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7230   $as_echo_n "(cached) " >&6
7231 else
7232   if test -n "$ac_ct_NMEDIT"; then
7233   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7234 else
7235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7236 for as_dir in $PATH
7237 do
7238   IFS=$as_save_IFS
7239   test -z "$as_dir" && as_dir=.
7240     for ac_exec_ext in '' $ac_executable_extensions; do
7241   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7242     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7243     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7244     break 2
7245   fi
7246 done
7247   done
7248 IFS=$as_save_IFS
7249
7250 fi
7251 fi
7252 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7253 if test -n "$ac_ct_NMEDIT"; then
7254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7255 $as_echo "$ac_ct_NMEDIT" >&6; }
7256 else
7257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7258 $as_echo "no" >&6; }
7259 fi
7260
7261   if test "x$ac_ct_NMEDIT" = x; then
7262     NMEDIT=":"
7263   else
7264     case $cross_compiling:$ac_tool_warned in
7265 yes:)
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7267 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7268 ac_tool_warned=yes ;;
7269 esac
7270     NMEDIT=$ac_ct_NMEDIT
7271   fi
7272 else
7273   NMEDIT="$ac_cv_prog_NMEDIT"
7274 fi
7275
7276     if test -n "$ac_tool_prefix"; then
7277   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7278 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7280 $as_echo_n "checking for $ac_word... " >&6; }
7281 if ${ac_cv_prog_LIPO+:} false; then :
7282   $as_echo_n "(cached) " >&6
7283 else
7284   if test -n "$LIPO"; then
7285   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7286 else
7287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7288 for as_dir in $PATH
7289 do
7290   IFS=$as_save_IFS
7291   test -z "$as_dir" && as_dir=.
7292     for ac_exec_ext in '' $ac_executable_extensions; do
7293   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7294     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7295     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7296     break 2
7297   fi
7298 done
7299   done
7300 IFS=$as_save_IFS
7301
7302 fi
7303 fi
7304 LIPO=$ac_cv_prog_LIPO
7305 if test -n "$LIPO"; then
7306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7307 $as_echo "$LIPO" >&6; }
7308 else
7309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7310 $as_echo "no" >&6; }
7311 fi
7312
7313
7314 fi
7315 if test -z "$ac_cv_prog_LIPO"; then
7316   ac_ct_LIPO=$LIPO
7317   # Extract the first word of "lipo", so it can be a program name with args.
7318 set dummy lipo; ac_word=$2
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7320 $as_echo_n "checking for $ac_word... " >&6; }
7321 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7322   $as_echo_n "(cached) " >&6
7323 else
7324   if test -n "$ac_ct_LIPO"; then
7325   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7326 else
7327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7328 for as_dir in $PATH
7329 do
7330   IFS=$as_save_IFS
7331   test -z "$as_dir" && as_dir=.
7332     for ac_exec_ext in '' $ac_executable_extensions; do
7333   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7334     ac_cv_prog_ac_ct_LIPO="lipo"
7335     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7336     break 2
7337   fi
7338 done
7339   done
7340 IFS=$as_save_IFS
7341
7342 fi
7343 fi
7344 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7345 if test -n "$ac_ct_LIPO"; then
7346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7347 $as_echo "$ac_ct_LIPO" >&6; }
7348 else
7349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7350 $as_echo "no" >&6; }
7351 fi
7352
7353   if test "x$ac_ct_LIPO" = x; then
7354     LIPO=":"
7355   else
7356     case $cross_compiling:$ac_tool_warned in
7357 yes:)
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7359 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7360 ac_tool_warned=yes ;;
7361 esac
7362     LIPO=$ac_ct_LIPO
7363   fi
7364 else
7365   LIPO="$ac_cv_prog_LIPO"
7366 fi
7367
7368     if test -n "$ac_tool_prefix"; then
7369   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7370 set dummy ${ac_tool_prefix}otool; ac_word=$2
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7372 $as_echo_n "checking for $ac_word... " >&6; }
7373 if ${ac_cv_prog_OTOOL+:} false; then :
7374   $as_echo_n "(cached) " >&6
7375 else
7376   if test -n "$OTOOL"; then
7377   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7378 else
7379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7380 for as_dir in $PATH
7381 do
7382   IFS=$as_save_IFS
7383   test -z "$as_dir" && as_dir=.
7384     for ac_exec_ext in '' $ac_executable_extensions; do
7385   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7386     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7387     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7388     break 2
7389   fi
7390 done
7391   done
7392 IFS=$as_save_IFS
7393
7394 fi
7395 fi
7396 OTOOL=$ac_cv_prog_OTOOL
7397 if test -n "$OTOOL"; then
7398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7399 $as_echo "$OTOOL" >&6; }
7400 else
7401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7402 $as_echo "no" >&6; }
7403 fi
7404
7405
7406 fi
7407 if test -z "$ac_cv_prog_OTOOL"; then
7408   ac_ct_OTOOL=$OTOOL
7409   # Extract the first word of "otool", so it can be a program name with args.
7410 set dummy otool; ac_word=$2
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7412 $as_echo_n "checking for $ac_word... " >&6; }
7413 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7414   $as_echo_n "(cached) " >&6
7415 else
7416   if test -n "$ac_ct_OTOOL"; then
7417   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7418 else
7419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7420 for as_dir in $PATH
7421 do
7422   IFS=$as_save_IFS
7423   test -z "$as_dir" && as_dir=.
7424     for ac_exec_ext in '' $ac_executable_extensions; do
7425   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7426     ac_cv_prog_ac_ct_OTOOL="otool"
7427     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7428     break 2
7429   fi
7430 done
7431   done
7432 IFS=$as_save_IFS
7433
7434 fi
7435 fi
7436 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7437 if test -n "$ac_ct_OTOOL"; then
7438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7439 $as_echo "$ac_ct_OTOOL" >&6; }
7440 else
7441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7442 $as_echo "no" >&6; }
7443 fi
7444
7445   if test "x$ac_ct_OTOOL" = x; then
7446     OTOOL=":"
7447   else
7448     case $cross_compiling:$ac_tool_warned in
7449 yes:)
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7451 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7452 ac_tool_warned=yes ;;
7453 esac
7454     OTOOL=$ac_ct_OTOOL
7455   fi
7456 else
7457   OTOOL="$ac_cv_prog_OTOOL"
7458 fi
7459
7460     if test -n "$ac_tool_prefix"; then
7461   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7462 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7464 $as_echo_n "checking for $ac_word... " >&6; }
7465 if ${ac_cv_prog_OTOOL64+:} false; then :
7466   $as_echo_n "(cached) " >&6
7467 else
7468   if test -n "$OTOOL64"; then
7469   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7470 else
7471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7472 for as_dir in $PATH
7473 do
7474   IFS=$as_save_IFS
7475   test -z "$as_dir" && as_dir=.
7476     for ac_exec_ext in '' $ac_executable_extensions; do
7477   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7478     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7479     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7480     break 2
7481   fi
7482 done
7483   done
7484 IFS=$as_save_IFS
7485
7486 fi
7487 fi
7488 OTOOL64=$ac_cv_prog_OTOOL64
7489 if test -n "$OTOOL64"; then
7490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7491 $as_echo "$OTOOL64" >&6; }
7492 else
7493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7494 $as_echo "no" >&6; }
7495 fi
7496
7497
7498 fi
7499 if test -z "$ac_cv_prog_OTOOL64"; then
7500   ac_ct_OTOOL64=$OTOOL64
7501   # Extract the first word of "otool64", so it can be a program name with args.
7502 set dummy otool64; ac_word=$2
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7504 $as_echo_n "checking for $ac_word... " >&6; }
7505 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7506   $as_echo_n "(cached) " >&6
7507 else
7508   if test -n "$ac_ct_OTOOL64"; then
7509   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7510 else
7511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7512 for as_dir in $PATH
7513 do
7514   IFS=$as_save_IFS
7515   test -z "$as_dir" && as_dir=.
7516     for ac_exec_ext in '' $ac_executable_extensions; do
7517   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7518     ac_cv_prog_ac_ct_OTOOL64="otool64"
7519     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7520     break 2
7521   fi
7522 done
7523   done
7524 IFS=$as_save_IFS
7525
7526 fi
7527 fi
7528 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7529 if test -n "$ac_ct_OTOOL64"; then
7530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7531 $as_echo "$ac_ct_OTOOL64" >&6; }
7532 else
7533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7534 $as_echo "no" >&6; }
7535 fi
7536
7537   if test "x$ac_ct_OTOOL64" = x; then
7538     OTOOL64=":"
7539   else
7540     case $cross_compiling:$ac_tool_warned in
7541 yes:)
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7543 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7544 ac_tool_warned=yes ;;
7545 esac
7546     OTOOL64=$ac_ct_OTOOL64
7547   fi
7548 else
7549   OTOOL64="$ac_cv_prog_OTOOL64"
7550 fi
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7579 $as_echo_n "checking for -single_module linker flag... " >&6; }
7580 if ${lt_cv_apple_cc_single_mod+:} false; then :
7581   $as_echo_n "(cached) " >&6
7582 else
7583   lt_cv_apple_cc_single_mod=no
7584       if test -z "$LT_MULTI_MODULE"; then
7585         # By default we will add the -single_module flag. You can override
7586         # by either setting the environment variable LT_MULTI_MODULE
7587         # non-empty at configure time, or by adding -multi_module to the
7588         # link flags.
7589         rm -rf libconftest.dylib*
7590         echo "int foo(void){return 1;}" > conftest.c
7591         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7592 -dynamiclib -Wl,-single_module conftest.c" >&5
7593         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7594           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7595         _lt_result=$?
7596         # If there is a non-empty error log, and "single_module"
7597         # appears in it, assume the flag caused a linker warning
7598         if test -s conftest.err && $GREP single_module conftest.err; then
7599           cat conftest.err >&5
7600         # Otherwise, if the output was created with a 0 exit code from
7601         # the compiler, it worked.
7602         elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7603           lt_cv_apple_cc_single_mod=yes
7604         else
7605           cat conftest.err >&5
7606         fi
7607         rm -rf libconftest.dylib*
7608         rm -f conftest.*
7609       fi
7610 fi
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7612 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7613
7614     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7615 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7616 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7617   $as_echo_n "(cached) " >&6
7618 else
7619   lt_cv_ld_exported_symbols_list=no
7620       save_LDFLAGS=$LDFLAGS
7621       echo "_main" > conftest.sym
7622       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7623       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7624 /* end confdefs.h.  */
7625
7626 int
7627 main ()
7628 {
7629
7630   ;
7631   return 0;
7632 }
7633 _ACEOF
7634 if ac_fn_c_try_link "$LINENO"; then :
7635   lt_cv_ld_exported_symbols_list=yes
7636 else
7637   lt_cv_ld_exported_symbols_list=no
7638 fi
7639 rm -f core conftest.err conftest.$ac_objext \
7640     conftest$ac_exeext conftest.$ac_ext
7641         LDFLAGS=$save_LDFLAGS
7642
7643 fi
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7645 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7646
7647     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7648 $as_echo_n "checking for -force_load linker flag... " >&6; }
7649 if ${lt_cv_ld_force_load+:} false; then :
7650   $as_echo_n "(cached) " >&6
7651 else
7652   lt_cv_ld_force_load=no
7653       cat > conftest.c << _LT_EOF
7654 int forced_loaded() { return 2;}
7655 _LT_EOF
7656       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7657       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7658       echo "$AR cru libconftest.a conftest.o" >&5
7659       $AR cru libconftest.a conftest.o 2>&5
7660       echo "$RANLIB libconftest.a" >&5
7661       $RANLIB libconftest.a 2>&5
7662       cat > conftest.c << _LT_EOF
7663 int main() { return 0;}
7664 _LT_EOF
7665       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7666       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7667       _lt_result=$?
7668       if test -s conftest.err && $GREP force_load conftest.err; then
7669         cat conftest.err >&5
7670       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7671         lt_cv_ld_force_load=yes
7672       else
7673         cat conftest.err >&5
7674       fi
7675         rm -f conftest.err libconftest.a conftest conftest.c
7676         rm -rf conftest.dSYM
7677
7678 fi
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7680 $as_echo "$lt_cv_ld_force_load" >&6; }
7681     case $host_os in
7682     rhapsody* | darwin1.[012])
7683       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7684     darwin1.*)
7685       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7686     darwin*) # darwin 5.x on
7687       # if running on 10.5 or later, the deployment target defaults
7688       # to the OS version, if on x86, and 10.4, the deployment
7689       # target defaults to 10.4. Don't you love it?
7690       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7691         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7692           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7693         10.[012][,.]*)
7694           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7695         10.*)
7696           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7697       esac
7698     ;;
7699   esac
7700     if test yes = "$lt_cv_apple_cc_single_mod"; then
7701       _lt_dar_single_mod='$single_module'
7702     fi
7703     if test yes = "$lt_cv_ld_exported_symbols_list"; then
7704       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7705     else
7706       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7707     fi
7708     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7709       _lt_dsymutil='~$DSYMUTIL $lib || :'
7710     else
7711       _lt_dsymutil=
7712     fi
7713     ;;
7714   esac
7715
7716 # func_munge_path_list VARIABLE PATH
7717 # -----------------------------------
7718 # VARIABLE is name of variable containing _space_ separated list of
7719 # directories to be munged by the contents of PATH, which is string
7720 # having a format:
7721 # "DIR[:DIR]:"
7722 #       string "DIR[ DIR]" will be prepended to VARIABLE
7723 # ":DIR[:DIR]"
7724 #       string "DIR[ DIR]" will be appended to VARIABLE
7725 # "DIRP[:DIRP]::[DIRA:]DIRA"
7726 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7727 #       "DIRA[ DIRA]" will be appended to VARIABLE
7728 # "DIR[:DIR]"
7729 #       VARIABLE will be replaced by "DIR[ DIR]"
7730 func_munge_path_list ()
7731 {
7732     case x$2 in
7733     x)
7734         ;;
7735     *:)
7736         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7737         ;;
7738     x:*)
7739         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7740         ;;
7741     *::*)
7742         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7743         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7744         ;;
7745     *)
7746         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7747         ;;
7748     esac
7749 }
7750
7751 ac_ext=c
7752 ac_cpp='$CPP $CPPFLAGS'
7753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7757 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7758 # On Suns, sometimes $CPP names a directory.
7759 if test -n "$CPP" && test -d "$CPP"; then
7760   CPP=
7761 fi
7762 if test -z "$CPP"; then
7763   if ${ac_cv_prog_CPP+:} false; then :
7764   $as_echo_n "(cached) " >&6
7765 else
7766       # Double quotes because CPP needs to be expanded
7767     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7768     do
7769       ac_preproc_ok=false
7770 for ac_c_preproc_warn_flag in '' yes
7771 do
7772   # Use a header file that comes with gcc, so configuring glibc
7773   # with a fresh cross-compiler works.
7774   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7775   # <limits.h> exists even on freestanding compilers.
7776   # On the NeXT, cc -E runs the code through the compiler's parser,
7777   # not just through cpp. "Syntax error" is here to catch this case.
7778   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7779 /* end confdefs.h.  */
7780 #ifdef __STDC__
7781 # include <limits.h>
7782 #else
7783 # include <assert.h>
7784 #endif
7785                      Syntax error
7786 _ACEOF
7787 if ac_fn_c_try_cpp "$LINENO"; then :
7788
7789 else
7790   # Broken: fails on valid input.
7791 continue
7792 fi
7793 rm -f conftest.err conftest.i conftest.$ac_ext
7794
7795   # OK, works on sane cases.  Now check whether nonexistent headers
7796   # can be detected and how.
7797   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7798 /* end confdefs.h.  */
7799 #include <ac_nonexistent.h>
7800 _ACEOF
7801 if ac_fn_c_try_cpp "$LINENO"; then :
7802   # Broken: success on invalid input.
7803 continue
7804 else
7805   # Passes both tests.
7806 ac_preproc_ok=:
7807 break
7808 fi
7809 rm -f conftest.err conftest.i conftest.$ac_ext
7810
7811 done
7812 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7813 rm -f conftest.i conftest.err conftest.$ac_ext
7814 if $ac_preproc_ok; then :
7815   break
7816 fi
7817
7818     done
7819     ac_cv_prog_CPP=$CPP
7820
7821 fi
7822   CPP=$ac_cv_prog_CPP
7823 else
7824   ac_cv_prog_CPP=$CPP
7825 fi
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7827 $as_echo "$CPP" >&6; }
7828 ac_preproc_ok=false
7829 for ac_c_preproc_warn_flag in '' yes
7830 do
7831   # Use a header file that comes with gcc, so configuring glibc
7832   # with a fresh cross-compiler works.
7833   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7834   # <limits.h> exists even on freestanding compilers.
7835   # On the NeXT, cc -E runs the code through the compiler's parser,
7836   # not just through cpp. "Syntax error" is here to catch this case.
7837   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7838 /* end confdefs.h.  */
7839 #ifdef __STDC__
7840 # include <limits.h>
7841 #else
7842 # include <assert.h>
7843 #endif
7844                      Syntax error
7845 _ACEOF
7846 if ac_fn_c_try_cpp "$LINENO"; then :
7847
7848 else
7849   # Broken: fails on valid input.
7850 continue
7851 fi
7852 rm -f conftest.err conftest.i conftest.$ac_ext
7853
7854   # OK, works on sane cases.  Now check whether nonexistent headers
7855   # can be detected and how.
7856   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7857 /* end confdefs.h.  */
7858 #include <ac_nonexistent.h>
7859 _ACEOF
7860 if ac_fn_c_try_cpp "$LINENO"; then :
7861   # Broken: success on invalid input.
7862 continue
7863 else
7864   # Passes both tests.
7865 ac_preproc_ok=:
7866 break
7867 fi
7868 rm -f conftest.err conftest.i conftest.$ac_ext
7869
7870 done
7871 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7872 rm -f conftest.i conftest.err conftest.$ac_ext
7873 if $ac_preproc_ok; then :
7874
7875 else
7876   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7877 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7878 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7879 See \`config.log' for more details" "$LINENO" 5; }
7880 fi
7881
7882 ac_ext=c
7883 ac_cpp='$CPP $CPPFLAGS'
7884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7887
7888
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7890 $as_echo_n "checking for ANSI C header files... " >&6; }
7891 if ${ac_cv_header_stdc+:} false; then :
7892   $as_echo_n "(cached) " >&6
7893 else
7894   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7895 /* end confdefs.h.  */
7896 #include <stdlib.h>
7897 #include <stdarg.h>
7898 #include <string.h>
7899 #include <float.h>
7900
7901 int
7902 main ()
7903 {
7904
7905   ;
7906   return 0;
7907 }
7908 _ACEOF
7909 if ac_fn_c_try_compile "$LINENO"; then :
7910   ac_cv_header_stdc=yes
7911 else
7912   ac_cv_header_stdc=no
7913 fi
7914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7915
7916 if test $ac_cv_header_stdc = yes; then
7917   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7918   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7919 /* end confdefs.h.  */
7920 #include <string.h>
7921
7922 _ACEOF
7923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7924   $EGREP "memchr" >/dev/null 2>&1; then :
7925
7926 else
7927   ac_cv_header_stdc=no
7928 fi
7929 rm -f conftest*
7930
7931 fi
7932
7933 if test $ac_cv_header_stdc = yes; then
7934   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7935   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7936 /* end confdefs.h.  */
7937 #include <stdlib.h>
7938
7939 _ACEOF
7940 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7941   $EGREP "free" >/dev/null 2>&1; then :
7942
7943 else
7944   ac_cv_header_stdc=no
7945 fi
7946 rm -f conftest*
7947
7948 fi
7949
7950 if test $ac_cv_header_stdc = yes; then
7951   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7952   if test "$cross_compiling" = yes; then :
7953   :
7954 else
7955   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7956 /* end confdefs.h.  */
7957 #include <ctype.h>
7958 #include <stdlib.h>
7959 #if ((' ' & 0x0FF) == 0x020)
7960 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7961 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7962 #else
7963 # define ISLOWER(c) \
7964                    (('a' <= (c) && (c) <= 'i') \
7965                      || ('j' <= (c) && (c) <= 'r') \
7966                      || ('s' <= (c) && (c) <= 'z'))
7967 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7968 #endif
7969
7970 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7971 int
7972 main ()
7973 {
7974   int i;
7975   for (i = 0; i < 256; i++)
7976     if (XOR (islower (i), ISLOWER (i))
7977         || toupper (i) != TOUPPER (i))
7978       return 2;
7979   return 0;
7980 }
7981 _ACEOF
7982 if ac_fn_c_try_run "$LINENO"; then :
7983
7984 else
7985   ac_cv_header_stdc=no
7986 fi
7987 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7988   conftest.$ac_objext conftest.beam conftest.$ac_ext
7989 fi
7990
7991 fi
7992 fi
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7994 $as_echo "$ac_cv_header_stdc" >&6; }
7995 if test $ac_cv_header_stdc = yes; then
7996
7997 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7998
7999 fi
8000
8001 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8002 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8003                   inttypes.h stdint.h unistd.h
8004 do :
8005   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8006 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8007 "
8008 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8009   cat >>confdefs.h <<_ACEOF
8010 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8011 _ACEOF
8012
8013 fi
8014
8015 done
8016
8017
8018 for ac_header in dlfcn.h
8019 do :
8020   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8021 "
8022 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8023   cat >>confdefs.h <<_ACEOF
8024 #define HAVE_DLFCN_H 1
8025 _ACEOF
8026
8027 fi
8028
8029 done
8030
8031
8032
8033
8034
8035 # Set options
8036
8037
8038
8039         enable_dlopen=no
8040
8041
8042   enable_win32_dll=no
8043
8044
8045             # Check whether --enable-shared was given.
8046 if test "${enable_shared+set}" = set; then :
8047   enableval=$enable_shared; p=${PACKAGE-default}
8048     case $enableval in
8049     yes) enable_shared=yes ;;
8050     no) enable_shared=no ;;
8051     *)
8052       enable_shared=no
8053       # Look at the argument we got.  We use all the common list separators.
8054       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8055       for pkg in $enableval; do
8056         IFS=$lt_save_ifs
8057         if test "X$pkg" = "X$p"; then
8058           enable_shared=yes
8059         fi
8060       done
8061       IFS=$lt_save_ifs
8062       ;;
8063     esac
8064 else
8065   enable_shared=yes
8066 fi
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076   # Check whether --enable-static was given.
8077 if test "${enable_static+set}" = set; then :
8078   enableval=$enable_static; p=${PACKAGE-default}
8079     case $enableval in
8080     yes) enable_static=yes ;;
8081     no) enable_static=no ;;
8082     *)
8083      enable_static=no
8084       # Look at the argument we got.  We use all the common list separators.
8085       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8086       for pkg in $enableval; do
8087         IFS=$lt_save_ifs
8088         if test "X$pkg" = "X$p"; then
8089           enable_static=yes
8090         fi
8091       done
8092       IFS=$lt_save_ifs
8093       ;;
8094     esac
8095 else
8096   enable_static=yes
8097 fi
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108 # Check whether --with-pic was given.
8109 if test "${with_pic+set}" = set; then :
8110   withval=$with_pic; lt_p=${PACKAGE-default}
8111     case $withval in
8112     yes|no) pic_mode=$withval ;;
8113     *)
8114       pic_mode=default
8115       # Look at the argument we got.  We use all the common list separators.
8116       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8117       for lt_pkg in $withval; do
8118         IFS=$lt_save_ifs
8119         if test "X$lt_pkg" = "X$lt_p"; then
8120           pic_mode=yes
8121         fi
8122       done
8123       IFS=$lt_save_ifs
8124       ;;
8125     esac
8126 else
8127   pic_mode=default
8128 fi
8129
8130
8131
8132
8133
8134
8135
8136
8137   # Check whether --enable-fast-install was given.
8138 if test "${enable_fast_install+set}" = set; then :
8139   enableval=$enable_fast_install; p=${PACKAGE-default}
8140     case $enableval in
8141     yes) enable_fast_install=yes ;;
8142     no) enable_fast_install=no ;;
8143     *)
8144       enable_fast_install=no
8145       # Look at the argument we got.  We use all the common list separators.
8146       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8147       for pkg in $enableval; do
8148         IFS=$lt_save_ifs
8149         if test "X$pkg" = "X$p"; then
8150           enable_fast_install=yes
8151         fi
8152       done
8153       IFS=$lt_save_ifs
8154       ;;
8155     esac
8156 else
8157   enable_fast_install=yes
8158 fi
8159
8160
8161
8162
8163
8164
8165
8166
8167   shared_archive_member_spec=
8168 case $host,$enable_shared in
8169 power*-*-aix[5-9]*,yes)
8170   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8171 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8172
8173 # Check whether --with-aix-soname was given.
8174 if test "${with_aix_soname+set}" = set; then :
8175   withval=$with_aix_soname; case $withval in
8176     aix|svr4|both)
8177       ;;
8178     *)
8179       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8180       ;;
8181     esac
8182     lt_cv_with_aix_soname=$with_aix_soname
8183 else
8184   if ${lt_cv_with_aix_soname+:} false; then :
8185   $as_echo_n "(cached) " >&6
8186 else
8187   lt_cv_with_aix_soname=aix
8188 fi
8189
8190     with_aix_soname=$lt_cv_with_aix_soname
8191 fi
8192
8193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8194 $as_echo "$with_aix_soname" >&6; }
8195   if test aix != "$with_aix_soname"; then
8196     # For the AIX way of multilib, we name the shared archive member
8197     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8198     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8199     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8200     # the AIX toolchain works better with OBJECT_MODE set (default 32).
8201     if test 64 = "${OBJECT_MODE-32}"; then
8202       shared_archive_member_spec=shr_64
8203     else
8204       shared_archive_member_spec=shr
8205     fi
8206   fi
8207   ;;
8208 *)
8209   with_aix_soname=aix
8210   ;;
8211 esac
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222 # This can be used to rebuild libtool when needed
8223 LIBTOOL_DEPS=$ltmain
8224
8225 # Always use our own libtool.
8226 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257 test -z "$LN_S" && LN_S="ln -s"
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272 if test -n "${ZSH_VERSION+set}"; then
8273    setopt NO_GLOB_SUBST
8274 fi
8275
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8277 $as_echo_n "checking for objdir... " >&6; }
8278 if ${lt_cv_objdir+:} false; then :
8279   $as_echo_n "(cached) " >&6
8280 else
8281   rm -f .libs 2>/dev/null
8282 mkdir .libs 2>/dev/null
8283 if test -d .libs; then
8284   lt_cv_objdir=.libs
8285 else
8286   # MS-DOS does not allow filenames that begin with a dot.
8287   lt_cv_objdir=_libs
8288 fi
8289 rmdir .libs 2>/dev/null
8290 fi
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8292 $as_echo "$lt_cv_objdir" >&6; }
8293 objdir=$lt_cv_objdir
8294
8295
8296
8297
8298
8299 cat >>confdefs.h <<_ACEOF
8300 #define LT_OBJDIR "$lt_cv_objdir/"
8301 _ACEOF
8302
8303
8304
8305
8306 case $host_os in
8307 aix3*)
8308   # AIX sometimes has problems with the GCC collect2 program.  For some
8309   # reason, if we set the COLLECT_NAMES environment variable, the problems
8310   # vanish in a puff of smoke.
8311   if test set != "${COLLECT_NAMES+set}"; then
8312     COLLECT_NAMES=
8313     export COLLECT_NAMES
8314   fi
8315   ;;
8316 esac
8317
8318 # Global variables:
8319 ofile=libtool
8320 can_build_shared=yes
8321
8322 # All known linkers require a '.a' archive for static linking (except MSVC,
8323 # which needs '.lib').
8324 libext=a
8325
8326 with_gnu_ld=$lt_cv_prog_gnu_ld
8327
8328 old_CC=$CC
8329 old_CFLAGS=$CFLAGS
8330
8331 # Set sane defaults for various variables
8332 test -z "$CC" && CC=cc
8333 test -z "$LTCC" && LTCC=$CC
8334 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8335 test -z "$LD" && LD=ld
8336 test -z "$ac_objext" && ac_objext=o
8337
8338 func_cc_basename $compiler
8339 cc_basename=$func_cc_basename_result
8340
8341
8342 # Only perform the check for file, if the check method requires it
8343 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8344 case $deplibs_check_method in
8345 file_magic*)
8346   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8347     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8348 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8349 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8350   $as_echo_n "(cached) " >&6
8351 else
8352   case $MAGIC_CMD in
8353 [\\/*] |  ?:[\\/]*)
8354   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8355   ;;
8356 *)
8357   lt_save_MAGIC_CMD=$MAGIC_CMD
8358   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8359   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8360   for ac_dir in $ac_dummy; do
8361     IFS=$lt_save_ifs
8362     test -z "$ac_dir" && ac_dir=.
8363     if test -f "$ac_dir/${ac_tool_prefix}file"; then
8364       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8365       if test -n "$file_magic_test_file"; then
8366         case $deplibs_check_method in
8367         "file_magic "*)
8368           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8369           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8370           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8371             $EGREP "$file_magic_regex" > /dev/null; then
8372             :
8373           else
8374             cat <<_LT_EOF 1>&2
8375
8376 *** Warning: the command libtool uses to detect shared libraries,
8377 *** $file_magic_cmd, produces output that libtool cannot recognize.
8378 *** The result is that libtool may fail to recognize shared libraries
8379 *** as such.  This will affect the creation of libtool libraries that
8380 *** depend on shared libraries, but programs linked with such libtool
8381 *** libraries will work regardless of this problem.  Nevertheless, you
8382 *** may want to report the problem to your system manager and/or to
8383 *** bug-libtool@gnu.org
8384
8385 _LT_EOF
8386           fi ;;
8387         esac
8388       fi
8389       break
8390     fi
8391   done
8392   IFS=$lt_save_ifs
8393   MAGIC_CMD=$lt_save_MAGIC_CMD
8394   ;;
8395 esac
8396 fi
8397
8398 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8399 if test -n "$MAGIC_CMD"; then
8400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8401 $as_echo "$MAGIC_CMD" >&6; }
8402 else
8403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8404 $as_echo "no" >&6; }
8405 fi
8406
8407
8408
8409
8410
8411 if test -z "$lt_cv_path_MAGIC_CMD"; then
8412   if test -n "$ac_tool_prefix"; then
8413     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8414 $as_echo_n "checking for file... " >&6; }
8415 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8416   $as_echo_n "(cached) " >&6
8417 else
8418   case $MAGIC_CMD in
8419 [\\/*] |  ?:[\\/]*)
8420   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8421   ;;
8422 *)
8423   lt_save_MAGIC_CMD=$MAGIC_CMD
8424   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8425   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8426   for ac_dir in $ac_dummy; do
8427     IFS=$lt_save_ifs
8428     test -z "$ac_dir" && ac_dir=.
8429     if test -f "$ac_dir/file"; then
8430       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8431       if test -n "$file_magic_test_file"; then
8432         case $deplibs_check_method in
8433         "file_magic "*)
8434           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8435           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8436           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8437             $EGREP "$file_magic_regex" > /dev/null; then
8438             :
8439           else
8440             cat <<_LT_EOF 1>&2
8441
8442 *** Warning: the command libtool uses to detect shared libraries,
8443 *** $file_magic_cmd, produces output that libtool cannot recognize.
8444 *** The result is that libtool may fail to recognize shared libraries
8445 *** as such.  This will affect the creation of libtool libraries that
8446 *** depend on shared libraries, but programs linked with such libtool
8447 *** libraries will work regardless of this problem.  Nevertheless, you
8448 *** may want to report the problem to your system manager and/or to
8449 *** bug-libtool@gnu.org
8450
8451 _LT_EOF
8452           fi ;;
8453         esac
8454       fi
8455       break
8456     fi
8457   done
8458   IFS=$lt_save_ifs
8459   MAGIC_CMD=$lt_save_MAGIC_CMD
8460   ;;
8461 esac
8462 fi
8463
8464 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8465 if test -n "$MAGIC_CMD"; then
8466   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8467 $as_echo "$MAGIC_CMD" >&6; }
8468 else
8469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8470 $as_echo "no" >&6; }
8471 fi
8472
8473
8474   else
8475     MAGIC_CMD=:
8476   fi
8477 fi
8478
8479   fi
8480   ;;
8481 esac
8482
8483 # Use C for the default configuration in the libtool script
8484
8485 lt_save_CC=$CC
8486 ac_ext=c
8487 ac_cpp='$CPP $CPPFLAGS'
8488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8491
8492
8493 # Source file extension for C test sources.
8494 ac_ext=c
8495
8496 # Object file extension for compiled C test sources.
8497 objext=o
8498 objext=$objext
8499
8500 # Code to be used in simple compile tests
8501 lt_simple_compile_test_code="int some_variable = 0;"
8502
8503 # Code to be used in simple link tests
8504 lt_simple_link_test_code='int main(){return(0);}'
8505
8506
8507
8508
8509
8510
8511
8512 # If no C compiler was specified, use CC.
8513 LTCC=${LTCC-"$CC"}
8514
8515 # If no C compiler flags were specified, use CFLAGS.
8516 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8517
8518 # Allow CC to be a program name with arguments.
8519 compiler=$CC
8520
8521 # Save the default compiler, since it gets overwritten when the other
8522 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8523 compiler_DEFAULT=$CC
8524
8525 # save warnings/boilerplate of simple test code
8526 ac_outfile=conftest.$ac_objext
8527 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8528 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8529 _lt_compiler_boilerplate=`cat conftest.err`
8530 $RM conftest*
8531
8532 ac_outfile=conftest.$ac_objext
8533 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8534 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8535 _lt_linker_boilerplate=`cat conftest.err`
8536 $RM -r conftest*
8537
8538
8539 ## CAVEAT EMPTOR:
8540 ## There is no encapsulation within the following macros, do not change
8541 ## the running order or otherwise move them around unless you know exactly
8542 ## what you are doing...
8543 if test -n "$compiler"; then
8544
8545 lt_prog_compiler_no_builtin_flag=
8546
8547 if test yes = "$GCC"; then
8548   case $cc_basename in
8549   nvcc*)
8550     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8551   *)
8552     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8553   esac
8554
8555   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8556 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8557 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8558   $as_echo_n "(cached) " >&6
8559 else
8560   lt_cv_prog_compiler_rtti_exceptions=no
8561    ac_outfile=conftest.$ac_objext
8562    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8563    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8564    # Insert the option either (1) after the last *FLAGS variable, or
8565    # (2) before a word containing "conftest.", or (3) at the end.
8566    # Note that $ac_compile itself does not contain backslashes and begins
8567    # with a dollar sign (not a hyphen), so the echo should work correctly.
8568    # The option is referenced via a variable to avoid confusing sed.
8569    lt_compile=`echo "$ac_compile" | $SED \
8570    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8571    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8572    -e 's:$: $lt_compiler_flag:'`
8573    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8574    (eval "$lt_compile" 2>conftest.err)
8575    ac_status=$?
8576    cat conftest.err >&5
8577    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8578    if (exit $ac_status) && test -s "$ac_outfile"; then
8579      # The compiler can only warn and ignore the option if not recognized
8580      # So say no if there are warnings other than the usual output.
8581      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8582      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8583      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8584        lt_cv_prog_compiler_rtti_exceptions=yes
8585      fi
8586    fi
8587    $RM conftest*
8588
8589 fi
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8591 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8592
8593 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8594     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8595 else
8596     :
8597 fi
8598
8599 fi
8600
8601
8602
8603
8604
8605
8606   lt_prog_compiler_wl=
8607 lt_prog_compiler_pic=
8608 lt_prog_compiler_static=
8609
8610
8611   if test yes = "$GCC"; then
8612     lt_prog_compiler_wl='-Wl,'
8613     lt_prog_compiler_static='-static'
8614
8615     case $host_os in
8616       aix*)
8617       # All AIX code is PIC.
8618       if test ia64 = "$host_cpu"; then
8619         # AIX 5 now supports IA64 processor
8620         lt_prog_compiler_static='-Bstatic'
8621       fi
8622       lt_prog_compiler_pic='-fPIC'
8623       ;;
8624
8625     amigaos*)
8626       case $host_cpu in
8627       powerpc)
8628             # see comment about AmigaOS4 .so support
8629             lt_prog_compiler_pic='-fPIC'
8630         ;;
8631       m68k)
8632             # FIXME: we need at least 68020 code to build shared libraries, but
8633             # adding the '-m68020' flag to GCC prevents building anything better,
8634             # like '-m68040'.
8635             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8636         ;;
8637       esac
8638       ;;
8639
8640     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8641       # PIC is the default for these OSes.
8642       ;;
8643
8644     mingw* | cygwin* | pw32* | os2* | cegcc*)
8645       # This hack is so that the source file can tell whether it is being
8646       # built for inclusion in a dll (and should export symbols for example).
8647       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8648       # (--disable-auto-import) libraries
8649       lt_prog_compiler_pic='-DDLL_EXPORT'
8650       case $host_os in
8651       os2*)
8652         lt_prog_compiler_static='$wl-static'
8653         ;;
8654       esac
8655       ;;
8656
8657     darwin* | rhapsody*)
8658       # PIC is the default on this platform
8659       # Common symbols not allowed in MH_DYLIB files
8660       lt_prog_compiler_pic='-fno-common'
8661       ;;
8662
8663     haiku*)
8664       # PIC is the default for Haiku.
8665       # The "-static" flag exists, but is broken.
8666       lt_prog_compiler_static=
8667       ;;
8668
8669     hpux*)
8670       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8671       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8672       # sets the default TLS model and affects inlining.
8673       case $host_cpu in
8674       hppa*64*)
8675         # +Z the default
8676         ;;
8677       *)
8678         lt_prog_compiler_pic='-fPIC'
8679         ;;
8680       esac
8681       ;;
8682
8683     interix[3-9]*)
8684       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8685       # Instead, we relocate shared libraries at runtime.
8686       ;;
8687
8688     msdosdjgpp*)
8689       # Just because we use GCC doesn't mean we suddenly get shared libraries
8690       # on systems that don't support them.
8691       lt_prog_compiler_can_build_shared=no
8692       enable_shared=no
8693       ;;
8694
8695     *nto* | *qnx*)
8696       # QNX uses GNU C++, but need to define -shared option too, otherwise
8697       # it will coredump.
8698       lt_prog_compiler_pic='-fPIC -shared'
8699       ;;
8700
8701     sysv4*MP*)
8702       if test -d /usr/nec; then
8703         lt_prog_compiler_pic=-Kconform_pic
8704       fi
8705       ;;
8706
8707     *)
8708       lt_prog_compiler_pic='-fPIC'
8709       ;;
8710     esac
8711
8712     case $cc_basename in
8713     nvcc*) # Cuda Compiler Driver 2.2
8714       lt_prog_compiler_wl='-Xlinker '
8715       if test -n "$lt_prog_compiler_pic"; then
8716         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8717       fi
8718       ;;
8719     esac
8720   else
8721     # PORTME Check for flag to pass linker flags through the system compiler.
8722     case $host_os in
8723     aix*)
8724       lt_prog_compiler_wl='-Wl,'
8725       if test ia64 = "$host_cpu"; then
8726         # AIX 5 now supports IA64 processor
8727         lt_prog_compiler_static='-Bstatic'
8728       else
8729         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8730       fi
8731       ;;
8732
8733     darwin* | rhapsody*)
8734       # PIC is the default on this platform
8735       # Common symbols not allowed in MH_DYLIB files
8736       lt_prog_compiler_pic='-fno-common'
8737       case $cc_basename in
8738       nagfor*)
8739         # NAG Fortran compiler
8740         lt_prog_compiler_wl='-Wl,-Wl,,'
8741         lt_prog_compiler_pic='-PIC'
8742         lt_prog_compiler_static='-Bstatic'
8743         ;;
8744       esac
8745       ;;
8746
8747     mingw* | cygwin* | pw32* | os2* | cegcc*)
8748       # This hack is so that the source file can tell whether it is being
8749       # built for inclusion in a dll (and should export symbols for example).
8750       lt_prog_compiler_pic='-DDLL_EXPORT'
8751       case $host_os in
8752       os2*)
8753         lt_prog_compiler_static='$wl-static'
8754         ;;
8755       esac
8756       ;;
8757
8758     hpux9* | hpux10* | hpux11*)
8759       lt_prog_compiler_wl='-Wl,'
8760       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8761       # not for PA HP-UX.
8762       case $host_cpu in
8763       hppa*64*|ia64*)
8764         # +Z the default
8765         ;;
8766       *)
8767         lt_prog_compiler_pic='+Z'
8768         ;;
8769       esac
8770       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8771       lt_prog_compiler_static='$wl-a ${wl}archive'
8772       ;;
8773
8774     irix5* | irix6* | nonstopux*)
8775       lt_prog_compiler_wl='-Wl,'
8776       # PIC (with -KPIC) is the default.
8777       lt_prog_compiler_static='-non_shared'
8778       ;;
8779
8780     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8781       case $cc_basename in
8782       # old Intel for x86_64, which still supported -KPIC.
8783       ecc*)
8784         lt_prog_compiler_wl='-Wl,'
8785         lt_prog_compiler_pic='-KPIC'
8786         lt_prog_compiler_static='-static'
8787         ;;
8788       # icc used to be incompatible with GCC.
8789       # ICC 10 doesn't accept -KPIC any more.
8790       icc* | ifort*)
8791         lt_prog_compiler_wl='-Wl,'
8792         lt_prog_compiler_pic='-fPIC'
8793         lt_prog_compiler_static='-static'
8794         ;;
8795       # Lahey Fortran 8.1.
8796       lf95*)
8797         lt_prog_compiler_wl='-Wl,'
8798         lt_prog_compiler_pic='--shared'
8799         lt_prog_compiler_static='--static'
8800         ;;
8801       nagfor*)
8802         # NAG Fortran compiler
8803         lt_prog_compiler_wl='-Wl,-Wl,,'
8804         lt_prog_compiler_pic='-PIC'
8805         lt_prog_compiler_static='-Bstatic'
8806         ;;
8807       tcc*)
8808         # Fabrice Bellard et al's Tiny C Compiler
8809         lt_prog_compiler_wl='-Wl,'
8810         lt_prog_compiler_pic='-fPIC'
8811         lt_prog_compiler_static='-static'
8812         ;;
8813       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8814         # Portland Group compilers (*not* the Pentium gcc compiler,
8815         # which looks to be a dead project)
8816         lt_prog_compiler_wl='-Wl,'
8817         lt_prog_compiler_pic='-fpic'
8818         lt_prog_compiler_static='-Bstatic'
8819         ;;
8820       ccc*)
8821         lt_prog_compiler_wl='-Wl,'
8822         # All Alpha code is PIC.
8823         lt_prog_compiler_static='-non_shared'
8824         ;;
8825       xl* | bgxl* | bgf* | mpixl*)
8826         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8827         lt_prog_compiler_wl='-Wl,'
8828         lt_prog_compiler_pic='-qpic'
8829         lt_prog_compiler_static='-qstaticlink'
8830         ;;
8831       *)
8832         case `$CC -V 2>&1 | sed 5q` in
8833         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8834           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8835           lt_prog_compiler_pic='-KPIC'
8836           lt_prog_compiler_static='-Bstatic'
8837           lt_prog_compiler_wl=''
8838           ;;
8839         *Sun\ F* | *Sun*Fortran*)
8840           lt_prog_compiler_pic='-KPIC'
8841           lt_prog_compiler_static='-Bstatic'
8842           lt_prog_compiler_wl='-Qoption ld '
8843           ;;
8844         *Sun\ C*)
8845           # Sun C 5.9
8846           lt_prog_compiler_pic='-KPIC'
8847           lt_prog_compiler_static='-Bstatic'
8848           lt_prog_compiler_wl='-Wl,'
8849           ;;
8850         *Intel*\ [CF]*Compiler*)
8851           lt_prog_compiler_wl='-Wl,'
8852           lt_prog_compiler_pic='-fPIC'
8853           lt_prog_compiler_static='-static'
8854           ;;
8855         *Portland\ Group*)
8856           lt_prog_compiler_wl='-Wl,'
8857           lt_prog_compiler_pic='-fpic'
8858           lt_prog_compiler_static='-Bstatic'
8859           ;;
8860         esac
8861         ;;
8862       esac
8863       ;;
8864
8865     newsos6)
8866       lt_prog_compiler_pic='-KPIC'
8867       lt_prog_compiler_static='-Bstatic'
8868       ;;
8869
8870     *nto* | *qnx*)
8871       # QNX uses GNU C++, but need to define -shared option too, otherwise
8872       # it will coredump.
8873       lt_prog_compiler_pic='-fPIC -shared'
8874       ;;
8875
8876     osf3* | osf4* | osf5*)
8877       lt_prog_compiler_wl='-Wl,'
8878       # All OSF/1 code is PIC.
8879       lt_prog_compiler_static='-non_shared'
8880       ;;
8881
8882     rdos*)
8883       lt_prog_compiler_static='-non_shared'
8884       ;;
8885
8886     solaris*)
8887       lt_prog_compiler_pic='-KPIC'
8888       lt_prog_compiler_static='-Bstatic'
8889       case $cc_basename in
8890       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8891         lt_prog_compiler_wl='-Qoption ld ';;
8892       *)
8893         lt_prog_compiler_wl='-Wl,';;
8894       esac
8895       ;;
8896
8897     sunos4*)
8898       lt_prog_compiler_wl='-Qoption ld '
8899       lt_prog_compiler_pic='-PIC'
8900       lt_prog_compiler_static='-Bstatic'
8901       ;;
8902
8903     sysv4 | sysv4.2uw2* | sysv4.3*)
8904       lt_prog_compiler_wl='-Wl,'
8905       lt_prog_compiler_pic='-KPIC'
8906       lt_prog_compiler_static='-Bstatic'
8907       ;;
8908
8909     sysv4*MP*)
8910       if test -d /usr/nec; then
8911         lt_prog_compiler_pic='-Kconform_pic'
8912         lt_prog_compiler_static='-Bstatic'
8913       fi
8914       ;;
8915
8916     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8917       lt_prog_compiler_wl='-Wl,'
8918       lt_prog_compiler_pic='-KPIC'
8919       lt_prog_compiler_static='-Bstatic'
8920       ;;
8921
8922     unicos*)
8923       lt_prog_compiler_wl='-Wl,'
8924       lt_prog_compiler_can_build_shared=no
8925       ;;
8926
8927     uts4*)
8928       lt_prog_compiler_pic='-pic'
8929       lt_prog_compiler_static='-Bstatic'
8930       ;;
8931
8932     *)
8933       lt_prog_compiler_can_build_shared=no
8934       ;;
8935     esac
8936   fi
8937
8938 case $host_os in
8939   # For platforms that do not support PIC, -DPIC is meaningless:
8940   *djgpp*)
8941     lt_prog_compiler_pic=
8942     ;;
8943   *)
8944     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8945     ;;
8946 esac
8947
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8949 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8950 if ${lt_cv_prog_compiler_pic+:} false; then :
8951   $as_echo_n "(cached) " >&6
8952 else
8953   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8954 fi
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8956 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8957 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8958
8959 #
8960 # Check to make sure the PIC flag actually works.
8961 #
8962 if test -n "$lt_prog_compiler_pic"; then
8963   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8964 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8965 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8966   $as_echo_n "(cached) " >&6
8967 else
8968   lt_cv_prog_compiler_pic_works=no
8969    ac_outfile=conftest.$ac_objext
8970    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8971    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
8972    # Insert the option either (1) after the last *FLAGS variable, or
8973    # (2) before a word containing "conftest.", or (3) at the end.
8974    # Note that $ac_compile itself does not contain backslashes and begins
8975    # with a dollar sign (not a hyphen), so the echo should work correctly.
8976    # The option is referenced via a variable to avoid confusing sed.
8977    lt_compile=`echo "$ac_compile" | $SED \
8978    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8979    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8980    -e 's:$: $lt_compiler_flag:'`
8981    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8982    (eval "$lt_compile" 2>conftest.err)
8983    ac_status=$?
8984    cat conftest.err >&5
8985    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8986    if (exit $ac_status) && test -s "$ac_outfile"; then
8987      # The compiler can only warn and ignore the option if not recognized
8988      # So say no if there are warnings other than the usual output.
8989      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8990      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8991      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8992        lt_cv_prog_compiler_pic_works=yes
8993      fi
8994    fi
8995    $RM conftest*
8996
8997 fi
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8999 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9000
9001 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9002     case $lt_prog_compiler_pic in
9003      "" | " "*) ;;
9004      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9005      esac
9006 else
9007     lt_prog_compiler_pic=
9008      lt_prog_compiler_can_build_shared=no
9009 fi
9010
9011 fi
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023 #
9024 # Check to make sure the static flag actually works.
9025 #
9026 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9028 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9029 if ${lt_cv_prog_compiler_static_works+:} false; then :
9030   $as_echo_n "(cached) " >&6
9031 else
9032   lt_cv_prog_compiler_static_works=no
9033    save_LDFLAGS=$LDFLAGS
9034    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9035    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9036    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9037      # The linker can only warn and ignore the option if not recognized
9038      # So say no if there are warnings
9039      if test -s conftest.err; then
9040        # Append any errors to the config.log.
9041        cat conftest.err 1>&5
9042        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9043        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9044        if diff conftest.exp conftest.er2 >/dev/null; then
9045          lt_cv_prog_compiler_static_works=yes
9046        fi
9047      else
9048        lt_cv_prog_compiler_static_works=yes
9049      fi
9050    fi
9051    $RM -r conftest*
9052    LDFLAGS=$save_LDFLAGS
9053
9054 fi
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9056 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9057
9058 if test yes = "$lt_cv_prog_compiler_static_works"; then
9059     :
9060 else
9061     lt_prog_compiler_static=
9062 fi
9063
9064
9065
9066
9067
9068
9069
9070   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9071 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9072 if ${lt_cv_prog_compiler_c_o+:} false; then :
9073   $as_echo_n "(cached) " >&6
9074 else
9075   lt_cv_prog_compiler_c_o=no
9076    $RM -r conftest 2>/dev/null
9077    mkdir conftest
9078    cd conftest
9079    mkdir out
9080    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9081
9082    lt_compiler_flag="-o out/conftest2.$ac_objext"
9083    # Insert the option either (1) after the last *FLAGS variable, or
9084    # (2) before a word containing "conftest.", or (3) at the end.
9085    # Note that $ac_compile itself does not contain backslashes and begins
9086    # with a dollar sign (not a hyphen), so the echo should work correctly.
9087    lt_compile=`echo "$ac_compile" | $SED \
9088    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9089    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9090    -e 's:$: $lt_compiler_flag:'`
9091    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9092    (eval "$lt_compile" 2>out/conftest.err)
9093    ac_status=$?
9094    cat out/conftest.err >&5
9095    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9096    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9097    then
9098      # The compiler can only warn and ignore the option if not recognized
9099      # So say no if there are warnings
9100      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9101      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9102      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9103        lt_cv_prog_compiler_c_o=yes
9104      fi
9105    fi
9106    chmod u+w . 2>&5
9107    $RM conftest*
9108    # SGI C++ compiler will create directory out/ii_files/ for
9109    # template instantiation
9110    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9111    $RM out/* && rmdir out
9112    cd ..
9113    $RM -r conftest
9114    $RM conftest*
9115
9116 fi
9117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9118 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9119
9120
9121
9122
9123
9124
9125   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9126 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9127 if ${lt_cv_prog_compiler_c_o+:} false; then :
9128   $as_echo_n "(cached) " >&6
9129 else
9130   lt_cv_prog_compiler_c_o=no
9131    $RM -r conftest 2>/dev/null
9132    mkdir conftest
9133    cd conftest
9134    mkdir out
9135    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9136
9137    lt_compiler_flag="-o out/conftest2.$ac_objext"
9138    # Insert the option either (1) after the last *FLAGS variable, or
9139    # (2) before a word containing "conftest.", or (3) at the end.
9140    # Note that $ac_compile itself does not contain backslashes and begins
9141    # with a dollar sign (not a hyphen), so the echo should work correctly.
9142    lt_compile=`echo "$ac_compile" | $SED \
9143    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9144    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9145    -e 's:$: $lt_compiler_flag:'`
9146    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9147    (eval "$lt_compile" 2>out/conftest.err)
9148    ac_status=$?
9149    cat out/conftest.err >&5
9150    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9151    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9152    then
9153      # The compiler can only warn and ignore the option if not recognized
9154      # So say no if there are warnings
9155      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9156      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9157      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9158        lt_cv_prog_compiler_c_o=yes
9159      fi
9160    fi
9161    chmod u+w . 2>&5
9162    $RM conftest*
9163    # SGI C++ compiler will create directory out/ii_files/ for
9164    # template instantiation
9165    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9166    $RM out/* && rmdir out
9167    cd ..
9168    $RM -r conftest
9169    $RM conftest*
9170
9171 fi
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9173 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9174
9175
9176
9177
9178 hard_links=nottested
9179 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9180   # do not overwrite the value of need_locks provided by the user
9181   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9182 $as_echo_n "checking if we can lock with hard links... " >&6; }
9183   hard_links=yes
9184   $RM conftest*
9185   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9186   touch conftest.a
9187   ln conftest.a conftest.b 2>&5 || hard_links=no
9188   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9190 $as_echo "$hard_links" >&6; }
9191   if test no = "$hard_links"; then
9192     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9193 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9194     need_locks=warn
9195   fi
9196 else
9197   need_locks=no
9198 fi
9199
9200
9201
9202
9203
9204
9205   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9206 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9207
9208   runpath_var=
9209   allow_undefined_flag=
9210   always_export_symbols=no
9211   archive_cmds=
9212   archive_expsym_cmds=
9213   compiler_needs_object=no
9214   enable_shared_with_static_runtimes=no
9215   export_dynamic_flag_spec=
9216   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9217   hardcode_automatic=no
9218   hardcode_direct=no
9219   hardcode_direct_absolute=no
9220   hardcode_libdir_flag_spec=
9221   hardcode_libdir_separator=
9222   hardcode_minus_L=no
9223   hardcode_shlibpath_var=unsupported
9224   inherit_rpath=no
9225   link_all_deplibs=unknown
9226   module_cmds=
9227   module_expsym_cmds=
9228   old_archive_from_new_cmds=
9229   old_archive_from_expsyms_cmds=
9230   thread_safe_flag_spec=
9231   whole_archive_flag_spec=
9232   # include_expsyms should be a list of space-separated symbols to be *always*
9233   # included in the symbol list
9234   include_expsyms=
9235   # exclude_expsyms can be an extended regexp of symbols to exclude
9236   # it will be wrapped by ' (' and ')$', so one must not match beginning or
9237   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9238   # as well as any symbol that contains 'd'.
9239   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9240   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9241   # platforms (ab)use it in PIC code, but their linkers get confused if
9242   # the symbol is explicitly referenced.  Since portable code cannot
9243   # rely on this symbol name, it's probably fine to never include it in
9244   # preloaded symbol tables.
9245   # Exclude shared library initialization/finalization symbols.
9246   extract_expsyms_cmds=
9247
9248   case $host_os in
9249   cygwin* | mingw* | pw32* | cegcc*)
9250     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9251     # When not using gcc, we currently assume that we are using
9252     # Microsoft Visual C++.
9253     if test yes != "$GCC"; then
9254       with_gnu_ld=no
9255     fi
9256     ;;
9257   interix*)
9258     # we just hope/assume this is gcc and not c89 (= MSVC++)
9259     with_gnu_ld=yes
9260     ;;
9261   openbsd* | bitrig*)
9262     with_gnu_ld=no
9263     ;;
9264   linux* | k*bsd*-gnu | gnu*)
9265     link_all_deplibs=no
9266     ;;
9267   esac
9268
9269   ld_shlibs=yes
9270
9271   # On some targets, GNU ld is compatible enough with the native linker
9272   # that we're better off using the native interface for both.
9273   lt_use_gnu_ld_interface=no
9274   if test yes = "$with_gnu_ld"; then
9275     case $host_os in
9276       aix*)
9277         # The AIX port of GNU ld has always aspired to compatibility
9278         # with the native linker.  However, as the warning in the GNU ld
9279         # block says, versions before 2.19.5* couldn't really create working
9280         # shared libraries, regardless of the interface used.
9281         case `$LD -v 2>&1` in
9282           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9283           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9284           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9285           *)
9286             lt_use_gnu_ld_interface=yes
9287             ;;
9288         esac
9289         ;;
9290       *)
9291         lt_use_gnu_ld_interface=yes
9292         ;;
9293     esac
9294   fi
9295
9296   if test yes = "$lt_use_gnu_ld_interface"; then
9297     # If archive_cmds runs LD, not CC, wlarc should be empty
9298     wlarc='$wl'
9299
9300     # Set some defaults for GNU ld with shared library support. These
9301     # are reset later if shared libraries are not supported. Putting them
9302     # here allows them to be overridden if necessary.
9303     runpath_var=LD_RUN_PATH
9304     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9305     export_dynamic_flag_spec='$wl--export-dynamic'
9306     # ancient GNU ld didn't support --whole-archive et. al.
9307     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9308       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9309     else
9310       whole_archive_flag_spec=
9311     fi
9312     supports_anon_versioning=no
9313     case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9314       *GNU\ gold*) supports_anon_versioning=yes ;;
9315       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9316       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9317       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9318       *\ 2.11.*) ;; # other 2.11 versions
9319       *) supports_anon_versioning=yes ;;
9320     esac
9321
9322     # See if GNU ld supports shared libraries.
9323     case $host_os in
9324     aix[3-9]*)
9325       # On AIX/PPC, the GNU linker is very broken
9326       if test ia64 != "$host_cpu"; then
9327         ld_shlibs=no
9328         cat <<_LT_EOF 1>&2
9329
9330 *** Warning: the GNU linker, at least up to release 2.19, is reported
9331 *** to be unable to reliably create shared libraries on AIX.
9332 *** Therefore, libtool is disabling shared libraries support.  If you
9333 *** really care for shared libraries, you may want to install binutils
9334 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9335 *** You will then need to restart the configuration process.
9336
9337 _LT_EOF
9338       fi
9339       ;;
9340
9341     amigaos*)
9342       case $host_cpu in
9343       powerpc)
9344             # see comment about AmigaOS4 .so support
9345             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9346             archive_expsym_cmds=''
9347         ;;
9348       m68k)
9349             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)'
9350             hardcode_libdir_flag_spec='-L$libdir'
9351             hardcode_minus_L=yes
9352         ;;
9353       esac
9354       ;;
9355
9356     beos*)
9357       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9358         allow_undefined_flag=unsupported
9359         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9360         # support --undefined.  This deserves some investigation.  FIXME
9361         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9362       else
9363         ld_shlibs=no
9364       fi
9365       ;;
9366
9367     cygwin* | mingw* | pw32* | cegcc*)
9368       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9369       # as there is no search path for DLLs.
9370       hardcode_libdir_flag_spec='-L$libdir'
9371       export_dynamic_flag_spec='$wl--export-all-symbols'
9372       allow_undefined_flag=unsupported
9373       always_export_symbols=no
9374       enable_shared_with_static_runtimes=yes
9375       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'
9376       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9377
9378       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9379         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9380         # If the export-symbols file already is a .def file, use it as
9381         # is; otherwise, prepend EXPORTS...
9382         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9383           cp $export_symbols $output_objdir/$soname.def;
9384         else
9385           echo EXPORTS > $output_objdir/$soname.def;
9386           cat $export_symbols >> $output_objdir/$soname.def;
9387         fi~
9388         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9389       else
9390         ld_shlibs=no
9391       fi
9392       ;;
9393
9394     haiku*)
9395       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9396       link_all_deplibs=yes
9397       ;;
9398
9399     os2*)
9400       hardcode_libdir_flag_spec='-L$libdir'
9401       hardcode_minus_L=yes
9402       allow_undefined_flag=unsupported
9403       shrext_cmds=.dll
9404       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9405         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9406         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9407         $ECHO EXPORTS >> $output_objdir/$libname.def~
9408         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9409         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9410         emximp -o $lib $output_objdir/$libname.def'
9411       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9412         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9413         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9414         $ECHO EXPORTS >> $output_objdir/$libname.def~
9415         prefix_cmds="$SED"~
9416         if test EXPORTS = "`$SED 1q $export_symbols`"; then
9417           prefix_cmds="$prefix_cmds -e 1d";
9418         fi~
9419         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9420         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9421         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9422         emximp -o $lib $output_objdir/$libname.def'
9423       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9424       enable_shared_with_static_runtimes=yes
9425       ;;
9426
9427     interix[3-9]*)
9428       hardcode_direct=no
9429       hardcode_shlibpath_var=no
9430       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9431       export_dynamic_flag_spec='$wl-E'
9432       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9433       # Instead, shared libraries are loaded at an image base (0x10000000 by
9434       # default) and relocated if they conflict, which is a slow very memory
9435       # consuming and fragmenting process.  To avoid this, we pick a random,
9436       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9437       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9438       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9439       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'
9440       ;;
9441
9442     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9443       tmp_diet=no
9444       if test linux-dietlibc = "$host_os"; then
9445         case $cc_basename in
9446           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9447         esac
9448       fi
9449       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9450          && test no = "$tmp_diet"
9451       then
9452         tmp_addflag=' $pic_flag'
9453         tmp_sharedflag='-shared'
9454         case $cc_basename,$host_cpu in
9455         pgcc*)                          # Portland Group C compiler
9456           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'
9457           tmp_addflag=' $pic_flag'
9458           ;;
9459         pgf77* | pgf90* | pgf95* | pgfortran*)
9460                                         # Portland Group f77 and f90 compilers
9461           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'
9462           tmp_addflag=' $pic_flag -Mnomain' ;;
9463         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9464           tmp_addflag=' -i_dynamic' ;;
9465         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9466           tmp_addflag=' -i_dynamic -nofor_main' ;;
9467         ifc* | ifort*)                  # Intel Fortran compiler
9468           tmp_addflag=' -nofor_main' ;;
9469         lf95*)                          # Lahey Fortran 8.1
9470           whole_archive_flag_spec=
9471           tmp_sharedflag='--shared' ;;
9472         nagfor*)                        # NAGFOR 5.3
9473           tmp_sharedflag='-Wl,-shared' ;;
9474         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9475           tmp_sharedflag='-qmkshrobj'
9476           tmp_addflag= ;;
9477         nvcc*)  # Cuda Compiler Driver 2.2
9478           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'
9479           compiler_needs_object=yes
9480           ;;
9481         esac
9482         case `$CC -V 2>&1 | sed 5q` in
9483         *Sun\ C*)                       # Sun C 5.9
9484           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'
9485           compiler_needs_object=yes
9486           tmp_sharedflag='-G' ;;
9487         *Sun\ F*)                       # Sun Fortran 8.3
9488           tmp_sharedflag='-G' ;;
9489         esac
9490         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9491
9492         if test yes = "$supports_anon_versioning"; then
9493           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9494             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9495             echo "local: *; };" >> $output_objdir/$libname.ver~
9496             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9497         fi
9498
9499         case $cc_basename in
9500         tcc*)
9501           export_dynamic_flag_spec='-rdynamic'
9502           ;;
9503         xlf* | bgf* | bgxlf* | mpixlf*)
9504           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9505           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9506           hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9507           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9508           if test yes = "$supports_anon_versioning"; then
9509             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9510               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9511               echo "local: *; };" >> $output_objdir/$libname.ver~
9512               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9513           fi
9514           ;;
9515         esac
9516       else
9517         ld_shlibs=no
9518       fi
9519       ;;
9520
9521     netbsd* | netbsdelf*-gnu)
9522       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9523         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9524         wlarc=
9525       else
9526         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9527         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9528       fi
9529       ;;
9530
9531     solaris*)
9532       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9533         ld_shlibs=no
9534         cat <<_LT_EOF 1>&2
9535
9536 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9537 *** create shared libraries on Solaris systems.  Therefore, libtool
9538 *** is disabling shared libraries support.  We urge you to upgrade GNU
9539 *** binutils to release 2.9.1 or newer.  Another option is to modify
9540 *** your PATH or compiler configuration so that the native linker is
9541 *** used, and then restart.
9542
9543 _LT_EOF
9544       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9545         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9546         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9547       else
9548         ld_shlibs=no
9549       fi
9550       ;;
9551
9552     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9553       case `$LD -v 2>&1` in
9554         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9555         ld_shlibs=no
9556         cat <<_LT_EOF 1>&2
9557
9558 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9559 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9560 *** is disabling shared libraries support.  We urge you to upgrade GNU
9561 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9562 *** your PATH or compiler configuration so that the native linker is
9563 *** used, and then restart.
9564
9565 _LT_EOF
9566         ;;
9567         *)
9568           # For security reasons, it is highly recommended that you always
9569           # use absolute paths for naming shared libraries, and exclude the
9570           # DT_RUNPATH tag from executables and libraries.  But doing so
9571           # requires that you compile everything twice, which is a pain.
9572           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9573             hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9574             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9575             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9576           else
9577             ld_shlibs=no
9578           fi
9579         ;;
9580       esac
9581       ;;
9582
9583     sunos4*)
9584       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9585       wlarc=
9586       hardcode_direct=yes
9587       hardcode_shlibpath_var=no
9588       ;;
9589
9590     *)
9591       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9592         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9593         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9594       else
9595         ld_shlibs=no
9596       fi
9597       ;;
9598     esac
9599
9600     if test no = "$ld_shlibs"; then
9601       runpath_var=
9602       hardcode_libdir_flag_spec=
9603       export_dynamic_flag_spec=
9604       whole_archive_flag_spec=
9605     fi
9606   else
9607     # PORTME fill in a description of your system's linker (not GNU ld)
9608     case $host_os in
9609     aix3*)
9610       allow_undefined_flag=unsupported
9611       always_export_symbols=yes
9612       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'
9613       # Note: this linker hardcodes the directories in LIBPATH if there
9614       # are no directories specified by -L.
9615       hardcode_minus_L=yes
9616       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9617         # Neither direct hardcoding nor static linking is supported with a
9618         # broken collect2.
9619         hardcode_direct=unsupported
9620       fi
9621       ;;
9622
9623     aix[4-9]*)
9624       if test ia64 = "$host_cpu"; then
9625         # On IA64, the linker does run time linking by default, so we don't
9626         # have to do anything special.
9627         aix_use_runtimelinking=no
9628         exp_sym_flag='-Bexport'
9629         no_entry_flag=
9630       else
9631         # If we're using GNU nm, then we don't want the "-C" option.
9632         # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9633         # Without the "-l" option, or with the "-B" option, AIX nm treats
9634         # weak defined symbols like other global defined symbols, whereas
9635         # GNU nm marks them as "W".
9636         # While the 'weak' keyword is ignored in the Export File, we need
9637         # it in the Import File for the 'aix-soname' feature, so we have
9638         # to replace the "-B" option with "-P" for AIX nm.
9639         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9640           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9641         else
9642           export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9643         fi
9644         aix_use_runtimelinking=no
9645
9646         # Test if we are trying to use run time linking or normal
9647         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9648         # have runtime linking enabled, and use it for executables.
9649         # For shared libraries, we enable/disable runtime linking
9650         # depending on the kind of the shared library created -
9651         # when "with_aix_soname,aix_use_runtimelinking" is:
9652         # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9653         # "aix,yes"  lib.so          shared, rtl:yes, for executables
9654         #            lib.a           static archive
9655         # "both,no"  lib.so.V(shr.o) shared, rtl:yes
9656         #            lib.a(lib.so.V) shared, rtl:no,  for executables
9657         # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9658         #            lib.a(lib.so.V) shared, rtl:no
9659         # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9660         #            lib.a           static archive
9661         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9662           for ld_flag in $LDFLAGS; do
9663           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9664             aix_use_runtimelinking=yes
9665             break
9666           fi
9667           done
9668           if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9669             # With aix-soname=svr4, we create the lib.so.V shared archives only,
9670             # so we don't have lib.a shared libs to link our executables.
9671             # We have to force runtime linking in this case.
9672             aix_use_runtimelinking=yes
9673             LDFLAGS="$LDFLAGS -Wl,-brtl"
9674           fi
9675           ;;
9676         esac
9677
9678         exp_sym_flag='-bexport'
9679         no_entry_flag='-bnoentry'
9680       fi
9681
9682       # When large executables or shared objects are built, AIX ld can
9683       # have problems creating the table of contents.  If linking a library
9684       # or program results in "error TOC overflow" add -mminimal-toc to
9685       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9686       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9687
9688       archive_cmds=''
9689       hardcode_direct=yes
9690       hardcode_direct_absolute=yes
9691       hardcode_libdir_separator=':'
9692       link_all_deplibs=yes
9693       file_list_spec='$wl-f,'
9694       case $with_aix_soname,$aix_use_runtimelinking in
9695       aix,*) ;; # traditional, no import file
9696       svr4,* | *,yes) # use import file
9697         # The Import File defines what to hardcode.
9698         hardcode_direct=no
9699         hardcode_direct_absolute=no
9700         ;;
9701       esac
9702
9703       if test yes = "$GCC"; then
9704         case $host_os in aix4.[012]|aix4.[012].*)
9705         # We only want to do this on AIX 4.2 and lower, the check
9706         # below for broken collect2 doesn't work under 4.3+
9707           collect2name=`$CC -print-prog-name=collect2`
9708           if test -f "$collect2name" &&
9709            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9710           then
9711           # We have reworked collect2
9712           :
9713           else
9714           # We have old collect2
9715           hardcode_direct=unsupported
9716           # It fails to find uninstalled libraries when the uninstalled
9717           # path is not listed in the libpath.  Setting hardcode_minus_L
9718           # to unsupported forces relinking
9719           hardcode_minus_L=yes
9720           hardcode_libdir_flag_spec='-L$libdir'
9721           hardcode_libdir_separator=
9722           fi
9723           ;;
9724         esac
9725         shared_flag='-shared'
9726         if test yes = "$aix_use_runtimelinking"; then
9727           shared_flag="$shared_flag "'$wl-G'
9728         fi
9729         # Need to ensure runtime linking is disabled for the traditional
9730         # shared library, or the linker may eventually find shared libraries
9731         # /with/ Import File - we do not want to mix them.
9732         shared_flag_aix='-shared'
9733         shared_flag_svr4='-shared $wl-G'
9734       else
9735         # not using gcc
9736         if test ia64 = "$host_cpu"; then
9737         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9738         # chokes on -Wl,-G. The following line is correct:
9739           shared_flag='-G'
9740         else
9741           if test yes = "$aix_use_runtimelinking"; then
9742             shared_flag='$wl-G'
9743           else
9744             shared_flag='$wl-bM:SRE'
9745           fi
9746           shared_flag_aix='$wl-bM:SRE'
9747           shared_flag_svr4='$wl-G'
9748         fi
9749       fi
9750
9751       export_dynamic_flag_spec='$wl-bexpall'
9752       # It seems that -bexpall does not export symbols beginning with
9753       # underscore (_), so it is better to generate a list of symbols to export.
9754       always_export_symbols=yes
9755       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9756         # Warning - without using the other runtime loading flags (-brtl),
9757         # -berok will link without error, but may produce a broken library.
9758         allow_undefined_flag='-berok'
9759         # Determine the default libpath from the value encoded in an
9760         # empty executable.
9761         if test set = "${lt_cv_aix_libpath+set}"; then
9762   aix_libpath=$lt_cv_aix_libpath
9763 else
9764   if ${lt_cv_aix_libpath_+:} false; then :
9765   $as_echo_n "(cached) " >&6
9766 else
9767   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9768 /* end confdefs.h.  */
9769
9770 int
9771 main ()
9772 {
9773
9774   ;
9775   return 0;
9776 }
9777 _ACEOF
9778 if ac_fn_c_try_link "$LINENO"; then :
9779
9780   lt_aix_libpath_sed='
9781       /Import File Strings/,/^$/ {
9782           /^0/ {
9783               s/^0  *\([^ ]*\) *$/\1/
9784               p
9785           }
9786       }'
9787   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9788   # Check for a 64-bit object if we didn't find anything.
9789   if test -z "$lt_cv_aix_libpath_"; then
9790     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9791   fi
9792 fi
9793 rm -f core conftest.err conftest.$ac_objext \
9794     conftest$ac_exeext conftest.$ac_ext
9795   if test -z "$lt_cv_aix_libpath_"; then
9796     lt_cv_aix_libpath_=/usr/lib:/lib
9797   fi
9798
9799 fi
9800
9801   aix_libpath=$lt_cv_aix_libpath_
9802 fi
9803
9804         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9805         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9806       else
9807         if test ia64 = "$host_cpu"; then
9808           hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9809           allow_undefined_flag="-z nodefs"
9810           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"
9811         else
9812          # Determine the default libpath from the value encoded in an
9813          # empty executable.
9814          if test set = "${lt_cv_aix_libpath+set}"; then
9815   aix_libpath=$lt_cv_aix_libpath
9816 else
9817   if ${lt_cv_aix_libpath_+:} false; then :
9818   $as_echo_n "(cached) " >&6
9819 else
9820   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9821 /* end confdefs.h.  */
9822
9823 int
9824 main ()
9825 {
9826
9827   ;
9828   return 0;
9829 }
9830 _ACEOF
9831 if ac_fn_c_try_link "$LINENO"; then :
9832
9833   lt_aix_libpath_sed='
9834       /Import File Strings/,/^$/ {
9835           /^0/ {
9836               s/^0  *\([^ ]*\) *$/\1/
9837               p
9838           }
9839       }'
9840   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9841   # Check for a 64-bit object if we didn't find anything.
9842   if test -z "$lt_cv_aix_libpath_"; then
9843     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9844   fi
9845 fi
9846 rm -f core conftest.err conftest.$ac_objext \
9847     conftest$ac_exeext conftest.$ac_ext
9848   if test -z "$lt_cv_aix_libpath_"; then
9849     lt_cv_aix_libpath_=/usr/lib:/lib
9850   fi
9851
9852 fi
9853
9854   aix_libpath=$lt_cv_aix_libpath_
9855 fi
9856
9857          hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9858           # Warning - without using the other run time loading flags,
9859           # -berok will link without error, but may produce a broken library.
9860           no_undefined_flag=' $wl-bernotok'
9861           allow_undefined_flag=' $wl-berok'
9862           if test yes = "$with_gnu_ld"; then
9863             # We only use this code for GNU lds that support --whole-archive.
9864             whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9865           else
9866             # Exported symbols can be pulled into shared objects from archives
9867             whole_archive_flag_spec='$convenience'
9868           fi
9869           archive_cmds_need_lc=yes
9870           archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9871           # -brtl affects multiple linker settings, -berok does not and is overridden later
9872           compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9873           if test svr4 != "$with_aix_soname"; then
9874             # This is similar to how AIX traditionally builds its shared libraries.
9875             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9876           fi
9877           if test aix != "$with_aix_soname"; then
9878             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9879           else
9880             # used by -dlpreopen to get the symbols
9881             archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
9882           fi
9883           archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9884         fi
9885       fi
9886       ;;
9887
9888     amigaos*)
9889       case $host_cpu in
9890       powerpc)
9891             # see comment about AmigaOS4 .so support
9892             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9893             archive_expsym_cmds=''
9894         ;;
9895       m68k)
9896             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)'
9897             hardcode_libdir_flag_spec='-L$libdir'
9898             hardcode_minus_L=yes
9899         ;;
9900       esac
9901       ;;
9902
9903     bsdi[45]*)
9904       export_dynamic_flag_spec=-rdynamic
9905       ;;
9906
9907     cygwin* | mingw* | pw32* | cegcc*)
9908       # When not using gcc, we currently assume that we are using
9909       # Microsoft Visual C++.
9910       # hardcode_libdir_flag_spec is actually meaningless, as there is
9911       # no search path for DLLs.
9912       case $cc_basename in
9913       cl*)
9914         # Native MSVC
9915         hardcode_libdir_flag_spec=' '
9916         allow_undefined_flag=unsupported
9917         always_export_symbols=yes
9918         file_list_spec='@'
9919         # Tell ltmain to make .lib files, not .a files.
9920         libext=lib
9921         # Tell ltmain to make .dll files, not .so files.
9922         shrext_cmds=.dll
9923         # FIXME: Setting linknames here is a bad hack.
9924         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9925         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9926             cp "$export_symbols" "$output_objdir/$soname.def";
9927             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9928           else
9929             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9930           fi~
9931           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9932           linknames='
9933         # The linker will not automatically build a static lib if we build a DLL.
9934         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9935         enable_shared_with_static_runtimes=yes
9936         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9937         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9938         # Don't use ranlib
9939         old_postinstall_cmds='chmod 644 $oldlib'
9940         postlink_cmds='lt_outputfile="@OUTPUT@"~
9941           lt_tool_outputfile="@TOOL_OUTPUT@"~
9942           case $lt_outputfile in
9943             *.exe|*.EXE) ;;
9944             *)
9945               lt_outputfile=$lt_outputfile.exe
9946               lt_tool_outputfile=$lt_tool_outputfile.exe
9947               ;;
9948           esac~
9949           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9950             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9951             $RM "$lt_outputfile.manifest";
9952           fi'
9953         ;;
9954       *)
9955         # Assume MSVC wrapper
9956         hardcode_libdir_flag_spec=' '
9957         allow_undefined_flag=unsupported
9958         # Tell ltmain to make .lib files, not .a files.
9959         libext=lib
9960         # Tell ltmain to make .dll files, not .so files.
9961         shrext_cmds=.dll
9962         # FIXME: Setting linknames here is a bad hack.
9963         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9964         # The linker will automatically build a .lib file if we build a DLL.
9965         old_archive_from_new_cmds='true'
9966         # FIXME: Should let the user specify the lib program.
9967         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9968         enable_shared_with_static_runtimes=yes
9969         ;;
9970       esac
9971       ;;
9972
9973     darwin* | rhapsody*)
9974
9975
9976   archive_cmds_need_lc=no
9977   hardcode_direct=no
9978   hardcode_automatic=yes
9979   hardcode_shlibpath_var=unsupported
9980   if test yes = "$lt_cv_ld_force_load"; then
9981     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\"`'
9982
9983   else
9984     whole_archive_flag_spec=''
9985   fi
9986   link_all_deplibs=yes
9987   allow_undefined_flag=$_lt_dar_allow_undefined
9988   case $cc_basename in
9989      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9990      *) _lt_dar_can_shared=$GCC ;;
9991   esac
9992   if test yes = "$_lt_dar_can_shared"; then
9993     output_verbose_link_cmd=func_echo_all
9994     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9995     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9996     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"
9997     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"
9998
9999   else
10000   ld_shlibs=no
10001   fi
10002
10003       ;;
10004
10005     dgux*)
10006       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10007       hardcode_libdir_flag_spec='-L$libdir'
10008       hardcode_shlibpath_var=no
10009       ;;
10010
10011     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10012     # support.  Future versions do this automatically, but an explicit c++rt0.o
10013     # does not break anything, and helps significantly (at the cost of a little
10014     # extra space).
10015     freebsd2.2*)
10016       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10017       hardcode_libdir_flag_spec='-R$libdir'
10018       hardcode_direct=yes
10019       hardcode_shlibpath_var=no
10020       ;;
10021
10022     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10023     freebsd2.*)
10024       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10025       hardcode_direct=yes
10026       hardcode_minus_L=yes
10027       hardcode_shlibpath_var=no
10028       ;;
10029
10030     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10031     freebsd* | dragonfly*)
10032       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10033       hardcode_libdir_flag_spec='-R$libdir'
10034       hardcode_direct=yes
10035       hardcode_shlibpath_var=no
10036       ;;
10037
10038     hpux9*)
10039       if test yes = "$GCC"; then
10040         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10041       else
10042         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10043       fi
10044       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10045       hardcode_libdir_separator=:
10046       hardcode_direct=yes
10047
10048       # hardcode_minus_L: Not really in the search PATH,
10049       # but as the default location of the library.
10050       hardcode_minus_L=yes
10051       export_dynamic_flag_spec='$wl-E'
10052       ;;
10053
10054     hpux10*)
10055       if test yes,no = "$GCC,$with_gnu_ld"; then
10056         archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10057       else
10058         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10059       fi
10060       if test no = "$with_gnu_ld"; then
10061         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10062         hardcode_libdir_separator=:
10063         hardcode_direct=yes
10064         hardcode_direct_absolute=yes
10065         export_dynamic_flag_spec='$wl-E'
10066         # hardcode_minus_L: Not really in the search PATH,
10067         # but as the default location of the library.
10068         hardcode_minus_L=yes
10069       fi
10070       ;;
10071
10072     hpux11*)
10073       if test yes,no = "$GCC,$with_gnu_ld"; then
10074         case $host_cpu in
10075         hppa*64*)
10076           archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10077           ;;
10078         ia64*)
10079           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10080           ;;
10081         *)
10082           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10083           ;;
10084         esac
10085       else
10086         case $host_cpu in
10087         hppa*64*)
10088           archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10089           ;;
10090         ia64*)
10091           archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10092           ;;
10093         *)
10094
10095           # Older versions of the 11.00 compiler do not understand -b yet
10096           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10097           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10098 $as_echo_n "checking if $CC understands -b... " >&6; }
10099 if ${lt_cv_prog_compiler__b+:} false; then :
10100   $as_echo_n "(cached) " >&6
10101 else
10102   lt_cv_prog_compiler__b=no
10103    save_LDFLAGS=$LDFLAGS
10104    LDFLAGS="$LDFLAGS -b"
10105    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10106    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10107      # The linker can only warn and ignore the option if not recognized
10108      # So say no if there are warnings
10109      if test -s conftest.err; then
10110        # Append any errors to the config.log.
10111        cat conftest.err 1>&5
10112        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10113        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10114        if diff conftest.exp conftest.er2 >/dev/null; then
10115          lt_cv_prog_compiler__b=yes
10116        fi
10117      else
10118        lt_cv_prog_compiler__b=yes
10119      fi
10120    fi
10121    $RM -r conftest*
10122    LDFLAGS=$save_LDFLAGS
10123
10124 fi
10125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10126 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10127
10128 if test yes = "$lt_cv_prog_compiler__b"; then
10129     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10130 else
10131     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10132 fi
10133
10134           ;;
10135         esac
10136       fi
10137       if test no = "$with_gnu_ld"; then
10138         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10139         hardcode_libdir_separator=:
10140
10141         case $host_cpu in
10142         hppa*64*|ia64*)
10143           hardcode_direct=no
10144           hardcode_shlibpath_var=no
10145           ;;
10146         *)
10147           hardcode_direct=yes
10148           hardcode_direct_absolute=yes
10149           export_dynamic_flag_spec='$wl-E'
10150
10151           # hardcode_minus_L: Not really in the search PATH,
10152           # but as the default location of the library.
10153           hardcode_minus_L=yes
10154           ;;
10155         esac
10156       fi
10157       ;;
10158
10159     irix5* | irix6* | nonstopux*)
10160       if test yes = "$GCC"; then
10161         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'
10162         # Try to use the -exported_symbol ld option, if it does not
10163         # work, assume that -exports_file does not work either and
10164         # implicitly export all symbols.
10165         # This should be the same for all languages, so no per-tag cache variable.
10166         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10167 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10168 if ${lt_cv_irix_exported_symbol+:} false; then :
10169   $as_echo_n "(cached) " >&6
10170 else
10171   save_LDFLAGS=$LDFLAGS
10172            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10173            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10174 /* end confdefs.h.  */
10175 int foo (void) { return 0; }
10176 _ACEOF
10177 if ac_fn_c_try_link "$LINENO"; then :
10178   lt_cv_irix_exported_symbol=yes
10179 else
10180   lt_cv_irix_exported_symbol=no
10181 fi
10182 rm -f core conftest.err conftest.$ac_objext \
10183     conftest$ac_exeext conftest.$ac_ext
10184            LDFLAGS=$save_LDFLAGS
10185 fi
10186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10187 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10188         if test yes = "$lt_cv_irix_exported_symbol"; then
10189           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'
10190         fi
10191         link_all_deplibs=no
10192       else
10193         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'
10194         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'
10195       fi
10196       archive_cmds_need_lc='no'
10197       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10198       hardcode_libdir_separator=:
10199       inherit_rpath=yes
10200       link_all_deplibs=yes
10201       ;;
10202
10203     linux*)
10204       case $cc_basename in
10205       tcc*)
10206         # Fabrice Bellard et al's Tiny C Compiler
10207         ld_shlibs=yes
10208         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10209         ;;
10210       esac
10211       ;;
10212
10213     netbsd* | netbsdelf*-gnu)
10214       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10215         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10216       else
10217         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10218       fi
10219       hardcode_libdir_flag_spec='-R$libdir'
10220       hardcode_direct=yes
10221       hardcode_shlibpath_var=no
10222       ;;
10223
10224     newsos6)
10225       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10226       hardcode_direct=yes
10227       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10228       hardcode_libdir_separator=:
10229       hardcode_shlibpath_var=no
10230       ;;
10231
10232     *nto* | *qnx*)
10233       ;;
10234
10235     openbsd* | bitrig*)
10236       if test -f /usr/libexec/ld.so; then
10237         hardcode_direct=yes
10238         hardcode_shlibpath_var=no
10239         hardcode_direct_absolute=yes
10240         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10241           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10242           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10243           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10244           export_dynamic_flag_spec='$wl-E'
10245         else
10246           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10247           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10248         fi
10249       else
10250         ld_shlibs=no
10251       fi
10252       ;;
10253
10254     os2*)
10255       hardcode_libdir_flag_spec='-L$libdir'
10256       hardcode_minus_L=yes
10257       allow_undefined_flag=unsupported
10258       shrext_cmds=.dll
10259       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10260         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10261         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10262         $ECHO EXPORTS >> $output_objdir/$libname.def~
10263         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10264         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10265         emximp -o $lib $output_objdir/$libname.def'
10266       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10267         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10268         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10269         $ECHO EXPORTS >> $output_objdir/$libname.def~
10270         prefix_cmds="$SED"~
10271         if test EXPORTS = "`$SED 1q $export_symbols`"; then
10272           prefix_cmds="$prefix_cmds -e 1d";
10273         fi~
10274         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10275         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10276         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10277         emximp -o $lib $output_objdir/$libname.def'
10278       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10279       enable_shared_with_static_runtimes=yes
10280       ;;
10281
10282     osf3*)
10283       if test yes = "$GCC"; then
10284         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10285         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'
10286       else
10287         allow_undefined_flag=' -expect_unresolved \*'
10288         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'
10289       fi
10290       archive_cmds_need_lc='no'
10291       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10292       hardcode_libdir_separator=:
10293       ;;
10294
10295     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10296       if test yes = "$GCC"; then
10297         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10298         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'
10299         hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10300       else
10301         allow_undefined_flag=' -expect_unresolved \*'
10302         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'
10303         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~
10304           $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'
10305
10306         # Both c and cxx compiler support -rpath directly
10307         hardcode_libdir_flag_spec='-rpath $libdir'
10308       fi
10309       archive_cmds_need_lc='no'
10310       hardcode_libdir_separator=:
10311       ;;
10312
10313     solaris*)
10314       no_undefined_flag=' -z defs'
10315       if test yes = "$GCC"; then
10316         wlarc='$wl'
10317         archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10318         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10319           $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'
10320       else
10321         case `$CC -V 2>&1` in
10322         *"Compilers 5.0"*)
10323           wlarc=''
10324           archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10325           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10326             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10327           ;;
10328         *)
10329           wlarc='$wl'
10330           archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10331           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10332             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10333           ;;
10334         esac
10335       fi
10336       hardcode_libdir_flag_spec='-R$libdir'
10337       hardcode_shlibpath_var=no
10338       case $host_os in
10339       solaris2.[0-5] | solaris2.[0-5].*) ;;
10340       *)
10341         # The compiler driver will combine and reorder linker options,
10342         # but understands '-z linker_flag'.  GCC discards it without '$wl',
10343         # but is careful enough not to reorder.
10344         # Supported since Solaris 2.6 (maybe 2.5.1?)
10345         if test yes = "$GCC"; then
10346           whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10347         else
10348           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10349         fi
10350         ;;
10351       esac
10352       link_all_deplibs=yes
10353       ;;
10354
10355     sunos4*)
10356       if test sequent = "$host_vendor"; then
10357         # Use $CC to link under sequent, because it throws in some extra .o
10358         # files that make .init and .fini sections work.
10359         archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10360       else
10361         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10362       fi
10363       hardcode_libdir_flag_spec='-L$libdir'
10364       hardcode_direct=yes
10365       hardcode_minus_L=yes
10366       hardcode_shlibpath_var=no
10367       ;;
10368
10369     sysv4)
10370       case $host_vendor in
10371         sni)
10372           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10373           hardcode_direct=yes # is this really true???
10374         ;;
10375         siemens)
10376           ## LD is ld it makes a PLAMLIB
10377           ## CC just makes a GrossModule.
10378           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10379           reload_cmds='$CC -r -o $output$reload_objs'
10380           hardcode_direct=no
10381         ;;
10382         motorola)
10383           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10384           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10385         ;;
10386       esac
10387       runpath_var='LD_RUN_PATH'
10388       hardcode_shlibpath_var=no
10389       ;;
10390
10391     sysv4.3*)
10392       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10393       hardcode_shlibpath_var=no
10394       export_dynamic_flag_spec='-Bexport'
10395       ;;
10396
10397     sysv4*MP*)
10398       if test -d /usr/nec; then
10399         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10400         hardcode_shlibpath_var=no
10401         runpath_var=LD_RUN_PATH
10402         hardcode_runpath_var=yes
10403         ld_shlibs=yes
10404       fi
10405       ;;
10406
10407     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10408       no_undefined_flag='$wl-z,text'
10409       archive_cmds_need_lc=no
10410       hardcode_shlibpath_var=no
10411       runpath_var='LD_RUN_PATH'
10412
10413       if test yes = "$GCC"; then
10414         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10415         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10416       else
10417         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10418         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10419       fi
10420       ;;
10421
10422     sysv5* | sco3.2v5* | sco5v6*)
10423       # Note: We CANNOT use -z defs as we might desire, because we do not
10424       # link with -lc, and that would cause any symbols used from libc to
10425       # always be unresolved, which means just about no library would
10426       # ever link correctly.  If we're not using GNU ld we use -z text
10427       # though, which does catch some bad symbols but isn't as heavy-handed
10428       # as -z defs.
10429       no_undefined_flag='$wl-z,text'
10430       allow_undefined_flag='$wl-z,nodefs'
10431       archive_cmds_need_lc=no
10432       hardcode_shlibpath_var=no
10433       hardcode_libdir_flag_spec='$wl-R,$libdir'
10434       hardcode_libdir_separator=':'
10435       link_all_deplibs=yes
10436       export_dynamic_flag_spec='$wl-Bexport'
10437       runpath_var='LD_RUN_PATH'
10438
10439       if test yes = "$GCC"; then
10440         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10441         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10442       else
10443         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10444         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10445       fi
10446       ;;
10447
10448     uts4*)
10449       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10450       hardcode_libdir_flag_spec='-L$libdir'
10451       hardcode_shlibpath_var=no
10452       ;;
10453
10454     *)
10455       ld_shlibs=no
10456       ;;
10457     esac
10458
10459     if test sni = "$host_vendor"; then
10460       case $host in
10461       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10462         export_dynamic_flag_spec='$wl-Blargedynsym'
10463         ;;
10464       esac
10465     fi
10466   fi
10467
10468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10469 $as_echo "$ld_shlibs" >&6; }
10470 test no = "$ld_shlibs" && can_build_shared=no
10471
10472 with_gnu_ld=$with_gnu_ld
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488 #
10489 # Do we need to explicitly link libc?
10490 #
10491 case "x$archive_cmds_need_lc" in
10492 x|xyes)
10493   # Assume -lc should be added
10494   archive_cmds_need_lc=yes
10495
10496   if test yes,yes = "$GCC,$enable_shared"; then
10497     case $archive_cmds in
10498     *'~'*)
10499       # FIXME: we may have to deal with multi-command sequences.
10500       ;;
10501     '$CC '*)
10502       # Test whether the compiler implicitly links with -lc since on some
10503       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10504       # to ld, don't add -lc before -lgcc.
10505       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10506 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10507 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10508   $as_echo_n "(cached) " >&6
10509 else
10510   $RM conftest*
10511         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10512
10513         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10514   (eval $ac_compile) 2>&5
10515   ac_status=$?
10516   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10517   test $ac_status = 0; } 2>conftest.err; then
10518           soname=conftest
10519           lib=conftest
10520           libobjs=conftest.$ac_objext
10521           deplibs=
10522           wl=$lt_prog_compiler_wl
10523           pic_flag=$lt_prog_compiler_pic
10524           compiler_flags=-v
10525           linker_flags=-v
10526           verstring=
10527           output_objdir=.
10528           libname=conftest
10529           lt_save_allow_undefined_flag=$allow_undefined_flag
10530           allow_undefined_flag=
10531           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10532   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10533   ac_status=$?
10534   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10535   test $ac_status = 0; }
10536           then
10537             lt_cv_archive_cmds_need_lc=no
10538           else
10539             lt_cv_archive_cmds_need_lc=yes
10540           fi
10541           allow_undefined_flag=$lt_save_allow_undefined_flag
10542         else
10543           cat conftest.err 1>&5
10544         fi
10545         $RM conftest*
10546
10547 fi
10548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10549 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10550       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10551       ;;
10552     esac
10553   fi
10554   ;;
10555 esac
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10709 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10710
10711 if test yes = "$GCC"; then
10712   case $host_os in
10713     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10714     *) lt_awk_arg='/^libraries:/' ;;
10715   esac
10716   case $host_os in
10717     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10718     *) lt_sed_strip_eq='s|=/|/|g' ;;
10719   esac
10720   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10721   case $lt_search_path_spec in
10722   *\;*)
10723     # if the path contains ";" then we assume it to be the separator
10724     # otherwise default to the standard path separator (i.e. ":") - it is
10725     # assumed that no part of a normal pathname contains ";" but that should
10726     # okay in the real world where ";" in dirpaths is itself problematic.
10727     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10728     ;;
10729   *)
10730     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10731     ;;
10732   esac
10733   # Ok, now we have the path, separated by spaces, we can step through it
10734   # and add multilib dir if necessary...
10735   lt_tmp_lt_search_path_spec=
10736   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10737   # ...but if some path component already ends with the multilib dir we assume
10738   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10739   case "$lt_multi_os_dir; $lt_search_path_spec " in
10740   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10741     lt_multi_os_dir=
10742     ;;
10743   esac
10744   for lt_sys_path in $lt_search_path_spec; do
10745     if test -d "$lt_sys_path$lt_multi_os_dir"; then
10746       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10747     elif test -n "$lt_multi_os_dir"; then
10748       test -d "$lt_sys_path" && \
10749         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10750     fi
10751   done
10752   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10753 BEGIN {RS = " "; FS = "/|\n";} {
10754   lt_foo = "";
10755   lt_count = 0;
10756   for (lt_i = NF; lt_i > 0; lt_i--) {
10757     if ($lt_i != "" && $lt_i != ".") {
10758       if ($lt_i == "..") {
10759         lt_count++;
10760       } else {
10761         if (lt_count == 0) {
10762           lt_foo = "/" $lt_i lt_foo;
10763         } else {
10764           lt_count--;
10765         }
10766       }
10767     }
10768   }
10769   if (lt_foo != "") { lt_freq[lt_foo]++; }
10770   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10771 }'`
10772   # AWK program above erroneously prepends '/' to C:/dos/paths
10773   # for these hosts.
10774   case $host_os in
10775     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10776       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10777   esac
10778   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10779 else
10780   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10781 fi
10782 library_names_spec=
10783 libname_spec='lib$name'
10784 soname_spec=
10785 shrext_cmds=.so
10786 postinstall_cmds=
10787 postuninstall_cmds=
10788 finish_cmds=
10789 finish_eval=
10790 shlibpath_var=
10791 shlibpath_overrides_runpath=unknown
10792 version_type=none
10793 dynamic_linker="$host_os ld.so"
10794 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10795 need_lib_prefix=unknown
10796 hardcode_into_libs=no
10797
10798 # when you set need_version to no, make sure it does not cause -set_version
10799 # flags to be left without arguments
10800 need_version=unknown
10801
10802
10803
10804 case $host_os in
10805 aix3*)
10806   version_type=linux # correct to gnu/linux during the next big refactor
10807   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10808   shlibpath_var=LIBPATH
10809
10810   # AIX 3 has no versioning support, so we append a major version to the name.
10811   soname_spec='$libname$release$shared_ext$major'
10812   ;;
10813
10814 aix[4-9]*)
10815   version_type=linux # correct to gnu/linux during the next big refactor
10816   need_lib_prefix=no
10817   need_version=no
10818   hardcode_into_libs=yes
10819   if test ia64 = "$host_cpu"; then
10820     # AIX 5 supports IA64
10821     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10822     shlibpath_var=LD_LIBRARY_PATH
10823   else
10824     # With GCC up to 2.95.x, collect2 would create an import file
10825     # for dependence libraries.  The import file would start with
10826     # the line '#! .'.  This would cause the generated library to
10827     # depend on '.', always an invalid library.  This was fixed in
10828     # development snapshots of GCC prior to 3.0.
10829     case $host_os in
10830       aix4 | aix4.[01] | aix4.[01].*)
10831       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10832            echo ' yes '
10833            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10834         :
10835       else
10836         can_build_shared=no
10837       fi
10838       ;;
10839     esac
10840     # Using Import Files as archive members, it is possible to support
10841     # filename-based versioning of shared library archives on AIX. While
10842     # this would work for both with and without runtime linking, it will
10843     # prevent static linking of such archives. So we do filename-based
10844     # shared library versioning with .so extension only, which is used
10845     # when both runtime linking and shared linking is enabled.
10846     # Unfortunately, runtime linking may impact performance, so we do
10847     # not want this to be the default eventually. Also, we use the
10848     # versioned .so libs for executables only if there is the -brtl
10849     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10850     # To allow for filename-based versioning support, we need to create
10851     # libNAME.so.V as an archive file, containing:
10852     # *) an Import File, referring to the versioned filename of the
10853     #    archive as well as the shared archive member, telling the
10854     #    bitwidth (32 or 64) of that shared object, and providing the
10855     #    list of exported symbols of that shared object, eventually
10856     #    decorated with the 'weak' keyword
10857     # *) the shared object with the F_LOADONLY flag set, to really avoid
10858     #    it being seen by the linker.
10859     # At run time we better use the real file rather than another symlink,
10860     # but for link time we create the symlink libNAME.so -> libNAME.so.V
10861
10862     case $with_aix_soname,$aix_use_runtimelinking in
10863     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10864     # soname into executable. Probably we can add versioning support to
10865     # collect2, so additional links can be useful in future.
10866     aix,yes) # traditional libtool
10867       dynamic_linker='AIX unversionable lib.so'
10868       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10869       # instead of lib<name>.a to let people know that these are not
10870       # typical AIX shared libraries.
10871       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10872       ;;
10873     aix,no) # traditional AIX only
10874       dynamic_linker='AIX lib.a(lib.so.V)'
10875       # We preserve .a as extension for shared libraries through AIX4.2
10876       # and later when we are not doing run time linking.
10877       library_names_spec='$libname$release.a $libname.a'
10878       soname_spec='$libname$release$shared_ext$major'
10879       ;;
10880     svr4,*) # full svr4 only
10881       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10882       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10883       # We do not specify a path in Import Files, so LIBPATH fires.
10884       shlibpath_overrides_runpath=yes
10885       ;;
10886     *,yes) # both, prefer svr4
10887       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10888       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10889       # unpreferred sharedlib libNAME.a needs extra handling
10890       postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10891       postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10892       # We do not specify a path in Import Files, so LIBPATH fires.
10893       shlibpath_overrides_runpath=yes
10894       ;;
10895     *,no) # both, prefer aix
10896       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10897       library_names_spec='$libname$release.a $libname.a'
10898       soname_spec='$libname$release$shared_ext$major'
10899       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10900       postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10901       postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10902       ;;
10903     esac
10904     shlibpath_var=LIBPATH
10905   fi
10906   ;;
10907
10908 amigaos*)
10909   case $host_cpu in
10910   powerpc)
10911     # Since July 2007 AmigaOS4 officially supports .so libraries.
10912     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10913     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10914     ;;
10915   m68k)
10916     library_names_spec='$libname.ixlibrary $libname.a'
10917     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10918     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10919     ;;
10920   esac
10921   ;;
10922
10923 beos*)
10924   library_names_spec='$libname$shared_ext'
10925   dynamic_linker="$host_os ld.so"
10926   shlibpath_var=LIBRARY_PATH
10927   ;;
10928
10929 bsdi[45]*)
10930   version_type=linux # correct to gnu/linux during the next big refactor
10931   need_version=no
10932   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10933   soname_spec='$libname$release$shared_ext$major'
10934   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10935   shlibpath_var=LD_LIBRARY_PATH
10936   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10937   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10938   # the default ld.so.conf also contains /usr/contrib/lib and
10939   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10940   # libtool to hard-code these into programs
10941   ;;
10942
10943 cygwin* | mingw* | pw32* | cegcc*)
10944   version_type=windows
10945   shrext_cmds=.dll
10946   need_version=no
10947   need_lib_prefix=no
10948
10949   case $GCC,$cc_basename in
10950   yes,*)
10951     # gcc
10952     library_names_spec='$libname.dll.a'
10953     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10954     postinstall_cmds='base_file=`basename \$file`~
10955       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10956       dldir=$destdir/`dirname \$dlpath`~
10957       test -d \$dldir || mkdir -p \$dldir~
10958       $install_prog $dir/$dlname \$dldir/$dlname~
10959       chmod a+x \$dldir/$dlname~
10960       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10961         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10962       fi'
10963     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10964       dlpath=$dir/\$dldll~
10965        $RM \$dlpath'
10966     shlibpath_overrides_runpath=yes
10967
10968     case $host_os in
10969     cygwin*)
10970       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10971       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10972
10973       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10974       ;;
10975     mingw* | cegcc*)
10976       # MinGW DLLs use traditional 'lib' prefix
10977       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10978       ;;
10979     pw32*)
10980       # pw32 DLLs use 'pw' prefix rather than 'lib'
10981       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10982       ;;
10983     esac
10984     dynamic_linker='Win32 ld.exe'
10985     ;;
10986
10987   *,cl*)
10988     # Native MSVC
10989     libname_spec='$name'
10990     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10991     library_names_spec='$libname.dll.lib'
10992
10993     case $build_os in
10994     mingw*)
10995       sys_lib_search_path_spec=
10996       lt_save_ifs=$IFS
10997       IFS=';'
10998       for lt_path in $LIB
10999       do
11000         IFS=$lt_save_ifs
11001         # Let DOS variable expansion print the short 8.3 style file name.
11002         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11003         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11004       done
11005       IFS=$lt_save_ifs
11006       # Convert to MSYS style.
11007       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11008       ;;
11009     cygwin*)
11010       # Convert to unix form, then to dos form, then back to unix form
11011       # but this time dos style (no spaces!) so that the unix form looks
11012       # like /cygdrive/c/PROGRA~1:/cygdr...
11013       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11014       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11015       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11016       ;;
11017     *)
11018       sys_lib_search_path_spec=$LIB
11019       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11020         # It is most probably a Windows format PATH.
11021         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11022       else
11023         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11024       fi
11025       # FIXME: find the short name or the path components, as spaces are
11026       # common. (e.g. "Program Files" -> "PROGRA~1")
11027       ;;
11028     esac
11029
11030     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11031     postinstall_cmds='base_file=`basename \$file`~
11032       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11033       dldir=$destdir/`dirname \$dlpath`~
11034       test -d \$dldir || mkdir -p \$dldir~
11035       $install_prog $dir/$dlname \$dldir/$dlname'
11036     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11037       dlpath=$dir/\$dldll~
11038        $RM \$dlpath'
11039     shlibpath_overrides_runpath=yes
11040     dynamic_linker='Win32 link.exe'
11041     ;;
11042
11043   *)
11044     # Assume MSVC wrapper
11045     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11046     dynamic_linker='Win32 ld.exe'
11047     ;;
11048   esac
11049   # FIXME: first we should search . and the directory the executable is in
11050   shlibpath_var=PATH
11051   ;;
11052
11053 darwin* | rhapsody*)
11054   dynamic_linker="$host_os dyld"
11055   version_type=darwin
11056   need_lib_prefix=no
11057   need_version=no
11058   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11059   soname_spec='$libname$release$major$shared_ext'
11060   shlibpath_overrides_runpath=yes
11061   shlibpath_var=DYLD_LIBRARY_PATH
11062   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11063
11064   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11065   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11066   ;;
11067
11068 dgux*)
11069   version_type=linux # correct to gnu/linux during the next big refactor
11070   need_lib_prefix=no
11071   need_version=no
11072   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11073   soname_spec='$libname$release$shared_ext$major'
11074   shlibpath_var=LD_LIBRARY_PATH
11075   ;;
11076
11077 freebsd* | dragonfly*)
11078   # DragonFly does not have aout.  When/if they implement a new
11079   # versioning mechanism, adjust this.
11080   if test -x /usr/bin/objformat; then
11081     objformat=`/usr/bin/objformat`
11082   else
11083     case $host_os in
11084     freebsd[23].*) objformat=aout ;;
11085     *) objformat=elf ;;
11086     esac
11087   fi
11088   version_type=freebsd-$objformat
11089   case $version_type in
11090     freebsd-elf*)
11091       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11092       soname_spec='$libname$release$shared_ext$major'
11093       need_version=no
11094       need_lib_prefix=no
11095       ;;
11096     freebsd-*)
11097       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11098       need_version=yes
11099       ;;
11100   esac
11101   shlibpath_var=LD_LIBRARY_PATH
11102   case $host_os in
11103   freebsd2.*)
11104     shlibpath_overrides_runpath=yes
11105     ;;
11106   freebsd3.[01]* | freebsdelf3.[01]*)
11107     shlibpath_overrides_runpath=yes
11108     hardcode_into_libs=yes
11109     ;;
11110   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11111   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11112     shlibpath_overrides_runpath=no
11113     hardcode_into_libs=yes
11114     ;;
11115   *) # from 4.6 on, and DragonFly
11116     shlibpath_overrides_runpath=yes
11117     hardcode_into_libs=yes
11118     ;;
11119   esac
11120   ;;
11121
11122 haiku*)
11123   version_type=linux # correct to gnu/linux during the next big refactor
11124   need_lib_prefix=no
11125   need_version=no
11126   dynamic_linker="$host_os runtime_loader"
11127   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11128   soname_spec='$libname$release$shared_ext$major'
11129   shlibpath_var=LIBRARY_PATH
11130   shlibpath_overrides_runpath=no
11131   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11132   hardcode_into_libs=yes
11133   ;;
11134
11135 hpux9* | hpux10* | hpux11*)
11136   # Give a soname corresponding to the major version so that dld.sl refuses to
11137   # link against other versions.
11138   version_type=sunos
11139   need_lib_prefix=no
11140   need_version=no
11141   case $host_cpu in
11142   ia64*)
11143     shrext_cmds='.so'
11144     hardcode_into_libs=yes
11145     dynamic_linker="$host_os dld.so"
11146     shlibpath_var=LD_LIBRARY_PATH
11147     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11148     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11149     soname_spec='$libname$release$shared_ext$major'
11150     if test 32 = "$HPUX_IA64_MODE"; then
11151       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11152       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11153     else
11154       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11155       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11156     fi
11157     ;;
11158   hppa*64*)
11159     shrext_cmds='.sl'
11160     hardcode_into_libs=yes
11161     dynamic_linker="$host_os dld.sl"
11162     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11163     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11164     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11165     soname_spec='$libname$release$shared_ext$major'
11166     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11167     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11168     ;;
11169   *)
11170     shrext_cmds='.sl'
11171     dynamic_linker="$host_os dld.sl"
11172     shlibpath_var=SHLIB_PATH
11173     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11174     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11175     soname_spec='$libname$release$shared_ext$major'
11176     ;;
11177   esac
11178   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11179   postinstall_cmds='chmod 555 $lib'
11180   # or fails outright, so override atomically:
11181   install_override_mode=555
11182   ;;
11183
11184 interix[3-9]*)
11185   version_type=linux # correct to gnu/linux during the next big refactor
11186   need_lib_prefix=no
11187   need_version=no
11188   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11189   soname_spec='$libname$release$shared_ext$major'
11190   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11191   shlibpath_var=LD_LIBRARY_PATH
11192   shlibpath_overrides_runpath=no
11193   hardcode_into_libs=yes
11194   ;;
11195
11196 irix5* | irix6* | nonstopux*)
11197   case $host_os in
11198     nonstopux*) version_type=nonstopux ;;
11199     *)
11200         if test yes = "$lt_cv_prog_gnu_ld"; then
11201                 version_type=linux # correct to gnu/linux during the next big refactor
11202         else
11203                 version_type=irix
11204         fi ;;
11205   esac
11206   need_lib_prefix=no
11207   need_version=no
11208   soname_spec='$libname$release$shared_ext$major'
11209   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11210   case $host_os in
11211   irix5* | nonstopux*)
11212     libsuff= shlibsuff=
11213     ;;
11214   *)
11215     case $LD in # libtool.m4 will add one of these switches to LD
11216     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11217       libsuff= shlibsuff= libmagic=32-bit;;
11218     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11219       libsuff=32 shlibsuff=N32 libmagic=N32;;
11220     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11221       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11222     *) libsuff= shlibsuff= libmagic=never-match;;
11223     esac
11224     ;;
11225   esac
11226   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11227   shlibpath_overrides_runpath=no
11228   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11229   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11230   hardcode_into_libs=yes
11231   ;;
11232
11233 # No shared lib support for Linux oldld, aout, or coff.
11234 linux*oldld* | linux*aout* | linux*coff*)
11235   dynamic_linker=no
11236   ;;
11237
11238 linux*android*)
11239   version_type=none # Android doesn't support versioned libraries.
11240   need_lib_prefix=no
11241   need_version=no
11242   library_names_spec='$libname$release$shared_ext'
11243   soname_spec='$libname$release$shared_ext'
11244   finish_cmds=
11245   shlibpath_var=LD_LIBRARY_PATH
11246   shlibpath_overrides_runpath=yes
11247
11248   # This implies no fast_install, which is unacceptable.
11249   # Some rework will be needed to allow for fast_install
11250   # before this can be enabled.
11251   hardcode_into_libs=yes
11252
11253   dynamic_linker='Android linker'
11254   # Don't embed -rpath directories since the linker doesn't support them.
11255   hardcode_libdir_flag_spec='-L$libdir'
11256   ;;
11257
11258 # This must be glibc/ELF.
11259 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11260   version_type=linux # correct to gnu/linux during the next big refactor
11261   need_lib_prefix=no
11262   need_version=no
11263   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11264   soname_spec='$libname$release$shared_ext$major'
11265   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11266   shlibpath_var=LD_LIBRARY_PATH
11267   shlibpath_overrides_runpath=no
11268
11269   # Some binutils ld are patched to set DT_RUNPATH
11270   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11271   $as_echo_n "(cached) " >&6
11272 else
11273   lt_cv_shlibpath_overrides_runpath=no
11274     save_LDFLAGS=$LDFLAGS
11275     save_libdir=$libdir
11276     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11277          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11278     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11279 /* end confdefs.h.  */
11280
11281 int
11282 main ()
11283 {
11284
11285   ;
11286   return 0;
11287 }
11288 _ACEOF
11289 if ac_fn_c_try_link "$LINENO"; then :
11290   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11291   lt_cv_shlibpath_overrides_runpath=yes
11292 fi
11293 fi
11294 rm -f core conftest.err conftest.$ac_objext \
11295     conftest$ac_exeext conftest.$ac_ext
11296     LDFLAGS=$save_LDFLAGS
11297     libdir=$save_libdir
11298
11299 fi
11300
11301   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11302
11303   # This implies no fast_install, which is unacceptable.
11304   # Some rework will be needed to allow for fast_install
11305   # before this can be enabled.
11306   hardcode_into_libs=yes
11307
11308   # Ideally, we could use ldconfig to report *all* directores which are
11309   # searched for libraries, however this is still not possible.  Aside from not
11310   # being certain /sbin/ldconfig is available, command
11311   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11312   # even though it is searched at run-time.  Try to do the best guess by
11313   # appending ld.so.conf contents (and includes) to the search path.
11314   if test -f /etc/ld.so.conf; then
11315     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' ' '`
11316     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11317   fi
11318
11319   # We used to test for /lib/ld.so.1 and disable shared libraries on
11320   # powerpc, because MkLinux only supported shared libraries with the
11321   # GNU dynamic linker.  Since this was broken with cross compilers,
11322   # most powerpc-linux boxes support dynamic linking these days and
11323   # people can always --disable-shared, the test was removed, and we
11324   # assume the GNU/Linux dynamic linker is in use.
11325   dynamic_linker='GNU/Linux ld.so'
11326   ;;
11327
11328 netbsdelf*-gnu)
11329   version_type=linux
11330   need_lib_prefix=no
11331   need_version=no
11332   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11333   soname_spec='${libname}${release}${shared_ext}$major'
11334   shlibpath_var=LD_LIBRARY_PATH
11335   shlibpath_overrides_runpath=no
11336   hardcode_into_libs=yes
11337   dynamic_linker='NetBSD ld.elf_so'
11338   ;;
11339
11340 netbsd*)
11341   version_type=sunos
11342   need_lib_prefix=no
11343   need_version=no
11344   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11345     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11346     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11347     dynamic_linker='NetBSD (a.out) ld.so'
11348   else
11349     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11350     soname_spec='$libname$release$shared_ext$major'
11351     dynamic_linker='NetBSD ld.elf_so'
11352   fi
11353   shlibpath_var=LD_LIBRARY_PATH
11354   shlibpath_overrides_runpath=yes
11355   hardcode_into_libs=yes
11356   ;;
11357
11358 newsos6)
11359   version_type=linux # correct to gnu/linux during the next big refactor
11360   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11361   shlibpath_var=LD_LIBRARY_PATH
11362   shlibpath_overrides_runpath=yes
11363   ;;
11364
11365 *nto* | *qnx*)
11366   version_type=qnx
11367   need_lib_prefix=no
11368   need_version=no
11369   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11370   soname_spec='$libname$release$shared_ext$major'
11371   shlibpath_var=LD_LIBRARY_PATH
11372   shlibpath_overrides_runpath=no
11373   hardcode_into_libs=yes
11374   dynamic_linker='ldqnx.so'
11375   ;;
11376
11377 openbsd* | bitrig*)
11378   version_type=sunos
11379   sys_lib_dlsearch_path_spec=/usr/lib
11380   need_lib_prefix=no
11381   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11382     need_version=no
11383   else
11384     need_version=yes
11385   fi
11386   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11387   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11388   shlibpath_var=LD_LIBRARY_PATH
11389   shlibpath_overrides_runpath=yes
11390   ;;
11391
11392 os2*)
11393   libname_spec='$name'
11394   version_type=windows
11395   shrext_cmds=.dll
11396   need_version=no
11397   need_lib_prefix=no
11398   # OS/2 can only load a DLL with a base name of 8 characters or less.
11399   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11400     v=$($ECHO $release$versuffix | tr -d .-);
11401     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11402     $ECHO $n$v`$shared_ext'
11403   library_names_spec='${libname}_dll.$libext'
11404   dynamic_linker='OS/2 ld.exe'
11405   shlibpath_var=BEGINLIBPATH
11406   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11407   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11408   postinstall_cmds='base_file=`basename \$file`~
11409     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11410     dldir=$destdir/`dirname \$dlpath`~
11411     test -d \$dldir || mkdir -p \$dldir~
11412     $install_prog $dir/$dlname \$dldir/$dlname~
11413     chmod a+x \$dldir/$dlname~
11414     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11415       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11416     fi'
11417   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11418     dlpath=$dir/\$dldll~
11419     $RM \$dlpath'
11420   ;;
11421
11422 osf3* | osf4* | osf5*)
11423   version_type=osf
11424   need_lib_prefix=no
11425   need_version=no
11426   soname_spec='$libname$release$shared_ext$major'
11427   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11428   shlibpath_var=LD_LIBRARY_PATH
11429   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11430   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11431   ;;
11432
11433 rdos*)
11434   dynamic_linker=no
11435   ;;
11436
11437 solaris*)
11438   version_type=linux # correct to gnu/linux during the next big refactor
11439   need_lib_prefix=no
11440   need_version=no
11441   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11442   soname_spec='$libname$release$shared_ext$major'
11443   shlibpath_var=LD_LIBRARY_PATH
11444   shlibpath_overrides_runpath=yes
11445   hardcode_into_libs=yes
11446   # ldd complains unless libraries are executable
11447   postinstall_cmds='chmod +x $lib'
11448   ;;
11449
11450 sunos4*)
11451   version_type=sunos
11452   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11453   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11454   shlibpath_var=LD_LIBRARY_PATH
11455   shlibpath_overrides_runpath=yes
11456   if test yes = "$with_gnu_ld"; then
11457     need_lib_prefix=no
11458   fi
11459   need_version=yes
11460   ;;
11461
11462 sysv4 | sysv4.3*)
11463   version_type=linux # correct to gnu/linux during the next big refactor
11464   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11465   soname_spec='$libname$release$shared_ext$major'
11466   shlibpath_var=LD_LIBRARY_PATH
11467   case $host_vendor in
11468     sni)
11469       shlibpath_overrides_runpath=no
11470       need_lib_prefix=no
11471       runpath_var=LD_RUN_PATH
11472       ;;
11473     siemens)
11474       need_lib_prefix=no
11475       ;;
11476     motorola)
11477       need_lib_prefix=no
11478       need_version=no
11479       shlibpath_overrides_runpath=no
11480       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11481       ;;
11482   esac
11483   ;;
11484
11485 sysv4*MP*)
11486   if test -d /usr/nec; then
11487     version_type=linux # correct to gnu/linux during the next big refactor
11488     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11489     soname_spec='$libname$shared_ext.$major'
11490     shlibpath_var=LD_LIBRARY_PATH
11491   fi
11492   ;;
11493
11494 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11495   version_type=sco
11496   need_lib_prefix=no
11497   need_version=no
11498   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11499   soname_spec='$libname$release$shared_ext$major'
11500   shlibpath_var=LD_LIBRARY_PATH
11501   shlibpath_overrides_runpath=yes
11502   hardcode_into_libs=yes
11503   if test yes = "$with_gnu_ld"; then
11504     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11505   else
11506     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11507     case $host_os in
11508       sco3.2v5*)
11509         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11510         ;;
11511     esac
11512   fi
11513   sys_lib_dlsearch_path_spec='/usr/lib'
11514   ;;
11515
11516 tpf*)
11517   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11518   version_type=linux # correct to gnu/linux during the next big refactor
11519   need_lib_prefix=no
11520   need_version=no
11521   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11522   shlibpath_var=LD_LIBRARY_PATH
11523   shlibpath_overrides_runpath=no
11524   hardcode_into_libs=yes
11525   ;;
11526
11527 uts4*)
11528   version_type=linux # correct to gnu/linux during the next big refactor
11529   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11530   soname_spec='$libname$release$shared_ext$major'
11531   shlibpath_var=LD_LIBRARY_PATH
11532   ;;
11533
11534 *)
11535   dynamic_linker=no
11536   ;;
11537 esac
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11539 $as_echo "$dynamic_linker" >&6; }
11540 test no = "$dynamic_linker" && can_build_shared=no
11541
11542 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11543 if test yes = "$GCC"; then
11544   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11545 fi
11546
11547 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11548   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11549 fi
11550
11551 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11552   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11553 fi
11554
11555 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11556 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11557
11558 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11559 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11560
11561 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11562 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11661 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11662 hardcode_action=
11663 if test -n "$hardcode_libdir_flag_spec" ||
11664    test -n "$runpath_var" ||
11665    test yes = "$hardcode_automatic"; then
11666
11667   # We can hardcode non-existent directories.
11668   if test no != "$hardcode_direct" &&
11669      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11670      # have to relink, otherwise we might link with an installed library
11671      # when we should be linking with a yet-to-be-installed one
11672      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11673      test no != "$hardcode_minus_L"; then
11674     # Linking always hardcodes the temporary library directory.
11675     hardcode_action=relink
11676   else
11677     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11678     hardcode_action=immediate
11679   fi
11680 else
11681   # We cannot hardcode anything, or else we can only hardcode existing
11682   # directories.
11683   hardcode_action=unsupported
11684 fi
11685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11686 $as_echo "$hardcode_action" >&6; }
11687
11688 if test relink = "$hardcode_action" ||
11689    test yes = "$inherit_rpath"; then
11690   # Fast installation is not supported
11691   enable_fast_install=no
11692 elif test yes = "$shlibpath_overrides_runpath" ||
11693      test no = "$enable_shared"; then
11694   # Fast installation is not necessary
11695   enable_fast_install=needless
11696 fi
11697
11698
11699
11700
11701
11702
11703   if test yes != "$enable_dlopen"; then
11704   enable_dlopen=unknown
11705   enable_dlopen_self=unknown
11706   enable_dlopen_self_static=unknown
11707 else
11708   lt_cv_dlopen=no
11709   lt_cv_dlopen_libs=
11710
11711   case $host_os in
11712   beos*)
11713     lt_cv_dlopen=load_add_on
11714     lt_cv_dlopen_libs=
11715     lt_cv_dlopen_self=yes
11716     ;;
11717
11718   mingw* | pw32* | cegcc*)
11719     lt_cv_dlopen=LoadLibrary
11720     lt_cv_dlopen_libs=
11721     ;;
11722
11723   cygwin*)
11724     lt_cv_dlopen=dlopen
11725     lt_cv_dlopen_libs=
11726     ;;
11727
11728   darwin*)
11729     # if libdl is installed we need to link against it
11730     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11731 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11732 if ${ac_cv_lib_dl_dlopen+:} false; then :
11733   $as_echo_n "(cached) " >&6
11734 else
11735   ac_check_lib_save_LIBS=$LIBS
11736 LIBS="-ldl  $LIBS"
11737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11738 /* end confdefs.h.  */
11739
11740 /* Override any GCC internal prototype to avoid an error.
11741    Use char because int might match the return type of a GCC
11742    builtin and then its argument prototype would still apply.  */
11743 #ifdef __cplusplus
11744 extern "C"
11745 #endif
11746 char dlopen ();
11747 int
11748 main ()
11749 {
11750 return dlopen ();
11751   ;
11752   return 0;
11753 }
11754 _ACEOF
11755 if ac_fn_c_try_link "$LINENO"; then :
11756   ac_cv_lib_dl_dlopen=yes
11757 else
11758   ac_cv_lib_dl_dlopen=no
11759 fi
11760 rm -f core conftest.err conftest.$ac_objext \
11761     conftest$ac_exeext conftest.$ac_ext
11762 LIBS=$ac_check_lib_save_LIBS
11763 fi
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11765 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11766 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11767   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11768 else
11769
11770     lt_cv_dlopen=dyld
11771     lt_cv_dlopen_libs=
11772     lt_cv_dlopen_self=yes
11773
11774 fi
11775
11776     ;;
11777
11778   tpf*)
11779     # Don't try to run any link tests for TPF.  We know it's impossible
11780     # because TPF is a cross-compiler, and we know how we open DSOs.
11781     lt_cv_dlopen=dlopen
11782     lt_cv_dlopen_libs=
11783     lt_cv_dlopen_self=no
11784     ;;
11785
11786   *)
11787     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11788 if test "x$ac_cv_func_shl_load" = xyes; then :
11789   lt_cv_dlopen=shl_load
11790 else
11791   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11792 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11793 if ${ac_cv_lib_dld_shl_load+:} false; then :
11794   $as_echo_n "(cached) " >&6
11795 else
11796   ac_check_lib_save_LIBS=$LIBS
11797 LIBS="-ldld  $LIBS"
11798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11799 /* end confdefs.h.  */
11800
11801 /* Override any GCC internal prototype to avoid an error.
11802    Use char because int might match the return type of a GCC
11803    builtin and then its argument prototype would still apply.  */
11804 #ifdef __cplusplus
11805 extern "C"
11806 #endif
11807 char shl_load ();
11808 int
11809 main ()
11810 {
11811 return shl_load ();
11812   ;
11813   return 0;
11814 }
11815 _ACEOF
11816 if ac_fn_c_try_link "$LINENO"; then :
11817   ac_cv_lib_dld_shl_load=yes
11818 else
11819   ac_cv_lib_dld_shl_load=no
11820 fi
11821 rm -f core conftest.err conftest.$ac_objext \
11822     conftest$ac_exeext conftest.$ac_ext
11823 LIBS=$ac_check_lib_save_LIBS
11824 fi
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11826 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11827 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11828   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11829 else
11830   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11831 if test "x$ac_cv_func_dlopen" = xyes; then :
11832   lt_cv_dlopen=dlopen
11833 else
11834   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11835 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11836 if ${ac_cv_lib_dl_dlopen+:} false; then :
11837   $as_echo_n "(cached) " >&6
11838 else
11839   ac_check_lib_save_LIBS=$LIBS
11840 LIBS="-ldl  $LIBS"
11841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11842 /* end confdefs.h.  */
11843
11844 /* Override any GCC internal prototype to avoid an error.
11845    Use char because int might match the return type of a GCC
11846    builtin and then its argument prototype would still apply.  */
11847 #ifdef __cplusplus
11848 extern "C"
11849 #endif
11850 char dlopen ();
11851 int
11852 main ()
11853 {
11854 return dlopen ();
11855   ;
11856   return 0;
11857 }
11858 _ACEOF
11859 if ac_fn_c_try_link "$LINENO"; then :
11860   ac_cv_lib_dl_dlopen=yes
11861 else
11862   ac_cv_lib_dl_dlopen=no
11863 fi
11864 rm -f core conftest.err conftest.$ac_objext \
11865     conftest$ac_exeext conftest.$ac_ext
11866 LIBS=$ac_check_lib_save_LIBS
11867 fi
11868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11869 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11870 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11871   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11872 else
11873   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11874 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11875 if ${ac_cv_lib_svld_dlopen+:} false; then :
11876   $as_echo_n "(cached) " >&6
11877 else
11878   ac_check_lib_save_LIBS=$LIBS
11879 LIBS="-lsvld  $LIBS"
11880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11881 /* end confdefs.h.  */
11882
11883 /* Override any GCC internal prototype to avoid an error.
11884    Use char because int might match the return type of a GCC
11885    builtin and then its argument prototype would still apply.  */
11886 #ifdef __cplusplus
11887 extern "C"
11888 #endif
11889 char dlopen ();
11890 int
11891 main ()
11892 {
11893 return dlopen ();
11894   ;
11895   return 0;
11896 }
11897 _ACEOF
11898 if ac_fn_c_try_link "$LINENO"; then :
11899   ac_cv_lib_svld_dlopen=yes
11900 else
11901   ac_cv_lib_svld_dlopen=no
11902 fi
11903 rm -f core conftest.err conftest.$ac_objext \
11904     conftest$ac_exeext conftest.$ac_ext
11905 LIBS=$ac_check_lib_save_LIBS
11906 fi
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11908 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11909 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11910   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11911 else
11912   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11913 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11914 if ${ac_cv_lib_dld_dld_link+:} false; then :
11915   $as_echo_n "(cached) " >&6
11916 else
11917   ac_check_lib_save_LIBS=$LIBS
11918 LIBS="-ldld  $LIBS"
11919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11920 /* end confdefs.h.  */
11921
11922 /* Override any GCC internal prototype to avoid an error.
11923    Use char because int might match the return type of a GCC
11924    builtin and then its argument prototype would still apply.  */
11925 #ifdef __cplusplus
11926 extern "C"
11927 #endif
11928 char dld_link ();
11929 int
11930 main ()
11931 {
11932 return dld_link ();
11933   ;
11934   return 0;
11935 }
11936 _ACEOF
11937 if ac_fn_c_try_link "$LINENO"; then :
11938   ac_cv_lib_dld_dld_link=yes
11939 else
11940   ac_cv_lib_dld_dld_link=no
11941 fi
11942 rm -f core conftest.err conftest.$ac_objext \
11943     conftest$ac_exeext conftest.$ac_ext
11944 LIBS=$ac_check_lib_save_LIBS
11945 fi
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11947 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11948 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11949   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11950 fi
11951
11952
11953 fi
11954
11955
11956 fi
11957
11958
11959 fi
11960
11961
11962 fi
11963
11964
11965 fi
11966
11967     ;;
11968   esac
11969
11970   if test no = "$lt_cv_dlopen"; then
11971     enable_dlopen=no
11972   else
11973     enable_dlopen=yes
11974   fi
11975
11976   case $lt_cv_dlopen in
11977   dlopen)
11978     save_CPPFLAGS=$CPPFLAGS
11979     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11980
11981     save_LDFLAGS=$LDFLAGS
11982     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11983
11984     save_LIBS=$LIBS
11985     LIBS="$lt_cv_dlopen_libs $LIBS"
11986
11987     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11988 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11989 if ${lt_cv_dlopen_self+:} false; then :
11990   $as_echo_n "(cached) " >&6
11991 else
11992           if test yes = "$cross_compiling"; then :
11993   lt_cv_dlopen_self=cross
11994 else
11995   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11996   lt_status=$lt_dlunknown
11997   cat > conftest.$ac_ext <<_LT_EOF
11998 #line $LINENO "configure"
11999 #include "confdefs.h"
12000
12001 #if HAVE_DLFCN_H
12002 #include <dlfcn.h>
12003 #endif
12004
12005 #include <stdio.h>
12006
12007 #ifdef RTLD_GLOBAL
12008 #  define LT_DLGLOBAL           RTLD_GLOBAL
12009 #else
12010 #  ifdef DL_GLOBAL
12011 #    define LT_DLGLOBAL         DL_GLOBAL
12012 #  else
12013 #    define LT_DLGLOBAL         0
12014 #  endif
12015 #endif
12016
12017 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12018    find out it does not work in some platform. */
12019 #ifndef LT_DLLAZY_OR_NOW
12020 #  ifdef RTLD_LAZY
12021 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12022 #  else
12023 #    ifdef DL_LAZY
12024 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12025 #    else
12026 #      ifdef RTLD_NOW
12027 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12028 #      else
12029 #        ifdef DL_NOW
12030 #          define LT_DLLAZY_OR_NOW      DL_NOW
12031 #        else
12032 #          define LT_DLLAZY_OR_NOW      0
12033 #        endif
12034 #      endif
12035 #    endif
12036 #  endif
12037 #endif
12038
12039 /* When -fvisibility=hidden is used, assume the code has been annotated
12040    correspondingly for the symbols needed.  */
12041 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12042 int fnord () __attribute__((visibility("default")));
12043 #endif
12044
12045 int fnord () { return 42; }
12046 int main ()
12047 {
12048   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12049   int status = $lt_dlunknown;
12050
12051   if (self)
12052     {
12053       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12054       else
12055         {
12056           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12057           else puts (dlerror ());
12058         }
12059       /* dlclose (self); */
12060     }
12061   else
12062     puts (dlerror ());
12063
12064   return status;
12065 }
12066 _LT_EOF
12067   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12068   (eval $ac_link) 2>&5
12069   ac_status=$?
12070   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12071   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12072     (./conftest; exit; ) >&5 2>/dev/null
12073     lt_status=$?
12074     case x$lt_status in
12075       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12076       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12077       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12078     esac
12079   else :
12080     # compilation failed
12081     lt_cv_dlopen_self=no
12082   fi
12083 fi
12084 rm -fr conftest*
12085
12086
12087 fi
12088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12089 $as_echo "$lt_cv_dlopen_self" >&6; }
12090
12091     if test yes = "$lt_cv_dlopen_self"; then
12092       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12093       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12094 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12095 if ${lt_cv_dlopen_self_static+:} false; then :
12096   $as_echo_n "(cached) " >&6
12097 else
12098           if test yes = "$cross_compiling"; then :
12099   lt_cv_dlopen_self_static=cross
12100 else
12101   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12102   lt_status=$lt_dlunknown
12103   cat > conftest.$ac_ext <<_LT_EOF
12104 #line $LINENO "configure"
12105 #include "confdefs.h"
12106
12107 #if HAVE_DLFCN_H
12108 #include <dlfcn.h>
12109 #endif
12110
12111 #include <stdio.h>
12112
12113 #ifdef RTLD_GLOBAL
12114 #  define LT_DLGLOBAL           RTLD_GLOBAL
12115 #else
12116 #  ifdef DL_GLOBAL
12117 #    define LT_DLGLOBAL         DL_GLOBAL
12118 #  else
12119 #    define LT_DLGLOBAL         0
12120 #  endif
12121 #endif
12122
12123 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12124    find out it does not work in some platform. */
12125 #ifndef LT_DLLAZY_OR_NOW
12126 #  ifdef RTLD_LAZY
12127 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12128 #  else
12129 #    ifdef DL_LAZY
12130 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12131 #    else
12132 #      ifdef RTLD_NOW
12133 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12134 #      else
12135 #        ifdef DL_NOW
12136 #          define LT_DLLAZY_OR_NOW      DL_NOW
12137 #        else
12138 #          define LT_DLLAZY_OR_NOW      0
12139 #        endif
12140 #      endif
12141 #    endif
12142 #  endif
12143 #endif
12144
12145 /* When -fvisibility=hidden is used, assume the code has been annotated
12146    correspondingly for the symbols needed.  */
12147 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12148 int fnord () __attribute__((visibility("default")));
12149 #endif
12150
12151 int fnord () { return 42; }
12152 int main ()
12153 {
12154   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12155   int status = $lt_dlunknown;
12156
12157   if (self)
12158     {
12159       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12160       else
12161         {
12162           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12163           else puts (dlerror ());
12164         }
12165       /* dlclose (self); */
12166     }
12167   else
12168     puts (dlerror ());
12169
12170   return status;
12171 }
12172 _LT_EOF
12173   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12174   (eval $ac_link) 2>&5
12175   ac_status=$?
12176   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12177   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12178     (./conftest; exit; ) >&5 2>/dev/null
12179     lt_status=$?
12180     case x$lt_status in
12181       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12182       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12183       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12184     esac
12185   else :
12186     # compilation failed
12187     lt_cv_dlopen_self_static=no
12188   fi
12189 fi
12190 rm -fr conftest*
12191
12192
12193 fi
12194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12195 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12196     fi
12197
12198     CPPFLAGS=$save_CPPFLAGS
12199     LDFLAGS=$save_LDFLAGS
12200     LIBS=$save_LIBS
12201     ;;
12202   esac
12203
12204   case $lt_cv_dlopen_self in
12205   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12206   *) enable_dlopen_self=unknown ;;
12207   esac
12208
12209   case $lt_cv_dlopen_self_static in
12210   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12211   *) enable_dlopen_self_static=unknown ;;
12212   esac
12213 fi
12214
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231 striplib=
12232 old_striplib=
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12234 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12235 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12236   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12237   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12239 $as_echo "yes" >&6; }
12240 else
12241 # FIXME - insert some real tests, host_os isn't really good enough
12242   case $host_os in
12243   darwin*)
12244     if test -n "$STRIP"; then
12245       striplib="$STRIP -x"
12246       old_striplib="$STRIP -S"
12247       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12248 $as_echo "yes" >&6; }
12249     else
12250       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12251 $as_echo "no" >&6; }
12252     fi
12253     ;;
12254   *)
12255     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12256 $as_echo "no" >&6; }
12257     ;;
12258   esac
12259 fi
12260
12261
12262
12263
12264
12265
12266
12267
12268
12269
12270
12271
12272   # Report what library types will actually be built
12273   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12274 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12276 $as_echo "$can_build_shared" >&6; }
12277
12278   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12279 $as_echo_n "checking whether to build shared libraries... " >&6; }
12280   test no = "$can_build_shared" && enable_shared=no
12281
12282   # On AIX, shared libraries and static libraries use the same namespace, and
12283   # are all built from PIC.
12284   case $host_os in
12285   aix3*)
12286     test yes = "$enable_shared" && enable_static=no
12287     if test -n "$RANLIB"; then
12288       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12289       postinstall_cmds='$RANLIB $lib'
12290     fi
12291     ;;
12292
12293   aix[4-9]*)
12294     if test ia64 != "$host_cpu"; then
12295       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12296       yes,aix,yes) ;;                   # shared object as lib.so file only
12297       yes,svr4,*) ;;                    # shared object as lib.so archive member only
12298       yes,*) enable_static=no ;;        # shared object in lib.a archive as well
12299       esac
12300     fi
12301     ;;
12302   esac
12303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12304 $as_echo "$enable_shared" >&6; }
12305
12306   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12307 $as_echo_n "checking whether to build static libraries... " >&6; }
12308   # Make sure either enable_shared or enable_static is yes.
12309   test yes = "$enable_shared" || enable_static=yes
12310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12311 $as_echo "$enable_static" >&6; }
12312
12313
12314
12315
12316 fi
12317 ac_ext=c
12318 ac_cpp='$CPP $CPPFLAGS'
12319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12322
12323 CC=$lt_save_CC
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339         ac_config_commands="$ac_config_commands libtool"
12340
12341
12342
12343
12344 # Only expand once:
12345
12346
12347
12348
12349
12350
12351
12352
12353
12354
12355
12356 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12357         if test -n "$ac_tool_prefix"; then
12358   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12359 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12361 $as_echo_n "checking for $ac_word... " >&6; }
12362 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12363   $as_echo_n "(cached) " >&6
12364 else
12365   case $PKG_CONFIG in
12366   [\\/]* | ?:[\\/]*)
12367   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12368   ;;
12369   *)
12370   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12371 for as_dir in $PATH
12372 do
12373   IFS=$as_save_IFS
12374   test -z "$as_dir" && as_dir=.
12375     for ac_exec_ext in '' $ac_executable_extensions; do
12376   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12377     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12378     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12379     break 2
12380   fi
12381 done
12382   done
12383 IFS=$as_save_IFS
12384
12385   ;;
12386 esac
12387 fi
12388 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12389 if test -n "$PKG_CONFIG"; then
12390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12391 $as_echo "$PKG_CONFIG" >&6; }
12392 else
12393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12394 $as_echo "no" >&6; }
12395 fi
12396
12397
12398 fi
12399 if test -z "$ac_cv_path_PKG_CONFIG"; then
12400   ac_pt_PKG_CONFIG=$PKG_CONFIG
12401   # Extract the first word of "pkg-config", so it can be a program name with args.
12402 set dummy pkg-config; ac_word=$2
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12404 $as_echo_n "checking for $ac_word... " >&6; }
12405 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12406   $as_echo_n "(cached) " >&6
12407 else
12408   case $ac_pt_PKG_CONFIG in
12409   [\\/]* | ?:[\\/]*)
12410   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12411   ;;
12412   *)
12413   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12414 for as_dir in $PATH
12415 do
12416   IFS=$as_save_IFS
12417   test -z "$as_dir" && as_dir=.
12418     for ac_exec_ext in '' $ac_executable_extensions; do
12419   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12420     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12421     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12422     break 2
12423   fi
12424 done
12425   done
12426 IFS=$as_save_IFS
12427
12428   ;;
12429 esac
12430 fi
12431 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12432 if test -n "$ac_pt_PKG_CONFIG"; then
12433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12434 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12435 else
12436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12437 $as_echo "no" >&6; }
12438 fi
12439
12440   if test "x$ac_pt_PKG_CONFIG" = x; then
12441     PKG_CONFIG=""
12442   else
12443     case $cross_compiling:$ac_tool_warned in
12444 yes:)
12445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12446 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12447 ac_tool_warned=yes ;;
12448 esac
12449     PKG_CONFIG=$ac_pt_PKG_CONFIG
12450   fi
12451 else
12452   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12453 fi
12454
12455 fi
12456 if test -n "$PKG_CONFIG"; then
12457         _pkg_min_version=0.9.0
12458         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12459 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12460         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12461                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12462 $as_echo "yes" >&6; }
12463         else
12464                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12465 $as_echo "no" >&6; }
12466                 PKG_CONFIG=""
12467         fi
12468 fi
12469
12470 pkg_failed=no
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBRTLSDR" >&5
12472 $as_echo_n "checking for LIBRTLSDR... " >&6; }
12473
12474 if test -n "$LIBRTLSDR_CFLAGS"; then
12475     pkg_cv_LIBRTLSDR_CFLAGS="$LIBRTLSDR_CFLAGS"
12476  elif test -n "$PKG_CONFIG"; then
12477     if test -n "$PKG_CONFIG" && \
12478     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librtlsdr\""; } >&5
12479   ($PKG_CONFIG --exists --print-errors "librtlsdr") 2>&5
12480   ac_status=$?
12481   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12482   test $ac_status = 0; }; then
12483   pkg_cv_LIBRTLSDR_CFLAGS=`$PKG_CONFIG --cflags "librtlsdr" 2>/dev/null`
12484                       test "x$?" != "x0" && pkg_failed=yes
12485 else
12486   pkg_failed=yes
12487 fi
12488  else
12489     pkg_failed=untried
12490 fi
12491 if test -n "$LIBRTLSDR_LIBS"; then
12492     pkg_cv_LIBRTLSDR_LIBS="$LIBRTLSDR_LIBS"
12493  elif test -n "$PKG_CONFIG"; then
12494     if test -n "$PKG_CONFIG" && \
12495     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librtlsdr\""; } >&5
12496   ($PKG_CONFIG --exists --print-errors "librtlsdr") 2>&5
12497   ac_status=$?
12498   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12499   test $ac_status = 0; }; then
12500   pkg_cv_LIBRTLSDR_LIBS=`$PKG_CONFIG --libs "librtlsdr" 2>/dev/null`
12501                       test "x$?" != "x0" && pkg_failed=yes
12502 else
12503   pkg_failed=yes
12504 fi
12505  else
12506     pkg_failed=untried
12507 fi
12508
12509
12510
12511 if test $pkg_failed = yes; then
12512         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12513 $as_echo "no" >&6; }
12514
12515 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12516         _pkg_short_errors_supported=yes
12517 else
12518         _pkg_short_errors_supported=no
12519 fi
12520         if test $_pkg_short_errors_supported = yes; then
12521                 LIBRTLSDR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "librtlsdr" 2>&1`
12522         else
12523                 LIBRTLSDR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "librtlsdr" 2>&1`
12524         fi
12525         # Put the nasty error message in config.log where it belongs
12526         echo "$LIBRTLSDR_PKG_ERRORS" >&5
12527
12528         as_fn_error $? "Package requirements (librtlsdr) were not met:
12529
12530 $LIBRTLSDR_PKG_ERRORS
12531
12532 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12533 installed software in a non-standard prefix.
12534
12535 Alternatively, you may set the environment variables LIBRTLSDR_CFLAGS
12536 and LIBRTLSDR_LIBS to avoid the need to call pkg-config.
12537 See the pkg-config man page for more details." "$LINENO" 5
12538 elif test $pkg_failed = untried; then
12539         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12540 $as_echo "no" >&6; }
12541         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12542 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12543 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
12544 is in your PATH or set the PKG_CONFIG environment variable to the full
12545 path to pkg-config.
12546
12547 Alternatively, you may set the environment variables LIBRTLSDR_CFLAGS
12548 and LIBRTLSDR_LIBS to avoid the need to call pkg-config.
12549 See the pkg-config man page for more details.
12550
12551 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12552 See \`config.log' for more details" "$LINENO" 5; }
12553 else
12554         LIBRTLSDR_CFLAGS=$pkg_cv_LIBRTLSDR_CFLAGS
12555         LIBRTLSDR_LIBS=$pkg_cv_LIBRTLSDR_LIBS
12556         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12557 $as_echo "yes" >&6; }
12558
12559 fi
12560 LIBS="$LIBS $LIBRTLSDR_LIBS"
12561 CFLAGS="$CFLAGS $LIBRTLSDR_CFLAGS"
12562
12563 # Extract the first word of "doxygen", so it can be a program name with args.
12564 set dummy doxygen; ac_word=$2
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12566 $as_echo_n "checking for $ac_word... " >&6; }
12567 if ${ac_cv_path_DOXYGEN+:} false; then :
12568   $as_echo_n "(cached) " >&6
12569 else
12570   case $DOXYGEN in
12571   [\\/]* | ?:[\\/]*)
12572   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
12573   ;;
12574   *)
12575   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12576 for as_dir in $PATH
12577 do
12578   IFS=$as_save_IFS
12579   test -z "$as_dir" && as_dir=.
12580     for ac_exec_ext in '' $ac_executable_extensions; do
12581   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12582     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
12583     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12584     break 2
12585   fi
12586 done
12587   done
12588 IFS=$as_save_IFS
12589
12590   test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="false"
12591   ;;
12592 esac
12593 fi
12594 DOXYGEN=$ac_cv_path_DOXYGEN
12595 if test -n "$DOXYGEN"; then
12596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
12597 $as_echo "$DOXYGEN" >&6; }
12598 else
12599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12600 $as_echo "no" >&6; }
12601 fi
12602
12603
12604  if test $DOXYGEN != false; then
12605   HAVE_DOXYGEN_TRUE=
12606   HAVE_DOXYGEN_FALSE='#'
12607 else
12608   HAVE_DOXYGEN_TRUE='#'
12609   HAVE_DOXYGEN_FALSE=
12610 fi
12611
12612
12613
12614
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12616 $as_echo_n "checking for ANSI C header files... " >&6; }
12617 if ${ac_cv_header_stdc+:} false; then :
12618   $as_echo_n "(cached) " >&6
12619 else
12620   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12621 /* end confdefs.h.  */
12622 #include <stdlib.h>
12623 #include <stdarg.h>
12624 #include <string.h>
12625 #include <float.h>
12626
12627 int
12628 main ()
12629 {
12630
12631   ;
12632   return 0;
12633 }
12634 _ACEOF
12635 if ac_fn_c_try_compile "$LINENO"; then :
12636   ac_cv_header_stdc=yes
12637 else
12638   ac_cv_header_stdc=no
12639 fi
12640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12641
12642 if test $ac_cv_header_stdc = yes; then
12643   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12644   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12645 /* end confdefs.h.  */
12646 #include <string.h>
12647
12648 _ACEOF
12649 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12650   $EGREP "memchr" >/dev/null 2>&1; then :
12651
12652 else
12653   ac_cv_header_stdc=no
12654 fi
12655 rm -f conftest*
12656
12657 fi
12658
12659 if test $ac_cv_header_stdc = yes; then
12660   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12661   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12662 /* end confdefs.h.  */
12663 #include <stdlib.h>
12664
12665 _ACEOF
12666 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12667   $EGREP "free" >/dev/null 2>&1; then :
12668
12669 else
12670   ac_cv_header_stdc=no
12671 fi
12672 rm -f conftest*
12673
12674 fi
12675
12676 if test $ac_cv_header_stdc = yes; then
12677   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12678   if test "$cross_compiling" = yes; then :
12679   :
12680 else
12681   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12682 /* end confdefs.h.  */
12683 #include <ctype.h>
12684 #include <stdlib.h>
12685 #if ((' ' & 0x0FF) == 0x020)
12686 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12687 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12688 #else
12689 # define ISLOWER(c) \
12690                    (('a' <= (c) && (c) <= 'i') \
12691                      || ('j' <= (c) && (c) <= 'r') \
12692                      || ('s' <= (c) && (c) <= 'z'))
12693 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12694 #endif
12695
12696 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12697 int
12698 main ()
12699 {
12700   int i;
12701   for (i = 0; i < 256; i++)
12702     if (XOR (islower (i), ISLOWER (i))
12703         || toupper (i) != TOUPPER (i))
12704       return 2;
12705   return 0;
12706 }
12707 _ACEOF
12708 if ac_fn_c_try_run "$LINENO"; then :
12709
12710 else
12711   ac_cv_header_stdc=no
12712 fi
12713 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12714   conftest.$ac_objext conftest.beam conftest.$ac_ext
12715 fi
12716
12717 fi
12718 fi
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12720 $as_echo "$ac_cv_header_stdc" >&6; }
12721 if test $ac_cv_header_stdc = yes; then
12722
12723 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12724
12725 fi
12726
12727 for ac_header in sys/types.h
12728 do :
12729   ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
12730 if test "x$ac_cv_header_sys_types_h" = xyes; then :
12731   cat >>confdefs.h <<_ACEOF
12732 #define HAVE_SYS_TYPES_H 1
12733 _ACEOF
12734
12735 fi
12736
12737 done
12738
12739
12740 # pc variables
12741 RTLSDR_PC_LIBS="$LIBS"
12742
12743 RTLSDR_PC_CFLAGS="$CFLAGS"
12744
12745
12746
12747 # The following test is taken from WebKit's webkit.m4
12748 saved_CFLAGS="$CFLAGS"
12749 CFLAGS="$CFLAGS -fvisibility=hidden "
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${CC} supports -fvisibility=hidden" >&5
12751 $as_echo_n "checking if ${CC} supports -fvisibility=hidden... " >&6; }
12752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12753 /* end confdefs.h.  */
12754 char foo;
12755 _ACEOF
12756 if ac_fn_c_try_compile "$LINENO"; then :
12757    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12758 $as_echo "yes" >&6; }
12759       SYMBOL_VISIBILITY="-fvisibility=hidden"
12760 else
12761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12762 $as_echo "no" >&6; }
12763 fi
12764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12765 CFLAGS="$saved_CFLAGS"
12766
12767
12768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler understands -Wall" >&5
12769 $as_echo_n "checking whether compiler understands -Wall... " >&6; }
12770 old_CFLAGS="$CFLAGS"
12771 CFLAGS="$CFLAGS -Wall -Wextra -Wno-unused -Wsign-compare"
12772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12773 /* end confdefs.h.  */
12774
12775 int
12776 main ()
12777 {
12778
12779   ;
12780   return 0;
12781 }
12782 _ACEOF
12783 if ac_fn_c_try_compile "$LINENO"; then :
12784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12785 $as_echo "yes" >&6; }
12786 else
12787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12788 $as_echo "no" >&6; }
12789   CFLAGS="$old_CFLAGS"
12790 fi
12791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12792
12793 ac_config_headers="$ac_config_headers config.h"
12794
12795
12796 ac_config_files="$ac_config_files rtl433.pc include/Makefile src/Makefile Makefile Doxyfile"
12797
12798 cat >confcache <<\_ACEOF
12799 # This file is a shell script that caches the results of configure
12800 # tests run on this system so they can be shared between configure
12801 # scripts and configure runs, see configure's option --config-cache.
12802 # It is not useful on other systems.  If it contains results you don't
12803 # want to keep, you may remove or edit it.
12804 #
12805 # config.status only pays attention to the cache file if you give it
12806 # the --recheck option to rerun configure.
12807 #
12808 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12809 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12810 # following values.
12811
12812 _ACEOF
12813
12814 # The following way of writing the cache mishandles newlines in values,
12815 # but we know of no workaround that is simple, portable, and efficient.
12816 # So, we kill variables containing newlines.
12817 # Ultrix sh set writes to stderr and can't be redirected directly,
12818 # and sets the high bit in the cache file unless we assign to the vars.
12819 (
12820   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12821     eval ac_val=\$$ac_var
12822     case $ac_val in #(
12823     *${as_nl}*)
12824       case $ac_var in #(
12825       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12826 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12827       esac
12828       case $ac_var in #(
12829       _ | IFS | as_nl) ;; #(
12830       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12831       *) { eval $ac_var=; unset $ac_var;} ;;
12832       esac ;;
12833     esac
12834   done
12835
12836   (set) 2>&1 |
12837     case $as_nl`(ac_space=' '; set) 2>&1` in #(
12838     *${as_nl}ac_space=\ *)
12839       # `set' does not quote correctly, so add quotes: double-quote
12840       # substitution turns \\\\ into \\, and sed turns \\ into \.
12841       sed -n \
12842         "s/'/'\\\\''/g;
12843           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12844       ;; #(
12845     *)
12846       # `set' quotes correctly as required by POSIX, so do not add quotes.
12847       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12848       ;;
12849     esac |
12850     sort
12851 ) |
12852   sed '
12853      /^ac_cv_env_/b end
12854      t clear
12855      :clear
12856      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12857      t end
12858      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12859      :end' >>confcache
12860 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12861   if test -w "$cache_file"; then
12862     if test "x$cache_file" != "x/dev/null"; then
12863       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12864 $as_echo "$as_me: updating cache $cache_file" >&6;}
12865       if test ! -f "$cache_file" || test -h "$cache_file"; then
12866         cat confcache >"$cache_file"
12867       else
12868         case $cache_file in #(
12869         */* | ?:*)
12870           mv -f confcache "$cache_file"$$ &&
12871           mv -f "$cache_file"$$ "$cache_file" ;; #(
12872         *)
12873           mv -f confcache "$cache_file" ;;
12874         esac
12875       fi
12876     fi
12877   else
12878     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12879 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12880   fi
12881 fi
12882 rm -f confcache
12883
12884 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12885 # Let make expand exec_prefix.
12886 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12887
12888 DEFS=-DHAVE_CONFIG_H
12889
12890 ac_libobjs=
12891 ac_ltlibobjs=
12892 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12893   # 1. Remove the extension, and $U if already installed.
12894   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12895   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12896   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12897   #    will be set to the directory where LIBOBJS objects are built.
12898   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12899   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12900 done
12901 LIBOBJS=$ac_libobjs
12902
12903 LTLIBOBJS=$ac_ltlibobjs
12904
12905
12906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12907 $as_echo_n "checking that generated files are newer than configure... " >&6; }
12908    if test -n "$am_sleep_pid"; then
12909      # Hide warnings about reused PIDs.
12910      wait $am_sleep_pid 2>/dev/null
12911    fi
12912    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12913 $as_echo "done" >&6; }
12914  if test -n "$EXEEXT"; then
12915   am__EXEEXT_TRUE=
12916   am__EXEEXT_FALSE='#'
12917 else
12918   am__EXEEXT_TRUE='#'
12919   am__EXEEXT_FALSE=
12920 fi
12921
12922 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12923   as_fn_error $? "conditional \"AMDEP\" was never defined.
12924 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12925 fi
12926 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12927   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12928 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12929 fi
12930 if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then
12931   as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined.
12932 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12933 fi
12934
12935 : "${CONFIG_STATUS=./config.status}"
12936 ac_write_fail=0
12937 ac_clean_files_save=$ac_clean_files
12938 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12939 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12940 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12941 as_write_fail=0
12942 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12943 #! $SHELL
12944 # Generated by $as_me.
12945 # Run this file to recreate the current configuration.
12946 # Compiler output produced by configure, useful for debugging
12947 # configure, is in config.log if it exists.
12948
12949 debug=false
12950 ac_cs_recheck=false
12951 ac_cs_silent=false
12952
12953 SHELL=\${CONFIG_SHELL-$SHELL}
12954 export SHELL
12955 _ASEOF
12956 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12957 ## -------------------- ##
12958 ## M4sh Initialization. ##
12959 ## -------------------- ##
12960
12961 # Be more Bourne compatible
12962 DUALCASE=1; export DUALCASE # for MKS sh
12963 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12964   emulate sh
12965   NULLCMD=:
12966   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12967   # is contrary to our usage.  Disable this feature.
12968   alias -g '${1+"$@"}'='"$@"'
12969   setopt NO_GLOB_SUBST
12970 else
12971   case `(set -o) 2>/dev/null` in #(
12972   *posix*) :
12973     set -o posix ;; #(
12974   *) :
12975      ;;
12976 esac
12977 fi
12978
12979
12980 as_nl='
12981 '
12982 export as_nl
12983 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12984 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12985 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12986 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12987 # Prefer a ksh shell builtin over an external printf program on Solaris,
12988 # but without wasting forks for bash or zsh.
12989 if test -z "$BASH_VERSION$ZSH_VERSION" \
12990     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12991   as_echo='print -r --'
12992   as_echo_n='print -rn --'
12993 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12994   as_echo='printf %s\n'
12995   as_echo_n='printf %s'
12996 else
12997   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12998     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12999     as_echo_n='/usr/ucb/echo -n'
13000   else
13001     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13002     as_echo_n_body='eval
13003       arg=$1;
13004       case $arg in #(
13005       *"$as_nl"*)
13006         expr "X$arg" : "X\\(.*\\)$as_nl";
13007         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13008       esac;
13009       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13010     '
13011     export as_echo_n_body
13012     as_echo_n='sh -c $as_echo_n_body as_echo'
13013   fi
13014   export as_echo_body
13015   as_echo='sh -c $as_echo_body as_echo'
13016 fi
13017
13018 # The user is always right.
13019 if test "${PATH_SEPARATOR+set}" != set; then
13020   PATH_SEPARATOR=:
13021   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13022     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13023       PATH_SEPARATOR=';'
13024   }
13025 fi
13026
13027
13028 # IFS
13029 # We need space, tab and new line, in precisely that order.  Quoting is
13030 # there to prevent editors from complaining about space-tab.
13031 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13032 # splitting by setting IFS to empty value.)
13033 IFS=" ""        $as_nl"
13034
13035 # Find who we are.  Look in the path if we contain no directory separator.
13036 as_myself=
13037 case $0 in #((
13038   *[\\/]* ) as_myself=$0 ;;
13039   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13040 for as_dir in $PATH
13041 do
13042   IFS=$as_save_IFS
13043   test -z "$as_dir" && as_dir=.
13044     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13045   done
13046 IFS=$as_save_IFS
13047
13048      ;;
13049 esac
13050 # We did not find ourselves, most probably we were run as `sh COMMAND'
13051 # in which case we are not to be found in the path.
13052 if test "x$as_myself" = x; then
13053   as_myself=$0
13054 fi
13055 if test ! -f "$as_myself"; then
13056   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13057   exit 1
13058 fi
13059
13060 # Unset variables that we do not need and which cause bugs (e.g. in
13061 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13062 # suppresses any "Segmentation fault" message there.  '((' could
13063 # trigger a bug in pdksh 5.2.14.
13064 for as_var in BASH_ENV ENV MAIL MAILPATH
13065 do eval test x\${$as_var+set} = xset \
13066   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13067 done
13068 PS1='$ '
13069 PS2='> '
13070 PS4='+ '
13071
13072 # NLS nuisances.
13073 LC_ALL=C
13074 export LC_ALL
13075 LANGUAGE=C
13076 export LANGUAGE
13077
13078 # CDPATH.
13079 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13080
13081
13082 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13083 # ----------------------------------------
13084 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13085 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13086 # script with STATUS, using 1 if that was 0.
13087 as_fn_error ()
13088 {
13089   as_status=$1; test $as_status -eq 0 && as_status=1
13090   if test "$4"; then
13091     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13092     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13093   fi
13094   $as_echo "$as_me: error: $2" >&2
13095   as_fn_exit $as_status
13096 } # as_fn_error
13097
13098
13099 # as_fn_set_status STATUS
13100 # -----------------------
13101 # Set $? to STATUS, without forking.
13102 as_fn_set_status ()
13103 {
13104   return $1
13105 } # as_fn_set_status
13106
13107 # as_fn_exit STATUS
13108 # -----------------
13109 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13110 as_fn_exit ()
13111 {
13112   set +e
13113   as_fn_set_status $1
13114   exit $1
13115 } # as_fn_exit
13116
13117 # as_fn_unset VAR
13118 # ---------------
13119 # Portably unset VAR.
13120 as_fn_unset ()
13121 {
13122   { eval $1=; unset $1;}
13123 }
13124 as_unset=as_fn_unset
13125 # as_fn_append VAR VALUE
13126 # ----------------------
13127 # Append the text in VALUE to the end of the definition contained in VAR. Take
13128 # advantage of any shell optimizations that allow amortized linear growth over
13129 # repeated appends, instead of the typical quadratic growth present in naive
13130 # implementations.
13131 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13132   eval 'as_fn_append ()
13133   {
13134     eval $1+=\$2
13135   }'
13136 else
13137   as_fn_append ()
13138   {
13139     eval $1=\$$1\$2
13140   }
13141 fi # as_fn_append
13142
13143 # as_fn_arith ARG...
13144 # ------------------
13145 # Perform arithmetic evaluation on the ARGs, and store the result in the
13146 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13147 # must be portable across $(()) and expr.
13148 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13149   eval 'as_fn_arith ()
13150   {
13151     as_val=$(( $* ))
13152   }'
13153 else
13154   as_fn_arith ()
13155   {
13156     as_val=`expr "$@" || test $? -eq 1`
13157   }
13158 fi # as_fn_arith
13159
13160
13161 if expr a : '\(a\)' >/dev/null 2>&1 &&
13162    test "X`expr 00001 : '.*\(...\)'`" = X001; then
13163   as_expr=expr
13164 else
13165   as_expr=false
13166 fi
13167
13168 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13169   as_basename=basename
13170 else
13171   as_basename=false
13172 fi
13173
13174 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13175   as_dirname=dirname
13176 else
13177   as_dirname=false
13178 fi
13179
13180 as_me=`$as_basename -- "$0" ||
13181 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13182          X"$0" : 'X\(//\)$' \| \
13183          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13184 $as_echo X/"$0" |
13185     sed '/^.*\/\([^/][^/]*\)\/*$/{
13186             s//\1/
13187             q
13188           }
13189           /^X\/\(\/\/\)$/{
13190             s//\1/
13191             q
13192           }
13193           /^X\/\(\/\).*/{
13194             s//\1/
13195             q
13196           }
13197           s/.*/./; q'`
13198
13199 # Avoid depending upon Character Ranges.
13200 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13201 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13202 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13203 as_cr_digits='0123456789'
13204 as_cr_alnum=$as_cr_Letters$as_cr_digits
13205
13206 ECHO_C= ECHO_N= ECHO_T=
13207 case `echo -n x` in #(((((
13208 -n*)
13209   case `echo 'xy\c'` in
13210   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
13211   xy)  ECHO_C='\c';;
13212   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13213        ECHO_T=' ';;
13214   esac;;
13215 *)
13216   ECHO_N='-n';;
13217 esac
13218
13219 rm -f conf$$ conf$$.exe conf$$.file
13220 if test -d conf$$.dir; then
13221   rm -f conf$$.dir/conf$$.file
13222 else
13223   rm -f conf$$.dir
13224   mkdir conf$$.dir 2>/dev/null
13225 fi
13226 if (echo >conf$$.file) 2>/dev/null; then
13227   if ln -s conf$$.file conf$$ 2>/dev/null; then
13228     as_ln_s='ln -s'
13229     # ... but there are two gotchas:
13230     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13231     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13232     # In both cases, we have to default to `cp -pR'.
13233     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13234       as_ln_s='cp -pR'
13235   elif ln conf$$.file conf$$ 2>/dev/null; then
13236     as_ln_s=ln
13237   else
13238     as_ln_s='cp -pR'
13239   fi
13240 else
13241   as_ln_s='cp -pR'
13242 fi
13243 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13244 rmdir conf$$.dir 2>/dev/null
13245
13246
13247 # as_fn_mkdir_p
13248 # -------------
13249 # Create "$as_dir" as a directory, including parents if necessary.
13250 as_fn_mkdir_p ()
13251 {
13252
13253   case $as_dir in #(
13254   -*) as_dir=./$as_dir;;
13255   esac
13256   test -d "$as_dir" || eval $as_mkdir_p || {
13257     as_dirs=
13258     while :; do
13259       case $as_dir in #(
13260       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13261       *) as_qdir=$as_dir;;
13262       esac
13263       as_dirs="'$as_qdir' $as_dirs"
13264       as_dir=`$as_dirname -- "$as_dir" ||
13265 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13266          X"$as_dir" : 'X\(//\)[^/]' \| \
13267          X"$as_dir" : 'X\(//\)$' \| \
13268          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13269 $as_echo X"$as_dir" |
13270     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13271             s//\1/
13272             q
13273           }
13274           /^X\(\/\/\)[^/].*/{
13275             s//\1/
13276             q
13277           }
13278           /^X\(\/\/\)$/{
13279             s//\1/
13280             q
13281           }
13282           /^X\(\/\).*/{
13283             s//\1/
13284             q
13285           }
13286           s/.*/./; q'`
13287       test -d "$as_dir" && break
13288     done
13289     test -z "$as_dirs" || eval "mkdir $as_dirs"
13290   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13291
13292
13293 } # as_fn_mkdir_p
13294 if mkdir -p . 2>/dev/null; then
13295   as_mkdir_p='mkdir -p "$as_dir"'
13296 else
13297   test -d ./-p && rmdir ./-p
13298   as_mkdir_p=false
13299 fi
13300
13301
13302 # as_fn_executable_p FILE
13303 # -----------------------
13304 # Test if FILE is an executable regular file.
13305 as_fn_executable_p ()
13306 {
13307   test -f "$1" && test -x "$1"
13308 } # as_fn_executable_p
13309 as_test_x='test -x'
13310 as_executable_p=as_fn_executable_p
13311
13312 # Sed expression to map a string onto a valid CPP name.
13313 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13314
13315 # Sed expression to map a string onto a valid variable name.
13316 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13317
13318
13319 exec 6>&1
13320 ## ----------------------------------- ##
13321 ## Main body of $CONFIG_STATUS script. ##
13322 ## ----------------------------------- ##
13323 _ASEOF
13324 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13325
13326 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13327 # Save the log message, to keep $0 and so on meaningful, and to
13328 # report actual input values of CONFIG_FILES etc. instead of their
13329 # values after options handling.
13330 ac_log="
13331 This file was extended by rtl433 $as_me UNKNOWN-dirty, which was
13332 generated by GNU Autoconf 2.69.  Invocation command line was
13333
13334   CONFIG_FILES    = $CONFIG_FILES
13335   CONFIG_HEADERS  = $CONFIG_HEADERS
13336   CONFIG_LINKS    = $CONFIG_LINKS
13337   CONFIG_COMMANDS = $CONFIG_COMMANDS
13338   $ $0 $@
13339
13340 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13341 "
13342
13343 _ACEOF
13344
13345 case $ac_config_files in *"
13346 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13347 esac
13348
13349 case $ac_config_headers in *"
13350 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13351 esac
13352
13353
13354 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13355 # Files that config.status was made for.
13356 config_files="$ac_config_files"
13357 config_headers="$ac_config_headers"
13358 config_commands="$ac_config_commands"
13359
13360 _ACEOF
13361
13362 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13363 ac_cs_usage="\
13364 \`$as_me' instantiates files and other configuration actions
13365 from templates according to the current configuration.  Unless the files
13366 and actions are specified as TAGs, all are instantiated by default.
13367
13368 Usage: $0 [OPTION]... [TAG]...
13369
13370   -h, --help       print this help, then exit
13371   -V, --version    print version number and configuration settings, then exit
13372       --config     print configuration, then exit
13373   -q, --quiet, --silent
13374                    do not print progress messages
13375   -d, --debug      don't remove temporary files
13376       --recheck    update $as_me by reconfiguring in the same conditions
13377       --file=FILE[:TEMPLATE]
13378                    instantiate the configuration file FILE
13379       --header=FILE[:TEMPLATE]
13380                    instantiate the configuration header FILE
13381
13382 Configuration files:
13383 $config_files
13384
13385 Configuration headers:
13386 $config_headers
13387
13388 Configuration commands:
13389 $config_commands
13390
13391 Report bugs to <rtl_433@googlegroups.com>."
13392
13393 _ACEOF
13394 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13395 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13396 ac_cs_version="\\
13397 rtl433 config.status UNKNOWN-dirty
13398 configured by $0, generated by GNU Autoconf 2.69,
13399   with options \\"\$ac_cs_config\\"
13400
13401 Copyright (C) 2012 Free Software Foundation, Inc.
13402 This config.status script is free software; the Free Software Foundation
13403 gives unlimited permission to copy, distribute and modify it."
13404
13405 ac_pwd='$ac_pwd'
13406 srcdir='$srcdir'
13407 INSTALL='$INSTALL'
13408 MKDIR_P='$MKDIR_P'
13409 AWK='$AWK'
13410 test -n "\$AWK" || AWK=awk
13411 _ACEOF
13412
13413 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13414 # The default lists apply if the user does not specify any file.
13415 ac_need_defaults=:
13416 while test $# != 0
13417 do
13418   case $1 in
13419   --*=?*)
13420     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13421     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13422     ac_shift=:
13423     ;;
13424   --*=)
13425     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13426     ac_optarg=
13427     ac_shift=:
13428     ;;
13429   *)
13430     ac_option=$1
13431     ac_optarg=$2
13432     ac_shift=shift
13433     ;;
13434   esac
13435
13436   case $ac_option in
13437   # Handling of the options.
13438   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13439     ac_cs_recheck=: ;;
13440   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13441     $as_echo "$ac_cs_version"; exit ;;
13442   --config | --confi | --conf | --con | --co | --c )
13443     $as_echo "$ac_cs_config"; exit ;;
13444   --debug | --debu | --deb | --de | --d | -d )
13445     debug=: ;;
13446   --file | --fil | --fi | --f )
13447     $ac_shift
13448     case $ac_optarg in
13449     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13450     '') as_fn_error $? "missing file argument" ;;
13451     esac
13452     as_fn_append CONFIG_FILES " '$ac_optarg'"
13453     ac_need_defaults=false;;
13454   --header | --heade | --head | --hea )
13455     $ac_shift
13456     case $ac_optarg in
13457     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13458     esac
13459     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13460     ac_need_defaults=false;;
13461   --he | --h)
13462     # Conflict between --help and --header
13463     as_fn_error $? "ambiguous option: \`$1'
13464 Try \`$0 --help' for more information.";;
13465   --help | --hel | -h )
13466     $as_echo "$ac_cs_usage"; exit ;;
13467   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13468   | -silent | --silent | --silen | --sile | --sil | --si | --s)
13469     ac_cs_silent=: ;;
13470
13471   # This is an error.
13472   -*) as_fn_error $? "unrecognized option: \`$1'
13473 Try \`$0 --help' for more information." ;;
13474
13475   *) as_fn_append ac_config_targets " $1"
13476      ac_need_defaults=false ;;
13477
13478   esac
13479   shift
13480 done
13481
13482 ac_configure_extra_args=
13483
13484 if $ac_cs_silent; then
13485   exec 6>/dev/null
13486   ac_configure_extra_args="$ac_configure_extra_args --silent"
13487 fi
13488
13489 _ACEOF
13490 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13491 if \$ac_cs_recheck; then
13492   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13493   shift
13494   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13495   CONFIG_SHELL='$SHELL'
13496   export CONFIG_SHELL
13497   exec "\$@"
13498 fi
13499
13500 _ACEOF
13501 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13502 exec 5>>config.log
13503 {
13504   echo
13505   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13506 ## Running $as_me. ##
13507 _ASBOX
13508   $as_echo "$ac_log"
13509 } >&5
13510
13511 _ACEOF
13512 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13513 #
13514 # INIT-COMMANDS
13515 #
13516 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13517
13518
13519 # The HP-UX ksh and POSIX shell print the target directory to stdout
13520 # if CDPATH is set.
13521 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13522
13523 sed_quote_subst='$sed_quote_subst'
13524 double_quote_subst='$double_quote_subst'
13525 delay_variable_subst='$delay_variable_subst'
13526 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13527 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13528 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13529 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13530 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13531 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13532 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
13533 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13534 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13535 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13536 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13537 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13538 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13539 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13540 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13541 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13542 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13543 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13544 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13545 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13546 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13547 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13548 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13549 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13550 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13551 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13552 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13553 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13554 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13555 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13556 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13557 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13558 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13559 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13560 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13561 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13562 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13563 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13564 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13565 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13566 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13567 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13568 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13569 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13570 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13571 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13572 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13573 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13574 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13575 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13576 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13577 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13578 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13579 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13580 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13581 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13582 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
13583 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13584 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"`'
13585 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
13586 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13587 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13588 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
13589 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13590 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13591 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13592 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13593 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13594 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13595 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13596 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13597 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13598 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13599 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13600 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13601 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13602 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13603 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13604 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13605 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13606 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13607 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13608 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13609 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13610 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13611 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13612 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13613 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13614 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13615 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13616 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13617 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13618 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13619 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13620 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13621 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13622 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13623 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13624 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13625 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13626 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13627 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13628 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13629 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13630 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13631 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13632 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13633 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13634 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13635 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13636 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13637 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13638 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13639 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13640 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13641 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13642 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13643 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13644 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13645 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13646 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13647 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13648 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13649 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13650 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13651 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13652 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13653 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
13654 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
13655 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13656 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13657 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13658 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13659 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13660 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13661
13662 LTCC='$LTCC'
13663 LTCFLAGS='$LTCFLAGS'
13664 compiler='$compiler_DEFAULT'
13665
13666 # A function that is used when there is no print builtin or printf.
13667 func_fallback_echo ()
13668 {
13669   eval 'cat <<_LTECHO_EOF
13670 \$1
13671 _LTECHO_EOF'
13672 }
13673
13674 # Quote evaled strings.
13675 for var in SHELL \
13676 ECHO \
13677 PATH_SEPARATOR \
13678 SED \
13679 GREP \
13680 EGREP \
13681 FGREP \
13682 LD \
13683 NM \
13684 LN_S \
13685 lt_SP2NL \
13686 lt_NL2SP \
13687 reload_flag \
13688 OBJDUMP \
13689 deplibs_check_method \
13690 file_magic_cmd \
13691 file_magic_glob \
13692 want_nocaseglob \
13693 DLLTOOL \
13694 sharedlib_from_linklib_cmd \
13695 AR \
13696 AR_FLAGS \
13697 archiver_list_spec \
13698 STRIP \
13699 RANLIB \
13700 CC \
13701 CFLAGS \
13702 compiler \
13703 lt_cv_sys_global_symbol_pipe \
13704 lt_cv_sys_global_symbol_to_cdecl \
13705 lt_cv_sys_global_symbol_to_import \
13706 lt_cv_sys_global_symbol_to_c_name_address \
13707 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13708 lt_cv_nm_interface \
13709 nm_file_list_spec \
13710 lt_cv_truncate_bin \
13711 lt_prog_compiler_no_builtin_flag \
13712 lt_prog_compiler_pic \
13713 lt_prog_compiler_wl \
13714 lt_prog_compiler_static \
13715 lt_cv_prog_compiler_c_o \
13716 need_locks \
13717 MANIFEST_TOOL \
13718 DSYMUTIL \
13719 NMEDIT \
13720 LIPO \
13721 OTOOL \
13722 OTOOL64 \
13723 shrext_cmds \
13724 export_dynamic_flag_spec \
13725 whole_archive_flag_spec \
13726 compiler_needs_object \
13727 with_gnu_ld \
13728 allow_undefined_flag \
13729 no_undefined_flag \
13730 hardcode_libdir_flag_spec \
13731 hardcode_libdir_separator \
13732 exclude_expsyms \
13733 include_expsyms \
13734 file_list_spec \
13735 variables_saved_for_relink \
13736 libname_spec \
13737 library_names_spec \
13738 soname_spec \
13739 install_override_mode \
13740 finish_eval \
13741 old_striplib \
13742 striplib; do
13743     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13744     *[\\\\\\\`\\"\\\$]*)
13745       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
13746       ;;
13747     *)
13748       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13749       ;;
13750     esac
13751 done
13752
13753 # Double-quote double-evaled strings.
13754 for var in reload_cmds \
13755 old_postinstall_cmds \
13756 old_postuninstall_cmds \
13757 old_archive_cmds \
13758 extract_expsyms_cmds \
13759 old_archive_from_new_cmds \
13760 old_archive_from_expsyms_cmds \
13761 archive_cmds \
13762 archive_expsym_cmds \
13763 module_cmds \
13764 module_expsym_cmds \
13765 export_symbols_cmds \
13766 prelink_cmds \
13767 postlink_cmds \
13768 postinstall_cmds \
13769 postuninstall_cmds \
13770 finish_cmds \
13771 sys_lib_search_path_spec \
13772 configure_time_dlsearch_path \
13773 configure_time_lt_sys_library_path; do
13774     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13775     *[\\\\\\\`\\"\\\$]*)
13776       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
13777       ;;
13778     *)
13779       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13780       ;;
13781     esac
13782 done
13783
13784 ac_aux_dir='$ac_aux_dir'
13785
13786 # See if we are running on zsh, and set the options that allow our
13787 # commands through without removal of \ escapes INIT.
13788 if test -n "\${ZSH_VERSION+set}"; then
13789    setopt NO_GLOB_SUBST
13790 fi
13791
13792
13793     PACKAGE='$PACKAGE'
13794     VERSION='$VERSION'
13795     RM='$RM'
13796     ofile='$ofile'
13797
13798
13799
13800
13801 _ACEOF
13802
13803 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13804
13805 # Handling of arguments.
13806 for ac_config_target in $ac_config_targets
13807 do
13808   case $ac_config_target in
13809     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13810     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13811     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13812     "rtl433.pc") CONFIG_FILES="$CONFIG_FILES rtl433.pc" ;;
13813     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
13814     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13815     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13816     "Doxyfile") CONFIG_FILES="$CONFIG_FILES Doxyfile" ;;
13817
13818   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13819   esac
13820 done
13821
13822
13823 # If the user did not use the arguments to specify the items to instantiate,
13824 # then the envvar interface is used.  Set only those that are not.
13825 # We use the long form for the default assignment because of an extremely
13826 # bizarre bug on SunOS 4.1.3.
13827 if $ac_need_defaults; then
13828   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13829   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13830   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13831 fi
13832
13833 # Have a temporary directory for convenience.  Make it in the build tree
13834 # simply because there is no reason against having it here, and in addition,
13835 # creating and moving files from /tmp can sometimes cause problems.
13836 # Hook for its removal unless debugging.
13837 # Note that there is a small window in which the directory will not be cleaned:
13838 # after its creation but before its name has been assigned to `$tmp'.
13839 $debug ||
13840 {
13841   tmp= ac_tmp=
13842   trap 'exit_status=$?
13843   : "${ac_tmp:=$tmp}"
13844   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13845 ' 0
13846   trap 'as_fn_exit 1' 1 2 13 15
13847 }
13848 # Create a (secure) tmp directory for tmp files.
13849
13850 {
13851   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13852   test -d "$tmp"
13853 }  ||
13854 {
13855   tmp=./conf$$-$RANDOM
13856   (umask 077 && mkdir "$tmp")
13857 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13858 ac_tmp=$tmp
13859
13860 # Set up the scripts for CONFIG_FILES section.
13861 # No need to generate them if there are no CONFIG_FILES.
13862 # This happens for instance with `./config.status config.h'.
13863 if test -n "$CONFIG_FILES"; then
13864
13865
13866 ac_cr=`echo X | tr X '\015'`
13867 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13868 # But we know of no other shell where ac_cr would be empty at this
13869 # point, so we can use a bashism as a fallback.
13870 if test "x$ac_cr" = x; then
13871   eval ac_cr=\$\'\\r\'
13872 fi
13873 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13874 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13875   ac_cs_awk_cr='\\r'
13876 else
13877   ac_cs_awk_cr=$ac_cr
13878 fi
13879
13880 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13881 _ACEOF
13882
13883
13884 {
13885   echo "cat >conf$$subs.awk <<_ACEOF" &&
13886   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13887   echo "_ACEOF"
13888 } >conf$$subs.sh ||
13889   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13890 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13891 ac_delim='%!_!# '
13892 for ac_last_try in false false false false false :; do
13893   . ./conf$$subs.sh ||
13894     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13895
13896   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13897   if test $ac_delim_n = $ac_delim_num; then
13898     break
13899   elif $ac_last_try; then
13900     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13901   else
13902     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13903   fi
13904 done
13905 rm -f conf$$subs.sh
13906
13907 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13908 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13909 _ACEOF
13910 sed -n '
13911 h
13912 s/^/S["/; s/!.*/"]=/
13913 p
13914 g
13915 s/^[^!]*!//
13916 :repl
13917 t repl
13918 s/'"$ac_delim"'$//
13919 t delim
13920 :nl
13921 h
13922 s/\(.\{148\}\)..*/\1/
13923 t more1
13924 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13925 p
13926 n
13927 b repl
13928 :more1
13929 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13930 p
13931 g
13932 s/.\{148\}//
13933 t nl
13934 :delim
13935 h
13936 s/\(.\{148\}\)..*/\1/
13937 t more2
13938 s/["\\]/\\&/g; s/^/"/; s/$/"/
13939 p
13940 b
13941 :more2
13942 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13943 p
13944 g
13945 s/.\{148\}//
13946 t delim
13947 ' <conf$$subs.awk | sed '
13948 /^[^""]/{
13949   N
13950   s/\n//
13951 }
13952 ' >>$CONFIG_STATUS || ac_write_fail=1
13953 rm -f conf$$subs.awk
13954 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13955 _ACAWK
13956 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13957   for (key in S) S_is_set[key] = 1
13958   FS = "\a"
13959
13960 }
13961 {
13962   line = $ 0
13963   nfields = split(line, field, "@")
13964   substed = 0
13965   len = length(field[1])
13966   for (i = 2; i < nfields; i++) {
13967     key = field[i]
13968     keylen = length(key)
13969     if (S_is_set[key]) {
13970       value = S[key]
13971       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13972       len += length(value) + length(field[++i])
13973       substed = 1
13974     } else
13975       len += 1 + keylen
13976   }
13977
13978   print line
13979 }
13980
13981 _ACAWK
13982 _ACEOF
13983 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13984 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13985   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13986 else
13987   cat
13988 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13989   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13990 _ACEOF
13991
13992 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13993 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13994 # trailing colons and then remove the whole line if VPATH becomes empty
13995 # (actually we leave an empty line to preserve line numbers).
13996 if test "x$srcdir" = x.; then
13997   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
13998 h
13999 s///
14000 s/^/:/
14001 s/[      ]*$/:/
14002 s/:\$(srcdir):/:/g
14003 s/:\${srcdir}:/:/g
14004 s/:@srcdir@:/:/g
14005 s/^:*//
14006 s/:*$//
14007 x
14008 s/\(=[   ]*\).*/\1/
14009 G
14010 s/\n//
14011 s/^[^=]*=[       ]*$//
14012 }'
14013 fi
14014
14015 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14016 fi # test -n "$CONFIG_FILES"
14017
14018 # Set up the scripts for CONFIG_HEADERS section.
14019 # No need to generate them if there are no CONFIG_HEADERS.
14020 # This happens for instance with `./config.status Makefile'.
14021 if test -n "$CONFIG_HEADERS"; then
14022 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14023 BEGIN {
14024 _ACEOF
14025
14026 # Transform confdefs.h into an awk script `defines.awk', embedded as
14027 # here-document in config.status, that substitutes the proper values into
14028 # config.h.in to produce config.h.
14029
14030 # Create a delimiter string that does not exist in confdefs.h, to ease
14031 # handling of long lines.
14032 ac_delim='%!_!# '
14033 for ac_last_try in false false :; do
14034   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14035   if test -z "$ac_tt"; then
14036     break
14037   elif $ac_last_try; then
14038     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14039   else
14040     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14041   fi
14042 done
14043
14044 # For the awk script, D is an array of macro values keyed by name,
14045 # likewise P contains macro parameters if any.  Preserve backslash
14046 # newline sequences.
14047
14048 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14049 sed -n '
14050 s/.\{148\}/&'"$ac_delim"'/g
14051 t rset
14052 :rset
14053 s/^[     ]*#[    ]*define[       ][      ]*/ /
14054 t def
14055 d
14056 :def
14057 s/\\$//
14058 t bsnl
14059 s/["\\]/\\&/g
14060 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14061 D["\1"]=" \3"/p
14062 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
14063 d
14064 :bsnl
14065 s/["\\]/\\&/g
14066 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14067 D["\1"]=" \3\\\\\\n"\\/p
14068 t cont
14069 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14070 t cont
14071 d
14072 :cont
14073 n
14074 s/.\{148\}/&'"$ac_delim"'/g
14075 t clear
14076 :clear
14077 s/\\$//
14078 t bsnlc
14079 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14080 d
14081 :bsnlc
14082 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14083 b cont
14084 ' <confdefs.h | sed '
14085 s/'"$ac_delim"'/"\\\
14086 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14087
14088 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14089   for (key in D) D_is_set[key] = 1
14090   FS = "\a"
14091 }
14092 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14093   line = \$ 0
14094   split(line, arg, " ")
14095   if (arg[1] == "#") {
14096     defundef = arg[2]
14097     mac1 = arg[3]
14098   } else {
14099     defundef = substr(arg[1], 2)
14100     mac1 = arg[2]
14101   }
14102   split(mac1, mac2, "(") #)
14103   macro = mac2[1]
14104   prefix = substr(line, 1, index(line, defundef) - 1)
14105   if (D_is_set[macro]) {
14106     # Preserve the white space surrounding the "#".
14107     print prefix "define", macro P[macro] D[macro]
14108     next
14109   } else {
14110     # Replace #undef with comments.  This is necessary, for example,
14111     # in the case of _POSIX_SOURCE, which is predefined and required
14112     # on some systems where configure will not decide to define it.
14113     if (defundef == "undef") {
14114       print "/*", prefix defundef, macro, "*/"
14115       next
14116     }
14117   }
14118 }
14119 { print }
14120 _ACAWK
14121 _ACEOF
14122 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14123   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14124 fi # test -n "$CONFIG_HEADERS"
14125
14126
14127 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14128 shift
14129 for ac_tag
14130 do
14131   case $ac_tag in
14132   :[FHLC]) ac_mode=$ac_tag; continue;;
14133   esac
14134   case $ac_mode$ac_tag in
14135   :[FHL]*:*);;
14136   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14137   :[FH]-) ac_tag=-:-;;
14138   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14139   esac
14140   ac_save_IFS=$IFS
14141   IFS=:
14142   set x $ac_tag
14143   IFS=$ac_save_IFS
14144   shift
14145   ac_file=$1
14146   shift
14147
14148   case $ac_mode in
14149   :L) ac_source=$1;;
14150   :[FH])
14151     ac_file_inputs=
14152     for ac_f
14153     do
14154       case $ac_f in
14155       -) ac_f="$ac_tmp/stdin";;
14156       *) # Look for the file first in the build tree, then in the source tree
14157          # (if the path is not absolute).  The absolute path cannot be DOS-style,
14158          # because $ac_f cannot contain `:'.
14159          test -f "$ac_f" ||
14160            case $ac_f in
14161            [\\/$]*) false;;
14162            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14163            esac ||
14164            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14165       esac
14166       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14167       as_fn_append ac_file_inputs " '$ac_f'"
14168     done
14169
14170     # Let's still pretend it is `configure' which instantiates (i.e., don't
14171     # use $as_me), people would be surprised to read:
14172     #    /* config.h.  Generated by config.status.  */
14173     configure_input='Generated from '`
14174           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14175         `' by configure.'
14176     if test x"$ac_file" != x-; then
14177       configure_input="$ac_file.  $configure_input"
14178       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14179 $as_echo "$as_me: creating $ac_file" >&6;}
14180     fi
14181     # Neutralize special characters interpreted by sed in replacement strings.
14182     case $configure_input in #(
14183     *\&* | *\|* | *\\* )
14184        ac_sed_conf_input=`$as_echo "$configure_input" |
14185        sed 's/[\\\\&|]/\\\\&/g'`;; #(
14186     *) ac_sed_conf_input=$configure_input;;
14187     esac
14188
14189     case $ac_tag in
14190     *:-:* | *:-) cat >"$ac_tmp/stdin" \
14191       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14192     esac
14193     ;;
14194   esac
14195
14196   ac_dir=`$as_dirname -- "$ac_file" ||
14197 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14198          X"$ac_file" : 'X\(//\)[^/]' \| \
14199          X"$ac_file" : 'X\(//\)$' \| \
14200          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14201 $as_echo X"$ac_file" |
14202     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14203             s//\1/
14204             q
14205           }
14206           /^X\(\/\/\)[^/].*/{
14207             s//\1/
14208             q
14209           }
14210           /^X\(\/\/\)$/{
14211             s//\1/
14212             q
14213           }
14214           /^X\(\/\).*/{
14215             s//\1/
14216             q
14217           }
14218           s/.*/./; q'`
14219   as_dir="$ac_dir"; as_fn_mkdir_p
14220   ac_builddir=.
14221
14222 case "$ac_dir" in
14223 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14224 *)
14225   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14226   # A ".." for each directory in $ac_dir_suffix.
14227   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14228   case $ac_top_builddir_sub in
14229   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14230   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14231   esac ;;
14232 esac
14233 ac_abs_top_builddir=$ac_pwd
14234 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14235 # for backward compatibility:
14236 ac_top_builddir=$ac_top_build_prefix
14237
14238 case $srcdir in
14239   .)  # We are building in place.
14240     ac_srcdir=.
14241     ac_top_srcdir=$ac_top_builddir_sub
14242     ac_abs_top_srcdir=$ac_pwd ;;
14243   [\\/]* | ?:[\\/]* )  # Absolute name.
14244     ac_srcdir=$srcdir$ac_dir_suffix;
14245     ac_top_srcdir=$srcdir
14246     ac_abs_top_srcdir=$srcdir ;;
14247   *) # Relative name.
14248     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14249     ac_top_srcdir=$ac_top_build_prefix$srcdir
14250     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14251 esac
14252 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14253
14254
14255   case $ac_mode in
14256   :F)
14257   #
14258   # CONFIG_FILE
14259   #
14260
14261   case $INSTALL in
14262   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14263   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14264   esac
14265   ac_MKDIR_P=$MKDIR_P
14266   case $MKDIR_P in
14267   [\\/$]* | ?:[\\/]* ) ;;
14268   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14269   esac
14270 _ACEOF
14271
14272 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14273 # If the template does not know about datarootdir, expand it.
14274 # FIXME: This hack should be removed a few years after 2.60.
14275 ac_datarootdir_hack=; ac_datarootdir_seen=
14276 ac_sed_dataroot='
14277 /datarootdir/ {
14278   p
14279   q
14280 }
14281 /@datadir@/p
14282 /@docdir@/p
14283 /@infodir@/p
14284 /@localedir@/p
14285 /@mandir@/p'
14286 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14287 *datarootdir*) ac_datarootdir_seen=yes;;
14288 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14289   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14290 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14291 _ACEOF
14292 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14293   ac_datarootdir_hack='
14294   s&@datadir@&$datadir&g
14295   s&@docdir@&$docdir&g
14296   s&@infodir@&$infodir&g
14297   s&@localedir@&$localedir&g
14298   s&@mandir@&$mandir&g
14299   s&\\\${datarootdir}&$datarootdir&g' ;;
14300 esac
14301 _ACEOF
14302
14303 # Neutralize VPATH when `$srcdir' = `.'.
14304 # Shell code in configure.ac might set extrasub.
14305 # FIXME: do we really want to maintain this feature?
14306 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14307 ac_sed_extra="$ac_vpsub
14308 $extrasub
14309 _ACEOF
14310 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14311 :t
14312 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14313 s|@configure_input@|$ac_sed_conf_input|;t t
14314 s&@top_builddir@&$ac_top_builddir_sub&;t t
14315 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14316 s&@srcdir@&$ac_srcdir&;t t
14317 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14318 s&@top_srcdir@&$ac_top_srcdir&;t t
14319 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14320 s&@builddir@&$ac_builddir&;t t
14321 s&@abs_builddir@&$ac_abs_builddir&;t t
14322 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14323 s&@INSTALL@&$ac_INSTALL&;t t
14324 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14325 $ac_datarootdir_hack
14326 "
14327 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14328   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14329
14330 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14331   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14332   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
14333       "$ac_tmp/out"`; test -z "$ac_out"; } &&
14334   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14335 which seems to be undefined.  Please make sure it is defined" >&5
14336 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14337 which seems to be undefined.  Please make sure it is defined" >&2;}
14338
14339   rm -f "$ac_tmp/stdin"
14340   case $ac_file in
14341   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14342   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14343   esac \
14344   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14345  ;;
14346   :H)
14347   #
14348   # CONFIG_HEADER
14349   #
14350   if test x"$ac_file" != x-; then
14351     {
14352       $as_echo "/* $configure_input  */" \
14353       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14354     } >"$ac_tmp/config.h" \
14355       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14356     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14357       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14358 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14359     else
14360       rm -f "$ac_file"
14361       mv "$ac_tmp/config.h" "$ac_file" \
14362         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14363     fi
14364   else
14365     $as_echo "/* $configure_input  */" \
14366       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14367       || as_fn_error $? "could not create -" "$LINENO" 5
14368   fi
14369 # Compute "$ac_file"'s index in $config_headers.
14370 _am_arg="$ac_file"
14371 _am_stamp_count=1
14372 for _am_header in $config_headers :; do
14373   case $_am_header in
14374     $_am_arg | $_am_arg:* )
14375       break ;;
14376     * )
14377       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14378   esac
14379 done
14380 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14381 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14382          X"$_am_arg" : 'X\(//\)[^/]' \| \
14383          X"$_am_arg" : 'X\(//\)$' \| \
14384          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14385 $as_echo X"$_am_arg" |
14386     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14387             s//\1/
14388             q
14389           }
14390           /^X\(\/\/\)[^/].*/{
14391             s//\1/
14392             q
14393           }
14394           /^X\(\/\/\)$/{
14395             s//\1/
14396             q
14397           }
14398           /^X\(\/\).*/{
14399             s//\1/
14400             q
14401           }
14402           s/.*/./; q'`/stamp-h$_am_stamp_count
14403  ;;
14404
14405   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14406 $as_echo "$as_me: executing $ac_file commands" >&6;}
14407  ;;
14408   esac
14409
14410
14411   case $ac_file$ac_mode in
14412     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14413   # Older Autoconf quotes --file arguments for eval, but not when files
14414   # are listed without --file.  Let's play safe and only enable the eval
14415   # if we detect the quoting.
14416   case $CONFIG_FILES in
14417   *\'*) eval set x "$CONFIG_FILES" ;;
14418   *)   set x $CONFIG_FILES ;;
14419   esac
14420   shift
14421   for mf
14422   do
14423     # Strip MF so we end up with the name of the file.
14424     mf=`echo "$mf" | sed -e 's/:.*$//'`
14425     # Check whether this is an Automake generated Makefile or not.
14426     # We used to match only the files named 'Makefile.in', but
14427     # some people rename them; so instead we look at the file content.
14428     # Grep'ing the first line is not enough: some people post-process
14429     # each Makefile.in and add a new line on top of each file to say so.
14430     # Grep'ing the whole file is not good either: AIX grep has a line
14431     # limit of 2048, but all sed's we know have understand at least 4000.
14432     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14433       dirpart=`$as_dirname -- "$mf" ||
14434 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14435          X"$mf" : 'X\(//\)[^/]' \| \
14436          X"$mf" : 'X\(//\)$' \| \
14437          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14438 $as_echo X"$mf" |
14439     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14440             s//\1/
14441             q
14442           }
14443           /^X\(\/\/\)[^/].*/{
14444             s//\1/
14445             q
14446           }
14447           /^X\(\/\/\)$/{
14448             s//\1/
14449             q
14450           }
14451           /^X\(\/\).*/{
14452             s//\1/
14453             q
14454           }
14455           s/.*/./; q'`
14456     else
14457       continue
14458     fi
14459     # Extract the definition of DEPDIR, am__include, and am__quote
14460     # from the Makefile without running 'make'.
14461     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14462     test -z "$DEPDIR" && continue
14463     am__include=`sed -n 's/^am__include = //p' < "$mf"`
14464     test -z "$am__include" && continue
14465     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14466     # Find all dependency output files, they are included files with
14467     # $(DEPDIR) in their names.  We invoke sed twice because it is the
14468     # simplest approach to changing $(DEPDIR) to its actual value in the
14469     # expansion.
14470     for file in `sed -n "
14471       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14472          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
14473       # Make sure the directory exists.
14474       test -f "$dirpart/$file" && continue
14475       fdir=`$as_dirname -- "$file" ||
14476 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14477          X"$file" : 'X\(//\)[^/]' \| \
14478          X"$file" : 'X\(//\)$' \| \
14479          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14480 $as_echo X"$file" |
14481     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14482             s//\1/
14483             q
14484           }
14485           /^X\(\/\/\)[^/].*/{
14486             s//\1/
14487             q
14488           }
14489           /^X\(\/\/\)$/{
14490             s//\1/
14491             q
14492           }
14493           /^X\(\/\).*/{
14494             s//\1/
14495             q
14496           }
14497           s/.*/./; q'`
14498       as_dir=$dirpart/$fdir; as_fn_mkdir_p
14499       # echo "creating $dirpart/$file"
14500       echo '# dummy' > "$dirpart/$file"
14501     done
14502   done
14503 }
14504  ;;
14505     "libtool":C)
14506
14507     # See if we are running on zsh, and set the options that allow our
14508     # commands through without removal of \ escapes.
14509     if test -n "${ZSH_VERSION+set}"; then
14510       setopt NO_GLOB_SUBST
14511     fi
14512
14513     cfgfile=${ofile}T
14514     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14515     $RM "$cfgfile"
14516
14517     cat <<_LT_EOF >> "$cfgfile"
14518 #! $SHELL
14519 # Generated automatically by $as_me ($PACKAGE) $VERSION
14520 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14521 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14522
14523 # Provide generalized library-building support services.
14524 # Written by Gordon Matzigkeit, 1996
14525
14526 # Copyright (C) 2014 Free Software Foundation, Inc.
14527 # This is free software; see the source for copying conditions.  There is NO
14528 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14529
14530 # GNU Libtool is free software; you can redistribute it and/or modify
14531 # it under the terms of the GNU General Public License as published by
14532 # the Free Software Foundation; either version 2 of of the License, or
14533 # (at your option) any later version.
14534 #
14535 # As a special exception to the GNU General Public License, if you
14536 # distribute this file as part of a program or library that is built
14537 # using GNU Libtool, you may include this file under the  same
14538 # distribution terms that you use for the rest of that program.
14539 #
14540 # GNU Libtool is distributed in the hope that it will be useful, but
14541 # WITHOUT ANY WARRANTY; without even the implied warranty of
14542 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14543 # GNU General Public License for more details.
14544 #
14545 # You should have received a copy of the GNU General Public License
14546 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
14547
14548
14549 # The names of the tagged configurations supported by this script.
14550 available_tags=''
14551
14552 # Configured defaults for sys_lib_dlsearch_path munging.
14553 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
14554
14555 # ### BEGIN LIBTOOL CONFIG
14556
14557 # Which release of libtool.m4 was used?
14558 macro_version=$macro_version
14559 macro_revision=$macro_revision
14560
14561 # Whether or not to build shared libraries.
14562 build_libtool_libs=$enable_shared
14563
14564 # Whether or not to build static libraries.
14565 build_old_libs=$enable_static
14566
14567 # What type of objects to build.
14568 pic_mode=$pic_mode
14569
14570 # Whether or not to optimize for fast installation.
14571 fast_install=$enable_fast_install
14572
14573 # Shared archive member basename,for filename based shared library versioning on AIX.
14574 shared_archive_member_spec=$shared_archive_member_spec
14575
14576 # Shell to use when invoking shell scripts.
14577 SHELL=$lt_SHELL
14578
14579 # An echo program that protects backslashes.
14580 ECHO=$lt_ECHO
14581
14582 # The PATH separator for the build system.
14583 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14584
14585 # The host system.
14586 host_alias=$host_alias
14587 host=$host
14588 host_os=$host_os
14589
14590 # The build system.
14591 build_alias=$build_alias
14592 build=$build
14593 build_os=$build_os
14594
14595 # A sed program that does not truncate output.
14596 SED=$lt_SED
14597
14598 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14599 Xsed="\$SED -e 1s/^X//"
14600
14601 # A grep program that handles long lines.
14602 GREP=$lt_GREP
14603
14604 # An ERE matcher.
14605 EGREP=$lt_EGREP
14606
14607 # A literal string matcher.
14608 FGREP=$lt_FGREP
14609
14610 # A BSD- or MS-compatible name lister.
14611 NM=$lt_NM
14612
14613 # Whether we need soft or hard links.
14614 LN_S=$lt_LN_S
14615
14616 # What is the maximum length of a command?
14617 max_cmd_len=$max_cmd_len
14618
14619 # Object file suffix (normally "o").
14620 objext=$ac_objext
14621
14622 # Executable file suffix (normally "").
14623 exeext=$exeext
14624
14625 # whether the shell understands "unset".
14626 lt_unset=$lt_unset
14627
14628 # turn spaces into newlines.
14629 SP2NL=$lt_lt_SP2NL
14630
14631 # turn newlines into spaces.
14632 NL2SP=$lt_lt_NL2SP
14633
14634 # convert \$build file names to \$host format.
14635 to_host_file_cmd=$lt_cv_to_host_file_cmd
14636
14637 # convert \$build files to toolchain format.
14638 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14639
14640 # An object symbol dumper.
14641 OBJDUMP=$lt_OBJDUMP
14642
14643 # Method to check whether dependent libraries are shared objects.
14644 deplibs_check_method=$lt_deplibs_check_method
14645
14646 # Command to use when deplibs_check_method = "file_magic".
14647 file_magic_cmd=$lt_file_magic_cmd
14648
14649 # How to find potential files when deplibs_check_method = "file_magic".
14650 file_magic_glob=$lt_file_magic_glob
14651
14652 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14653 want_nocaseglob=$lt_want_nocaseglob
14654
14655 # DLL creation program.
14656 DLLTOOL=$lt_DLLTOOL
14657
14658 # Command to associate shared and link libraries.
14659 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14660
14661 # The archiver.
14662 AR=$lt_AR
14663
14664 # Flags to create an archive.
14665 AR_FLAGS=$lt_AR_FLAGS
14666
14667 # How to feed a file listing to the archiver.
14668 archiver_list_spec=$lt_archiver_list_spec
14669
14670 # A symbol stripping program.
14671 STRIP=$lt_STRIP
14672
14673 # Commands used to install an old-style archive.
14674 RANLIB=$lt_RANLIB
14675 old_postinstall_cmds=$lt_old_postinstall_cmds
14676 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14677
14678 # Whether to use a lock for old archive extraction.
14679 lock_old_archive_extraction=$lock_old_archive_extraction
14680
14681 # A C compiler.
14682 LTCC=$lt_CC
14683
14684 # LTCC compiler flags.
14685 LTCFLAGS=$lt_CFLAGS
14686
14687 # Take the output of nm and produce a listing of raw symbols and C names.
14688 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14689
14690 # Transform the output of nm in a proper C declaration.
14691 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14692
14693 # Transform the output of nm into a list of symbols to manually relocate.
14694 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
14695
14696 # Transform the output of nm in a C name address pair.
14697 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14698
14699 # Transform the output of nm in a C name address pair when lib prefix is needed.
14700 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14701
14702 # The name lister interface.
14703 nm_interface=$lt_lt_cv_nm_interface
14704
14705 # Specify filename containing input files for \$NM.
14706 nm_file_list_spec=$lt_nm_file_list_spec
14707
14708 # The root where to search for dependent libraries,and where our libraries should be installed.
14709 lt_sysroot=$lt_sysroot
14710
14711 # Command to truncate a binary pipe.
14712 lt_truncate_bin=$lt_lt_cv_truncate_bin
14713
14714 # The name of the directory that contains temporary libtool files.
14715 objdir=$objdir
14716
14717 # Used to examine libraries when file_magic_cmd begins with "file".
14718 MAGIC_CMD=$MAGIC_CMD
14719
14720 # Must we lock files when doing compilation?
14721 need_locks=$lt_need_locks
14722
14723 # Manifest tool.
14724 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14725
14726 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14727 DSYMUTIL=$lt_DSYMUTIL
14728
14729 # Tool to change global to local symbols on Mac OS X.
14730 NMEDIT=$lt_NMEDIT
14731
14732 # Tool to manipulate fat objects and archives on Mac OS X.
14733 LIPO=$lt_LIPO
14734
14735 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14736 OTOOL=$lt_OTOOL
14737
14738 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14739 OTOOL64=$lt_OTOOL64
14740
14741 # Old archive suffix (normally "a").
14742 libext=$libext
14743
14744 # Shared library suffix (normally ".so").
14745 shrext_cmds=$lt_shrext_cmds
14746
14747 # The commands to extract the exported symbol list from a shared archive.
14748 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14749
14750 # Variables whose values should be saved in libtool wrapper scripts and
14751 # restored at link time.
14752 variables_saved_for_relink=$lt_variables_saved_for_relink
14753
14754 # Do we need the "lib" prefix for modules?
14755 need_lib_prefix=$need_lib_prefix
14756
14757 # Do we need a version for libraries?
14758 need_version=$need_version
14759
14760 # Library versioning type.
14761 version_type=$version_type
14762
14763 # Shared library runtime path variable.
14764 runpath_var=$runpath_var
14765
14766 # Shared library path variable.
14767 shlibpath_var=$shlibpath_var
14768
14769 # Is shlibpath searched before the hard-coded library search path?
14770 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14771
14772 # Format of library name prefix.
14773 libname_spec=$lt_libname_spec
14774
14775 # List of archive names.  First name is the real one, the rest are links.
14776 # The last name is the one that the linker finds with -lNAME
14777 library_names_spec=$lt_library_names_spec
14778
14779 # The coded name of the library, if different from the real name.
14780 soname_spec=$lt_soname_spec
14781
14782 # Permission mode override for installation of shared libraries.
14783 install_override_mode=$lt_install_override_mode
14784
14785 # Command to use after installation of a shared archive.
14786 postinstall_cmds=$lt_postinstall_cmds
14787
14788 # Command to use after uninstallation of a shared archive.
14789 postuninstall_cmds=$lt_postuninstall_cmds
14790
14791 # Commands used to finish a libtool library installation in a directory.
14792 finish_cmds=$lt_finish_cmds
14793
14794 # As "finish_cmds", except a single script fragment to be evaled but
14795 # not shown.
14796 finish_eval=$lt_finish_eval
14797
14798 # Whether we should hardcode library paths into libraries.
14799 hardcode_into_libs=$hardcode_into_libs
14800
14801 # Compile-time system search path for libraries.
14802 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14803
14804 # Detected run-time system search path for libraries.
14805 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
14806
14807 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
14808 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
14809
14810 # Whether dlopen is supported.
14811 dlopen_support=$enable_dlopen
14812
14813 # Whether dlopen of programs is supported.
14814 dlopen_self=$enable_dlopen_self
14815
14816 # Whether dlopen of statically linked programs is supported.
14817 dlopen_self_static=$enable_dlopen_self_static
14818
14819 # Commands to strip libraries.
14820 old_striplib=$lt_old_striplib
14821 striplib=$lt_striplib
14822
14823
14824 # The linker used to build libraries.
14825 LD=$lt_LD
14826
14827 # How to create reloadable object files.
14828 reload_flag=$lt_reload_flag
14829 reload_cmds=$lt_reload_cmds
14830
14831 # Commands used to build an old-style archive.
14832 old_archive_cmds=$lt_old_archive_cmds
14833
14834 # A language specific compiler.
14835 CC=$lt_compiler
14836
14837 # Is the compiler the GNU compiler?
14838 with_gcc=$GCC
14839
14840 # Compiler flag to turn off builtin functions.
14841 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14842
14843 # Additional compiler flags for building library objects.
14844 pic_flag=$lt_lt_prog_compiler_pic
14845
14846 # How to pass a linker flag through the compiler.
14847 wl=$lt_lt_prog_compiler_wl
14848
14849 # Compiler flag to prevent dynamic linking.
14850 link_static_flag=$lt_lt_prog_compiler_static
14851
14852 # Does compiler simultaneously support -c and -o options?
14853 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14854
14855 # Whether or not to add -lc for building shared libraries.
14856 build_libtool_need_lc=$archive_cmds_need_lc
14857
14858 # Whether or not to disallow shared libs when runtime libs are static.
14859 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14860
14861 # Compiler flag to allow reflexive dlopens.
14862 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14863
14864 # Compiler flag to generate shared objects directly from archives.
14865 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14866
14867 # Whether the compiler copes with passing no objects directly.
14868 compiler_needs_object=$lt_compiler_needs_object
14869
14870 # Create an old-style archive from a shared archive.
14871 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14872
14873 # Create a temporary old-style archive to link instead of a shared archive.
14874 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14875
14876 # Commands used to build a shared archive.
14877 archive_cmds=$lt_archive_cmds
14878 archive_expsym_cmds=$lt_archive_expsym_cmds
14879
14880 # Commands used to build a loadable module if different from building
14881 # a shared archive.
14882 module_cmds=$lt_module_cmds
14883 module_expsym_cmds=$lt_module_expsym_cmds
14884
14885 # Whether we are building with GNU ld or not.
14886 with_gnu_ld=$lt_with_gnu_ld
14887
14888 # Flag that allows shared libraries with undefined symbols to be built.
14889 allow_undefined_flag=$lt_allow_undefined_flag
14890
14891 # Flag that enforces no undefined symbols.
14892 no_undefined_flag=$lt_no_undefined_flag
14893
14894 # Flag to hardcode \$libdir into a binary during linking.
14895 # This must work even if \$libdir does not exist
14896 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14897
14898 # Whether we need a single "-rpath" flag with a separated argument.
14899 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14900
14901 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
14902 # DIR into the resulting binary.
14903 hardcode_direct=$hardcode_direct
14904
14905 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
14906 # DIR into the resulting binary and the resulting library dependency is
14907 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
14908 # library is relocated.
14909 hardcode_direct_absolute=$hardcode_direct_absolute
14910
14911 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14912 # into the resulting binary.
14913 hardcode_minus_L=$hardcode_minus_L
14914
14915 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14916 # into the resulting binary.
14917 hardcode_shlibpath_var=$hardcode_shlibpath_var
14918
14919 # Set to "yes" if building a shared library automatically hardcodes DIR
14920 # into the library and all subsequent libraries and executables linked
14921 # against it.
14922 hardcode_automatic=$hardcode_automatic
14923
14924 # Set to yes if linker adds runtime paths of dependent libraries
14925 # to runtime path list.
14926 inherit_rpath=$inherit_rpath
14927
14928 # Whether libtool must link a program against all its dependency libraries.
14929 link_all_deplibs=$link_all_deplibs
14930
14931 # Set to "yes" if exported symbols are required.
14932 always_export_symbols=$always_export_symbols
14933
14934 # The commands to list exported symbols.
14935 export_symbols_cmds=$lt_export_symbols_cmds
14936
14937 # Symbols that should not be listed in the preloaded symbols.
14938 exclude_expsyms=$lt_exclude_expsyms
14939
14940 # Symbols that must always be exported.
14941 include_expsyms=$lt_include_expsyms
14942
14943 # Commands necessary for linking programs (against libraries) with templates.
14944 prelink_cmds=$lt_prelink_cmds
14945
14946 # Commands necessary for finishing linking programs.
14947 postlink_cmds=$lt_postlink_cmds
14948
14949 # Specify filename containing input files.
14950 file_list_spec=$lt_file_list_spec
14951
14952 # How to hardcode a shared library path into an executable.
14953 hardcode_action=$hardcode_action
14954
14955 # ### END LIBTOOL CONFIG
14956
14957 _LT_EOF
14958
14959     cat <<'_LT_EOF' >> "$cfgfile"
14960
14961 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
14962
14963 # func_munge_path_list VARIABLE PATH
14964 # -----------------------------------
14965 # VARIABLE is name of variable containing _space_ separated list of
14966 # directories to be munged by the contents of PATH, which is string
14967 # having a format:
14968 # "DIR[:DIR]:"
14969 #       string "DIR[ DIR]" will be prepended to VARIABLE
14970 # ":DIR[:DIR]"
14971 #       string "DIR[ DIR]" will be appended to VARIABLE
14972 # "DIRP[:DIRP]::[DIRA:]DIRA"
14973 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
14974 #       "DIRA[ DIRA]" will be appended to VARIABLE
14975 # "DIR[:DIR]"
14976 #       VARIABLE will be replaced by "DIR[ DIR]"
14977 func_munge_path_list ()
14978 {
14979     case x$2 in
14980     x)
14981         ;;
14982     *:)
14983         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
14984         ;;
14985     x:*)
14986         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
14987         ;;
14988     *::*)
14989         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
14990         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
14991         ;;
14992     *)
14993         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
14994         ;;
14995     esac
14996 }
14997
14998
14999 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
15000 func_cc_basename ()
15001 {
15002     for cc_temp in $*""; do
15003       case $cc_temp in
15004         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15005         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15006         \-*) ;;
15007         *) break;;
15008       esac
15009     done
15010     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15011 }
15012
15013
15014 # ### END FUNCTIONS SHARED WITH CONFIGURE
15015
15016 _LT_EOF
15017
15018   case $host_os in
15019   aix3*)
15020     cat <<\_LT_EOF >> "$cfgfile"
15021 # AIX sometimes has problems with the GCC collect2 program.  For some
15022 # reason, if we set the COLLECT_NAMES environment variable, the problems
15023 # vanish in a puff of smoke.
15024 if test set != "${COLLECT_NAMES+set}"; then
15025   COLLECT_NAMES=
15026   export COLLECT_NAMES
15027 fi
15028 _LT_EOF
15029     ;;
15030   esac
15031
15032
15033 ltmain=$ac_aux_dir/ltmain.sh
15034
15035
15036   # We use sed instead of cat because bash on DJGPP gets confused if
15037   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15038   # text mode, it properly converts lines to CR/LF.  This bash problem
15039   # is reportedly fixed, but why not run on old versions too?
15040   sed '$q' "$ltmain" >> "$cfgfile" \
15041      || (rm -f "$cfgfile"; exit 1)
15042
15043    mv -f "$cfgfile" "$ofile" ||
15044     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15045   chmod +x "$ofile"
15046
15047  ;;
15048
15049   esac
15050 done # for ac_tag
15051
15052
15053 as_fn_exit 0
15054 _ACEOF
15055 ac_clean_files=$ac_clean_files_save
15056
15057 test $ac_write_fail = 0 ||
15058   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15059
15060
15061 # configure is writing to config.log, and then calls config.status.
15062 # config.status does its own redirection, appending to config.log.
15063 # Unfortunately, on DOS this fails, as config.log is still kept open
15064 # by configure, so config.status won't be able to write to it; its
15065 # output is simply discarded.  So we exec the FD to /dev/null,
15066 # effectively closing config.log, so it can be properly (re)opened and
15067 # appended to by config.status.  When coming back to configure, we
15068 # need to make the FD available again.
15069 if test "$no_create" != yes; then
15070   ac_cs_success=:
15071   ac_config_status_args=
15072   test "$silent" = yes &&
15073     ac_config_status_args="$ac_config_status_args --quiet"
15074   exec 5>/dev/null
15075   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15076   exec 5>>config.log
15077   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15078   # would make configure fail if this is the last instruction.
15079   $ac_cs_success || as_fn_exit 1
15080 fi
15081 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15082   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15083 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15084 fi
15085