plugins/service: Add implemention of .Disconnect method
[platform/upstream/bluez.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for bluez 5.19.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in #(
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order.  Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92   *[\\/]* ) as_myself=$0 ;;
93   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96   IFS=$as_save_IFS
97   test -z "$as_dir" && as_dir=.
98     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99   done
100 IFS=$as_save_IFS
101
102      ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107   as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111   exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there.  '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136   # into an infinite loop, continuously re-executing ourselves.
137   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138     _as_can_reexec=no; export _as_can_reexec;
139     # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147   *v*x* | *x*v* ) as_opts=-vx ;;
148   *v* ) as_opts=-v ;;
149   *x* ) as_opts=-x ;;
150   * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157   fi
158   # We don't want this to propagate to other subprocesses.
159           { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162   emulate sh
163   NULLCMD=:
164   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165   # is contrary to our usage.  Disable this feature.
166   alias -g '\${1+\"\$@\"}'='\"\$@\"'
167   setopt NO_GLOB_SUBST
168 else
169   case \`(set -o) 2>/dev/null\` in #(
170   *posix*) :
171     set -o posix ;; #(
172   *) :
173      ;;
174 esac
175 fi
176 "
177   as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191   exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
200
201   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205     PATH=/empty FPATH=/empty; export PATH FPATH
206     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208   if (eval "$as_required") 2>/dev/null; then :
209   as_have_required=yes
210 else
211   as_have_required=no
212 fi
213   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220   IFS=$as_save_IFS
221   test -z "$as_dir" && as_dir=.
222   as_found=:
223   case $as_dir in #(
224          /*)
225            for as_base in sh bash ksh sh5; do
226              # Try only shells that exist, to save several forks.
227              as_shell=$as_dir/$as_base
228              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230   CONFIG_SHELL=$as_shell as_have_required=yes
231                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   break 2
233 fi
234 fi
235            done;;
236        esac
237   as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241   CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246       if test "x$CONFIG_SHELL" != x; then :
247   export CONFIG_SHELL
248              # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256   *v*x* | *x*v* ) as_opts=-vx ;;
257   *v* ) as_opts=-v ;;
258   *x* ) as_opts=-x ;;
259   * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268     if test x$as_have_required = xno; then :
269   $as_echo "$0: This script requires a shell more modern than all"
270   $as_echo "$0: the shells that I found on your system."
271   if test x${ZSH_VERSION+set} = xset ; then
272     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274   else
275     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279   fi
280   exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298   { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307   return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315   set +e
316   as_fn_set_status $1
317   exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326   case $as_dir in #(
327   -*) as_dir=./$as_dir;;
328   esac
329   test -d "$as_dir" || eval $as_mkdir_p || {
330     as_dirs=
331     while :; do
332       case $as_dir in #(
333       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334       *) as_qdir=$as_dir;;
335       esac
336       as_dirs="'$as_qdir' $as_dirs"
337       as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339          X"$as_dir" : 'X\(//\)[^/]' \| \
340          X"$as_dir" : 'X\(//\)$' \| \
341          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344             s//\1/
345             q
346           }
347           /^X\(\/\/\)[^/].*/{
348             s//\1/
349             q
350           }
351           /^X\(\/\/\)$/{
352             s//\1/
353             q
354           }
355           /^X\(\/\).*/{
356             s//\1/
357             q
358           }
359           s/.*/./; q'`
360       test -d "$as_dir" && break
361     done
362     test -z "$as_dirs" || eval "mkdir $as_dirs"
363   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373   test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382   eval 'as_fn_append ()
383   {
384     eval $1+=\$2
385   }'
386 else
387   as_fn_append ()
388   {
389     eval $1=\$$1\$2
390   }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399   eval 'as_fn_arith ()
400   {
401     as_val=$(( $* ))
402   }'
403 else
404   as_fn_arith ()
405   {
406     as_val=`expr "$@" || test $? -eq 1`
407   }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418   as_status=$1; test $as_status -eq 0 && as_status=1
419   if test "$4"; then
420     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422   fi
423   $as_echo "$as_me: error: $2" >&2
424   as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428    test "X`expr 00001 : '.*\(...\)'`" = X001; then
429   as_expr=expr
430 else
431   as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435   as_basename=basename
436 else
437   as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441   as_dirname=dirname
442 else
443   as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448          X"$0" : 'X\(//\)$' \| \
449          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451     sed '/^.*\/\([^/][^/]*\)\/*$/{
452             s//\1/
453             q
454           }
455           /^X\/\(\/\/\)$/{
456             s//\1/
457             q
458           }
459           /^X\/\(\/\).*/{
460             s//\1/
461             q
462           }
463           s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473   as_lineno_1=$LINENO as_lineno_1a=$LINENO
474   as_lineno_2=$LINENO as_lineno_2a=$LINENO
475   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
478   sed -n '
479     p
480     /[$]LINENO/=
481   ' <$as_myself |
482     sed '
483       s/[$]LINENO.*/&-/
484       t lineno
485       b
486       :lineno
487       N
488       :loop
489       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490       t loop
491       s/-\n.*//
492     ' >$as_me.lineno &&
493   chmod +x "$as_me.lineno" ||
494     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497   # already done that, so ensure we don't try to do so again and fall
498   # in an infinite loop.  This has already happened in practice.
499   _as_can_reexec=no; export _as_can_reexec
500   # Don't try to exec as it changes $[0], causing all sort of problems
501   # (the dirname of $[0] is not the place where we might find the
502   # original and so on.  Autoconf is especially sensitive to this).
503   . "./$as_me.lineno"
504   # Exit status is that of the last command.
505   exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511   case `echo 'xy\c'` in
512   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
513   xy)  ECHO_C='\c';;
514   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
515        ECHO_T=' ';;
516   esac;;
517 *)
518   ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523   rm -f conf$$.dir/conf$$.file
524 else
525   rm -f conf$$.dir
526   mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529   if ln -s conf$$.file conf$$ 2>/dev/null; then
530     as_ln_s='ln -s'
531     # ... but there are two gotchas:
532     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534     # In both cases, we have to default to `cp -pR'.
535     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536       as_ln_s='cp -pR'
537   elif ln conf$$.file conf$$ 2>/dev/null; then
538     as_ln_s=ln
539   else
540     as_ln_s='cp -pR'
541   fi
542 else
543   as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549   as_mkdir_p='mkdir -p "$as_dir"'
550 else
551   test -d ./-p && rmdir ./-p
552   as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME='bluez'
589 PACKAGE_TARNAME='bluez'
590 PACKAGE_VERSION='5.19'
591 PACKAGE_STRING='bluez 5.19'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 # Factoring default headers for most tests.
596 ac_includes_default="\
597 #include <stdio.h>
598 #ifdef HAVE_SYS_TYPES_H
599 # include <sys/types.h>
600 #endif
601 #ifdef HAVE_SYS_STAT_H
602 # include <sys/stat.h>
603 #endif
604 #ifdef STDC_HEADERS
605 # include <stdlib.h>
606 # include <stddef.h>
607 #else
608 # ifdef HAVE_STDLIB_H
609 #  include <stdlib.h>
610 # endif
611 #endif
612 #ifdef HAVE_STRING_H
613 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
614 #  include <memory.h>
615 # endif
616 # include <string.h>
617 #endif
618 #ifdef HAVE_STRINGS_H
619 # include <strings.h>
620 #endif
621 #ifdef HAVE_INTTYPES_H
622 # include <inttypes.h>
623 #endif
624 #ifdef HAVE_STDINT_H
625 # include <stdint.h>
626 #endif
627 #ifdef HAVE_UNISTD_H
628 # include <unistd.h>
629 #endif"
630
631 ac_default_prefix=/usr/local
632 ac_subst_vars='am__EXEEXT_FALSE
633 am__EXEEXT_TRUE
634 LTLIBOBJS
635 LIBOBJS
636 SPEEXDSP_LIBS
637 SPEEXDSP_CFLAGS
638 SBC_LIBS
639 SBC_CFLAGS
640 ANDROID_FALSE
641 ANDROID_TRUE
642 CONFIGDIR
643 SIXAXIS_FALSE
644 SIXAXIS_TRUE
645 EXPERIMENTAL_FALSE
646 EXPERIMENTAL_TRUE
647 DATAFILES_FALSE
648 DATAFILES_TRUE
649 SYSTEMD_USERUNITDIR
650 SYSTEMD_SYSTEMUNITDIR
651 SYSTEMD_FALSE
652 SYSTEMD_TRUE
653 READLINE_FALSE
654 READLINE_TRUE
655 CLIENT_FALSE
656 CLIENT_TRUE
657 OBEX_FALSE
658 OBEX_TRUE
659 ICAL_LIBS
660 ICAL_CFLAGS
661 CUPS_FALSE
662 CUPS_TRUE
663 HID2HCI_FALSE
664 HID2HCI_TRUE
665 UDEV_DIR
666 UDEV_FALSE
667 UDEV_TRUE
668 UDEV_LIBS
669 UDEV_CFLAGS
670 MONITOR_FALSE
671 MONITOR_TRUE
672 TOOLS_FALSE
673 TOOLS_TRUE
674 TEST_FALSE
675 TEST_TRUE
676 LIBRARY_FALSE
677 LIBRARY_TRUE
678 DBUS_SESSIONBUSDIR
679 DBUS_SYSTEMBUSDIR
680 DBUS_CONFDIR
681 DBUS_LIBS
682 DBUS_CFLAGS
683 GTHREAD_LIBS
684 GTHREAD_CFLAGS
685 GLIB_LIBS
686 GLIB_CFLAGS
687 MISC_LDFLAGS
688 MISC_CFLAGS
689 OTOOL64
690 OTOOL
691 LIPO
692 NMEDIT
693 DSYMUTIL
694 MANIFEST_TOOL
695 RANLIB
696 ac_ct_AR
697 AR
698 DLLTOOL
699 OBJDUMP
700 LN_S
701 NM
702 ac_ct_DUMPBIN
703 DUMPBIN
704 LD
705 FGREP
706 SED
707 host_os
708 host_vendor
709 host_cpu
710 host
711 build_os
712 build_vendor
713 build_cpu
714 build
715 LIBTOOL
716 WARNING_CFLAGS
717 PKG_CONFIG_LIBDIR
718 PKG_CONFIG_PATH
719 PKG_CONFIG
720 MAINT
721 MAINTAINER_MODE_FALSE
722 MAINTAINER_MODE_TRUE
723 EGREP
724 GREP
725 CPP
726 am__fastdepCC_FALSE
727 am__fastdepCC_TRUE
728 CCDEPMODE
729 am__nodep
730 AMDEPBACKSLASH
731 AMDEP_FALSE
732 AMDEP_TRUE
733 am__quote
734 am__include
735 DEPDIR
736 OBJEXT
737 EXEEXT
738 ac_ct_CC
739 CPPFLAGS
740 LDFLAGS
741 CFLAGS
742 CC
743 AM_BACKSLASH
744 AM_DEFAULT_VERBOSITY
745 AM_DEFAULT_V
746 AM_V
747 am__untar
748 am__tar
749 AMTAR
750 am__leading_dot
751 SET_MAKE
752 AWK
753 mkdir_p
754 MKDIR_P
755 INSTALL_STRIP_PROGRAM
756 STRIP
757 install_sh
758 MAKEINFO
759 AUTOHEADER
760 AUTOMAKE
761 AUTOCONF
762 ACLOCAL
763 VERSION
764 PACKAGE
765 CYGPATH_W
766 am__isrc
767 INSTALL_DATA
768 INSTALL_SCRIPT
769 INSTALL_PROGRAM
770 target_alias
771 host_alias
772 build_alias
773 LIBS
774 ECHO_T
775 ECHO_N
776 ECHO_C
777 DEFS
778 mandir
779 localedir
780 libdir
781 psdir
782 pdfdir
783 dvidir
784 htmldir
785 infodir
786 docdir
787 oldincludedir
788 includedir
789 localstatedir
790 sharedstatedir
791 sysconfdir
792 datadir
793 datarootdir
794 libexecdir
795 sbindir
796 bindir
797 program_transform_name
798 prefix
799 exec_prefix
800 PACKAGE_URL
801 PACKAGE_BUGREPORT
802 PACKAGE_STRING
803 PACKAGE_VERSION
804 PACKAGE_TARNAME
805 PACKAGE_NAME
806 PATH_SEPARATOR
807 SHELL'
808 ac_subst_files=''
809 ac_user_opts='
810 enable_option_checking
811 enable_silent_rules
812 enable_dependency_tracking
813 enable_maintainer_mode
814 enable_static
815 enable_shared
816 with_pic
817 enable_fast_install
818 with_gnu_ld
819 with_sysroot
820 enable_libtool_lock
821 enable_optimization
822 enable_debug
823 enable_pie
824 enable_threads
825 with_dbusconfdir
826 with_dbussystembusdir
827 with_dbussessionbusdir
828 enable_library
829 enable_test
830 enable_tools
831 enable_monitor
832 enable_udev
833 with_udevdir
834 enable_cups
835 enable_obex
836 enable_client
837 enable_systemd
838 with_systemdsystemunitdir
839 with_systemduserunitdir
840 enable_datafiles
841 enable_experimental
842 enable_sixaxis
843 enable_android
844 '
845       ac_precious_vars='build_alias
846 host_alias
847 target_alias
848 CC
849 CFLAGS
850 LDFLAGS
851 LIBS
852 CPPFLAGS
853 CPP
854 PKG_CONFIG
855 PKG_CONFIG_PATH
856 PKG_CONFIG_LIBDIR
857 GLIB_CFLAGS
858 GLIB_LIBS
859 GTHREAD_CFLAGS
860 GTHREAD_LIBS
861 DBUS_CFLAGS
862 DBUS_LIBS
863 UDEV_CFLAGS
864 UDEV_LIBS
865 ICAL_CFLAGS
866 ICAL_LIBS
867 SBC_CFLAGS
868 SBC_LIBS
869 SPEEXDSP_CFLAGS
870 SPEEXDSP_LIBS'
871
872
873 # Initialize some variables set by options.
874 ac_init_help=
875 ac_init_version=false
876 ac_unrecognized_opts=
877 ac_unrecognized_sep=
878 # The variables have the same names as the options, with
879 # dashes changed to underlines.
880 cache_file=/dev/null
881 exec_prefix=NONE
882 no_create=
883 no_recursion=
884 prefix=NONE
885 program_prefix=NONE
886 program_suffix=NONE
887 program_transform_name=s,x,x,
888 silent=
889 site=
890 srcdir=
891 verbose=
892 x_includes=NONE
893 x_libraries=NONE
894
895 # Installation directory options.
896 # These are left unexpanded so users can "make install exec_prefix=/foo"
897 # and all the variables that are supposed to be based on exec_prefix
898 # by default will actually change.
899 # Use braces instead of parens because sh, perl, etc. also accept them.
900 # (The list follows the same order as the GNU Coding Standards.)
901 bindir='${exec_prefix}/bin'
902 sbindir='${exec_prefix}/sbin'
903 libexecdir='${exec_prefix}/libexec'
904 datarootdir='${prefix}/share'
905 datadir='${datarootdir}'
906 sysconfdir='${prefix}/etc'
907 sharedstatedir='${prefix}/com'
908 localstatedir='${prefix}/var'
909 includedir='${prefix}/include'
910 oldincludedir='/usr/include'
911 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
912 infodir='${datarootdir}/info'
913 htmldir='${docdir}'
914 dvidir='${docdir}'
915 pdfdir='${docdir}'
916 psdir='${docdir}'
917 libdir='${exec_prefix}/lib'
918 localedir='${datarootdir}/locale'
919 mandir='${datarootdir}/man'
920
921 ac_prev=
922 ac_dashdash=
923 for ac_option
924 do
925   # If the previous option needs an argument, assign it.
926   if test -n "$ac_prev"; then
927     eval $ac_prev=\$ac_option
928     ac_prev=
929     continue
930   fi
931
932   case $ac_option in
933   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
934   *=)   ac_optarg= ;;
935   *)    ac_optarg=yes ;;
936   esac
937
938   # Accept the important Cygnus configure options, so we can diagnose typos.
939
940   case $ac_dashdash$ac_option in
941   --)
942     ac_dashdash=yes ;;
943
944   -bindir | --bindir | --bindi | --bind | --bin | --bi)
945     ac_prev=bindir ;;
946   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
947     bindir=$ac_optarg ;;
948
949   -build | --build | --buil | --bui | --bu)
950     ac_prev=build_alias ;;
951   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
952     build_alias=$ac_optarg ;;
953
954   -cache-file | --cache-file | --cache-fil | --cache-fi \
955   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
956     ac_prev=cache_file ;;
957   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
958   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
959     cache_file=$ac_optarg ;;
960
961   --config-cache | -C)
962     cache_file=config.cache ;;
963
964   -datadir | --datadir | --datadi | --datad)
965     ac_prev=datadir ;;
966   -datadir=* | --datadir=* | --datadi=* | --datad=*)
967     datadir=$ac_optarg ;;
968
969   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
970   | --dataroo | --dataro | --datar)
971     ac_prev=datarootdir ;;
972   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
973   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
974     datarootdir=$ac_optarg ;;
975
976   -disable-* | --disable-*)
977     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
978     # Reject names that are not valid shell variable names.
979     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
980       as_fn_error $? "invalid feature name: $ac_useropt"
981     ac_useropt_orig=$ac_useropt
982     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
983     case $ac_user_opts in
984       *"
985 "enable_$ac_useropt"
986 "*) ;;
987       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
988          ac_unrecognized_sep=', ';;
989     esac
990     eval enable_$ac_useropt=no ;;
991
992   -docdir | --docdir | --docdi | --doc | --do)
993     ac_prev=docdir ;;
994   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
995     docdir=$ac_optarg ;;
996
997   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
998     ac_prev=dvidir ;;
999   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1000     dvidir=$ac_optarg ;;
1001
1002   -enable-* | --enable-*)
1003     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1004     # Reject names that are not valid shell variable names.
1005     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1006       as_fn_error $? "invalid feature name: $ac_useropt"
1007     ac_useropt_orig=$ac_useropt
1008     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1009     case $ac_user_opts in
1010       *"
1011 "enable_$ac_useropt"
1012 "*) ;;
1013       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1014          ac_unrecognized_sep=', ';;
1015     esac
1016     eval enable_$ac_useropt=\$ac_optarg ;;
1017
1018   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1019   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1020   | --exec | --exe | --ex)
1021     ac_prev=exec_prefix ;;
1022   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1023   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1024   | --exec=* | --exe=* | --ex=*)
1025     exec_prefix=$ac_optarg ;;
1026
1027   -gas | --gas | --ga | --g)
1028     # Obsolete; use --with-gas.
1029     with_gas=yes ;;
1030
1031   -help | --help | --hel | --he | -h)
1032     ac_init_help=long ;;
1033   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1034     ac_init_help=recursive ;;
1035   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1036     ac_init_help=short ;;
1037
1038   -host | --host | --hos | --ho)
1039     ac_prev=host_alias ;;
1040   -host=* | --host=* | --hos=* | --ho=*)
1041     host_alias=$ac_optarg ;;
1042
1043   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1044     ac_prev=htmldir ;;
1045   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1046   | --ht=*)
1047     htmldir=$ac_optarg ;;
1048
1049   -includedir | --includedir | --includedi | --included | --include \
1050   | --includ | --inclu | --incl | --inc)
1051     ac_prev=includedir ;;
1052   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1053   | --includ=* | --inclu=* | --incl=* | --inc=*)
1054     includedir=$ac_optarg ;;
1055
1056   -infodir | --infodir | --infodi | --infod | --info | --inf)
1057     ac_prev=infodir ;;
1058   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1059     infodir=$ac_optarg ;;
1060
1061   -libdir | --libdir | --libdi | --libd)
1062     ac_prev=libdir ;;
1063   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1064     libdir=$ac_optarg ;;
1065
1066   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1067   | --libexe | --libex | --libe)
1068     ac_prev=libexecdir ;;
1069   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1070   | --libexe=* | --libex=* | --libe=*)
1071     libexecdir=$ac_optarg ;;
1072
1073   -localedir | --localedir | --localedi | --localed | --locale)
1074     ac_prev=localedir ;;
1075   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1076     localedir=$ac_optarg ;;
1077
1078   -localstatedir | --localstatedir | --localstatedi | --localstated \
1079   | --localstate | --localstat | --localsta | --localst | --locals)
1080     ac_prev=localstatedir ;;
1081   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1082   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1083     localstatedir=$ac_optarg ;;
1084
1085   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1086     ac_prev=mandir ;;
1087   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1088     mandir=$ac_optarg ;;
1089
1090   -nfp | --nfp | --nf)
1091     # Obsolete; use --without-fp.
1092     with_fp=no ;;
1093
1094   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1095   | --no-cr | --no-c | -n)
1096     no_create=yes ;;
1097
1098   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1099   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1100     no_recursion=yes ;;
1101
1102   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1103   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1104   | --oldin | --oldi | --old | --ol | --o)
1105     ac_prev=oldincludedir ;;
1106   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1107   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1108   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1109     oldincludedir=$ac_optarg ;;
1110
1111   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1112     ac_prev=prefix ;;
1113   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1114     prefix=$ac_optarg ;;
1115
1116   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1117   | --program-pre | --program-pr | --program-p)
1118     ac_prev=program_prefix ;;
1119   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1120   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1121     program_prefix=$ac_optarg ;;
1122
1123   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1124   | --program-suf | --program-su | --program-s)
1125     ac_prev=program_suffix ;;
1126   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1127   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1128     program_suffix=$ac_optarg ;;
1129
1130   -program-transform-name | --program-transform-name \
1131   | --program-transform-nam | --program-transform-na \
1132   | --program-transform-n | --program-transform- \
1133   | --program-transform | --program-transfor \
1134   | --program-transfo | --program-transf \
1135   | --program-trans | --program-tran \
1136   | --progr-tra | --program-tr | --program-t)
1137     ac_prev=program_transform_name ;;
1138   -program-transform-name=* | --program-transform-name=* \
1139   | --program-transform-nam=* | --program-transform-na=* \
1140   | --program-transform-n=* | --program-transform-=* \
1141   | --program-transform=* | --program-transfor=* \
1142   | --program-transfo=* | --program-transf=* \
1143   | --program-trans=* | --program-tran=* \
1144   | --progr-tra=* | --program-tr=* | --program-t=*)
1145     program_transform_name=$ac_optarg ;;
1146
1147   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1148     ac_prev=pdfdir ;;
1149   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1150     pdfdir=$ac_optarg ;;
1151
1152   -psdir | --psdir | --psdi | --psd | --ps)
1153     ac_prev=psdir ;;
1154   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1155     psdir=$ac_optarg ;;
1156
1157   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1158   | -silent | --silent | --silen | --sile | --sil)
1159     silent=yes ;;
1160
1161   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1162     ac_prev=sbindir ;;
1163   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1164   | --sbi=* | --sb=*)
1165     sbindir=$ac_optarg ;;
1166
1167   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1168   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1169   | --sharedst | --shareds | --shared | --share | --shar \
1170   | --sha | --sh)
1171     ac_prev=sharedstatedir ;;
1172   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1173   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1174   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1175   | --sha=* | --sh=*)
1176     sharedstatedir=$ac_optarg ;;
1177
1178   -site | --site | --sit)
1179     ac_prev=site ;;
1180   -site=* | --site=* | --sit=*)
1181     site=$ac_optarg ;;
1182
1183   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1184     ac_prev=srcdir ;;
1185   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1186     srcdir=$ac_optarg ;;
1187
1188   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1189   | --syscon | --sysco | --sysc | --sys | --sy)
1190     ac_prev=sysconfdir ;;
1191   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1192   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1193     sysconfdir=$ac_optarg ;;
1194
1195   -target | --target | --targe | --targ | --tar | --ta | --t)
1196     ac_prev=target_alias ;;
1197   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1198     target_alias=$ac_optarg ;;
1199
1200   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1201     verbose=yes ;;
1202
1203   -version | --version | --versio | --versi | --vers | -V)
1204     ac_init_version=: ;;
1205
1206   -with-* | --with-*)
1207     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1208     # Reject names that are not valid shell variable names.
1209     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1210       as_fn_error $? "invalid package name: $ac_useropt"
1211     ac_useropt_orig=$ac_useropt
1212     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1213     case $ac_user_opts in
1214       *"
1215 "with_$ac_useropt"
1216 "*) ;;
1217       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1218          ac_unrecognized_sep=', ';;
1219     esac
1220     eval with_$ac_useropt=\$ac_optarg ;;
1221
1222   -without-* | --without-*)
1223     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1224     # Reject names that are not valid shell variable names.
1225     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1226       as_fn_error $? "invalid package name: $ac_useropt"
1227     ac_useropt_orig=$ac_useropt
1228     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1229     case $ac_user_opts in
1230       *"
1231 "with_$ac_useropt"
1232 "*) ;;
1233       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1234          ac_unrecognized_sep=', ';;
1235     esac
1236     eval with_$ac_useropt=no ;;
1237
1238   --x)
1239     # Obsolete; use --with-x.
1240     with_x=yes ;;
1241
1242   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1243   | --x-incl | --x-inc | --x-in | --x-i)
1244     ac_prev=x_includes ;;
1245   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1246   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1247     x_includes=$ac_optarg ;;
1248
1249   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1250   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1251     ac_prev=x_libraries ;;
1252   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1253   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1254     x_libraries=$ac_optarg ;;
1255
1256   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1257 Try \`$0 --help' for more information"
1258     ;;
1259
1260   *=*)
1261     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1262     # Reject names that are not valid shell variable names.
1263     case $ac_envvar in #(
1264       '' | [0-9]* | *[!_$as_cr_alnum]* )
1265       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1266     esac
1267     eval $ac_envvar=\$ac_optarg
1268     export $ac_envvar ;;
1269
1270   *)
1271     # FIXME: should be removed in autoconf 3.0.
1272     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1273     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1274       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1275     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1276     ;;
1277
1278   esac
1279 done
1280
1281 if test -n "$ac_prev"; then
1282   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1283   as_fn_error $? "missing argument to $ac_option"
1284 fi
1285
1286 if test -n "$ac_unrecognized_opts"; then
1287   case $enable_option_checking in
1288     no) ;;
1289     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1290     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1291   esac
1292 fi
1293
1294 # Check all directory arguments for consistency.
1295 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1296                 datadir sysconfdir sharedstatedir localstatedir includedir \
1297                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1298                 libdir localedir mandir
1299 do
1300   eval ac_val=\$$ac_var
1301   # Remove trailing slashes.
1302   case $ac_val in
1303     */ )
1304       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1305       eval $ac_var=\$ac_val;;
1306   esac
1307   # Be sure to have absolute directory names.
1308   case $ac_val in
1309     [\\/$]* | ?:[\\/]* )  continue;;
1310     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1311   esac
1312   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1313 done
1314
1315 # There might be people who depend on the old broken behavior: `$host'
1316 # used to hold the argument of --host etc.
1317 # FIXME: To remove some day.
1318 build=$build_alias
1319 host=$host_alias
1320 target=$target_alias
1321
1322 # FIXME: To remove some day.
1323 if test "x$host_alias" != x; then
1324   if test "x$build_alias" = x; then
1325     cross_compiling=maybe
1326   elif test "x$build_alias" != "x$host_alias"; then
1327     cross_compiling=yes
1328   fi
1329 fi
1330
1331 ac_tool_prefix=
1332 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1333
1334 test "$silent" = yes && exec 6>/dev/null
1335
1336
1337 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1338 ac_ls_di=`ls -di .` &&
1339 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1340   as_fn_error $? "working directory cannot be determined"
1341 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1342   as_fn_error $? "pwd does not report name of working directory"
1343
1344
1345 # Find the source files, if location was not specified.
1346 if test -z "$srcdir"; then
1347   ac_srcdir_defaulted=yes
1348   # Try the directory containing this script, then the parent directory.
1349   ac_confdir=`$as_dirname -- "$as_myself" ||
1350 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1351          X"$as_myself" : 'X\(//\)[^/]' \| \
1352          X"$as_myself" : 'X\(//\)$' \| \
1353          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1354 $as_echo X"$as_myself" |
1355     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1356             s//\1/
1357             q
1358           }
1359           /^X\(\/\/\)[^/].*/{
1360             s//\1/
1361             q
1362           }
1363           /^X\(\/\/\)$/{
1364             s//\1/
1365             q
1366           }
1367           /^X\(\/\).*/{
1368             s//\1/
1369             q
1370           }
1371           s/.*/./; q'`
1372   srcdir=$ac_confdir
1373   if test ! -r "$srcdir/$ac_unique_file"; then
1374     srcdir=..
1375   fi
1376 else
1377   ac_srcdir_defaulted=no
1378 fi
1379 if test ! -r "$srcdir/$ac_unique_file"; then
1380   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1381   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1382 fi
1383 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1384 ac_abs_confdir=`(
1385         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1386         pwd)`
1387 # When building in place, set srcdir=.
1388 if test "$ac_abs_confdir" = "$ac_pwd"; then
1389   srcdir=.
1390 fi
1391 # Remove unnecessary trailing slashes from srcdir.
1392 # Double slashes in file names in object file debugging info
1393 # mess up M-x gdb in Emacs.
1394 case $srcdir in
1395 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1396 esac
1397 for ac_var in $ac_precious_vars; do
1398   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1399   eval ac_env_${ac_var}_value=\$${ac_var}
1400   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1401   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1402 done
1403
1404 #
1405 # Report the --help message.
1406 #
1407 if test "$ac_init_help" = "long"; then
1408   # Omit some internal or obsolete options to make the list less imposing.
1409   # This message is too long to be a string in the A/UX 3.1 sh.
1410   cat <<_ACEOF
1411 \`configure' configures bluez 5.19 to adapt to many kinds of systems.
1412
1413 Usage: $0 [OPTION]... [VAR=VALUE]...
1414
1415 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1416 VAR=VALUE.  See below for descriptions of some of the useful variables.
1417
1418 Defaults for the options are specified in brackets.
1419
1420 Configuration:
1421   -h, --help              display this help and exit
1422       --help=short        display options specific to this package
1423       --help=recursive    display the short help of all the included packages
1424   -V, --version           display version information and exit
1425   -q, --quiet, --silent   do not print \`checking ...' messages
1426       --cache-file=FILE   cache test results in FILE [disabled]
1427   -C, --config-cache      alias for \`--cache-file=config.cache'
1428   -n, --no-create         do not create output files
1429       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1430
1431 Installation directories:
1432   --prefix=PREFIX         install architecture-independent files in PREFIX
1433                           [$ac_default_prefix]
1434   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1435                           [PREFIX]
1436
1437 By default, \`make install' will install all the files in
1438 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1439 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1440 for instance \`--prefix=\$HOME'.
1441
1442 For better control, use the options below.
1443
1444 Fine tuning of the installation directories:
1445   --bindir=DIR            user executables [EPREFIX/bin]
1446   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1447   --libexecdir=DIR        program executables [EPREFIX/libexec]
1448   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1449   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1450   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1451   --libdir=DIR            object code libraries [EPREFIX/lib]
1452   --includedir=DIR        C header files [PREFIX/include]
1453   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1454   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1455   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1456   --infodir=DIR           info documentation [DATAROOTDIR/info]
1457   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1458   --mandir=DIR            man documentation [DATAROOTDIR/man]
1459   --docdir=DIR            documentation root [DATAROOTDIR/doc/bluez]
1460   --htmldir=DIR           html documentation [DOCDIR]
1461   --dvidir=DIR            dvi documentation [DOCDIR]
1462   --pdfdir=DIR            pdf documentation [DOCDIR]
1463   --psdir=DIR             ps documentation [DOCDIR]
1464 _ACEOF
1465
1466   cat <<\_ACEOF
1467
1468 Program names:
1469   --program-prefix=PREFIX            prepend PREFIX to installed program names
1470   --program-suffix=SUFFIX            append SUFFIX to installed program names
1471   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1472
1473 System types:
1474   --build=BUILD     configure for building on BUILD [guessed]
1475   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1476 _ACEOF
1477 fi
1478
1479 if test -n "$ac_init_help"; then
1480   case $ac_init_help in
1481      short | recursive ) echo "Configuration of bluez 5.19:";;
1482    esac
1483   cat <<\_ACEOF
1484
1485 Optional Features:
1486   --disable-option-checking  ignore unrecognized --enable/--with options
1487   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1488   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1489   --enable-silent-rules          less verbose build output (undo: `make V=1')
1490   --disable-silent-rules         verbose build output (undo: `make V=0')
1491   --disable-dependency-tracking  speeds up one-time build
1492   --enable-dependency-tracking   do not reject slow dependency extractors
1493   --enable-maintainer-mode  enable make rules and dependencies not useful
1494                           (and sometimes confusing) to the casual installer
1495   --enable-static[=PKGS]  build static libraries [default=no]
1496   --enable-shared[=PKGS]  build shared libraries [default=yes]
1497   --enable-fast-install[=PKGS]
1498                           optimize for fast installation [default=yes]
1499   --disable-libtool-lock  avoid locking (might break parallel builds)
1500   --disable-optimization  disable code optimization through compiler
1501   --enable-debug          enable compiling with debugging information
1502   --enable-pie            enable position independent executables flag
1503   --enable-threads        enable threading support
1504   --enable-library        install Bluetooth library
1505   --enable-test           enable test/example scripts
1506   --disable-tools         disable Bluetooth tools
1507   --disable-monitor       disable Bluetooth monitor
1508   --disable-udev          disable udev device support
1509   --disable-cups          disable CUPS printer support
1510   --disable-obex          disable OBEX profile support
1511   --disable-client        disable command line client
1512   --disable-systemd       disable systemd integration
1513   --disable-datafiles     do not install configuration and data files
1514   --enable-experimental   enable experimental plugins (SAP, NFC, ...)
1515   --enable-sixaxis        enable sixaxis plugin
1516   --enable-android        enable BlueZ for Android
1517
1518 Optional Packages:
1519   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1520   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1521   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1522                           both]
1523   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1524   --with-sysroot=DIR Search for dependent libraries within DIR
1525                         (or the compiler's sysroot if not specified).
1526   --with-dbusconfdir=DIR  path to D-Bus configuration directory
1527   --with-dbussystembusdir=DIR
1528                           path to D-Bus system bus services directory
1529   --with-dbussessionbusdir=DIR
1530                           path to D-Bus session bus services directory
1531   --with-udevdir=DIR      path to udev directory
1532   --with-systemdsystemunitdir=DIR
1533                           path to systemd system unit directory
1534   --with-systemduserunitdir=DIR
1535                           path to systemd user unit directory
1536
1537 Some influential environment variables:
1538   CC          C compiler command
1539   CFLAGS      C compiler flags
1540   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1541               nonstandard directory <lib dir>
1542   LIBS        libraries to pass to the linker, e.g. -l<library>
1543   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1544               you have headers in a nonstandard directory <include dir>
1545   CPP         C preprocessor
1546   PKG_CONFIG  path to pkg-config utility
1547   PKG_CONFIG_PATH
1548               directories to add to pkg-config's search path
1549   PKG_CONFIG_LIBDIR
1550               path overriding pkg-config's built-in search path
1551   GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1552   GLIB_LIBS   linker flags for GLIB, overriding pkg-config
1553   GTHREAD_CFLAGS
1554               C compiler flags for GTHREAD, overriding pkg-config
1555   GTHREAD_LIBS
1556               linker flags for GTHREAD, overriding pkg-config
1557   DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
1558   DBUS_LIBS   linker flags for DBUS, overriding pkg-config
1559   UDEV_CFLAGS C compiler flags for UDEV, overriding pkg-config
1560   UDEV_LIBS   linker flags for UDEV, overriding pkg-config
1561   ICAL_CFLAGS C compiler flags for ICAL, overriding pkg-config
1562   ICAL_LIBS   linker flags for ICAL, overriding pkg-config
1563   SBC_CFLAGS  C compiler flags for SBC, overriding pkg-config
1564   SBC_LIBS    linker flags for SBC, overriding pkg-config
1565   SPEEXDSP_CFLAGS
1566               C compiler flags for SPEEXDSP, overriding pkg-config
1567   SPEEXDSP_LIBS
1568               linker flags for SPEEXDSP, overriding pkg-config
1569
1570 Use these variables to override the choices made by `configure' or to help
1571 it to find libraries and programs with nonstandard names/locations.
1572
1573 Report bugs to the package provider.
1574 _ACEOF
1575 ac_status=$?
1576 fi
1577
1578 if test "$ac_init_help" = "recursive"; then
1579   # If there are subdirs, report their specific --help.
1580   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1581     test -d "$ac_dir" ||
1582       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1583       continue
1584     ac_builddir=.
1585
1586 case "$ac_dir" in
1587 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1588 *)
1589   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1590   # A ".." for each directory in $ac_dir_suffix.
1591   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1592   case $ac_top_builddir_sub in
1593   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1594   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1595   esac ;;
1596 esac
1597 ac_abs_top_builddir=$ac_pwd
1598 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1599 # for backward compatibility:
1600 ac_top_builddir=$ac_top_build_prefix
1601
1602 case $srcdir in
1603   .)  # We are building in place.
1604     ac_srcdir=.
1605     ac_top_srcdir=$ac_top_builddir_sub
1606     ac_abs_top_srcdir=$ac_pwd ;;
1607   [\\/]* | ?:[\\/]* )  # Absolute name.
1608     ac_srcdir=$srcdir$ac_dir_suffix;
1609     ac_top_srcdir=$srcdir
1610     ac_abs_top_srcdir=$srcdir ;;
1611   *) # Relative name.
1612     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1613     ac_top_srcdir=$ac_top_build_prefix$srcdir
1614     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1615 esac
1616 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1617
1618     cd "$ac_dir" || { ac_status=$?; continue; }
1619     # Check for guested configure.
1620     if test -f "$ac_srcdir/configure.gnu"; then
1621       echo &&
1622       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1623     elif test -f "$ac_srcdir/configure"; then
1624       echo &&
1625       $SHELL "$ac_srcdir/configure" --help=recursive
1626     else
1627       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1628     fi || ac_status=$?
1629     cd "$ac_pwd" || { ac_status=$?; break; }
1630   done
1631 fi
1632
1633 test -n "$ac_init_help" && exit $ac_status
1634 if $ac_init_version; then
1635   cat <<\_ACEOF
1636 bluez configure 5.19
1637 generated by GNU Autoconf 2.69
1638
1639 Copyright (C) 2012 Free Software Foundation, Inc.
1640 This configure script is free software; the Free Software Foundation
1641 gives unlimited permission to copy, distribute and modify it.
1642 _ACEOF
1643   exit
1644 fi
1645
1646 ## ------------------------ ##
1647 ## Autoconf initialization. ##
1648 ## ------------------------ ##
1649
1650 # ac_fn_c_try_compile LINENO
1651 # --------------------------
1652 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1653 ac_fn_c_try_compile ()
1654 {
1655   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1656   rm -f conftest.$ac_objext
1657   if { { ac_try="$ac_compile"
1658 case "(($ac_try" in
1659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1660   *) ac_try_echo=$ac_try;;
1661 esac
1662 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1663 $as_echo "$ac_try_echo"; } >&5
1664   (eval "$ac_compile") 2>conftest.err
1665   ac_status=$?
1666   if test -s conftest.err; then
1667     grep -v '^ *+' conftest.err >conftest.er1
1668     cat conftest.er1 >&5
1669     mv -f conftest.er1 conftest.err
1670   fi
1671   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1672   test $ac_status = 0; } && {
1673          test -z "$ac_c_werror_flag" ||
1674          test ! -s conftest.err
1675        } && test -s conftest.$ac_objext; then :
1676   ac_retval=0
1677 else
1678   $as_echo "$as_me: failed program was:" >&5
1679 sed 's/^/| /' conftest.$ac_ext >&5
1680
1681         ac_retval=1
1682 fi
1683   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1684   as_fn_set_status $ac_retval
1685
1686 } # ac_fn_c_try_compile
1687
1688 # ac_fn_c_try_cpp LINENO
1689 # ----------------------
1690 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1691 ac_fn_c_try_cpp ()
1692 {
1693   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694   if { { ac_try="$ac_cpp conftest.$ac_ext"
1695 case "(($ac_try" in
1696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1697   *) ac_try_echo=$ac_try;;
1698 esac
1699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1700 $as_echo "$ac_try_echo"; } >&5
1701   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1702   ac_status=$?
1703   if test -s conftest.err; then
1704     grep -v '^ *+' conftest.err >conftest.er1
1705     cat conftest.er1 >&5
1706     mv -f conftest.er1 conftest.err
1707   fi
1708   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1709   test $ac_status = 0; } > conftest.i && {
1710          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1711          test ! -s conftest.err
1712        }; then :
1713   ac_retval=0
1714 else
1715   $as_echo "$as_me: failed program was:" >&5
1716 sed 's/^/| /' conftest.$ac_ext >&5
1717
1718     ac_retval=1
1719 fi
1720   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1721   as_fn_set_status $ac_retval
1722
1723 } # ac_fn_c_try_cpp
1724
1725 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1726 # -------------------------------------------------------
1727 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1728 # the include files in INCLUDES and setting the cache variable VAR
1729 # accordingly.
1730 ac_fn_c_check_header_mongrel ()
1731 {
1732   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733   if eval \${$3+:} false; then :
1734   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1735 $as_echo_n "checking for $2... " >&6; }
1736 if eval \${$3+:} false; then :
1737   $as_echo_n "(cached) " >&6
1738 fi
1739 eval ac_res=\$$3
1740                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1741 $as_echo "$ac_res" >&6; }
1742 else
1743   # Is the header compilable?
1744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1745 $as_echo_n "checking $2 usability... " >&6; }
1746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1747 /* end confdefs.h.  */
1748 $4
1749 #include <$2>
1750 _ACEOF
1751 if ac_fn_c_try_compile "$LINENO"; then :
1752   ac_header_compiler=yes
1753 else
1754   ac_header_compiler=no
1755 fi
1756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1758 $as_echo "$ac_header_compiler" >&6; }
1759
1760 # Is the header present?
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1762 $as_echo_n "checking $2 presence... " >&6; }
1763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1764 /* end confdefs.h.  */
1765 #include <$2>
1766 _ACEOF
1767 if ac_fn_c_try_cpp "$LINENO"; then :
1768   ac_header_preproc=yes
1769 else
1770   ac_header_preproc=no
1771 fi
1772 rm -f conftest.err conftest.i conftest.$ac_ext
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1774 $as_echo "$ac_header_preproc" >&6; }
1775
1776 # So?  What about this header?
1777 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1778   yes:no: )
1779     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1780 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1781     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1782 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1783     ;;
1784   no:yes:* )
1785     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1786 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1787     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1788 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1789     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1790 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1791     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1792 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1793     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1794 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1795     ;;
1796 esac
1797   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1798 $as_echo_n "checking for $2... " >&6; }
1799 if eval \${$3+:} false; then :
1800   $as_echo_n "(cached) " >&6
1801 else
1802   eval "$3=\$ac_header_compiler"
1803 fi
1804 eval ac_res=\$$3
1805                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1806 $as_echo "$ac_res" >&6; }
1807 fi
1808   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1809
1810 } # ac_fn_c_check_header_mongrel
1811
1812 # ac_fn_c_try_run LINENO
1813 # ----------------------
1814 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1815 # that executables *can* be run.
1816 ac_fn_c_try_run ()
1817 {
1818   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1819   if { { ac_try="$ac_link"
1820 case "(($ac_try" in
1821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1822   *) ac_try_echo=$ac_try;;
1823 esac
1824 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1825 $as_echo "$ac_try_echo"; } >&5
1826   (eval "$ac_link") 2>&5
1827   ac_status=$?
1828   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1829   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1830   { { case "(($ac_try" in
1831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1832   *) ac_try_echo=$ac_try;;
1833 esac
1834 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1835 $as_echo "$ac_try_echo"; } >&5
1836   (eval "$ac_try") 2>&5
1837   ac_status=$?
1838   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1839   test $ac_status = 0; }; }; then :
1840   ac_retval=0
1841 else
1842   $as_echo "$as_me: program exited with status $ac_status" >&5
1843        $as_echo "$as_me: failed program was:" >&5
1844 sed 's/^/| /' conftest.$ac_ext >&5
1845
1846        ac_retval=$ac_status
1847 fi
1848   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1849   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1850   as_fn_set_status $ac_retval
1851
1852 } # ac_fn_c_try_run
1853
1854 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1855 # -------------------------------------------------------
1856 # Tests whether HEADER exists and can be compiled using the include files in
1857 # INCLUDES, setting the cache variable VAR accordingly.
1858 ac_fn_c_check_header_compile ()
1859 {
1860   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1861   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1862 $as_echo_n "checking for $2... " >&6; }
1863 if eval \${$3+:} false; then :
1864   $as_echo_n "(cached) " >&6
1865 else
1866   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1867 /* end confdefs.h.  */
1868 $4
1869 #include <$2>
1870 _ACEOF
1871 if ac_fn_c_try_compile "$LINENO"; then :
1872   eval "$3=yes"
1873 else
1874   eval "$3=no"
1875 fi
1876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1877 fi
1878 eval ac_res=\$$3
1879                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1880 $as_echo "$ac_res" >&6; }
1881   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1882
1883 } # ac_fn_c_check_header_compile
1884
1885 # ac_fn_c_try_link LINENO
1886 # -----------------------
1887 # Try to link conftest.$ac_ext, and return whether this succeeded.
1888 ac_fn_c_try_link ()
1889 {
1890   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1891   rm -f conftest.$ac_objext conftest$ac_exeext
1892   if { { ac_try="$ac_link"
1893 case "(($ac_try" in
1894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1895   *) ac_try_echo=$ac_try;;
1896 esac
1897 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1898 $as_echo "$ac_try_echo"; } >&5
1899   (eval "$ac_link") 2>conftest.err
1900   ac_status=$?
1901   if test -s conftest.err; then
1902     grep -v '^ *+' conftest.err >conftest.er1
1903     cat conftest.er1 >&5
1904     mv -f conftest.er1 conftest.err
1905   fi
1906   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1907   test $ac_status = 0; } && {
1908          test -z "$ac_c_werror_flag" ||
1909          test ! -s conftest.err
1910        } && test -s conftest$ac_exeext && {
1911          test "$cross_compiling" = yes ||
1912          test -x conftest$ac_exeext
1913        }; then :
1914   ac_retval=0
1915 else
1916   $as_echo "$as_me: failed program was:" >&5
1917 sed 's/^/| /' conftest.$ac_ext >&5
1918
1919         ac_retval=1
1920 fi
1921   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1922   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1923   # interfere with the next link command; also delete a directory that is
1924   # left behind by Apple's compiler.  We do this before executing the actions.
1925   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1926   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1927   as_fn_set_status $ac_retval
1928
1929 } # ac_fn_c_try_link
1930
1931 # ac_fn_c_check_func LINENO FUNC VAR
1932 # ----------------------------------
1933 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1934 ac_fn_c_check_func ()
1935 {
1936   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1937   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1938 $as_echo_n "checking for $2... " >&6; }
1939 if eval \${$3+:} false; then :
1940   $as_echo_n "(cached) " >&6
1941 else
1942   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1943 /* end confdefs.h.  */
1944 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1945    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1946 #define $2 innocuous_$2
1947
1948 /* System header to define __stub macros and hopefully few prototypes,
1949     which can conflict with char $2 (); below.
1950     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1951     <limits.h> exists even on freestanding compilers.  */
1952
1953 #ifdef __STDC__
1954 # include <limits.h>
1955 #else
1956 # include <assert.h>
1957 #endif
1958
1959 #undef $2
1960
1961 /* Override any GCC internal prototype to avoid an error.
1962    Use char because int might match the return type of a GCC
1963    builtin and then its argument prototype would still apply.  */
1964 #ifdef __cplusplus
1965 extern "C"
1966 #endif
1967 char $2 ();
1968 /* The GNU C library defines this for functions which it implements
1969     to always fail with ENOSYS.  Some functions are actually named
1970     something starting with __ and the normal name is an alias.  */
1971 #if defined __stub_$2 || defined __stub___$2
1972 choke me
1973 #endif
1974
1975 int
1976 main ()
1977 {
1978 return $2 ();
1979   ;
1980   return 0;
1981 }
1982 _ACEOF
1983 if ac_fn_c_try_link "$LINENO"; then :
1984   eval "$3=yes"
1985 else
1986   eval "$3=no"
1987 fi
1988 rm -f core conftest.err conftest.$ac_objext \
1989     conftest$ac_exeext conftest.$ac_ext
1990 fi
1991 eval ac_res=\$$3
1992                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1993 $as_echo "$ac_res" >&6; }
1994   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1995
1996 } # ac_fn_c_check_func
1997 cat >config.log <<_ACEOF
1998 This file contains any messages produced by compilers while
1999 running configure, to aid debugging if configure makes a mistake.
2000
2001 It was created by bluez $as_me 5.19, which was
2002 generated by GNU Autoconf 2.69.  Invocation command line was
2003
2004   $ $0 $@
2005
2006 _ACEOF
2007 exec 5>>config.log
2008 {
2009 cat <<_ASUNAME
2010 ## --------- ##
2011 ## Platform. ##
2012 ## --------- ##
2013
2014 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2015 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2016 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2017 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2018 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2019
2020 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2021 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2022
2023 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2024 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2025 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2026 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2027 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2028 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2029 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2030
2031 _ASUNAME
2032
2033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2034 for as_dir in $PATH
2035 do
2036   IFS=$as_save_IFS
2037   test -z "$as_dir" && as_dir=.
2038     $as_echo "PATH: $as_dir"
2039   done
2040 IFS=$as_save_IFS
2041
2042 } >&5
2043
2044 cat >&5 <<_ACEOF
2045
2046
2047 ## ----------- ##
2048 ## Core tests. ##
2049 ## ----------- ##
2050
2051 _ACEOF
2052
2053
2054 # Keep a trace of the command line.
2055 # Strip out --no-create and --no-recursion so they do not pile up.
2056 # Strip out --silent because we don't want to record it for future runs.
2057 # Also quote any args containing shell meta-characters.
2058 # Make two passes to allow for proper duplicate-argument suppression.
2059 ac_configure_args=
2060 ac_configure_args0=
2061 ac_configure_args1=
2062 ac_must_keep_next=false
2063 for ac_pass in 1 2
2064 do
2065   for ac_arg
2066   do
2067     case $ac_arg in
2068     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2069     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2070     | -silent | --silent | --silen | --sile | --sil)
2071       continue ;;
2072     *\'*)
2073       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2074     esac
2075     case $ac_pass in
2076     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2077     2)
2078       as_fn_append ac_configure_args1 " '$ac_arg'"
2079       if test $ac_must_keep_next = true; then
2080         ac_must_keep_next=false # Got value, back to normal.
2081       else
2082         case $ac_arg in
2083           *=* | --config-cache | -C | -disable-* | --disable-* \
2084           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2085           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2086           | -with-* | --with-* | -without-* | --without-* | --x)
2087             case "$ac_configure_args0 " in
2088               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2089             esac
2090             ;;
2091           -* ) ac_must_keep_next=true ;;
2092         esac
2093       fi
2094       as_fn_append ac_configure_args " '$ac_arg'"
2095       ;;
2096     esac
2097   done
2098 done
2099 { ac_configure_args0=; unset ac_configure_args0;}
2100 { ac_configure_args1=; unset ac_configure_args1;}
2101
2102 # When interrupted or exit'd, cleanup temporary files, and complete
2103 # config.log.  We remove comments because anyway the quotes in there
2104 # would cause problems or look ugly.
2105 # WARNING: Use '\'' to represent an apostrophe within the trap.
2106 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2107 trap 'exit_status=$?
2108   # Save into config.log some information that might help in debugging.
2109   {
2110     echo
2111
2112     $as_echo "## ---------------- ##
2113 ## Cache variables. ##
2114 ## ---------------- ##"
2115     echo
2116     # The following way of writing the cache mishandles newlines in values,
2117 (
2118   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2119     eval ac_val=\$$ac_var
2120     case $ac_val in #(
2121     *${as_nl}*)
2122       case $ac_var in #(
2123       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2124 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2125       esac
2126       case $ac_var in #(
2127       _ | IFS | as_nl) ;; #(
2128       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2129       *) { eval $ac_var=; unset $ac_var;} ;;
2130       esac ;;
2131     esac
2132   done
2133   (set) 2>&1 |
2134     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2135     *${as_nl}ac_space=\ *)
2136       sed -n \
2137         "s/'\''/'\''\\\\'\'''\''/g;
2138           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2139       ;; #(
2140     *)
2141       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2142       ;;
2143     esac |
2144     sort
2145 )
2146     echo
2147
2148     $as_echo "## ----------------- ##
2149 ## Output variables. ##
2150 ## ----------------- ##"
2151     echo
2152     for ac_var in $ac_subst_vars
2153     do
2154       eval ac_val=\$$ac_var
2155       case $ac_val in
2156       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2157       esac
2158       $as_echo "$ac_var='\''$ac_val'\''"
2159     done | sort
2160     echo
2161
2162     if test -n "$ac_subst_files"; then
2163       $as_echo "## ------------------- ##
2164 ## File substitutions. ##
2165 ## ------------------- ##"
2166       echo
2167       for ac_var in $ac_subst_files
2168       do
2169         eval ac_val=\$$ac_var
2170         case $ac_val in
2171         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2172         esac
2173         $as_echo "$ac_var='\''$ac_val'\''"
2174       done | sort
2175       echo
2176     fi
2177
2178     if test -s confdefs.h; then
2179       $as_echo "## ----------- ##
2180 ## confdefs.h. ##
2181 ## ----------- ##"
2182       echo
2183       cat confdefs.h
2184       echo
2185     fi
2186     test "$ac_signal" != 0 &&
2187       $as_echo "$as_me: caught signal $ac_signal"
2188     $as_echo "$as_me: exit $exit_status"
2189   } >&5
2190   rm -f core *.core core.conftest.* &&
2191     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2192     exit $exit_status
2193 ' 0
2194 for ac_signal in 1 2 13 15; do
2195   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2196 done
2197 ac_signal=0
2198
2199 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2200 rm -f -r conftest* confdefs.h
2201
2202 $as_echo "/* confdefs.h */" > confdefs.h
2203
2204 # Predefined preprocessor variables.
2205
2206 cat >>confdefs.h <<_ACEOF
2207 #define PACKAGE_NAME "$PACKAGE_NAME"
2208 _ACEOF
2209
2210 cat >>confdefs.h <<_ACEOF
2211 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2212 _ACEOF
2213
2214 cat >>confdefs.h <<_ACEOF
2215 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2216 _ACEOF
2217
2218 cat >>confdefs.h <<_ACEOF
2219 #define PACKAGE_STRING "$PACKAGE_STRING"
2220 _ACEOF
2221
2222 cat >>confdefs.h <<_ACEOF
2223 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2224 _ACEOF
2225
2226 cat >>confdefs.h <<_ACEOF
2227 #define PACKAGE_URL "$PACKAGE_URL"
2228 _ACEOF
2229
2230
2231 # Let the site file select an alternate cache file if it wants to.
2232 # Prefer an explicitly selected file to automatically selected ones.
2233 ac_site_file1=NONE
2234 ac_site_file2=NONE
2235 if test -n "$CONFIG_SITE"; then
2236   # We do not want a PATH search for config.site.
2237   case $CONFIG_SITE in #((
2238     -*)  ac_site_file1=./$CONFIG_SITE;;
2239     */*) ac_site_file1=$CONFIG_SITE;;
2240     *)   ac_site_file1=./$CONFIG_SITE;;
2241   esac
2242 elif test "x$prefix" != xNONE; then
2243   ac_site_file1=$prefix/share/config.site
2244   ac_site_file2=$prefix/etc/config.site
2245 else
2246   ac_site_file1=$ac_default_prefix/share/config.site
2247   ac_site_file2=$ac_default_prefix/etc/config.site
2248 fi
2249 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2250 do
2251   test "x$ac_site_file" = xNONE && continue
2252   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2253     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2254 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2255     sed 's/^/| /' "$ac_site_file" >&5
2256     . "$ac_site_file" \
2257       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2258 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2259 as_fn_error $? "failed to load site script $ac_site_file
2260 See \`config.log' for more details" "$LINENO" 5; }
2261   fi
2262 done
2263
2264 if test -r "$cache_file"; then
2265   # Some versions of bash will fail to source /dev/null (special files
2266   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2267   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2268     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2269 $as_echo "$as_me: loading cache $cache_file" >&6;}
2270     case $cache_file in
2271       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2272       *)                      . "./$cache_file";;
2273     esac
2274   fi
2275 else
2276   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2277 $as_echo "$as_me: creating cache $cache_file" >&6;}
2278   >$cache_file
2279 fi
2280
2281 # Check that the precious variables saved in the cache have kept the same
2282 # value.
2283 ac_cache_corrupted=false
2284 for ac_var in $ac_precious_vars; do
2285   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2286   eval ac_new_set=\$ac_env_${ac_var}_set
2287   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2288   eval ac_new_val=\$ac_env_${ac_var}_value
2289   case $ac_old_set,$ac_new_set in
2290     set,)
2291       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2292 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2293       ac_cache_corrupted=: ;;
2294     ,set)
2295       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2296 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2297       ac_cache_corrupted=: ;;
2298     ,);;
2299     *)
2300       if test "x$ac_old_val" != "x$ac_new_val"; then
2301         # differences in whitespace do not lead to failure.
2302         ac_old_val_w=`echo x $ac_old_val`
2303         ac_new_val_w=`echo x $ac_new_val`
2304         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2305           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2306 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2307           ac_cache_corrupted=:
2308         else
2309           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2310 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2311           eval $ac_var=\$ac_old_val
2312         fi
2313         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2314 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2315         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2316 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2317       fi;;
2318   esac
2319   # Pass precious variables to config.status.
2320   if test "$ac_new_set" = set; then
2321     case $ac_new_val in
2322     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2323     *) ac_arg=$ac_var=$ac_new_val ;;
2324     esac
2325     case " $ac_configure_args " in
2326       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2327       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2328     esac
2329   fi
2330 done
2331 if $ac_cache_corrupted; then
2332   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2333 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2334   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2335 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2336   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2337 fi
2338 ## -------------------- ##
2339 ## Main body of script. ##
2340 ## -------------------- ##
2341
2342 ac_ext=c
2343 ac_cpp='$CPP $CPPFLAGS'
2344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2347
2348
2349
2350 am__api_version='1.11'
2351
2352 ac_aux_dir=
2353 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2354   if test -f "$ac_dir/install-sh"; then
2355     ac_aux_dir=$ac_dir
2356     ac_install_sh="$ac_aux_dir/install-sh -c"
2357     break
2358   elif test -f "$ac_dir/install.sh"; then
2359     ac_aux_dir=$ac_dir
2360     ac_install_sh="$ac_aux_dir/install.sh -c"
2361     break
2362   elif test -f "$ac_dir/shtool"; then
2363     ac_aux_dir=$ac_dir
2364     ac_install_sh="$ac_aux_dir/shtool install -c"
2365     break
2366   fi
2367 done
2368 if test -z "$ac_aux_dir"; then
2369   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2370 fi
2371
2372 # These three variables are undocumented and unsupported,
2373 # and are intended to be withdrawn in a future Autoconf release.
2374 # They can cause serious problems if a builder's source tree is in a directory
2375 # whose full name contains unusual characters.
2376 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2377 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2378 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2379
2380
2381 # Find a good install program.  We prefer a C program (faster),
2382 # so one script is as good as another.  But avoid the broken or
2383 # incompatible versions:
2384 # SysV /etc/install, /usr/sbin/install
2385 # SunOS /usr/etc/install
2386 # IRIX /sbin/install
2387 # AIX /bin/install
2388 # AmigaOS /C/install, which installs bootblocks on floppy discs
2389 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2390 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2391 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2392 # OS/2's system install, which has a completely different semantic
2393 # ./install, which can be erroneously created by make from ./install.sh.
2394 # Reject install programs that cannot install multiple files.
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2396 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2397 if test -z "$INSTALL"; then
2398 if ${ac_cv_path_install+:} false; then :
2399   $as_echo_n "(cached) " >&6
2400 else
2401   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2402 for as_dir in $PATH
2403 do
2404   IFS=$as_save_IFS
2405   test -z "$as_dir" && as_dir=.
2406     # Account for people who put trailing slashes in PATH elements.
2407 case $as_dir/ in #((
2408   ./ | .// | /[cC]/* | \
2409   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2410   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2411   /usr/ucb/* ) ;;
2412   *)
2413     # OSF1 and SCO ODT 3.0 have their own names for install.
2414     # Don't use installbsd from OSF since it installs stuff as root
2415     # by default.
2416     for ac_prog in ginstall scoinst install; do
2417       for ac_exec_ext in '' $ac_executable_extensions; do
2418         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2419           if test $ac_prog = install &&
2420             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2421             # AIX install.  It has an incompatible calling convention.
2422             :
2423           elif test $ac_prog = install &&
2424             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2425             # program-specific install script used by HP pwplus--don't use.
2426             :
2427           else
2428             rm -rf conftest.one conftest.two conftest.dir
2429             echo one > conftest.one
2430             echo two > conftest.two
2431             mkdir conftest.dir
2432             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2433               test -s conftest.one && test -s conftest.two &&
2434               test -s conftest.dir/conftest.one &&
2435               test -s conftest.dir/conftest.two
2436             then
2437               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2438               break 3
2439             fi
2440           fi
2441         fi
2442       done
2443     done
2444     ;;
2445 esac
2446
2447   done
2448 IFS=$as_save_IFS
2449
2450 rm -rf conftest.one conftest.two conftest.dir
2451
2452 fi
2453   if test "${ac_cv_path_install+set}" = set; then
2454     INSTALL=$ac_cv_path_install
2455   else
2456     # As a last resort, use the slow shell script.  Don't cache a
2457     # value for INSTALL within a source directory, because that will
2458     # break other packages using the cache if that directory is
2459     # removed, or if the value is a relative name.
2460     INSTALL=$ac_install_sh
2461   fi
2462 fi
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2464 $as_echo "$INSTALL" >&6; }
2465
2466 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2467 # It thinks the first close brace ends the variable substitution.
2468 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2469
2470 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2471
2472 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2473
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2475 $as_echo_n "checking whether build environment is sane... " >&6; }
2476 # Just in case
2477 sleep 1
2478 echo timestamp > conftest.file
2479 # Reject unsafe characters in $srcdir or the absolute working directory
2480 # name.  Accept space and tab only in the latter.
2481 am_lf='
2482 '
2483 case `pwd` in
2484   *[\\\"\#\$\&\'\`$am_lf]*)
2485     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2486 esac
2487 case $srcdir in
2488   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2489     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2490 esac
2491
2492 # Do `set' in a subshell so we don't clobber the current shell's
2493 # arguments.  Must try -L first in case configure is actually a
2494 # symlink; some systems play weird games with the mod time of symlinks
2495 # (eg FreeBSD returns the mod time of the symlink's containing
2496 # directory).
2497 if (
2498    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2499    if test "$*" = "X"; then
2500       # -L didn't work.
2501       set X `ls -t "$srcdir/configure" conftest.file`
2502    fi
2503    rm -f conftest.file
2504    if test "$*" != "X $srcdir/configure conftest.file" \
2505       && test "$*" != "X conftest.file $srcdir/configure"; then
2506
2507       # If neither matched, then we have a broken ls.  This can happen
2508       # if, for instance, CONFIG_SHELL is bash and it inherits a
2509       # broken ls alias from the environment.  This has actually
2510       # happened.  Such a system could not be considered "sane".
2511       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2512 alias in your environment" "$LINENO" 5
2513    fi
2514
2515    test "$2" = conftest.file
2516    )
2517 then
2518    # Ok.
2519    :
2520 else
2521    as_fn_error $? "newly created file is older than distributed files!
2522 Check your system clock" "$LINENO" 5
2523 fi
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2525 $as_echo "yes" >&6; }
2526 test "$program_prefix" != NONE &&
2527   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2528 # Use a double $ so make ignores it.
2529 test "$program_suffix" != NONE &&
2530   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2531 # Double any \ or $.
2532 # By default was `s,x,x', remove it if useless.
2533 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2534 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2535
2536 # expand $ac_aux_dir to an absolute path
2537 am_aux_dir=`cd $ac_aux_dir && pwd`
2538
2539 if test x"${MISSING+set}" != xset; then
2540   case $am_aux_dir in
2541   *\ * | *\     *)
2542     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2543   *)
2544     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2545   esac
2546 fi
2547 # Use eval to expand $SHELL
2548 if eval "$MISSING --run true"; then
2549   am_missing_run="$MISSING --run "
2550 else
2551   am_missing_run=
2552   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2553 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2554 fi
2555
2556 if test x"${install_sh}" != xset; then
2557   case $am_aux_dir in
2558   *\ * | *\     *)
2559     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2560   *)
2561     install_sh="\${SHELL} $am_aux_dir/install-sh"
2562   esac
2563 fi
2564
2565 # Installed binaries are usually stripped using `strip' when the user
2566 # run `make install-strip'.  However `strip' might not be the right
2567 # tool to use in cross-compilation environments, therefore Automake
2568 # will honor the `STRIP' environment variable to overrule this program.
2569 if test "$cross_compiling" != no; then
2570   if test -n "$ac_tool_prefix"; then
2571   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2572 set dummy ${ac_tool_prefix}strip; ac_word=$2
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2574 $as_echo_n "checking for $ac_word... " >&6; }
2575 if ${ac_cv_prog_STRIP+:} false; then :
2576   $as_echo_n "(cached) " >&6
2577 else
2578   if test -n "$STRIP"; then
2579   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2580 else
2581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2582 for as_dir in $PATH
2583 do
2584   IFS=$as_save_IFS
2585   test -z "$as_dir" && as_dir=.
2586     for ac_exec_ext in '' $ac_executable_extensions; do
2587   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2588     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2589     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2590     break 2
2591   fi
2592 done
2593   done
2594 IFS=$as_save_IFS
2595
2596 fi
2597 fi
2598 STRIP=$ac_cv_prog_STRIP
2599 if test -n "$STRIP"; then
2600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2601 $as_echo "$STRIP" >&6; }
2602 else
2603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2604 $as_echo "no" >&6; }
2605 fi
2606
2607
2608 fi
2609 if test -z "$ac_cv_prog_STRIP"; then
2610   ac_ct_STRIP=$STRIP
2611   # Extract the first word of "strip", so it can be a program name with args.
2612 set dummy strip; ac_word=$2
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2614 $as_echo_n "checking for $ac_word... " >&6; }
2615 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2616   $as_echo_n "(cached) " >&6
2617 else
2618   if test -n "$ac_ct_STRIP"; then
2619   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2620 else
2621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2622 for as_dir in $PATH
2623 do
2624   IFS=$as_save_IFS
2625   test -z "$as_dir" && as_dir=.
2626     for ac_exec_ext in '' $ac_executable_extensions; do
2627   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2628     ac_cv_prog_ac_ct_STRIP="strip"
2629     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2630     break 2
2631   fi
2632 done
2633   done
2634 IFS=$as_save_IFS
2635
2636 fi
2637 fi
2638 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2639 if test -n "$ac_ct_STRIP"; then
2640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2641 $as_echo "$ac_ct_STRIP" >&6; }
2642 else
2643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2644 $as_echo "no" >&6; }
2645 fi
2646
2647   if test "x$ac_ct_STRIP" = x; then
2648     STRIP=":"
2649   else
2650     case $cross_compiling:$ac_tool_warned in
2651 yes:)
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2653 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2654 ac_tool_warned=yes ;;
2655 esac
2656     STRIP=$ac_ct_STRIP
2657   fi
2658 else
2659   STRIP="$ac_cv_prog_STRIP"
2660 fi
2661
2662 fi
2663 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2664
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2666 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2667 if test -z "$MKDIR_P"; then
2668   if ${ac_cv_path_mkdir+:} false; then :
2669   $as_echo_n "(cached) " >&6
2670 else
2671   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2672 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2673 do
2674   IFS=$as_save_IFS
2675   test -z "$as_dir" && as_dir=.
2676     for ac_prog in mkdir gmkdir; do
2677          for ac_exec_ext in '' $ac_executable_extensions; do
2678            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2679            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2680              'mkdir (GNU coreutils) '* | \
2681              'mkdir (coreutils) '* | \
2682              'mkdir (fileutils) '4.1*)
2683                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2684                break 3;;
2685            esac
2686          done
2687        done
2688   done
2689 IFS=$as_save_IFS
2690
2691 fi
2692
2693   test -d ./--version && rmdir ./--version
2694   if test "${ac_cv_path_mkdir+set}" = set; then
2695     MKDIR_P="$ac_cv_path_mkdir -p"
2696   else
2697     # As a last resort, use the slow shell script.  Don't cache a
2698     # value for MKDIR_P within a source directory, because that will
2699     # break other packages using the cache if that directory is
2700     # removed, or if the value is a relative name.
2701     MKDIR_P="$ac_install_sh -d"
2702   fi
2703 fi
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2705 $as_echo "$MKDIR_P" >&6; }
2706
2707 mkdir_p="$MKDIR_P"
2708 case $mkdir_p in
2709   [\\/$]* | ?:[\\/]*) ;;
2710   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2711 esac
2712
2713 for ac_prog in gawk mawk nawk awk
2714 do
2715   # Extract the first word of "$ac_prog", so it can be a program name with args.
2716 set dummy $ac_prog; ac_word=$2
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2718 $as_echo_n "checking for $ac_word... " >&6; }
2719 if ${ac_cv_prog_AWK+:} false; then :
2720   $as_echo_n "(cached) " >&6
2721 else
2722   if test -n "$AWK"; then
2723   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2724 else
2725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2726 for as_dir in $PATH
2727 do
2728   IFS=$as_save_IFS
2729   test -z "$as_dir" && as_dir=.
2730     for ac_exec_ext in '' $ac_executable_extensions; do
2731   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2732     ac_cv_prog_AWK="$ac_prog"
2733     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2734     break 2
2735   fi
2736 done
2737   done
2738 IFS=$as_save_IFS
2739
2740 fi
2741 fi
2742 AWK=$ac_cv_prog_AWK
2743 if test -n "$AWK"; then
2744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2745 $as_echo "$AWK" >&6; }
2746 else
2747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2748 $as_echo "no" >&6; }
2749 fi
2750
2751
2752   test -n "$AWK" && break
2753 done
2754
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2756 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2757 set x ${MAKE-make}
2758 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2759 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2760   $as_echo_n "(cached) " >&6
2761 else
2762   cat >conftest.make <<\_ACEOF
2763 SHELL = /bin/sh
2764 all:
2765         @echo '@@@%%%=$(MAKE)=@@@%%%'
2766 _ACEOF
2767 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2768 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2769   *@@@%%%=?*=@@@%%%*)
2770     eval ac_cv_prog_make_${ac_make}_set=yes;;
2771   *)
2772     eval ac_cv_prog_make_${ac_make}_set=no;;
2773 esac
2774 rm -f conftest.make
2775 fi
2776 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2778 $as_echo "yes" >&6; }
2779   SET_MAKE=
2780 else
2781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2782 $as_echo "no" >&6; }
2783   SET_MAKE="MAKE=${MAKE-make}"
2784 fi
2785
2786 rm -rf .tst 2>/dev/null
2787 mkdir .tst 2>/dev/null
2788 if test -d .tst; then
2789   am__leading_dot=.
2790 else
2791   am__leading_dot=_
2792 fi
2793 rmdir .tst 2>/dev/null
2794
2795 # Check whether --enable-silent-rules was given.
2796 if test "${enable_silent_rules+set}" = set; then :
2797   enableval=$enable_silent_rules;
2798 fi
2799
2800 case $enable_silent_rules in
2801 yes) AM_DEFAULT_VERBOSITY=0;;
2802 no)  AM_DEFAULT_VERBOSITY=1;;
2803 *)   AM_DEFAULT_VERBOSITY=1;;
2804 esac
2805 am_make=${MAKE-make}
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2807 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2808 if ${am_cv_make_support_nested_variables+:} false; then :
2809   $as_echo_n "(cached) " >&6
2810 else
2811   if $as_echo 'TRUE=$(BAR$(V))
2812 BAR0=false
2813 BAR1=true
2814 V=1
2815 am__doit:
2816         @$(TRUE)
2817 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2818   am_cv_make_support_nested_variables=yes
2819 else
2820   am_cv_make_support_nested_variables=no
2821 fi
2822 fi
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2824 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2825 if test $am_cv_make_support_nested_variables = yes; then
2826     AM_V='$(V)'
2827   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2828 else
2829   AM_V=$AM_DEFAULT_VERBOSITY
2830   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2831 fi
2832 AM_BACKSLASH='\'
2833
2834 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2835   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2836   # is not polluted with repeated "-I."
2837   am__isrc=' -I$(srcdir)'
2838   # test to see if srcdir already configured
2839   if test -f $srcdir/config.status; then
2840     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2841   fi
2842 fi
2843
2844 # test whether we have cygpath
2845 if test -z "$CYGPATH_W"; then
2846   if (cygpath --version) >/dev/null 2>/dev/null; then
2847     CYGPATH_W='cygpath -w'
2848   else
2849     CYGPATH_W=echo
2850   fi
2851 fi
2852
2853
2854 # Define the identity of the package.
2855  PACKAGE='bluez'
2856  VERSION='5.19'
2857
2858
2859 cat >>confdefs.h <<_ACEOF
2860 #define PACKAGE "$PACKAGE"
2861 _ACEOF
2862
2863
2864 cat >>confdefs.h <<_ACEOF
2865 #define VERSION "$VERSION"
2866 _ACEOF
2867
2868 # Some tools Automake needs.
2869
2870 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2871
2872
2873 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2874
2875
2876 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2877
2878
2879 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2880
2881
2882 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2883
2884 # We need awk for the "check" target.  The system "awk" is bad on
2885 # some platforms.
2886 # Always define AMTAR for backward compatibility.  Yes, it's still used
2887 # in the wild :-(  We should find a proper way to deprecate it ...
2888 AMTAR='$${TAR-tar}'
2889
2890
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a pax tar archive" >&5
2892 $as_echo_n "checking how to create a pax tar archive... " >&6; }
2893 # Loop over all known methods to create a tar archive until one works.
2894 _am_tools='gnutar  pax cpio none'
2895 _am_tools=${am_cv_prog_tar_pax-$_am_tools}
2896 # Do not fold the above two line into one, because Tru64 sh and
2897 # Solaris sh will not grok spaces in the rhs of `-'.
2898 for _am_tool in $_am_tools
2899 do
2900   case $_am_tool in
2901   gnutar)
2902     for _am_tar in tar gnutar gtar;
2903     do
2904       { echo "$as_me:$LINENO: $_am_tar --version" >&5
2905    ($_am_tar --version) >&5 2>&5
2906    ac_status=$?
2907    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2908    (exit $ac_status); } && break
2909     done
2910     am__tar="$_am_tar --format=posix -chf - "'"$$tardir"'
2911     am__tar_="$_am_tar --format=posix -chf - "'"$tardir"'
2912     am__untar="$_am_tar -xf -"
2913     ;;
2914   plaintar)
2915     # Must skip GNU tar: if it does not support --format= it doesn't create
2916     # ustar tarball either.
2917     (tar --version) >/dev/null 2>&1 && continue
2918     am__tar='tar chf - "$$tardir"'
2919     am__tar_='tar chf - "$tardir"'
2920     am__untar='tar xf -'
2921     ;;
2922   pax)
2923     am__tar='pax -L -x pax -w "$$tardir"'
2924     am__tar_='pax -L -x pax -w "$tardir"'
2925     am__untar='pax -r'
2926     ;;
2927   cpio)
2928     am__tar='find "$$tardir" -print | cpio -o -H pax -L'
2929     am__tar_='find "$tardir" -print | cpio -o -H pax -L'
2930     am__untar='cpio -i -H pax -d'
2931     ;;
2932   none)
2933     am__tar=false
2934     am__tar_=false
2935     am__untar=false
2936     ;;
2937   esac
2938
2939   # If the value was cached, stop now.  We just wanted to have am__tar
2940   # and am__untar set.
2941   test -n "${am_cv_prog_tar_pax}" && break
2942
2943   # tar/untar a dummy directory, and stop if the command works
2944   rm -rf conftest.dir
2945   mkdir conftest.dir
2946   echo GrepMe > conftest.dir/file
2947   { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
2948    (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
2949    ac_status=$?
2950    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951    (exit $ac_status); }
2952   rm -rf conftest.dir
2953   if test -s conftest.tar; then
2954     { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
2955    ($am__untar <conftest.tar) >&5 2>&5
2956    ac_status=$?
2957    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958    (exit $ac_status); }
2959     grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
2960   fi
2961 done
2962 rm -rf conftest.dir
2963
2964 if ${am_cv_prog_tar_pax+:} false; then :
2965   $as_echo_n "(cached) " >&6
2966 else
2967   am_cv_prog_tar_pax=$_am_tool
2968 fi
2969
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_pax" >&5
2971 $as_echo "$am_cv_prog_tar_pax" >&6; }
2972
2973
2974
2975
2976
2977 ac_config_headers="$ac_config_headers config.h"
2978
2979 DEPDIR="${am__leading_dot}deps"
2980
2981 ac_config_commands="$ac_config_commands depfiles"
2982
2983
2984 am_make=${MAKE-make}
2985 cat > confinc << 'END'
2986 am__doit:
2987         @echo this is the am__doit target
2988 .PHONY: am__doit
2989 END
2990 # If we don't find an include directive, just comment out the code.
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2992 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2993 am__include="#"
2994 am__quote=
2995 _am_result=none
2996 # First try GNU make style include.
2997 echo "include confinc" > confmf
2998 # Ignore all kinds of additional output from `make'.
2999 case `$am_make -s -f confmf 2> /dev/null` in #(
3000 *the\ am__doit\ target*)
3001   am__include=include
3002   am__quote=
3003   _am_result=GNU
3004   ;;
3005 esac
3006 # Now try BSD make style include.
3007 if test "$am__include" = "#"; then
3008    echo '.include "confinc"' > confmf
3009    case `$am_make -s -f confmf 2> /dev/null` in #(
3010    *the\ am__doit\ target*)
3011      am__include=.include
3012      am__quote="\""
3013      _am_result=BSD
3014      ;;
3015    esac
3016 fi
3017
3018
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3020 $as_echo "$_am_result" >&6; }
3021 rm -f confinc confmf
3022
3023 # Check whether --enable-dependency-tracking was given.
3024 if test "${enable_dependency_tracking+set}" = set; then :
3025   enableval=$enable_dependency_tracking;
3026 fi
3027
3028 if test "x$enable_dependency_tracking" != xno; then
3029   am_depcomp="$ac_aux_dir/depcomp"
3030   AMDEPBACKSLASH='\'
3031   am__nodep='_no'
3032 fi
3033  if test "x$enable_dependency_tracking" != xno; then
3034   AMDEP_TRUE=
3035   AMDEP_FALSE='#'
3036 else
3037   AMDEP_TRUE='#'
3038   AMDEP_FALSE=
3039 fi
3040
3041
3042 ac_ext=c
3043 ac_cpp='$CPP $CPPFLAGS'
3044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3047 if test -n "$ac_tool_prefix"; then
3048   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3049 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3051 $as_echo_n "checking for $ac_word... " >&6; }
3052 if ${ac_cv_prog_CC+:} false; then :
3053   $as_echo_n "(cached) " >&6
3054 else
3055   if test -n "$CC"; then
3056   ac_cv_prog_CC="$CC" # Let the user override the test.
3057 else
3058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3059 for as_dir in $PATH
3060 do
3061   IFS=$as_save_IFS
3062   test -z "$as_dir" && as_dir=.
3063     for ac_exec_ext in '' $ac_executable_extensions; do
3064   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3065     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3066     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3067     break 2
3068   fi
3069 done
3070   done
3071 IFS=$as_save_IFS
3072
3073 fi
3074 fi
3075 CC=$ac_cv_prog_CC
3076 if test -n "$CC"; then
3077   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3078 $as_echo "$CC" >&6; }
3079 else
3080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3081 $as_echo "no" >&6; }
3082 fi
3083
3084
3085 fi
3086 if test -z "$ac_cv_prog_CC"; then
3087   ac_ct_CC=$CC
3088   # Extract the first word of "gcc", so it can be a program name with args.
3089 set dummy gcc; ac_word=$2
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3091 $as_echo_n "checking for $ac_word... " >&6; }
3092 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3093   $as_echo_n "(cached) " >&6
3094 else
3095   if test -n "$ac_ct_CC"; then
3096   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3097 else
3098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3099 for as_dir in $PATH
3100 do
3101   IFS=$as_save_IFS
3102   test -z "$as_dir" && as_dir=.
3103     for ac_exec_ext in '' $ac_executable_extensions; do
3104   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3105     ac_cv_prog_ac_ct_CC="gcc"
3106     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3107     break 2
3108   fi
3109 done
3110   done
3111 IFS=$as_save_IFS
3112
3113 fi
3114 fi
3115 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3116 if test -n "$ac_ct_CC"; then
3117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3118 $as_echo "$ac_ct_CC" >&6; }
3119 else
3120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3121 $as_echo "no" >&6; }
3122 fi
3123
3124   if test "x$ac_ct_CC" = x; then
3125     CC=""
3126   else
3127     case $cross_compiling:$ac_tool_warned in
3128 yes:)
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3130 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3131 ac_tool_warned=yes ;;
3132 esac
3133     CC=$ac_ct_CC
3134   fi
3135 else
3136   CC="$ac_cv_prog_CC"
3137 fi
3138
3139 if test -z "$CC"; then
3140           if test -n "$ac_tool_prefix"; then
3141     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3142 set dummy ${ac_tool_prefix}cc; ac_word=$2
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3144 $as_echo_n "checking for $ac_word... " >&6; }
3145 if ${ac_cv_prog_CC+:} false; then :
3146   $as_echo_n "(cached) " >&6
3147 else
3148   if test -n "$CC"; then
3149   ac_cv_prog_CC="$CC" # Let the user override the test.
3150 else
3151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3152 for as_dir in $PATH
3153 do
3154   IFS=$as_save_IFS
3155   test -z "$as_dir" && as_dir=.
3156     for ac_exec_ext in '' $ac_executable_extensions; do
3157   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3158     ac_cv_prog_CC="${ac_tool_prefix}cc"
3159     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3160     break 2
3161   fi
3162 done
3163   done
3164 IFS=$as_save_IFS
3165
3166 fi
3167 fi
3168 CC=$ac_cv_prog_CC
3169 if test -n "$CC"; then
3170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3171 $as_echo "$CC" >&6; }
3172 else
3173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3174 $as_echo "no" >&6; }
3175 fi
3176
3177
3178   fi
3179 fi
3180 if test -z "$CC"; then
3181   # Extract the first word of "cc", so it can be a program name with args.
3182 set dummy cc; ac_word=$2
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3184 $as_echo_n "checking for $ac_word... " >&6; }
3185 if ${ac_cv_prog_CC+:} false; then :
3186   $as_echo_n "(cached) " >&6
3187 else
3188   if test -n "$CC"; then
3189   ac_cv_prog_CC="$CC" # Let the user override the test.
3190 else
3191   ac_prog_rejected=no
3192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3193 for as_dir in $PATH
3194 do
3195   IFS=$as_save_IFS
3196   test -z "$as_dir" && as_dir=.
3197     for ac_exec_ext in '' $ac_executable_extensions; do
3198   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3199     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3200        ac_prog_rejected=yes
3201        continue
3202      fi
3203     ac_cv_prog_CC="cc"
3204     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3205     break 2
3206   fi
3207 done
3208   done
3209 IFS=$as_save_IFS
3210
3211 if test $ac_prog_rejected = yes; then
3212   # We found a bogon in the path, so make sure we never use it.
3213   set dummy $ac_cv_prog_CC
3214   shift
3215   if test $# != 0; then
3216     # We chose a different compiler from the bogus one.
3217     # However, it has the same basename, so the bogon will be chosen
3218     # first if we set CC to just the basename; use the full file name.
3219     shift
3220     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3221   fi
3222 fi
3223 fi
3224 fi
3225 CC=$ac_cv_prog_CC
3226 if test -n "$CC"; then
3227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3228 $as_echo "$CC" >&6; }
3229 else
3230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3231 $as_echo "no" >&6; }
3232 fi
3233
3234
3235 fi
3236 if test -z "$CC"; then
3237   if test -n "$ac_tool_prefix"; then
3238   for ac_prog in cl.exe
3239   do
3240     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3241 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3243 $as_echo_n "checking for $ac_word... " >&6; }
3244 if ${ac_cv_prog_CC+:} false; then :
3245   $as_echo_n "(cached) " >&6
3246 else
3247   if test -n "$CC"; then
3248   ac_cv_prog_CC="$CC" # Let the user override the test.
3249 else
3250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3251 for as_dir in $PATH
3252 do
3253   IFS=$as_save_IFS
3254   test -z "$as_dir" && as_dir=.
3255     for ac_exec_ext in '' $ac_executable_extensions; do
3256   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3257     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3258     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3259     break 2
3260   fi
3261 done
3262   done
3263 IFS=$as_save_IFS
3264
3265 fi
3266 fi
3267 CC=$ac_cv_prog_CC
3268 if test -n "$CC"; then
3269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3270 $as_echo "$CC" >&6; }
3271 else
3272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3273 $as_echo "no" >&6; }
3274 fi
3275
3276
3277     test -n "$CC" && break
3278   done
3279 fi
3280 if test -z "$CC"; then
3281   ac_ct_CC=$CC
3282   for ac_prog in cl.exe
3283 do
3284   # Extract the first word of "$ac_prog", so it can be a program name with args.
3285 set dummy $ac_prog; ac_word=$2
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3287 $as_echo_n "checking for $ac_word... " >&6; }
3288 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3289   $as_echo_n "(cached) " >&6
3290 else
3291   if test -n "$ac_ct_CC"; then
3292   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3293 else
3294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3295 for as_dir in $PATH
3296 do
3297   IFS=$as_save_IFS
3298   test -z "$as_dir" && as_dir=.
3299     for ac_exec_ext in '' $ac_executable_extensions; do
3300   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3301     ac_cv_prog_ac_ct_CC="$ac_prog"
3302     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3303     break 2
3304   fi
3305 done
3306   done
3307 IFS=$as_save_IFS
3308
3309 fi
3310 fi
3311 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3312 if test -n "$ac_ct_CC"; then
3313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3314 $as_echo "$ac_ct_CC" >&6; }
3315 else
3316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3317 $as_echo "no" >&6; }
3318 fi
3319
3320
3321   test -n "$ac_ct_CC" && break
3322 done
3323
3324   if test "x$ac_ct_CC" = x; then
3325     CC=""
3326   else
3327     case $cross_compiling:$ac_tool_warned in
3328 yes:)
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3330 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3331 ac_tool_warned=yes ;;
3332 esac
3333     CC=$ac_ct_CC
3334   fi
3335 fi
3336
3337 fi
3338
3339
3340 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3341 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3342 as_fn_error $? "no acceptable C compiler found in \$PATH
3343 See \`config.log' for more details" "$LINENO" 5; }
3344
3345 # Provide some information about the compiler.
3346 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3347 set X $ac_compile
3348 ac_compiler=$2
3349 for ac_option in --version -v -V -qversion; do
3350   { { ac_try="$ac_compiler $ac_option >&5"
3351 case "(($ac_try" in
3352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3353   *) ac_try_echo=$ac_try;;
3354 esac
3355 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3356 $as_echo "$ac_try_echo"; } >&5
3357   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3358   ac_status=$?
3359   if test -s conftest.err; then
3360     sed '10a\
3361 ... rest of stderr output deleted ...
3362          10q' conftest.err >conftest.er1
3363     cat conftest.er1 >&5
3364   fi
3365   rm -f conftest.er1 conftest.err
3366   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3367   test $ac_status = 0; }
3368 done
3369
3370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3371 /* end confdefs.h.  */
3372
3373 int
3374 main ()
3375 {
3376
3377   ;
3378   return 0;
3379 }
3380 _ACEOF
3381 ac_clean_files_save=$ac_clean_files
3382 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3383 # Try to create an executable without -o first, disregard a.out.
3384 # It will help us diagnose broken compilers, and finding out an intuition
3385 # of exeext.
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3387 $as_echo_n "checking whether the C compiler works... " >&6; }
3388 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3389
3390 # The possible output files:
3391 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3392
3393 ac_rmfiles=
3394 for ac_file in $ac_files
3395 do
3396   case $ac_file in
3397     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3398     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3399   esac
3400 done
3401 rm -f $ac_rmfiles
3402
3403 if { { ac_try="$ac_link_default"
3404 case "(($ac_try" in
3405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3406   *) ac_try_echo=$ac_try;;
3407 esac
3408 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3409 $as_echo "$ac_try_echo"; } >&5
3410   (eval "$ac_link_default") 2>&5
3411   ac_status=$?
3412   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3413   test $ac_status = 0; }; then :
3414   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3415 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3416 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3417 # so that the user can short-circuit this test for compilers unknown to
3418 # Autoconf.
3419 for ac_file in $ac_files ''
3420 do
3421   test -f "$ac_file" || continue
3422   case $ac_file in
3423     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3424         ;;
3425     [ab].out )
3426         # We found the default executable, but exeext='' is most
3427         # certainly right.
3428         break;;
3429     *.* )
3430         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3431         then :; else
3432            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3433         fi
3434         # We set ac_cv_exeext here because the later test for it is not
3435         # safe: cross compilers may not add the suffix if given an `-o'
3436         # argument, so we may need to know it at that point already.
3437         # Even if this section looks crufty: it has the advantage of
3438         # actually working.
3439         break;;
3440     * )
3441         break;;
3442   esac
3443 done
3444 test "$ac_cv_exeext" = no && ac_cv_exeext=
3445
3446 else
3447   ac_file=''
3448 fi
3449 if test -z "$ac_file"; then :
3450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3451 $as_echo "no" >&6; }
3452 $as_echo "$as_me: failed program was:" >&5
3453 sed 's/^/| /' conftest.$ac_ext >&5
3454
3455 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3456 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3457 as_fn_error 77 "C compiler cannot create executables
3458 See \`config.log' for more details" "$LINENO" 5; }
3459 else
3460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3461 $as_echo "yes" >&6; }
3462 fi
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3464 $as_echo_n "checking for C compiler default output file name... " >&6; }
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3466 $as_echo "$ac_file" >&6; }
3467 ac_exeext=$ac_cv_exeext
3468
3469 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3470 ac_clean_files=$ac_clean_files_save
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3472 $as_echo_n "checking for suffix of executables... " >&6; }
3473 if { { ac_try="$ac_link"
3474 case "(($ac_try" in
3475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3476   *) ac_try_echo=$ac_try;;
3477 esac
3478 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3479 $as_echo "$ac_try_echo"; } >&5
3480   (eval "$ac_link") 2>&5
3481   ac_status=$?
3482   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3483   test $ac_status = 0; }; then :
3484   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3485 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3486 # work properly (i.e., refer to `conftest.exe'), while it won't with
3487 # `rm'.
3488 for ac_file in conftest.exe conftest conftest.*; do
3489   test -f "$ac_file" || continue
3490   case $ac_file in
3491     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3492     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3493           break;;
3494     * ) break;;
3495   esac
3496 done
3497 else
3498   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3499 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3500 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3501 See \`config.log' for more details" "$LINENO" 5; }
3502 fi
3503 rm -f conftest conftest$ac_cv_exeext
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3505 $as_echo "$ac_cv_exeext" >&6; }
3506
3507 rm -f conftest.$ac_ext
3508 EXEEXT=$ac_cv_exeext
3509 ac_exeext=$EXEEXT
3510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3511 /* end confdefs.h.  */
3512 #include <stdio.h>
3513 int
3514 main ()
3515 {
3516 FILE *f = fopen ("conftest.out", "w");
3517  return ferror (f) || fclose (f) != 0;
3518
3519   ;
3520   return 0;
3521 }
3522 _ACEOF
3523 ac_clean_files="$ac_clean_files conftest.out"
3524 # Check that the compiler produces executables we can run.  If not, either
3525 # the compiler is broken, or we cross compile.
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3527 $as_echo_n "checking whether we are cross compiling... " >&6; }
3528 if test "$cross_compiling" != yes; then
3529   { { ac_try="$ac_link"
3530 case "(($ac_try" in
3531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3532   *) ac_try_echo=$ac_try;;
3533 esac
3534 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3535 $as_echo "$ac_try_echo"; } >&5
3536   (eval "$ac_link") 2>&5
3537   ac_status=$?
3538   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3539   test $ac_status = 0; }
3540   if { ac_try='./conftest$ac_cv_exeext'
3541   { { case "(($ac_try" in
3542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3543   *) ac_try_echo=$ac_try;;
3544 esac
3545 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3546 $as_echo "$ac_try_echo"; } >&5
3547   (eval "$ac_try") 2>&5
3548   ac_status=$?
3549   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3550   test $ac_status = 0; }; }; then
3551     cross_compiling=no
3552   else
3553     if test "$cross_compiling" = maybe; then
3554         cross_compiling=yes
3555     else
3556         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3557 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3558 as_fn_error $? "cannot run C compiled programs.
3559 If you meant to cross compile, use \`--host'.
3560 See \`config.log' for more details" "$LINENO" 5; }
3561     fi
3562   fi
3563 fi
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3565 $as_echo "$cross_compiling" >&6; }
3566
3567 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3568 ac_clean_files=$ac_clean_files_save
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3570 $as_echo_n "checking for suffix of object files... " >&6; }
3571 if ${ac_cv_objext+:} false; then :
3572   $as_echo_n "(cached) " >&6
3573 else
3574   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3575 /* end confdefs.h.  */
3576
3577 int
3578 main ()
3579 {
3580
3581   ;
3582   return 0;
3583 }
3584 _ACEOF
3585 rm -f conftest.o conftest.obj
3586 if { { ac_try="$ac_compile"
3587 case "(($ac_try" in
3588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3589   *) ac_try_echo=$ac_try;;
3590 esac
3591 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3592 $as_echo "$ac_try_echo"; } >&5
3593   (eval "$ac_compile") 2>&5
3594   ac_status=$?
3595   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3596   test $ac_status = 0; }; then :
3597   for ac_file in conftest.o conftest.obj conftest.*; do
3598   test -f "$ac_file" || continue;
3599   case $ac_file in
3600     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3601     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3602        break;;
3603   esac
3604 done
3605 else
3606   $as_echo "$as_me: failed program was:" >&5
3607 sed 's/^/| /' conftest.$ac_ext >&5
3608
3609 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3610 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3611 as_fn_error $? "cannot compute suffix of object files: cannot compile
3612 See \`config.log' for more details" "$LINENO" 5; }
3613 fi
3614 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3615 fi
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3617 $as_echo "$ac_cv_objext" >&6; }
3618 OBJEXT=$ac_cv_objext
3619 ac_objext=$OBJEXT
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3621 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3622 if ${ac_cv_c_compiler_gnu+:} false; then :
3623   $as_echo_n "(cached) " >&6
3624 else
3625   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3626 /* end confdefs.h.  */
3627
3628 int
3629 main ()
3630 {
3631 #ifndef __GNUC__
3632        choke me
3633 #endif
3634
3635   ;
3636   return 0;
3637 }
3638 _ACEOF
3639 if ac_fn_c_try_compile "$LINENO"; then :
3640   ac_compiler_gnu=yes
3641 else
3642   ac_compiler_gnu=no
3643 fi
3644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3645 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3646
3647 fi
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3649 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3650 if test $ac_compiler_gnu = yes; then
3651   GCC=yes
3652 else
3653   GCC=
3654 fi
3655 ac_test_CFLAGS=${CFLAGS+set}
3656 ac_save_CFLAGS=$CFLAGS
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3658 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3659 if ${ac_cv_prog_cc_g+:} false; then :
3660   $as_echo_n "(cached) " >&6
3661 else
3662   ac_save_c_werror_flag=$ac_c_werror_flag
3663    ac_c_werror_flag=yes
3664    ac_cv_prog_cc_g=no
3665    CFLAGS="-g"
3666    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3667 /* end confdefs.h.  */
3668
3669 int
3670 main ()
3671 {
3672
3673   ;
3674   return 0;
3675 }
3676 _ACEOF
3677 if ac_fn_c_try_compile "$LINENO"; then :
3678   ac_cv_prog_cc_g=yes
3679 else
3680   CFLAGS=""
3681       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3682 /* end confdefs.h.  */
3683
3684 int
3685 main ()
3686 {
3687
3688   ;
3689   return 0;
3690 }
3691 _ACEOF
3692 if ac_fn_c_try_compile "$LINENO"; then :
3693
3694 else
3695   ac_c_werror_flag=$ac_save_c_werror_flag
3696          CFLAGS="-g"
3697          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3698 /* end confdefs.h.  */
3699
3700 int
3701 main ()
3702 {
3703
3704   ;
3705   return 0;
3706 }
3707 _ACEOF
3708 if ac_fn_c_try_compile "$LINENO"; then :
3709   ac_cv_prog_cc_g=yes
3710 fi
3711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3712 fi
3713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3714 fi
3715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3716    ac_c_werror_flag=$ac_save_c_werror_flag
3717 fi
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3719 $as_echo "$ac_cv_prog_cc_g" >&6; }
3720 if test "$ac_test_CFLAGS" = set; then
3721   CFLAGS=$ac_save_CFLAGS
3722 elif test $ac_cv_prog_cc_g = yes; then
3723   if test "$GCC" = yes; then
3724     CFLAGS="-g -O2"
3725   else
3726     CFLAGS="-g"
3727   fi
3728 else
3729   if test "$GCC" = yes; then
3730     CFLAGS="-O2"
3731   else
3732     CFLAGS=
3733   fi
3734 fi
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3736 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3737 if ${ac_cv_prog_cc_c89+:} false; then :
3738   $as_echo_n "(cached) " >&6
3739 else
3740   ac_cv_prog_cc_c89=no
3741 ac_save_CC=$CC
3742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3743 /* end confdefs.h.  */
3744 #include <stdarg.h>
3745 #include <stdio.h>
3746 struct stat;
3747 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3748 struct buf { int x; };
3749 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3750 static char *e (p, i)
3751      char **p;
3752      int i;
3753 {
3754   return p[i];
3755 }
3756 static char *f (char * (*g) (char **, int), char **p, ...)
3757 {
3758   char *s;
3759   va_list v;
3760   va_start (v,p);
3761   s = g (p, va_arg (v,int));
3762   va_end (v);
3763   return s;
3764 }
3765
3766 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3767    function prototypes and stuff, but not '\xHH' hex character constants.
3768    These don't provoke an error unfortunately, instead are silently treated
3769    as 'x'.  The following induces an error, until -std is added to get
3770    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3771    array size at least.  It's necessary to write '\x00'==0 to get something
3772    that's true only with -std.  */
3773 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3774
3775 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3776    inside strings and character constants.  */
3777 #define FOO(x) 'x'
3778 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3779
3780 int test (int i, double x);
3781 struct s1 {int (*f) (int a);};
3782 struct s2 {int (*f) (double a);};
3783 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3784 int argc;
3785 char **argv;
3786 int
3787 main ()
3788 {
3789 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3790   ;
3791   return 0;
3792 }
3793 _ACEOF
3794 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3795         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3796 do
3797   CC="$ac_save_CC $ac_arg"
3798   if ac_fn_c_try_compile "$LINENO"; then :
3799   ac_cv_prog_cc_c89=$ac_arg
3800 fi
3801 rm -f core conftest.err conftest.$ac_objext
3802   test "x$ac_cv_prog_cc_c89" != "xno" && break
3803 done
3804 rm -f conftest.$ac_ext
3805 CC=$ac_save_CC
3806
3807 fi
3808 # AC_CACHE_VAL
3809 case "x$ac_cv_prog_cc_c89" in
3810   x)
3811     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3812 $as_echo "none needed" >&6; } ;;
3813   xno)
3814     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3815 $as_echo "unsupported" >&6; } ;;
3816   *)
3817     CC="$CC $ac_cv_prog_cc_c89"
3818     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3819 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3820 esac
3821 if test "x$ac_cv_prog_cc_c89" != xno; then :
3822
3823 fi
3824
3825 ac_ext=c
3826 ac_cpp='$CPP $CPPFLAGS'
3827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3830
3831 depcc="$CC"   am_compiler_list=
3832
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3834 $as_echo_n "checking dependency style of $depcc... " >&6; }
3835 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3836   $as_echo_n "(cached) " >&6
3837 else
3838   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3839   # We make a subdir and do the tests there.  Otherwise we can end up
3840   # making bogus files that we don't know about and never remove.  For
3841   # instance it was reported that on HP-UX the gcc test will end up
3842   # making a dummy file named `D' -- because `-MD' means `put the output
3843   # in D'.
3844   rm -rf conftest.dir
3845   mkdir conftest.dir
3846   # Copy depcomp to subdir because otherwise we won't find it if we're
3847   # using a relative directory.
3848   cp "$am_depcomp" conftest.dir
3849   cd conftest.dir
3850   # We will build objects and dependencies in a subdirectory because
3851   # it helps to detect inapplicable dependency modes.  For instance
3852   # both Tru64's cc and ICC support -MD to output dependencies as a
3853   # side effect of compilation, but ICC will put the dependencies in
3854   # the current directory while Tru64 will put them in the object
3855   # directory.
3856   mkdir sub
3857
3858   am_cv_CC_dependencies_compiler_type=none
3859   if test "$am_compiler_list" = ""; then
3860      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3861   fi
3862   am__universal=false
3863   case " $depcc " in #(
3864      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3865      esac
3866
3867   for depmode in $am_compiler_list; do
3868     # Setup a source with many dependencies, because some compilers
3869     # like to wrap large dependency lists on column 80 (with \), and
3870     # we should not choose a depcomp mode which is confused by this.
3871     #
3872     # We need to recreate these files for each test, as the compiler may
3873     # overwrite some of them when testing with obscure command lines.
3874     # This happens at least with the AIX C compiler.
3875     : > sub/conftest.c
3876     for i in 1 2 3 4 5 6; do
3877       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3878       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3879       # Solaris 8's {/usr,}/bin/sh.
3880       touch sub/conftst$i.h
3881     done
3882     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3883
3884     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3885     # mode.  It turns out that the SunPro C++ compiler does not properly
3886     # handle `-M -o', and we need to detect this.  Also, some Intel
3887     # versions had trouble with output in subdirs
3888     am__obj=sub/conftest.${OBJEXT-o}
3889     am__minus_obj="-o $am__obj"
3890     case $depmode in
3891     gcc)
3892       # This depmode causes a compiler race in universal mode.
3893       test "$am__universal" = false || continue
3894       ;;
3895     nosideeffect)
3896       # after this tag, mechanisms are not by side-effect, so they'll
3897       # only be used when explicitly requested
3898       if test "x$enable_dependency_tracking" = xyes; then
3899         continue
3900       else
3901         break
3902       fi
3903       ;;
3904     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3905       # This compiler won't grok `-c -o', but also, the minuso test has
3906       # not run yet.  These depmodes are late enough in the game, and
3907       # so weak that their functioning should not be impacted.
3908       am__obj=conftest.${OBJEXT-o}
3909       am__minus_obj=
3910       ;;
3911     none) break ;;
3912     esac
3913     if depmode=$depmode \
3914        source=sub/conftest.c object=$am__obj \
3915        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3916        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3917          >/dev/null 2>conftest.err &&
3918        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3919        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3920        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3921        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3922       # icc doesn't choke on unknown options, it will just issue warnings
3923       # or remarks (even with -Werror).  So we grep stderr for any message
3924       # that says an option was ignored or not supported.
3925       # When given -MP, icc 7.0 and 7.1 complain thusly:
3926       #   icc: Command line warning: ignoring option '-M'; no argument required
3927       # The diagnosis changed in icc 8.0:
3928       #   icc: Command line remark: option '-MP' not supported
3929       if (grep 'ignoring option' conftest.err ||
3930           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3931         am_cv_CC_dependencies_compiler_type=$depmode
3932         break
3933       fi
3934     fi
3935   done
3936
3937   cd ..
3938   rm -rf conftest.dir
3939 else
3940   am_cv_CC_dependencies_compiler_type=none
3941 fi
3942
3943 fi
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3945 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3946 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3947
3948  if
3949   test "x$enable_dependency_tracking" != xno \
3950   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3951   am__fastdepCC_TRUE=
3952   am__fastdepCC_FALSE='#'
3953 else
3954   am__fastdepCC_TRUE='#'
3955   am__fastdepCC_FALSE=
3956 fi
3957
3958
3959
3960 ac_ext=c
3961 ac_cpp='$CPP $CPPFLAGS'
3962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3966 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3967 # On Suns, sometimes $CPP names a directory.
3968 if test -n "$CPP" && test -d "$CPP"; then
3969   CPP=
3970 fi
3971 if test -z "$CPP"; then
3972   if ${ac_cv_prog_CPP+:} false; then :
3973   $as_echo_n "(cached) " >&6
3974 else
3975       # Double quotes because CPP needs to be expanded
3976     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3977     do
3978       ac_preproc_ok=false
3979 for ac_c_preproc_warn_flag in '' yes
3980 do
3981   # Use a header file that comes with gcc, so configuring glibc
3982   # with a fresh cross-compiler works.
3983   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3984   # <limits.h> exists even on freestanding compilers.
3985   # On the NeXT, cc -E runs the code through the compiler's parser,
3986   # not just through cpp. "Syntax error" is here to catch this case.
3987   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3988 /* end confdefs.h.  */
3989 #ifdef __STDC__
3990 # include <limits.h>
3991 #else
3992 # include <assert.h>
3993 #endif
3994                      Syntax error
3995 _ACEOF
3996 if ac_fn_c_try_cpp "$LINENO"; then :
3997
3998 else
3999   # Broken: fails on valid input.
4000 continue
4001 fi
4002 rm -f conftest.err conftest.i conftest.$ac_ext
4003
4004   # OK, works on sane cases.  Now check whether nonexistent headers
4005   # can be detected and how.
4006   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4007 /* end confdefs.h.  */
4008 #include <ac_nonexistent.h>
4009 _ACEOF
4010 if ac_fn_c_try_cpp "$LINENO"; then :
4011   # Broken: success on invalid input.
4012 continue
4013 else
4014   # Passes both tests.
4015 ac_preproc_ok=:
4016 break
4017 fi
4018 rm -f conftest.err conftest.i conftest.$ac_ext
4019
4020 done
4021 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4022 rm -f conftest.i conftest.err conftest.$ac_ext
4023 if $ac_preproc_ok; then :
4024   break
4025 fi
4026
4027     done
4028     ac_cv_prog_CPP=$CPP
4029
4030 fi
4031   CPP=$ac_cv_prog_CPP
4032 else
4033   ac_cv_prog_CPP=$CPP
4034 fi
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4036 $as_echo "$CPP" >&6; }
4037 ac_preproc_ok=false
4038 for ac_c_preproc_warn_flag in '' yes
4039 do
4040   # Use a header file that comes with gcc, so configuring glibc
4041   # with a fresh cross-compiler works.
4042   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4043   # <limits.h> exists even on freestanding compilers.
4044   # On the NeXT, cc -E runs the code through the compiler's parser,
4045   # not just through cpp. "Syntax error" is here to catch this case.
4046   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4047 /* end confdefs.h.  */
4048 #ifdef __STDC__
4049 # include <limits.h>
4050 #else
4051 # include <assert.h>
4052 #endif
4053                      Syntax error
4054 _ACEOF
4055 if ac_fn_c_try_cpp "$LINENO"; then :
4056
4057 else
4058   # Broken: fails on valid input.
4059 continue
4060 fi
4061 rm -f conftest.err conftest.i conftest.$ac_ext
4062
4063   # OK, works on sane cases.  Now check whether nonexistent headers
4064   # can be detected and how.
4065   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4066 /* end confdefs.h.  */
4067 #include <ac_nonexistent.h>
4068 _ACEOF
4069 if ac_fn_c_try_cpp "$LINENO"; then :
4070   # Broken: success on invalid input.
4071 continue
4072 else
4073   # Passes both tests.
4074 ac_preproc_ok=:
4075 break
4076 fi
4077 rm -f conftest.err conftest.i conftest.$ac_ext
4078
4079 done
4080 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4081 rm -f conftest.i conftest.err conftest.$ac_ext
4082 if $ac_preproc_ok; then :
4083
4084 else
4085   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4086 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4087 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4088 See \`config.log' for more details" "$LINENO" 5; }
4089 fi
4090
4091 ac_ext=c
4092 ac_cpp='$CPP $CPPFLAGS'
4093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4096
4097
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4099 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4100 if ${ac_cv_path_GREP+:} false; then :
4101   $as_echo_n "(cached) " >&6
4102 else
4103   if test -z "$GREP"; then
4104   ac_path_GREP_found=false
4105   # Loop through the user's path and test for each of PROGNAME-LIST
4106   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4107 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4108 do
4109   IFS=$as_save_IFS
4110   test -z "$as_dir" && as_dir=.
4111     for ac_prog in grep ggrep; do
4112     for ac_exec_ext in '' $ac_executable_extensions; do
4113       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4114       as_fn_executable_p "$ac_path_GREP" || continue
4115 # Check for GNU ac_path_GREP and select it if it is found.
4116   # Check for GNU $ac_path_GREP
4117 case `"$ac_path_GREP" --version 2>&1` in
4118 *GNU*)
4119   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4120 *)
4121   ac_count=0
4122   $as_echo_n 0123456789 >"conftest.in"
4123   while :
4124   do
4125     cat "conftest.in" "conftest.in" >"conftest.tmp"
4126     mv "conftest.tmp" "conftest.in"
4127     cp "conftest.in" "conftest.nl"
4128     $as_echo 'GREP' >> "conftest.nl"
4129     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4130     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4131     as_fn_arith $ac_count + 1 && ac_count=$as_val
4132     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4133       # Best one so far, save it but keep looking for a better one
4134       ac_cv_path_GREP="$ac_path_GREP"
4135       ac_path_GREP_max=$ac_count
4136     fi
4137     # 10*(2^10) chars as input seems more than enough
4138     test $ac_count -gt 10 && break
4139   done
4140   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4141 esac
4142
4143       $ac_path_GREP_found && break 3
4144     done
4145   done
4146   done
4147 IFS=$as_save_IFS
4148   if test -z "$ac_cv_path_GREP"; then
4149     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4150   fi
4151 else
4152   ac_cv_path_GREP=$GREP
4153 fi
4154
4155 fi
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4157 $as_echo "$ac_cv_path_GREP" >&6; }
4158  GREP="$ac_cv_path_GREP"
4159
4160
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4162 $as_echo_n "checking for egrep... " >&6; }
4163 if ${ac_cv_path_EGREP+:} false; then :
4164   $as_echo_n "(cached) " >&6
4165 else
4166   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4167    then ac_cv_path_EGREP="$GREP -E"
4168    else
4169      if test -z "$EGREP"; then
4170   ac_path_EGREP_found=false
4171   # Loop through the user's path and test for each of PROGNAME-LIST
4172   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4173 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4174 do
4175   IFS=$as_save_IFS
4176   test -z "$as_dir" && as_dir=.
4177     for ac_prog in egrep; do
4178     for ac_exec_ext in '' $ac_executable_extensions; do
4179       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4180       as_fn_executable_p "$ac_path_EGREP" || continue
4181 # Check for GNU ac_path_EGREP and select it if it is found.
4182   # Check for GNU $ac_path_EGREP
4183 case `"$ac_path_EGREP" --version 2>&1` in
4184 *GNU*)
4185   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4186 *)
4187   ac_count=0
4188   $as_echo_n 0123456789 >"conftest.in"
4189   while :
4190   do
4191     cat "conftest.in" "conftest.in" >"conftest.tmp"
4192     mv "conftest.tmp" "conftest.in"
4193     cp "conftest.in" "conftest.nl"
4194     $as_echo 'EGREP' >> "conftest.nl"
4195     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4196     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4197     as_fn_arith $ac_count + 1 && ac_count=$as_val
4198     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4199       # Best one so far, save it but keep looking for a better one
4200       ac_cv_path_EGREP="$ac_path_EGREP"
4201       ac_path_EGREP_max=$ac_count
4202     fi
4203     # 10*(2^10) chars as input seems more than enough
4204     test $ac_count -gt 10 && break
4205   done
4206   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4207 esac
4208
4209       $ac_path_EGREP_found && break 3
4210     done
4211   done
4212   done
4213 IFS=$as_save_IFS
4214   if test -z "$ac_cv_path_EGREP"; then
4215     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4216   fi
4217 else
4218   ac_cv_path_EGREP=$EGREP
4219 fi
4220
4221    fi
4222 fi
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4224 $as_echo "$ac_cv_path_EGREP" >&6; }
4225  EGREP="$ac_cv_path_EGREP"
4226
4227
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4229 $as_echo_n "checking for ANSI C header files... " >&6; }
4230 if ${ac_cv_header_stdc+:} false; then :
4231   $as_echo_n "(cached) " >&6
4232 else
4233   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4234 /* end confdefs.h.  */
4235 #include <stdlib.h>
4236 #include <stdarg.h>
4237 #include <string.h>
4238 #include <float.h>
4239
4240 int
4241 main ()
4242 {
4243
4244   ;
4245   return 0;
4246 }
4247 _ACEOF
4248 if ac_fn_c_try_compile "$LINENO"; then :
4249   ac_cv_header_stdc=yes
4250 else
4251   ac_cv_header_stdc=no
4252 fi
4253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4254
4255 if test $ac_cv_header_stdc = yes; then
4256   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4257   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4258 /* end confdefs.h.  */
4259 #include <string.h>
4260
4261 _ACEOF
4262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4263   $EGREP "memchr" >/dev/null 2>&1; then :
4264
4265 else
4266   ac_cv_header_stdc=no
4267 fi
4268 rm -f conftest*
4269
4270 fi
4271
4272 if test $ac_cv_header_stdc = yes; then
4273   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4274   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4275 /* end confdefs.h.  */
4276 #include <stdlib.h>
4277
4278 _ACEOF
4279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4280   $EGREP "free" >/dev/null 2>&1; then :
4281
4282 else
4283   ac_cv_header_stdc=no
4284 fi
4285 rm -f conftest*
4286
4287 fi
4288
4289 if test $ac_cv_header_stdc = yes; then
4290   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4291   if test "$cross_compiling" = yes; then :
4292   :
4293 else
4294   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4295 /* end confdefs.h.  */
4296 #include <ctype.h>
4297 #include <stdlib.h>
4298 #if ((' ' & 0x0FF) == 0x020)
4299 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4300 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4301 #else
4302 # define ISLOWER(c) \
4303                    (('a' <= (c) && (c) <= 'i') \
4304                      || ('j' <= (c) && (c) <= 'r') \
4305                      || ('s' <= (c) && (c) <= 'z'))
4306 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4307 #endif
4308
4309 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4310 int
4311 main ()
4312 {
4313   int i;
4314   for (i = 0; i < 256; i++)
4315     if (XOR (islower (i), ISLOWER (i))
4316         || toupper (i) != TOUPPER (i))
4317       return 2;
4318   return 0;
4319 }
4320 _ACEOF
4321 if ac_fn_c_try_run "$LINENO"; then :
4322
4323 else
4324   ac_cv_header_stdc=no
4325 fi
4326 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4327   conftest.$ac_objext conftest.beam conftest.$ac_ext
4328 fi
4329
4330 fi
4331 fi
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4333 $as_echo "$ac_cv_header_stdc" >&6; }
4334 if test $ac_cv_header_stdc = yes; then
4335
4336 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4337
4338 fi
4339
4340 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4341 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4342                   inttypes.h stdint.h unistd.h
4343 do :
4344   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4345 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4346 "
4347 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4348   cat >>confdefs.h <<_ACEOF
4349 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4350 _ACEOF
4351
4352 fi
4353
4354 done
4355
4356
4357
4358   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4359 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4360   MINIX=yes
4361 else
4362   MINIX=
4363 fi
4364
4365
4366   if test "$MINIX" = yes; then
4367
4368 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4369
4370
4371 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4372
4373
4374 $as_echo "#define _MINIX 1" >>confdefs.h
4375
4376   fi
4377
4378
4379   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4380 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4381 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4382   $as_echo_n "(cached) " >&6
4383 else
4384   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4385 /* end confdefs.h.  */
4386
4387 #         define __EXTENSIONS__ 1
4388           $ac_includes_default
4389 int
4390 main ()
4391 {
4392
4393   ;
4394   return 0;
4395 }
4396 _ACEOF
4397 if ac_fn_c_try_compile "$LINENO"; then :
4398   ac_cv_safe_to_define___extensions__=yes
4399 else
4400   ac_cv_safe_to_define___extensions__=no
4401 fi
4402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4403 fi
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4405 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4406   test $ac_cv_safe_to_define___extensions__ = yes &&
4407     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4408
4409   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4410
4411   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4412
4413   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4414
4415   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4416
4417
4418
4419 # Check whether --enable-silent-rules was given.
4420 if test "${enable_silent_rules+set}" = set; then :
4421   enableval=$enable_silent_rules;
4422 fi
4423
4424 case $enable_silent_rules in
4425 yes) AM_DEFAULT_VERBOSITY=0;;
4426 no)  AM_DEFAULT_VERBOSITY=1;;
4427 *)   AM_DEFAULT_VERBOSITY=0;;
4428 esac
4429 am_make=${MAKE-make}
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4431 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4432 if ${am_cv_make_support_nested_variables+:} false; then :
4433   $as_echo_n "(cached) " >&6
4434 else
4435   if $as_echo 'TRUE=$(BAR$(V))
4436 BAR0=false
4437 BAR1=true
4438 V=1
4439 am__doit:
4440         @$(TRUE)
4441 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4442   am_cv_make_support_nested_variables=yes
4443 else
4444   am_cv_make_support_nested_variables=no
4445 fi
4446 fi
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4448 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4449 if test $am_cv_make_support_nested_variables = yes; then
4450     AM_V='$(V)'
4451   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4452 else
4453   AM_V=$AM_DEFAULT_VERBOSITY
4454   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4455 fi
4456 AM_BACKSLASH='\'
4457
4458
4459
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4461 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4462     # Check whether --enable-maintainer-mode was given.
4463 if test "${enable_maintainer_mode+set}" = set; then :
4464   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4465 else
4466   USE_MAINTAINER_MODE=no
4467 fi
4468
4469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4470 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4471    if test $USE_MAINTAINER_MODE = yes; then
4472   MAINTAINER_MODE_TRUE=
4473   MAINTAINER_MODE_FALSE='#'
4474 else
4475   MAINTAINER_MODE_TRUE='#'
4476   MAINTAINER_MODE_FALSE=
4477 fi
4478
4479   MAINT=$MAINTAINER_MODE_TRUE
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4493         if test -n "$ac_tool_prefix"; then
4494   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4495 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4497 $as_echo_n "checking for $ac_word... " >&6; }
4498 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4499   $as_echo_n "(cached) " >&6
4500 else
4501   case $PKG_CONFIG in
4502   [\\/]* | ?:[\\/]*)
4503   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4504   ;;
4505   *)
4506   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4507 for as_dir in $PATH
4508 do
4509   IFS=$as_save_IFS
4510   test -z "$as_dir" && as_dir=.
4511     for ac_exec_ext in '' $ac_executable_extensions; do
4512   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4513     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4514     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4515     break 2
4516   fi
4517 done
4518   done
4519 IFS=$as_save_IFS
4520
4521   ;;
4522 esac
4523 fi
4524 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4525 if test -n "$PKG_CONFIG"; then
4526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4527 $as_echo "$PKG_CONFIG" >&6; }
4528 else
4529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4530 $as_echo "no" >&6; }
4531 fi
4532
4533
4534 fi
4535 if test -z "$ac_cv_path_PKG_CONFIG"; then
4536   ac_pt_PKG_CONFIG=$PKG_CONFIG
4537   # Extract the first word of "pkg-config", so it can be a program name with args.
4538 set dummy pkg-config; ac_word=$2
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4540 $as_echo_n "checking for $ac_word... " >&6; }
4541 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4542   $as_echo_n "(cached) " >&6
4543 else
4544   case $ac_pt_PKG_CONFIG in
4545   [\\/]* | ?:[\\/]*)
4546   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4547   ;;
4548   *)
4549   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4550 for as_dir in $PATH
4551 do
4552   IFS=$as_save_IFS
4553   test -z "$as_dir" && as_dir=.
4554     for ac_exec_ext in '' $ac_executable_extensions; do
4555   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4556     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4557     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4558     break 2
4559   fi
4560 done
4561   done
4562 IFS=$as_save_IFS
4563
4564   ;;
4565 esac
4566 fi
4567 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4568 if test -n "$ac_pt_PKG_CONFIG"; then
4569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4570 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4571 else
4572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4573 $as_echo "no" >&6; }
4574 fi
4575
4576   if test "x$ac_pt_PKG_CONFIG" = x; then
4577     PKG_CONFIG=""
4578   else
4579     case $cross_compiling:$ac_tool_warned in
4580 yes:)
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4582 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4583 ac_tool_warned=yes ;;
4584 esac
4585     PKG_CONFIG=$ac_pt_PKG_CONFIG
4586   fi
4587 else
4588   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4589 fi
4590
4591 fi
4592 if test -n "$PKG_CONFIG"; then
4593         _pkg_min_version=0.9.0
4594         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4595 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4596         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4597                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4598 $as_echo "yes" >&6; }
4599         else
4600                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4601 $as_echo "no" >&6; }
4602                 PKG_CONFIG=""
4603         fi
4604 fi
4605
4606
4607         with_cflags=""
4608         if (test "$USE_MAINTAINER_MODE" = "yes"); then
4609                 with_cflags="$with_cflags -Wall -Werror -Wextra"
4610                 with_cflags="$with_cflags -Wno-unused-parameter"
4611                 with_cflags="$with_cflags -Wno-missing-field-initializers"
4612                 with_cflags="$with_cflags -Wdeclaration-after-statement"
4613                 with_cflags="$with_cflags -Wmissing-declarations"
4614                 with_cflags="$with_cflags -Wredundant-decls"
4615                 with_cflags="$with_cflags -Wcast-align"
4616                 with_cflags="$with_cflags -DG_DISABLE_DEPRECATED"
4617                 with_cflags="$with_cflags -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_28"
4618                 with_cflags="$with_cflags -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_28"
4619         fi
4620         WARNING_CFLAGS=$with_cflags
4621
4622
4623
4624 ac_ext=c
4625 ac_cpp='$CPP $CPPFLAGS'
4626 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4627 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4628 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4629
4630
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
4632 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
4633 if ${ac_cv_c_restrict+:} false; then :
4634   $as_echo_n "(cached) " >&6
4635 else
4636   ac_cv_c_restrict=no
4637    # The order here caters to the fact that C++ does not require restrict.
4638    for ac_kw in __restrict __restrict__ _Restrict restrict; do
4639      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4640 /* end confdefs.h.  */
4641 typedef int * int_ptr;
4642         int foo (int_ptr $ac_kw ip) {
4643         return ip[0];
4644        }
4645 int
4646 main ()
4647 {
4648 int s[1];
4649         int * $ac_kw t = s;
4650         t[0] = 0;
4651         return foo(t)
4652   ;
4653   return 0;
4654 }
4655 _ACEOF
4656 if ac_fn_c_try_compile "$LINENO"; then :
4657   ac_cv_c_restrict=$ac_kw
4658 fi
4659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4660      test "$ac_cv_c_restrict" != no && break
4661    done
4662
4663 fi
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
4665 $as_echo "$ac_cv_c_restrict" >&6; }
4666
4667  case $ac_cv_c_restrict in
4668    restrict) ;;
4669    no) $as_echo "#define restrict /**/" >>confdefs.h
4670  ;;
4671    *)  cat >>confdefs.h <<_ACEOF
4672 #define restrict $ac_cv_c_restrict
4673 _ACEOF
4674  ;;
4675  esac
4676
4677
4678 ac_ext=c
4679 ac_cpp='$CPP $CPPFLAGS'
4680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4682 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4683 if test -n "$ac_tool_prefix"; then
4684   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4685 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4687 $as_echo_n "checking for $ac_word... " >&6; }
4688 if ${ac_cv_prog_CC+:} false; then :
4689   $as_echo_n "(cached) " >&6
4690 else
4691   if test -n "$CC"; then
4692   ac_cv_prog_CC="$CC" # Let the user override the test.
4693 else
4694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4695 for as_dir in $PATH
4696 do
4697   IFS=$as_save_IFS
4698   test -z "$as_dir" && as_dir=.
4699     for ac_exec_ext in '' $ac_executable_extensions; do
4700   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4701     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4702     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4703     break 2
4704   fi
4705 done
4706   done
4707 IFS=$as_save_IFS
4708
4709 fi
4710 fi
4711 CC=$ac_cv_prog_CC
4712 if test -n "$CC"; then
4713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4714 $as_echo "$CC" >&6; }
4715 else
4716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4717 $as_echo "no" >&6; }
4718 fi
4719
4720
4721 fi
4722 if test -z "$ac_cv_prog_CC"; then
4723   ac_ct_CC=$CC
4724   # Extract the first word of "gcc", so it can be a program name with args.
4725 set dummy gcc; ac_word=$2
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4727 $as_echo_n "checking for $ac_word... " >&6; }
4728 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4729   $as_echo_n "(cached) " >&6
4730 else
4731   if test -n "$ac_ct_CC"; then
4732   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4733 else
4734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4735 for as_dir in $PATH
4736 do
4737   IFS=$as_save_IFS
4738   test -z "$as_dir" && as_dir=.
4739     for ac_exec_ext in '' $ac_executable_extensions; do
4740   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4741     ac_cv_prog_ac_ct_CC="gcc"
4742     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4743     break 2
4744   fi
4745 done
4746   done
4747 IFS=$as_save_IFS
4748
4749 fi
4750 fi
4751 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4752 if test -n "$ac_ct_CC"; then
4753   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4754 $as_echo "$ac_ct_CC" >&6; }
4755 else
4756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4757 $as_echo "no" >&6; }
4758 fi
4759
4760   if test "x$ac_ct_CC" = x; then
4761     CC=""
4762   else
4763     case $cross_compiling:$ac_tool_warned in
4764 yes:)
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4766 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4767 ac_tool_warned=yes ;;
4768 esac
4769     CC=$ac_ct_CC
4770   fi
4771 else
4772   CC="$ac_cv_prog_CC"
4773 fi
4774
4775 if test -z "$CC"; then
4776           if test -n "$ac_tool_prefix"; then
4777     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4778 set dummy ${ac_tool_prefix}cc; ac_word=$2
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4780 $as_echo_n "checking for $ac_word... " >&6; }
4781 if ${ac_cv_prog_CC+:} false; then :
4782   $as_echo_n "(cached) " >&6
4783 else
4784   if test -n "$CC"; then
4785   ac_cv_prog_CC="$CC" # Let the user override the test.
4786 else
4787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4788 for as_dir in $PATH
4789 do
4790   IFS=$as_save_IFS
4791   test -z "$as_dir" && as_dir=.
4792     for ac_exec_ext in '' $ac_executable_extensions; do
4793   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4794     ac_cv_prog_CC="${ac_tool_prefix}cc"
4795     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4796     break 2
4797   fi
4798 done
4799   done
4800 IFS=$as_save_IFS
4801
4802 fi
4803 fi
4804 CC=$ac_cv_prog_CC
4805 if test -n "$CC"; then
4806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4807 $as_echo "$CC" >&6; }
4808 else
4809   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4810 $as_echo "no" >&6; }
4811 fi
4812
4813
4814   fi
4815 fi
4816 if test -z "$CC"; then
4817   # Extract the first word of "cc", so it can be a program name with args.
4818 set dummy cc; ac_word=$2
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4820 $as_echo_n "checking for $ac_word... " >&6; }
4821 if ${ac_cv_prog_CC+:} false; then :
4822   $as_echo_n "(cached) " >&6
4823 else
4824   if test -n "$CC"; then
4825   ac_cv_prog_CC="$CC" # Let the user override the test.
4826 else
4827   ac_prog_rejected=no
4828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4829 for as_dir in $PATH
4830 do
4831   IFS=$as_save_IFS
4832   test -z "$as_dir" && as_dir=.
4833     for ac_exec_ext in '' $ac_executable_extensions; do
4834   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4835     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4836        ac_prog_rejected=yes
4837        continue
4838      fi
4839     ac_cv_prog_CC="cc"
4840     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4841     break 2
4842   fi
4843 done
4844   done
4845 IFS=$as_save_IFS
4846
4847 if test $ac_prog_rejected = yes; then
4848   # We found a bogon in the path, so make sure we never use it.
4849   set dummy $ac_cv_prog_CC
4850   shift
4851   if test $# != 0; then
4852     # We chose a different compiler from the bogus one.
4853     # However, it has the same basename, so the bogon will be chosen
4854     # first if we set CC to just the basename; use the full file name.
4855     shift
4856     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4857   fi
4858 fi
4859 fi
4860 fi
4861 CC=$ac_cv_prog_CC
4862 if test -n "$CC"; then
4863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4864 $as_echo "$CC" >&6; }
4865 else
4866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4867 $as_echo "no" >&6; }
4868 fi
4869
4870
4871 fi
4872 if test -z "$CC"; then
4873   if test -n "$ac_tool_prefix"; then
4874   for ac_prog in cl.exe
4875   do
4876     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4877 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4879 $as_echo_n "checking for $ac_word... " >&6; }
4880 if ${ac_cv_prog_CC+:} false; then :
4881   $as_echo_n "(cached) " >&6
4882 else
4883   if test -n "$CC"; then
4884   ac_cv_prog_CC="$CC" # Let the user override the test.
4885 else
4886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4887 for as_dir in $PATH
4888 do
4889   IFS=$as_save_IFS
4890   test -z "$as_dir" && as_dir=.
4891     for ac_exec_ext in '' $ac_executable_extensions; do
4892   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4893     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4894     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4895     break 2
4896   fi
4897 done
4898   done
4899 IFS=$as_save_IFS
4900
4901 fi
4902 fi
4903 CC=$ac_cv_prog_CC
4904 if test -n "$CC"; then
4905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4906 $as_echo "$CC" >&6; }
4907 else
4908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4909 $as_echo "no" >&6; }
4910 fi
4911
4912
4913     test -n "$CC" && break
4914   done
4915 fi
4916 if test -z "$CC"; then
4917   ac_ct_CC=$CC
4918   for ac_prog in cl.exe
4919 do
4920   # Extract the first word of "$ac_prog", so it can be a program name with args.
4921 set dummy $ac_prog; ac_word=$2
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4923 $as_echo_n "checking for $ac_word... " >&6; }
4924 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4925   $as_echo_n "(cached) " >&6
4926 else
4927   if test -n "$ac_ct_CC"; then
4928   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4929 else
4930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4931 for as_dir in $PATH
4932 do
4933   IFS=$as_save_IFS
4934   test -z "$as_dir" && as_dir=.
4935     for ac_exec_ext in '' $ac_executable_extensions; do
4936   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4937     ac_cv_prog_ac_ct_CC="$ac_prog"
4938     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4939     break 2
4940   fi
4941 done
4942   done
4943 IFS=$as_save_IFS
4944
4945 fi
4946 fi
4947 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4948 if test -n "$ac_ct_CC"; then
4949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4950 $as_echo "$ac_ct_CC" >&6; }
4951 else
4952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4953 $as_echo "no" >&6; }
4954 fi
4955
4956
4957   test -n "$ac_ct_CC" && break
4958 done
4959
4960   if test "x$ac_ct_CC" = x; then
4961     CC=""
4962   else
4963     case $cross_compiling:$ac_tool_warned in
4964 yes:)
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4966 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4967 ac_tool_warned=yes ;;
4968 esac
4969     CC=$ac_ct_CC
4970   fi
4971 fi
4972
4973 fi
4974
4975
4976 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4977 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4978 as_fn_error $? "no acceptable C compiler found in \$PATH
4979 See \`config.log' for more details" "$LINENO" 5; }
4980
4981 # Provide some information about the compiler.
4982 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4983 set X $ac_compile
4984 ac_compiler=$2
4985 for ac_option in --version -v -V -qversion; do
4986   { { ac_try="$ac_compiler $ac_option >&5"
4987 case "(($ac_try" in
4988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4989   *) ac_try_echo=$ac_try;;
4990 esac
4991 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4992 $as_echo "$ac_try_echo"; } >&5
4993   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4994   ac_status=$?
4995   if test -s conftest.err; then
4996     sed '10a\
4997 ... rest of stderr output deleted ...
4998          10q' conftest.err >conftest.er1
4999     cat conftest.er1 >&5
5000   fi
5001   rm -f conftest.er1 conftest.err
5002   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5003   test $ac_status = 0; }
5004 done
5005
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5007 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5008 if ${ac_cv_c_compiler_gnu+:} false; then :
5009   $as_echo_n "(cached) " >&6
5010 else
5011   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5012 /* end confdefs.h.  */
5013
5014 int
5015 main ()
5016 {
5017 #ifndef __GNUC__
5018        choke me
5019 #endif
5020
5021   ;
5022   return 0;
5023 }
5024 _ACEOF
5025 if ac_fn_c_try_compile "$LINENO"; then :
5026   ac_compiler_gnu=yes
5027 else
5028   ac_compiler_gnu=no
5029 fi
5030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5031 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5032
5033 fi
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5035 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5036 if test $ac_compiler_gnu = yes; then
5037   GCC=yes
5038 else
5039   GCC=
5040 fi
5041 ac_test_CFLAGS=${CFLAGS+set}
5042 ac_save_CFLAGS=$CFLAGS
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5044 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5045 if ${ac_cv_prog_cc_g+:} false; then :
5046   $as_echo_n "(cached) " >&6
5047 else
5048   ac_save_c_werror_flag=$ac_c_werror_flag
5049    ac_c_werror_flag=yes
5050    ac_cv_prog_cc_g=no
5051    CFLAGS="-g"
5052    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5053 /* end confdefs.h.  */
5054
5055 int
5056 main ()
5057 {
5058
5059   ;
5060   return 0;
5061 }
5062 _ACEOF
5063 if ac_fn_c_try_compile "$LINENO"; then :
5064   ac_cv_prog_cc_g=yes
5065 else
5066   CFLAGS=""
5067       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5068 /* end confdefs.h.  */
5069
5070 int
5071 main ()
5072 {
5073
5074   ;
5075   return 0;
5076 }
5077 _ACEOF
5078 if ac_fn_c_try_compile "$LINENO"; then :
5079
5080 else
5081   ac_c_werror_flag=$ac_save_c_werror_flag
5082          CFLAGS="-g"
5083          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5084 /* end confdefs.h.  */
5085
5086 int
5087 main ()
5088 {
5089
5090   ;
5091   return 0;
5092 }
5093 _ACEOF
5094 if ac_fn_c_try_compile "$LINENO"; then :
5095   ac_cv_prog_cc_g=yes
5096 fi
5097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5098 fi
5099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5100 fi
5101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5102    ac_c_werror_flag=$ac_save_c_werror_flag
5103 fi
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5105 $as_echo "$ac_cv_prog_cc_g" >&6; }
5106 if test "$ac_test_CFLAGS" = set; then
5107   CFLAGS=$ac_save_CFLAGS
5108 elif test $ac_cv_prog_cc_g = yes; then
5109   if test "$GCC" = yes; then
5110     CFLAGS="-g -O2"
5111   else
5112     CFLAGS="-g"
5113   fi
5114 else
5115   if test "$GCC" = yes; then
5116     CFLAGS="-O2"
5117   else
5118     CFLAGS=
5119   fi
5120 fi
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5122 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5123 if ${ac_cv_prog_cc_c89+:} false; then :
5124   $as_echo_n "(cached) " >&6
5125 else
5126   ac_cv_prog_cc_c89=no
5127 ac_save_CC=$CC
5128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5129 /* end confdefs.h.  */
5130 #include <stdarg.h>
5131 #include <stdio.h>
5132 struct stat;
5133 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5134 struct buf { int x; };
5135 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5136 static char *e (p, i)
5137      char **p;
5138      int i;
5139 {
5140   return p[i];
5141 }
5142 static char *f (char * (*g) (char **, int), char **p, ...)
5143 {
5144   char *s;
5145   va_list v;
5146   va_start (v,p);
5147   s = g (p, va_arg (v,int));
5148   va_end (v);
5149   return s;
5150 }
5151
5152 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5153    function prototypes and stuff, but not '\xHH' hex character constants.
5154    These don't provoke an error unfortunately, instead are silently treated
5155    as 'x'.  The following induces an error, until -std is added to get
5156    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5157    array size at least.  It's necessary to write '\x00'==0 to get something
5158    that's true only with -std.  */
5159 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5160
5161 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5162    inside strings and character constants.  */
5163 #define FOO(x) 'x'
5164 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5165
5166 int test (int i, double x);
5167 struct s1 {int (*f) (int a);};
5168 struct s2 {int (*f) (double a);};
5169 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5170 int argc;
5171 char **argv;
5172 int
5173 main ()
5174 {
5175 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5176   ;
5177   return 0;
5178 }
5179 _ACEOF
5180 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5181         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5182 do
5183   CC="$ac_save_CC $ac_arg"
5184   if ac_fn_c_try_compile "$LINENO"; then :
5185   ac_cv_prog_cc_c89=$ac_arg
5186 fi
5187 rm -f core conftest.err conftest.$ac_objext
5188   test "x$ac_cv_prog_cc_c89" != "xno" && break
5189 done
5190 rm -f conftest.$ac_ext
5191 CC=$ac_save_CC
5192
5193 fi
5194 # AC_CACHE_VAL
5195 case "x$ac_cv_prog_cc_c89" in
5196   x)
5197     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5198 $as_echo "none needed" >&6; } ;;
5199   xno)
5200     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5201 $as_echo "unsupported" >&6; } ;;
5202   *)
5203     CC="$CC $ac_cv_prog_cc_c89"
5204     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5205 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5206 esac
5207 if test "x$ac_cv_prog_cc_c89" != xno; then :
5208
5209 fi
5210
5211 ac_ext=c
5212 ac_cpp='$CPP $CPPFLAGS'
5213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5216
5217 depcc="$CC"   am_compiler_list=
5218
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5220 $as_echo_n "checking dependency style of $depcc... " >&6; }
5221 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5222   $as_echo_n "(cached) " >&6
5223 else
5224   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5225   # We make a subdir and do the tests there.  Otherwise we can end up
5226   # making bogus files that we don't know about and never remove.  For
5227   # instance it was reported that on HP-UX the gcc test will end up
5228   # making a dummy file named `D' -- because `-MD' means `put the output
5229   # in D'.
5230   rm -rf conftest.dir
5231   mkdir conftest.dir
5232   # Copy depcomp to subdir because otherwise we won't find it if we're
5233   # using a relative directory.
5234   cp "$am_depcomp" conftest.dir
5235   cd conftest.dir
5236   # We will build objects and dependencies in a subdirectory because
5237   # it helps to detect inapplicable dependency modes.  For instance
5238   # both Tru64's cc and ICC support -MD to output dependencies as a
5239   # side effect of compilation, but ICC will put the dependencies in
5240   # the current directory while Tru64 will put them in the object
5241   # directory.
5242   mkdir sub
5243
5244   am_cv_CC_dependencies_compiler_type=none
5245   if test "$am_compiler_list" = ""; then
5246      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5247   fi
5248   am__universal=false
5249   case " $depcc " in #(
5250      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5251      esac
5252
5253   for depmode in $am_compiler_list; do
5254     # Setup a source with many dependencies, because some compilers
5255     # like to wrap large dependency lists on column 80 (with \), and
5256     # we should not choose a depcomp mode which is confused by this.
5257     #
5258     # We need to recreate these files for each test, as the compiler may
5259     # overwrite some of them when testing with obscure command lines.
5260     # This happens at least with the AIX C compiler.
5261     : > sub/conftest.c
5262     for i in 1 2 3 4 5 6; do
5263       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5264       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5265       # Solaris 8's {/usr,}/bin/sh.
5266       touch sub/conftst$i.h
5267     done
5268     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5269
5270     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5271     # mode.  It turns out that the SunPro C++ compiler does not properly
5272     # handle `-M -o', and we need to detect this.  Also, some Intel
5273     # versions had trouble with output in subdirs
5274     am__obj=sub/conftest.${OBJEXT-o}
5275     am__minus_obj="-o $am__obj"
5276     case $depmode in
5277     gcc)
5278       # This depmode causes a compiler race in universal mode.
5279       test "$am__universal" = false || continue
5280       ;;
5281     nosideeffect)
5282       # after this tag, mechanisms are not by side-effect, so they'll
5283       # only be used when explicitly requested
5284       if test "x$enable_dependency_tracking" = xyes; then
5285         continue
5286       else
5287         break
5288       fi
5289       ;;
5290     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5291       # This compiler won't grok `-c -o', but also, the minuso test has
5292       # not run yet.  These depmodes are late enough in the game, and
5293       # so weak that their functioning should not be impacted.
5294       am__obj=conftest.${OBJEXT-o}
5295       am__minus_obj=
5296       ;;
5297     none) break ;;
5298     esac
5299     if depmode=$depmode \
5300        source=sub/conftest.c object=$am__obj \
5301        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5302        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5303          >/dev/null 2>conftest.err &&
5304        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5305        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5306        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5307        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5308       # icc doesn't choke on unknown options, it will just issue warnings
5309       # or remarks (even with -Werror).  So we grep stderr for any message
5310       # that says an option was ignored or not supported.
5311       # When given -MP, icc 7.0 and 7.1 complain thusly:
5312       #   icc: Command line warning: ignoring option '-M'; no argument required
5313       # The diagnosis changed in icc 8.0:
5314       #   icc: Command line remark: option '-MP' not supported
5315       if (grep 'ignoring option' conftest.err ||
5316           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5317         am_cv_CC_dependencies_compiler_type=$depmode
5318         break
5319       fi
5320     fi
5321   done
5322
5323   cd ..
5324   rm -rf conftest.dir
5325 else
5326   am_cv_CC_dependencies_compiler_type=none
5327 fi
5328
5329 fi
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5331 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5332 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5333
5334  if
5335   test "x$enable_dependency_tracking" != xno \
5336   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5337   am__fastdepCC_TRUE=
5338   am__fastdepCC_FALSE='#'
5339 else
5340   am__fastdepCC_TRUE='#'
5341   am__fastdepCC_FALSE=
5342 fi
5343
5344
5345 if test "x$CC" != xcc; then
5346   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5347 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5348 else
5349   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5350 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5351 fi
5352 set dummy $CC; ac_cc=`$as_echo "$2" |
5353                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5354 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
5355   $as_echo_n "(cached) " >&6
5356 else
5357   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5358 /* end confdefs.h.  */
5359
5360 int
5361 main ()
5362 {
5363
5364   ;
5365   return 0;
5366 }
5367 _ACEOF
5368 # Make sure it works both with $CC and with simple cc.
5369 # We do the test twice because some compilers refuse to overwrite an
5370 # existing .o file with -o, though they will create one.
5371 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5372 rm -f conftest2.*
5373 if { { case "(($ac_try" in
5374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5375   *) ac_try_echo=$ac_try;;
5376 esac
5377 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5378 $as_echo "$ac_try_echo"; } >&5
5379   (eval "$ac_try") 2>&5
5380   ac_status=$?
5381   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5382   test $ac_status = 0; } &&
5383    test -f conftest2.$ac_objext && { { case "(($ac_try" in
5384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5385   *) ac_try_echo=$ac_try;;
5386 esac
5387 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5388 $as_echo "$ac_try_echo"; } >&5
5389   (eval "$ac_try") 2>&5
5390   ac_status=$?
5391   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5392   test $ac_status = 0; };
5393 then
5394   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5395   if test "x$CC" != xcc; then
5396     # Test first that cc exists at all.
5397     if { ac_try='cc -c conftest.$ac_ext >&5'
5398   { { case "(($ac_try" in
5399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5400   *) ac_try_echo=$ac_try;;
5401 esac
5402 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5403 $as_echo "$ac_try_echo"; } >&5
5404   (eval "$ac_try") 2>&5
5405   ac_status=$?
5406   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5407   test $ac_status = 0; }; }; then
5408       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5409       rm -f conftest2.*
5410       if { { case "(($ac_try" in
5411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5412   *) ac_try_echo=$ac_try;;
5413 esac
5414 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5415 $as_echo "$ac_try_echo"; } >&5
5416   (eval "$ac_try") 2>&5
5417   ac_status=$?
5418   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5419   test $ac_status = 0; } &&
5420          test -f conftest2.$ac_objext && { { case "(($ac_try" in
5421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5422   *) ac_try_echo=$ac_try;;
5423 esac
5424 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5425 $as_echo "$ac_try_echo"; } >&5
5426   (eval "$ac_try") 2>&5
5427   ac_status=$?
5428   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5429   test $ac_status = 0; };
5430       then
5431         # cc works too.
5432         :
5433       else
5434         # cc exists but doesn't like -o.
5435         eval ac_cv_prog_cc_${ac_cc}_c_o=no
5436       fi
5437     fi
5438   fi
5439 else
5440   eval ac_cv_prog_cc_${ac_cc}_c_o=no
5441 fi
5442 rm -f core conftest*
5443
5444 fi
5445 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5447 $as_echo "yes" >&6; }
5448 else
5449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5450 $as_echo "no" >&6; }
5451
5452 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5453
5454 fi
5455
5456 # FIXME: we rely on the cache variable name because
5457 # there is no other way.
5458 set dummy $CC
5459 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5460 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5461 if test "$am_t" != yes; then
5462    # Losing compiler, so override with the script.
5463    # FIXME: It is wrong to rewrite CC.
5464    # But if we don't then we get into trouble of one sort or another.
5465    # A longer-term fix would be to have automake use am__CC in this case,
5466    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5467    CC="$am_aux_dir/compile $CC"
5468 fi
5469
5470
5471
5472         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -fPIE" >&5
5473 $as_echo_n "checking whether ${CC-cc} accepts -fPIE... " >&6; }
5474 if ${ac_cv_prog_cc_pie+:} false; then :
5475   $as_echo_n "(cached) " >&6
5476 else
5477
5478                 echo 'void f(){}' > conftest.c
5479                 if test -z "`${CC-cc} -fPIE -pie -c conftest.c 2>&1`"; then
5480                         ac_cv_prog_cc_pie=yes
5481                 else
5482                         ac_cv_prog_cc_pie=no
5483                 fi
5484                 rm -rf conftest*
5485
5486 fi
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_pie" >&5
5488 $as_echo "$ac_cv_prog_cc_pie" >&6; }
5489
5490
5491
5492
5493
5494
5495
5496 # Check whether --enable-static was given.
5497 if test "${enable_static+set}" = set; then :
5498   enableval=$enable_static; p=${PACKAGE-default}
5499     case $enableval in
5500     yes) enable_static=yes ;;
5501     no) enable_static=no ;;
5502     *)
5503      enable_static=no
5504       # Look at the argument we got.  We use all the common list separators.
5505       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5506       for pkg in $enableval; do
5507         IFS="$lt_save_ifs"
5508         if test "X$pkg" = "X$p"; then
5509           enable_static=yes
5510         fi
5511       done
5512       IFS="$lt_save_ifs"
5513       ;;
5514     esac
5515 else
5516   enable_static=no
5517 fi
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527 case `pwd` in
5528   *\ * | *\     *)
5529     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5530 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5531 esac
5532
5533
5534
5535 macro_version='2.4.2'
5536 macro_revision='1.3337'
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550 ltmain="$ac_aux_dir/ltmain.sh"
5551
5552 # Make sure we can run config.sub.
5553 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5554   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5555
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5557 $as_echo_n "checking build system type... " >&6; }
5558 if ${ac_cv_build+:} false; then :
5559   $as_echo_n "(cached) " >&6
5560 else
5561   ac_build_alias=$build_alias
5562 test "x$ac_build_alias" = x &&
5563   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5564 test "x$ac_build_alias" = x &&
5565   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5566 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5567   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5568
5569 fi
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5571 $as_echo "$ac_cv_build" >&6; }
5572 case $ac_cv_build in
5573 *-*-*) ;;
5574 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5575 esac
5576 build=$ac_cv_build
5577 ac_save_IFS=$IFS; IFS='-'
5578 set x $ac_cv_build
5579 shift
5580 build_cpu=$1
5581 build_vendor=$2
5582 shift; shift
5583 # Remember, the first character of IFS is used to create $*,
5584 # except with old shells:
5585 build_os=$*
5586 IFS=$ac_save_IFS
5587 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5588
5589
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5591 $as_echo_n "checking host system type... " >&6; }
5592 if ${ac_cv_host+:} false; then :
5593   $as_echo_n "(cached) " >&6
5594 else
5595   if test "x$host_alias" = x; then
5596   ac_cv_host=$ac_cv_build
5597 else
5598   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5599     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5600 fi
5601
5602 fi
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5604 $as_echo "$ac_cv_host" >&6; }
5605 case $ac_cv_host in
5606 *-*-*) ;;
5607 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5608 esac
5609 host=$ac_cv_host
5610 ac_save_IFS=$IFS; IFS='-'
5611 set x $ac_cv_host
5612 shift
5613 host_cpu=$1
5614 host_vendor=$2
5615 shift; shift
5616 # Remember, the first character of IFS is used to create $*,
5617 # except with old shells:
5618 host_os=$*
5619 IFS=$ac_save_IFS
5620 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5621
5622
5623 # Backslashify metacharacters that are still active within
5624 # double-quoted strings.
5625 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5626
5627 # Same as above, but do not quote variable references.
5628 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5629
5630 # Sed substitution to delay expansion of an escaped shell variable in a
5631 # double_quote_subst'ed string.
5632 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5633
5634 # Sed substitution to delay expansion of an escaped single quote.
5635 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5636
5637 # Sed substitution to avoid accidental globbing in evaled expressions
5638 no_glob_subst='s/\*/\\\*/g'
5639
5640 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5641 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5642 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5643
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5645 $as_echo_n "checking how to print strings... " >&6; }
5646 # Test print first, because it will be a builtin if present.
5647 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5648    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5649   ECHO='print -r --'
5650 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5651   ECHO='printf %s\n'
5652 else
5653   # Use this function as a fallback that always works.
5654   func_fallback_echo ()
5655   {
5656     eval 'cat <<_LTECHO_EOF
5657 $1
5658 _LTECHO_EOF'
5659   }
5660   ECHO='func_fallback_echo'
5661 fi
5662
5663 # func_echo_all arg...
5664 # Invoke $ECHO with all args, space-separated.
5665 func_echo_all ()
5666 {
5667     $ECHO ""
5668 }
5669
5670 case "$ECHO" in
5671   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5672 $as_echo "printf" >&6; } ;;
5673   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5674 $as_echo "print -r" >&6; } ;;
5675   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5676 $as_echo "cat" >&6; } ;;
5677 esac
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5693 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5694 if ${ac_cv_path_SED+:} false; then :
5695   $as_echo_n "(cached) " >&6
5696 else
5697             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5698      for ac_i in 1 2 3 4 5 6 7; do
5699        ac_script="$ac_script$as_nl$ac_script"
5700      done
5701      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5702      { ac_script=; unset ac_script;}
5703      if test -z "$SED"; then
5704   ac_path_SED_found=false
5705   # Loop through the user's path and test for each of PROGNAME-LIST
5706   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5707 for as_dir in $PATH
5708 do
5709   IFS=$as_save_IFS
5710   test -z "$as_dir" && as_dir=.
5711     for ac_prog in sed gsed; do
5712     for ac_exec_ext in '' $ac_executable_extensions; do
5713       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5714       as_fn_executable_p "$ac_path_SED" || continue
5715 # Check for GNU ac_path_SED and select it if it is found.
5716   # Check for GNU $ac_path_SED
5717 case `"$ac_path_SED" --version 2>&1` in
5718 *GNU*)
5719   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5720 *)
5721   ac_count=0
5722   $as_echo_n 0123456789 >"conftest.in"
5723   while :
5724   do
5725     cat "conftest.in" "conftest.in" >"conftest.tmp"
5726     mv "conftest.tmp" "conftest.in"
5727     cp "conftest.in" "conftest.nl"
5728     $as_echo '' >> "conftest.nl"
5729     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5730     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5731     as_fn_arith $ac_count + 1 && ac_count=$as_val
5732     if test $ac_count -gt ${ac_path_SED_max-0}; then
5733       # Best one so far, save it but keep looking for a better one
5734       ac_cv_path_SED="$ac_path_SED"
5735       ac_path_SED_max=$ac_count
5736     fi
5737     # 10*(2^10) chars as input seems more than enough
5738     test $ac_count -gt 10 && break
5739   done
5740   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5741 esac
5742
5743       $ac_path_SED_found && break 3
5744     done
5745   done
5746   done
5747 IFS=$as_save_IFS
5748   if test -z "$ac_cv_path_SED"; then
5749     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5750   fi
5751 else
5752   ac_cv_path_SED=$SED
5753 fi
5754
5755 fi
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5757 $as_echo "$ac_cv_path_SED" >&6; }
5758  SED="$ac_cv_path_SED"
5759   rm -f conftest.sed
5760
5761 test -z "$SED" && SED=sed
5762 Xsed="$SED -e 1s/^X//"
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5775 $as_echo_n "checking for fgrep... " >&6; }
5776 if ${ac_cv_path_FGREP+:} false; then :
5777   $as_echo_n "(cached) " >&6
5778 else
5779   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5780    then ac_cv_path_FGREP="$GREP -F"
5781    else
5782      if test -z "$FGREP"; then
5783   ac_path_FGREP_found=false
5784   # Loop through the user's path and test for each of PROGNAME-LIST
5785   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5786 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5787 do
5788   IFS=$as_save_IFS
5789   test -z "$as_dir" && as_dir=.
5790     for ac_prog in fgrep; do
5791     for ac_exec_ext in '' $ac_executable_extensions; do
5792       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5793       as_fn_executable_p "$ac_path_FGREP" || continue
5794 # Check for GNU ac_path_FGREP and select it if it is found.
5795   # Check for GNU $ac_path_FGREP
5796 case `"$ac_path_FGREP" --version 2>&1` in
5797 *GNU*)
5798   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5799 *)
5800   ac_count=0
5801   $as_echo_n 0123456789 >"conftest.in"
5802   while :
5803   do
5804     cat "conftest.in" "conftest.in" >"conftest.tmp"
5805     mv "conftest.tmp" "conftest.in"
5806     cp "conftest.in" "conftest.nl"
5807     $as_echo 'FGREP' >> "conftest.nl"
5808     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5809     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5810     as_fn_arith $ac_count + 1 && ac_count=$as_val
5811     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5812       # Best one so far, save it but keep looking for a better one
5813       ac_cv_path_FGREP="$ac_path_FGREP"
5814       ac_path_FGREP_max=$ac_count
5815     fi
5816     # 10*(2^10) chars as input seems more than enough
5817     test $ac_count -gt 10 && break
5818   done
5819   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5820 esac
5821
5822       $ac_path_FGREP_found && break 3
5823     done
5824   done
5825   done
5826 IFS=$as_save_IFS
5827   if test -z "$ac_cv_path_FGREP"; then
5828     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5829   fi
5830 else
5831   ac_cv_path_FGREP=$FGREP
5832 fi
5833
5834    fi
5835 fi
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5837 $as_echo "$ac_cv_path_FGREP" >&6; }
5838  FGREP="$ac_cv_path_FGREP"
5839
5840
5841 test -z "$GREP" && GREP=grep
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861 # Check whether --with-gnu-ld was given.
5862 if test "${with_gnu_ld+set}" = set; then :
5863   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5864 else
5865   with_gnu_ld=no
5866 fi
5867
5868 ac_prog=ld
5869 if test "$GCC" = yes; then
5870   # Check if gcc -print-prog-name=ld gives a path.
5871   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5872 $as_echo_n "checking for ld used by $CC... " >&6; }
5873   case $host in
5874   *-*-mingw*)
5875     # gcc leaves a trailing carriage return which upsets mingw
5876     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5877   *)
5878     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5879   esac
5880   case $ac_prog in
5881     # Accept absolute paths.
5882     [\\/]* | ?:[\\/]*)
5883       re_direlt='/[^/][^/]*/\.\./'
5884       # Canonicalize the pathname of ld
5885       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5886       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5887         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5888       done
5889       test -z "$LD" && LD="$ac_prog"
5890       ;;
5891   "")
5892     # If it fails, then pretend we aren't using GCC.
5893     ac_prog=ld
5894     ;;
5895   *)
5896     # If it is relative, then search for the first ld in PATH.
5897     with_gnu_ld=unknown
5898     ;;
5899   esac
5900 elif test "$with_gnu_ld" = yes; then
5901   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5902 $as_echo_n "checking for GNU ld... " >&6; }
5903 else
5904   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5905 $as_echo_n "checking for non-GNU ld... " >&6; }
5906 fi
5907 if ${lt_cv_path_LD+:} false; then :
5908   $as_echo_n "(cached) " >&6
5909 else
5910   if test -z "$LD"; then
5911   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5912   for ac_dir in $PATH; do
5913     IFS="$lt_save_ifs"
5914     test -z "$ac_dir" && ac_dir=.
5915     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5916       lt_cv_path_LD="$ac_dir/$ac_prog"
5917       # Check to see if the program is GNU ld.  I'd rather use --version,
5918       # but apparently some variants of GNU ld only accept -v.
5919       # Break only if it was the GNU/non-GNU ld that we prefer.
5920       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5921       *GNU* | *'with BFD'*)
5922         test "$with_gnu_ld" != no && break
5923         ;;
5924       *)
5925         test "$with_gnu_ld" != yes && break
5926         ;;
5927       esac
5928     fi
5929   done
5930   IFS="$lt_save_ifs"
5931 else
5932   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5933 fi
5934 fi
5935
5936 LD="$lt_cv_path_LD"
5937 if test -n "$LD"; then
5938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5939 $as_echo "$LD" >&6; }
5940 else
5941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5942 $as_echo "no" >&6; }
5943 fi
5944 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5946 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5947 if ${lt_cv_prog_gnu_ld+:} false; then :
5948   $as_echo_n "(cached) " >&6
5949 else
5950   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5951 case `$LD -v 2>&1 </dev/null` in
5952 *GNU* | *'with BFD'*)
5953   lt_cv_prog_gnu_ld=yes
5954   ;;
5955 *)
5956   lt_cv_prog_gnu_ld=no
5957   ;;
5958 esac
5959 fi
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5961 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5962 with_gnu_ld=$lt_cv_prog_gnu_ld
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5973 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5974 if ${lt_cv_path_NM+:} false; then :
5975   $as_echo_n "(cached) " >&6
5976 else
5977   if test -n "$NM"; then
5978   # Let the user override the test.
5979   lt_cv_path_NM="$NM"
5980 else
5981   lt_nm_to_check="${ac_tool_prefix}nm"
5982   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5983     lt_nm_to_check="$lt_nm_to_check nm"
5984   fi
5985   for lt_tmp_nm in $lt_nm_to_check; do
5986     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5987     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5988       IFS="$lt_save_ifs"
5989       test -z "$ac_dir" && ac_dir=.
5990       tmp_nm="$ac_dir/$lt_tmp_nm"
5991       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5992         # Check to see if the nm accepts a BSD-compat flag.
5993         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5994         #   nm: unknown option "B" ignored
5995         # Tru64's nm complains that /dev/null is an invalid object file
5996         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5997         */dev/null* | *'Invalid file or object type'*)
5998           lt_cv_path_NM="$tmp_nm -B"
5999           break
6000           ;;
6001         *)
6002           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6003           */dev/null*)
6004             lt_cv_path_NM="$tmp_nm -p"
6005             break
6006             ;;
6007           *)
6008             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6009             continue # so that we can try to find one that supports BSD flags
6010             ;;
6011           esac
6012           ;;
6013         esac
6014       fi
6015     done
6016     IFS="$lt_save_ifs"
6017   done
6018   : ${lt_cv_path_NM=no}
6019 fi
6020 fi
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6022 $as_echo "$lt_cv_path_NM" >&6; }
6023 if test "$lt_cv_path_NM" != "no"; then
6024   NM="$lt_cv_path_NM"
6025 else
6026   # Didn't find any BSD compatible name lister, look for dumpbin.
6027   if test -n "$DUMPBIN"; then :
6028     # Let the user override the test.
6029   else
6030     if test -n "$ac_tool_prefix"; then
6031   for ac_prog in dumpbin "link -dump"
6032   do
6033     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6034 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6036 $as_echo_n "checking for $ac_word... " >&6; }
6037 if ${ac_cv_prog_DUMPBIN+:} false; then :
6038   $as_echo_n "(cached) " >&6
6039 else
6040   if test -n "$DUMPBIN"; then
6041   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6042 else
6043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6044 for as_dir in $PATH
6045 do
6046   IFS=$as_save_IFS
6047   test -z "$as_dir" && as_dir=.
6048     for ac_exec_ext in '' $ac_executable_extensions; do
6049   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6050     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6051     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6052     break 2
6053   fi
6054 done
6055   done
6056 IFS=$as_save_IFS
6057
6058 fi
6059 fi
6060 DUMPBIN=$ac_cv_prog_DUMPBIN
6061 if test -n "$DUMPBIN"; then
6062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6063 $as_echo "$DUMPBIN" >&6; }
6064 else
6065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6066 $as_echo "no" >&6; }
6067 fi
6068
6069
6070     test -n "$DUMPBIN" && break
6071   done
6072 fi
6073 if test -z "$DUMPBIN"; then
6074   ac_ct_DUMPBIN=$DUMPBIN
6075   for ac_prog in dumpbin "link -dump"
6076 do
6077   # Extract the first word of "$ac_prog", so it can be a program name with args.
6078 set dummy $ac_prog; ac_word=$2
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6080 $as_echo_n "checking for $ac_word... " >&6; }
6081 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6082   $as_echo_n "(cached) " >&6
6083 else
6084   if test -n "$ac_ct_DUMPBIN"; then
6085   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6086 else
6087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6088 for as_dir in $PATH
6089 do
6090   IFS=$as_save_IFS
6091   test -z "$as_dir" && as_dir=.
6092     for ac_exec_ext in '' $ac_executable_extensions; do
6093   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6094     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6095     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6096     break 2
6097   fi
6098 done
6099   done
6100 IFS=$as_save_IFS
6101
6102 fi
6103 fi
6104 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6105 if test -n "$ac_ct_DUMPBIN"; then
6106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6107 $as_echo "$ac_ct_DUMPBIN" >&6; }
6108 else
6109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6110 $as_echo "no" >&6; }
6111 fi
6112
6113
6114   test -n "$ac_ct_DUMPBIN" && break
6115 done
6116
6117   if test "x$ac_ct_DUMPBIN" = x; then
6118     DUMPBIN=":"
6119   else
6120     case $cross_compiling:$ac_tool_warned in
6121 yes:)
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6123 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6124 ac_tool_warned=yes ;;
6125 esac
6126     DUMPBIN=$ac_ct_DUMPBIN
6127   fi
6128 fi
6129
6130     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6131     *COFF*)
6132       DUMPBIN="$DUMPBIN -symbols"
6133       ;;
6134     *)
6135       DUMPBIN=:
6136       ;;
6137     esac
6138   fi
6139
6140   if test "$DUMPBIN" != ":"; then
6141     NM="$DUMPBIN"
6142   fi
6143 fi
6144 test -z "$NM" && NM=nm
6145
6146
6147
6148
6149
6150
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6152 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6153 if ${lt_cv_nm_interface+:} false; then :
6154   $as_echo_n "(cached) " >&6
6155 else
6156   lt_cv_nm_interface="BSD nm"
6157   echo "int some_variable = 0;" > conftest.$ac_ext
6158   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6159   (eval "$ac_compile" 2>conftest.err)
6160   cat conftest.err >&5
6161   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6162   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6163   cat conftest.err >&5
6164   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6165   cat conftest.out >&5
6166   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6167     lt_cv_nm_interface="MS dumpbin"
6168   fi
6169   rm -f conftest*
6170 fi
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6172 $as_echo "$lt_cv_nm_interface" >&6; }
6173
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6175 $as_echo_n "checking whether ln -s works... " >&6; }
6176 LN_S=$as_ln_s
6177 if test "$LN_S" = "ln -s"; then
6178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6179 $as_echo "yes" >&6; }
6180 else
6181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6182 $as_echo "no, using $LN_S" >&6; }
6183 fi
6184
6185 # find the maximum length of command line arguments
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6187 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6188 if ${lt_cv_sys_max_cmd_len+:} false; then :
6189   $as_echo_n "(cached) " >&6
6190 else
6191     i=0
6192   teststring="ABCD"
6193
6194   case $build_os in
6195   msdosdjgpp*)
6196     # On DJGPP, this test can blow up pretty badly due to problems in libc
6197     # (any single argument exceeding 2000 bytes causes a buffer overrun
6198     # during glob expansion).  Even if it were fixed, the result of this
6199     # check would be larger than it should be.
6200     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6201     ;;
6202
6203   gnu*)
6204     # Under GNU Hurd, this test is not required because there is
6205     # no limit to the length of command line arguments.
6206     # Libtool will interpret -1 as no limit whatsoever
6207     lt_cv_sys_max_cmd_len=-1;
6208     ;;
6209
6210   cygwin* | mingw* | cegcc*)
6211     # On Win9x/ME, this test blows up -- it succeeds, but takes
6212     # about 5 minutes as the teststring grows exponentially.
6213     # Worse, since 9x/ME are not pre-emptively multitasking,
6214     # you end up with a "frozen" computer, even though with patience
6215     # the test eventually succeeds (with a max line length of 256k).
6216     # Instead, let's just punt: use the minimum linelength reported by
6217     # all of the supported platforms: 8192 (on NT/2K/XP).
6218     lt_cv_sys_max_cmd_len=8192;
6219     ;;
6220
6221   mint*)
6222     # On MiNT this can take a long time and run out of memory.
6223     lt_cv_sys_max_cmd_len=8192;
6224     ;;
6225
6226   amigaos*)
6227     # On AmigaOS with pdksh, this test takes hours, literally.
6228     # So we just punt and use a minimum line length of 8192.
6229     lt_cv_sys_max_cmd_len=8192;
6230     ;;
6231
6232   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6233     # This has been around since 386BSD, at least.  Likely further.
6234     if test -x /sbin/sysctl; then
6235       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6236     elif test -x /usr/sbin/sysctl; then
6237       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6238     else
6239       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6240     fi
6241     # And add a safety zone
6242     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6243     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6244     ;;
6245
6246   interix*)
6247     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6248     lt_cv_sys_max_cmd_len=196608
6249     ;;
6250
6251   os2*)
6252     # The test takes a long time on OS/2.
6253     lt_cv_sys_max_cmd_len=8192
6254     ;;
6255
6256   osf*)
6257     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6258     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6259     # nice to cause kernel panics so lets avoid the loop below.
6260     # First set a reasonable default.
6261     lt_cv_sys_max_cmd_len=16384
6262     #
6263     if test -x /sbin/sysconfig; then
6264       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6265         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6266       esac
6267     fi
6268     ;;
6269   sco3.2v5*)
6270     lt_cv_sys_max_cmd_len=102400
6271     ;;
6272   sysv5* | sco5v6* | sysv4.2uw2*)
6273     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6274     if test -n "$kargmax"; then
6275       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6276     else
6277       lt_cv_sys_max_cmd_len=32768
6278     fi
6279     ;;
6280   *)
6281     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6282     if test -n "$lt_cv_sys_max_cmd_len"; then
6283       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6284       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6285     else
6286       # Make teststring a little bigger before we do anything with it.
6287       # a 1K string should be a reasonable start.
6288       for i in 1 2 3 4 5 6 7 8 ; do
6289         teststring=$teststring$teststring
6290       done
6291       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6292       # If test is not a shell built-in, we'll probably end up computing a
6293       # maximum length that is only half of the actual maximum length, but
6294       # we can't tell.
6295       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6296                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6297               test $i != 17 # 1/2 MB should be enough
6298       do
6299         i=`expr $i + 1`
6300         teststring=$teststring$teststring
6301       done
6302       # Only check the string length outside the loop.
6303       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6304       teststring=
6305       # Add a significant safety factor because C++ compilers can tack on
6306       # massive amounts of additional arguments before passing them to the
6307       # linker.  It appears as though 1/2 is a usable value.
6308       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6309     fi
6310     ;;
6311   esac
6312
6313 fi
6314
6315 if test -n $lt_cv_sys_max_cmd_len ; then
6316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6317 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6318 else
6319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6320 $as_echo "none" >&6; }
6321 fi
6322 max_cmd_len=$lt_cv_sys_max_cmd_len
6323
6324
6325
6326
6327
6328
6329 : ${CP="cp -f"}
6330 : ${MV="mv -f"}
6331 : ${RM="rm -f"}
6332
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6334 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6335 # Try some XSI features
6336 xsi_shell=no
6337 ( _lt_dummy="a/b/c"
6338   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6339       = c,a/b,b/c, \
6340     && eval 'test $(( 1 + 1 )) -eq 2 \
6341     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6342   && xsi_shell=yes
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6344 $as_echo "$xsi_shell" >&6; }
6345
6346
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6348 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6349 lt_shell_append=no
6350 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6351     >/dev/null 2>&1 \
6352   && lt_shell_append=yes
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6354 $as_echo "$lt_shell_append" >&6; }
6355
6356
6357 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6358   lt_unset=unset
6359 else
6360   lt_unset=false
6361 fi
6362
6363
6364
6365
6366
6367 # test EBCDIC or ASCII
6368 case `echo X|tr X '\101'` in
6369  A) # ASCII based system
6370     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6371   lt_SP2NL='tr \040 \012'
6372   lt_NL2SP='tr \015\012 \040\040'
6373   ;;
6374  *) # EBCDIC based system
6375   lt_SP2NL='tr \100 \n'
6376   lt_NL2SP='tr \r\n \100\100'
6377   ;;
6378 esac
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6389 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6390 if ${lt_cv_to_host_file_cmd+:} false; then :
6391   $as_echo_n "(cached) " >&6
6392 else
6393   case $host in
6394   *-*-mingw* )
6395     case $build in
6396       *-*-mingw* ) # actually msys
6397         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6398         ;;
6399       *-*-cygwin* )
6400         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6401         ;;
6402       * ) # otherwise, assume *nix
6403         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6404         ;;
6405     esac
6406     ;;
6407   *-*-cygwin* )
6408     case $build in
6409       *-*-mingw* ) # actually msys
6410         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6411         ;;
6412       *-*-cygwin* )
6413         lt_cv_to_host_file_cmd=func_convert_file_noop
6414         ;;
6415       * ) # otherwise, assume *nix
6416         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6417         ;;
6418     esac
6419     ;;
6420   * ) # unhandled hosts (and "normal" native builds)
6421     lt_cv_to_host_file_cmd=func_convert_file_noop
6422     ;;
6423 esac
6424
6425 fi
6426
6427 to_host_file_cmd=$lt_cv_to_host_file_cmd
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6429 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6430
6431
6432
6433
6434
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6436 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6437 if ${lt_cv_to_tool_file_cmd+:} false; then :
6438   $as_echo_n "(cached) " >&6
6439 else
6440   #assume ordinary cross tools, or native build.
6441 lt_cv_to_tool_file_cmd=func_convert_file_noop
6442 case $host in
6443   *-*-mingw* )
6444     case $build in
6445       *-*-mingw* ) # actually msys
6446         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6447         ;;
6448     esac
6449     ;;
6450 esac
6451
6452 fi
6453
6454 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6456 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6457
6458
6459
6460
6461
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6463 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6464 if ${lt_cv_ld_reload_flag+:} false; then :
6465   $as_echo_n "(cached) " >&6
6466 else
6467   lt_cv_ld_reload_flag='-r'
6468 fi
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6470 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6471 reload_flag=$lt_cv_ld_reload_flag
6472 case $reload_flag in
6473 "" | " "*) ;;
6474 *) reload_flag=" $reload_flag" ;;
6475 esac
6476 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6477 case $host_os in
6478   cygwin* | mingw* | pw32* | cegcc*)
6479     if test "$GCC" != yes; then
6480       reload_cmds=false
6481     fi
6482     ;;
6483   darwin*)
6484     if test "$GCC" = yes; then
6485       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6486     else
6487       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6488     fi
6489     ;;
6490 esac
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500 if test -n "$ac_tool_prefix"; then
6501   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6502 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6504 $as_echo_n "checking for $ac_word... " >&6; }
6505 if ${ac_cv_prog_OBJDUMP+:} false; then :
6506   $as_echo_n "(cached) " >&6
6507 else
6508   if test -n "$OBJDUMP"; then
6509   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6510 else
6511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6512 for as_dir in $PATH
6513 do
6514   IFS=$as_save_IFS
6515   test -z "$as_dir" && as_dir=.
6516     for ac_exec_ext in '' $ac_executable_extensions; do
6517   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6518     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6519     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6520     break 2
6521   fi
6522 done
6523   done
6524 IFS=$as_save_IFS
6525
6526 fi
6527 fi
6528 OBJDUMP=$ac_cv_prog_OBJDUMP
6529 if test -n "$OBJDUMP"; then
6530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6531 $as_echo "$OBJDUMP" >&6; }
6532 else
6533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6534 $as_echo "no" >&6; }
6535 fi
6536
6537
6538 fi
6539 if test -z "$ac_cv_prog_OBJDUMP"; then
6540   ac_ct_OBJDUMP=$OBJDUMP
6541   # Extract the first word of "objdump", so it can be a program name with args.
6542 set dummy objdump; ac_word=$2
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6544 $as_echo_n "checking for $ac_word... " >&6; }
6545 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6546   $as_echo_n "(cached) " >&6
6547 else
6548   if test -n "$ac_ct_OBJDUMP"; then
6549   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6550 else
6551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6552 for as_dir in $PATH
6553 do
6554   IFS=$as_save_IFS
6555   test -z "$as_dir" && as_dir=.
6556     for ac_exec_ext in '' $ac_executable_extensions; do
6557   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6558     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6559     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6560     break 2
6561   fi
6562 done
6563   done
6564 IFS=$as_save_IFS
6565
6566 fi
6567 fi
6568 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6569 if test -n "$ac_ct_OBJDUMP"; then
6570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6571 $as_echo "$ac_ct_OBJDUMP" >&6; }
6572 else
6573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6574 $as_echo "no" >&6; }
6575 fi
6576
6577   if test "x$ac_ct_OBJDUMP" = x; then
6578     OBJDUMP="false"
6579   else
6580     case $cross_compiling:$ac_tool_warned in
6581 yes:)
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6583 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6584 ac_tool_warned=yes ;;
6585 esac
6586     OBJDUMP=$ac_ct_OBJDUMP
6587   fi
6588 else
6589   OBJDUMP="$ac_cv_prog_OBJDUMP"
6590 fi
6591
6592 test -z "$OBJDUMP" && OBJDUMP=objdump
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6603 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6604 if ${lt_cv_deplibs_check_method+:} false; then :
6605   $as_echo_n "(cached) " >&6
6606 else
6607   lt_cv_file_magic_cmd='$MAGIC_CMD'
6608 lt_cv_file_magic_test_file=
6609 lt_cv_deplibs_check_method='unknown'
6610 # Need to set the preceding variable on all platforms that support
6611 # interlibrary dependencies.
6612 # 'none' -- dependencies not supported.
6613 # `unknown' -- same as none, but documents that we really don't know.
6614 # 'pass_all' -- all dependencies passed with no checks.
6615 # 'test_compile' -- check by making test program.
6616 # 'file_magic [[regex]]' -- check by looking for files in library path
6617 # which responds to the $file_magic_cmd with a given extended regex.
6618 # If you have `file' or equivalent on your system and you're not sure
6619 # whether `pass_all' will *always* work, you probably want this one.
6620
6621 case $host_os in
6622 aix[4-9]*)
6623   lt_cv_deplibs_check_method=pass_all
6624   ;;
6625
6626 beos*)
6627   lt_cv_deplibs_check_method=pass_all
6628   ;;
6629
6630 bsdi[45]*)
6631   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6632   lt_cv_file_magic_cmd='/usr/bin/file -L'
6633   lt_cv_file_magic_test_file=/shlib/libc.so
6634   ;;
6635
6636 cygwin*)
6637   # func_win32_libid is a shell function defined in ltmain.sh
6638   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6639   lt_cv_file_magic_cmd='func_win32_libid'
6640   ;;
6641
6642 mingw* | pw32*)
6643   # Base MSYS/MinGW do not provide the 'file' command needed by
6644   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6645   # unless we find 'file', for example because we are cross-compiling.
6646   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6647   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6648     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6649     lt_cv_file_magic_cmd='func_win32_libid'
6650   else
6651     # Keep this pattern in sync with the one in func_win32_libid.
6652     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6653     lt_cv_file_magic_cmd='$OBJDUMP -f'
6654   fi
6655   ;;
6656
6657 cegcc*)
6658   # use the weaker test based on 'objdump'. See mingw*.
6659   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6660   lt_cv_file_magic_cmd='$OBJDUMP -f'
6661   ;;
6662
6663 darwin* | rhapsody*)
6664   lt_cv_deplibs_check_method=pass_all
6665   ;;
6666
6667 freebsd* | dragonfly*)
6668   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6669     case $host_cpu in
6670     i*86 )
6671       # Not sure whether the presence of OpenBSD here was a mistake.
6672       # Let's accept both of them until this is cleared up.
6673       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6674       lt_cv_file_magic_cmd=/usr/bin/file
6675       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6676       ;;
6677     esac
6678   else
6679     lt_cv_deplibs_check_method=pass_all
6680   fi
6681   ;;
6682
6683 haiku*)
6684   lt_cv_deplibs_check_method=pass_all
6685   ;;
6686
6687 hpux10.20* | hpux11*)
6688   lt_cv_file_magic_cmd=/usr/bin/file
6689   case $host_cpu in
6690   ia64*)
6691     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6692     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6693     ;;
6694   hppa*64*)
6695     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]'
6696     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6697     ;;
6698   *)
6699     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6700     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6701     ;;
6702   esac
6703   ;;
6704
6705 interix[3-9]*)
6706   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6707   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6708   ;;
6709
6710 irix5* | irix6* | nonstopux*)
6711   case $LD in
6712   *-32|*"-32 ") libmagic=32-bit;;
6713   *-n32|*"-n32 ") libmagic=N32;;
6714   *-64|*"-64 ") libmagic=64-bit;;
6715   *) libmagic=never-match;;
6716   esac
6717   lt_cv_deplibs_check_method=pass_all
6718   ;;
6719
6720 # This must be glibc/ELF.
6721 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6722   lt_cv_deplibs_check_method=pass_all
6723   ;;
6724
6725 netbsd* | netbsdelf*-gnu)
6726   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6727     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6728   else
6729     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6730   fi
6731   ;;
6732
6733 newos6*)
6734   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6735   lt_cv_file_magic_cmd=/usr/bin/file
6736   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6737   ;;
6738
6739 *nto* | *qnx*)
6740   lt_cv_deplibs_check_method=pass_all
6741   ;;
6742
6743 openbsd*)
6744   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6745     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6746   else
6747     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6748   fi
6749   ;;
6750
6751 osf3* | osf4* | osf5*)
6752   lt_cv_deplibs_check_method=pass_all
6753   ;;
6754
6755 rdos*)
6756   lt_cv_deplibs_check_method=pass_all
6757   ;;
6758
6759 solaris*)
6760   lt_cv_deplibs_check_method=pass_all
6761   ;;
6762
6763 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6764   lt_cv_deplibs_check_method=pass_all
6765   ;;
6766
6767 sysv4 | sysv4.3*)
6768   case $host_vendor in
6769   motorola)
6770     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]'
6771     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6772     ;;
6773   ncr)
6774     lt_cv_deplibs_check_method=pass_all
6775     ;;
6776   sequent)
6777     lt_cv_file_magic_cmd='/bin/file'
6778     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6779     ;;
6780   sni)
6781     lt_cv_file_magic_cmd='/bin/file'
6782     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6783     lt_cv_file_magic_test_file=/lib/libc.so
6784     ;;
6785   siemens)
6786     lt_cv_deplibs_check_method=pass_all
6787     ;;
6788   pc)
6789     lt_cv_deplibs_check_method=pass_all
6790     ;;
6791   esac
6792   ;;
6793
6794 tpf*)
6795   lt_cv_deplibs_check_method=pass_all
6796   ;;
6797 esac
6798
6799 fi
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6801 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6802
6803 file_magic_glob=
6804 want_nocaseglob=no
6805 if test "$build" = "$host"; then
6806   case $host_os in
6807   mingw* | pw32*)
6808     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6809       want_nocaseglob=yes
6810     else
6811       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6812     fi
6813     ;;
6814   esac
6815 fi
6816
6817 file_magic_cmd=$lt_cv_file_magic_cmd
6818 deplibs_check_method=$lt_cv_deplibs_check_method
6819 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842 if test -n "$ac_tool_prefix"; then
6843   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6844 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6846 $as_echo_n "checking for $ac_word... " >&6; }
6847 if ${ac_cv_prog_DLLTOOL+:} false; then :
6848   $as_echo_n "(cached) " >&6
6849 else
6850   if test -n "$DLLTOOL"; then
6851   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6852 else
6853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6854 for as_dir in $PATH
6855 do
6856   IFS=$as_save_IFS
6857   test -z "$as_dir" && as_dir=.
6858     for ac_exec_ext in '' $ac_executable_extensions; do
6859   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6860     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6861     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6862     break 2
6863   fi
6864 done
6865   done
6866 IFS=$as_save_IFS
6867
6868 fi
6869 fi
6870 DLLTOOL=$ac_cv_prog_DLLTOOL
6871 if test -n "$DLLTOOL"; then
6872   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6873 $as_echo "$DLLTOOL" >&6; }
6874 else
6875   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6876 $as_echo "no" >&6; }
6877 fi
6878
6879
6880 fi
6881 if test -z "$ac_cv_prog_DLLTOOL"; then
6882   ac_ct_DLLTOOL=$DLLTOOL
6883   # Extract the first word of "dlltool", so it can be a program name with args.
6884 set dummy dlltool; ac_word=$2
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6886 $as_echo_n "checking for $ac_word... " >&6; }
6887 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6888   $as_echo_n "(cached) " >&6
6889 else
6890   if test -n "$ac_ct_DLLTOOL"; then
6891   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6892 else
6893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6894 for as_dir in $PATH
6895 do
6896   IFS=$as_save_IFS
6897   test -z "$as_dir" && as_dir=.
6898     for ac_exec_ext in '' $ac_executable_extensions; do
6899   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6900     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6901     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6902     break 2
6903   fi
6904 done
6905   done
6906 IFS=$as_save_IFS
6907
6908 fi
6909 fi
6910 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6911 if test -n "$ac_ct_DLLTOOL"; then
6912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6913 $as_echo "$ac_ct_DLLTOOL" >&6; }
6914 else
6915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6916 $as_echo "no" >&6; }
6917 fi
6918
6919   if test "x$ac_ct_DLLTOOL" = x; then
6920     DLLTOOL="false"
6921   else
6922     case $cross_compiling:$ac_tool_warned in
6923 yes:)
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6925 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6926 ac_tool_warned=yes ;;
6927 esac
6928     DLLTOOL=$ac_ct_DLLTOOL
6929   fi
6930 else
6931   DLLTOOL="$ac_cv_prog_DLLTOOL"
6932 fi
6933
6934 test -z "$DLLTOOL" && DLLTOOL=dlltool
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6946 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6947 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6948   $as_echo_n "(cached) " >&6
6949 else
6950   lt_cv_sharedlib_from_linklib_cmd='unknown'
6951
6952 case $host_os in
6953 cygwin* | mingw* | pw32* | cegcc*)
6954   # two different shell functions defined in ltmain.sh
6955   # decide which to use based on capabilities of $DLLTOOL
6956   case `$DLLTOOL --help 2>&1` in
6957   *--identify-strict*)
6958     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6959     ;;
6960   *)
6961     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6962     ;;
6963   esac
6964   ;;
6965 *)
6966   # fallback: assume linklib IS sharedlib
6967   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6968   ;;
6969 esac
6970
6971 fi
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6973 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6974 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6975 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6976
6977
6978
6979
6980
6981
6982
6983 if test -n "$ac_tool_prefix"; then
6984   for ac_prog in ar
6985   do
6986     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6987 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6989 $as_echo_n "checking for $ac_word... " >&6; }
6990 if ${ac_cv_prog_AR+:} false; then :
6991   $as_echo_n "(cached) " >&6
6992 else
6993   if test -n "$AR"; then
6994   ac_cv_prog_AR="$AR" # Let the user override the test.
6995 else
6996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6997 for as_dir in $PATH
6998 do
6999   IFS=$as_save_IFS
7000   test -z "$as_dir" && as_dir=.
7001     for ac_exec_ext in '' $ac_executable_extensions; do
7002   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7003     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7004     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7005     break 2
7006   fi
7007 done
7008   done
7009 IFS=$as_save_IFS
7010
7011 fi
7012 fi
7013 AR=$ac_cv_prog_AR
7014 if test -n "$AR"; then
7015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7016 $as_echo "$AR" >&6; }
7017 else
7018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7019 $as_echo "no" >&6; }
7020 fi
7021
7022
7023     test -n "$AR" && break
7024   done
7025 fi
7026 if test -z "$AR"; then
7027   ac_ct_AR=$AR
7028   for ac_prog in ar
7029 do
7030   # Extract the first word of "$ac_prog", so it can be a program name with args.
7031 set dummy $ac_prog; ac_word=$2
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7033 $as_echo_n "checking for $ac_word... " >&6; }
7034 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7035   $as_echo_n "(cached) " >&6
7036 else
7037   if test -n "$ac_ct_AR"; then
7038   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7039 else
7040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7041 for as_dir in $PATH
7042 do
7043   IFS=$as_save_IFS
7044   test -z "$as_dir" && as_dir=.
7045     for ac_exec_ext in '' $ac_executable_extensions; do
7046   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7047     ac_cv_prog_ac_ct_AR="$ac_prog"
7048     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7049     break 2
7050   fi
7051 done
7052   done
7053 IFS=$as_save_IFS
7054
7055 fi
7056 fi
7057 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7058 if test -n "$ac_ct_AR"; then
7059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7060 $as_echo "$ac_ct_AR" >&6; }
7061 else
7062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7063 $as_echo "no" >&6; }
7064 fi
7065
7066
7067   test -n "$ac_ct_AR" && break
7068 done
7069
7070   if test "x$ac_ct_AR" = x; then
7071     AR="false"
7072   else
7073     case $cross_compiling:$ac_tool_warned in
7074 yes:)
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7076 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7077 ac_tool_warned=yes ;;
7078 esac
7079     AR=$ac_ct_AR
7080   fi
7081 fi
7082
7083 : ${AR=ar}
7084 : ${AR_FLAGS=cru}
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7097 $as_echo_n "checking for archiver @FILE support... " >&6; }
7098 if ${lt_cv_ar_at_file+:} false; then :
7099   $as_echo_n "(cached) " >&6
7100 else
7101   lt_cv_ar_at_file=no
7102    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7103 /* end confdefs.h.  */
7104
7105 int
7106 main ()
7107 {
7108
7109   ;
7110   return 0;
7111 }
7112 _ACEOF
7113 if ac_fn_c_try_compile "$LINENO"; then :
7114   echo conftest.$ac_objext > conftest.lst
7115       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7116       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7117   (eval $lt_ar_try) 2>&5
7118   ac_status=$?
7119   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7120   test $ac_status = 0; }
7121       if test "$ac_status" -eq 0; then
7122         # Ensure the archiver fails upon bogus file names.
7123         rm -f conftest.$ac_objext libconftest.a
7124         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7125   (eval $lt_ar_try) 2>&5
7126   ac_status=$?
7127   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7128   test $ac_status = 0; }
7129         if test "$ac_status" -ne 0; then
7130           lt_cv_ar_at_file=@
7131         fi
7132       fi
7133       rm -f conftest.* libconftest.a
7134
7135 fi
7136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7137
7138 fi
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7140 $as_echo "$lt_cv_ar_at_file" >&6; }
7141
7142 if test "x$lt_cv_ar_at_file" = xno; then
7143   archiver_list_spec=
7144 else
7145   archiver_list_spec=$lt_cv_ar_at_file
7146 fi
7147
7148
7149
7150
7151
7152
7153
7154 if test -n "$ac_tool_prefix"; then
7155   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7156 set dummy ${ac_tool_prefix}strip; ac_word=$2
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7158 $as_echo_n "checking for $ac_word... " >&6; }
7159 if ${ac_cv_prog_STRIP+:} false; then :
7160   $as_echo_n "(cached) " >&6
7161 else
7162   if test -n "$STRIP"; then
7163   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7164 else
7165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7166 for as_dir in $PATH
7167 do
7168   IFS=$as_save_IFS
7169   test -z "$as_dir" && as_dir=.
7170     for ac_exec_ext in '' $ac_executable_extensions; do
7171   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7172     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7173     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7174     break 2
7175   fi
7176 done
7177   done
7178 IFS=$as_save_IFS
7179
7180 fi
7181 fi
7182 STRIP=$ac_cv_prog_STRIP
7183 if test -n "$STRIP"; then
7184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7185 $as_echo "$STRIP" >&6; }
7186 else
7187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7188 $as_echo "no" >&6; }
7189 fi
7190
7191
7192 fi
7193 if test -z "$ac_cv_prog_STRIP"; then
7194   ac_ct_STRIP=$STRIP
7195   # Extract the first word of "strip", so it can be a program name with args.
7196 set dummy strip; ac_word=$2
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7198 $as_echo_n "checking for $ac_word... " >&6; }
7199 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7200   $as_echo_n "(cached) " >&6
7201 else
7202   if test -n "$ac_ct_STRIP"; then
7203   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7204 else
7205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7206 for as_dir in $PATH
7207 do
7208   IFS=$as_save_IFS
7209   test -z "$as_dir" && as_dir=.
7210     for ac_exec_ext in '' $ac_executable_extensions; do
7211   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7212     ac_cv_prog_ac_ct_STRIP="strip"
7213     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7214     break 2
7215   fi
7216 done
7217   done
7218 IFS=$as_save_IFS
7219
7220 fi
7221 fi
7222 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7223 if test -n "$ac_ct_STRIP"; then
7224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7225 $as_echo "$ac_ct_STRIP" >&6; }
7226 else
7227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7228 $as_echo "no" >&6; }
7229 fi
7230
7231   if test "x$ac_ct_STRIP" = x; then
7232     STRIP=":"
7233   else
7234     case $cross_compiling:$ac_tool_warned in
7235 yes:)
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7237 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7238 ac_tool_warned=yes ;;
7239 esac
7240     STRIP=$ac_ct_STRIP
7241   fi
7242 else
7243   STRIP="$ac_cv_prog_STRIP"
7244 fi
7245
7246 test -z "$STRIP" && STRIP=:
7247
7248
7249
7250
7251
7252
7253 if test -n "$ac_tool_prefix"; then
7254   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7255 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7257 $as_echo_n "checking for $ac_word... " >&6; }
7258 if ${ac_cv_prog_RANLIB+:} false; then :
7259   $as_echo_n "(cached) " >&6
7260 else
7261   if test -n "$RANLIB"; then
7262   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7263 else
7264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7265 for as_dir in $PATH
7266 do
7267   IFS=$as_save_IFS
7268   test -z "$as_dir" && as_dir=.
7269     for ac_exec_ext in '' $ac_executable_extensions; do
7270   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7271     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7272     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7273     break 2
7274   fi
7275 done
7276   done
7277 IFS=$as_save_IFS
7278
7279 fi
7280 fi
7281 RANLIB=$ac_cv_prog_RANLIB
7282 if test -n "$RANLIB"; then
7283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7284 $as_echo "$RANLIB" >&6; }
7285 else
7286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7287 $as_echo "no" >&6; }
7288 fi
7289
7290
7291 fi
7292 if test -z "$ac_cv_prog_RANLIB"; then
7293   ac_ct_RANLIB=$RANLIB
7294   # Extract the first word of "ranlib", so it can be a program name with args.
7295 set dummy ranlib; ac_word=$2
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7297 $as_echo_n "checking for $ac_word... " >&6; }
7298 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7299   $as_echo_n "(cached) " >&6
7300 else
7301   if test -n "$ac_ct_RANLIB"; then
7302   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7303 else
7304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7305 for as_dir in $PATH
7306 do
7307   IFS=$as_save_IFS
7308   test -z "$as_dir" && as_dir=.
7309     for ac_exec_ext in '' $ac_executable_extensions; do
7310   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7311     ac_cv_prog_ac_ct_RANLIB="ranlib"
7312     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7313     break 2
7314   fi
7315 done
7316   done
7317 IFS=$as_save_IFS
7318
7319 fi
7320 fi
7321 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7322 if test -n "$ac_ct_RANLIB"; then
7323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7324 $as_echo "$ac_ct_RANLIB" >&6; }
7325 else
7326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7327 $as_echo "no" >&6; }
7328 fi
7329
7330   if test "x$ac_ct_RANLIB" = x; then
7331     RANLIB=":"
7332   else
7333     case $cross_compiling:$ac_tool_warned in
7334 yes:)
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7336 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7337 ac_tool_warned=yes ;;
7338 esac
7339     RANLIB=$ac_ct_RANLIB
7340   fi
7341 else
7342   RANLIB="$ac_cv_prog_RANLIB"
7343 fi
7344
7345 test -z "$RANLIB" && RANLIB=:
7346
7347
7348
7349
7350
7351
7352 # Determine commands to create old-style static archives.
7353 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7354 old_postinstall_cmds='chmod 644 $oldlib'
7355 old_postuninstall_cmds=
7356
7357 if test -n "$RANLIB"; then
7358   case $host_os in
7359   openbsd*)
7360     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7361     ;;
7362   *)
7363     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7364     ;;
7365   esac
7366   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7367 fi
7368
7369 case $host_os in
7370   darwin*)
7371     lock_old_archive_extraction=yes ;;
7372   *)
7373     lock_old_archive_extraction=no ;;
7374 esac
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414 # If no C compiler was specified, use CC.
7415 LTCC=${LTCC-"$CC"}
7416
7417 # If no C compiler flags were specified, use CFLAGS.
7418 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7419
7420 # Allow CC to be a program name with arguments.
7421 compiler=$CC
7422
7423
7424 # Check for command to grab the raw symbol name followed by C symbol from nm.
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7426 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7427 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7428   $as_echo_n "(cached) " >&6
7429 else
7430
7431 # These are sane defaults that work on at least a few old systems.
7432 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7433
7434 # Character class describing NM global symbol codes.
7435 symcode='[BCDEGRST]'
7436
7437 # Regexp to match symbols that can be accessed directly from C.
7438 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7439
7440 # Define system-specific variables.
7441 case $host_os in
7442 aix*)
7443   symcode='[BCDT]'
7444   ;;
7445 cygwin* | mingw* | pw32* | cegcc*)
7446   symcode='[ABCDGISTW]'
7447   ;;
7448 hpux*)
7449   if test "$host_cpu" = ia64; then
7450     symcode='[ABCDEGRST]'
7451   fi
7452   ;;
7453 irix* | nonstopux*)
7454   symcode='[BCDEGRST]'
7455   ;;
7456 osf*)
7457   symcode='[BCDEGQRST]'
7458   ;;
7459 solaris*)
7460   symcode='[BDRT]'
7461   ;;
7462 sco3.2v5*)
7463   symcode='[DT]'
7464   ;;
7465 sysv4.2uw2*)
7466   symcode='[DT]'
7467   ;;
7468 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7469   symcode='[ABDT]'
7470   ;;
7471 sysv4)
7472   symcode='[DFNSTU]'
7473   ;;
7474 esac
7475
7476 # If we're using GNU nm, then use its standard symbol codes.
7477 case `$NM -V 2>&1` in
7478 *GNU* | *'with BFD'*)
7479   symcode='[ABCDGIRSTW]' ;;
7480 esac
7481
7482 # Transform an extracted symbol line into a proper C declaration.
7483 # Some systems (esp. on ia64) link data and code symbols differently,
7484 # so use this general approach.
7485 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7486
7487 # Transform an extracted symbol line into symbol name and symbol address
7488 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7489 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
7490
7491 # Handle CRLF in mingw tool chain
7492 opt_cr=
7493 case $build_os in
7494 mingw*)
7495   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7496   ;;
7497 esac
7498
7499 # Try without a prefix underscore, then with it.
7500 for ac_symprfx in "" "_"; do
7501
7502   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7503   symxfrm="\\1 $ac_symprfx\\2 \\2"
7504
7505   # Write the raw and C identifiers.
7506   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7507     # Fake it for dumpbin and say T for any non-static function
7508     # and D for any global variable.
7509     # Also find C++ and __fastcall symbols from MSVC++,
7510     # which start with @ or ?.
7511     lt_cv_sys_global_symbol_pipe="$AWK '"\
7512 "     {last_section=section; section=\$ 3};"\
7513 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7514 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7515 "     \$ 0!~/External *\|/{next};"\
7516 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7517 "     {if(hide[section]) next};"\
7518 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7519 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7520 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7521 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7522 "     ' prfx=^$ac_symprfx"
7523   else
7524     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7525   fi
7526   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7527
7528   # Check to see that the pipe works correctly.
7529   pipe_works=no
7530
7531   rm -f conftest*
7532   cat > conftest.$ac_ext <<_LT_EOF
7533 #ifdef __cplusplus
7534 extern "C" {
7535 #endif
7536 char nm_test_var;
7537 void nm_test_func(void);
7538 void nm_test_func(void){}
7539 #ifdef __cplusplus
7540 }
7541 #endif
7542 int main(){nm_test_var='a';nm_test_func();return(0);}
7543 _LT_EOF
7544
7545   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7546   (eval $ac_compile) 2>&5
7547   ac_status=$?
7548   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7549   test $ac_status = 0; }; then
7550     # Now try to grab the symbols.
7551     nlist=conftest.nm
7552     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7553   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7554   ac_status=$?
7555   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7556   test $ac_status = 0; } && test -s "$nlist"; then
7557       # Try sorting and uniquifying the output.
7558       if sort "$nlist" | uniq > "$nlist"T; then
7559         mv -f "$nlist"T "$nlist"
7560       else
7561         rm -f "$nlist"T
7562       fi
7563
7564       # Make sure that we snagged all the symbols we need.
7565       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7566         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7567           cat <<_LT_EOF > conftest.$ac_ext
7568 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7569 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7570 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7571    relocations are performed -- see ld's documentation on pseudo-relocs.  */
7572 # define LT_DLSYM_CONST
7573 #elif defined(__osf__)
7574 /* This system does not cope well with relocations in const data.  */
7575 # define LT_DLSYM_CONST
7576 #else
7577 # define LT_DLSYM_CONST const
7578 #endif
7579
7580 #ifdef __cplusplus
7581 extern "C" {
7582 #endif
7583
7584 _LT_EOF
7585           # Now generate the symbol file.
7586           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7587
7588           cat <<_LT_EOF >> conftest.$ac_ext
7589
7590 /* The mapping between symbol names and symbols.  */
7591 LT_DLSYM_CONST struct {
7592   const char *name;
7593   void       *address;
7594 }
7595 lt__PROGRAM__LTX_preloaded_symbols[] =
7596 {
7597   { "@PROGRAM@", (void *) 0 },
7598 _LT_EOF
7599           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7600           cat <<\_LT_EOF >> conftest.$ac_ext
7601   {0, (void *) 0}
7602 };
7603
7604 /* This works around a problem in FreeBSD linker */
7605 #ifdef FREEBSD_WORKAROUND
7606 static const void *lt_preloaded_setup() {
7607   return lt__PROGRAM__LTX_preloaded_symbols;
7608 }
7609 #endif
7610
7611 #ifdef __cplusplus
7612 }
7613 #endif
7614 _LT_EOF
7615           # Now try linking the two files.
7616           mv conftest.$ac_objext conftstm.$ac_objext
7617           lt_globsym_save_LIBS=$LIBS
7618           lt_globsym_save_CFLAGS=$CFLAGS
7619           LIBS="conftstm.$ac_objext"
7620           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7621           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7622   (eval $ac_link) 2>&5
7623   ac_status=$?
7624   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7625   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7626             pipe_works=yes
7627           fi
7628           LIBS=$lt_globsym_save_LIBS
7629           CFLAGS=$lt_globsym_save_CFLAGS
7630         else
7631           echo "cannot find nm_test_func in $nlist" >&5
7632         fi
7633       else
7634         echo "cannot find nm_test_var in $nlist" >&5
7635       fi
7636     else
7637       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7638     fi
7639   else
7640     echo "$progname: failed program was:" >&5
7641     cat conftest.$ac_ext >&5
7642   fi
7643   rm -rf conftest* conftst*
7644
7645   # Do not use the global_symbol_pipe unless it works.
7646   if test "$pipe_works" = yes; then
7647     break
7648   else
7649     lt_cv_sys_global_symbol_pipe=
7650   fi
7651 done
7652
7653 fi
7654
7655 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7656   lt_cv_sys_global_symbol_to_cdecl=
7657 fi
7658 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7660 $as_echo "failed" >&6; }
7661 else
7662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7663 $as_echo "ok" >&6; }
7664 fi
7665
7666 # Response file support.
7667 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7668   nm_file_list_spec='@'
7669 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7670   nm_file_list_spec='@'
7671 fi
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7700 $as_echo_n "checking for sysroot... " >&6; }
7701
7702 # Check whether --with-sysroot was given.
7703 if test "${with_sysroot+set}" = set; then :
7704   withval=$with_sysroot;
7705 else
7706   with_sysroot=no
7707 fi
7708
7709
7710 lt_sysroot=
7711 case ${with_sysroot} in #(
7712  yes)
7713    if test "$GCC" = yes; then
7714      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7715    fi
7716    ;; #(
7717  /*)
7718    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7719    ;; #(
7720  no|'')
7721    ;; #(
7722  *)
7723    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7724 $as_echo "${with_sysroot}" >&6; }
7725    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7726    ;;
7727 esac
7728
7729  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7730 $as_echo "${lt_sysroot:-no}" >&6; }
7731
7732
7733
7734
7735
7736 # Check whether --enable-libtool-lock was given.
7737 if test "${enable_libtool_lock+set}" = set; then :
7738   enableval=$enable_libtool_lock;
7739 fi
7740
7741 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7742
7743 # Some flags need to be propagated to the compiler or linker for good
7744 # libtool support.
7745 case $host in
7746 ia64-*-hpux*)
7747   # Find out which ABI we are using.
7748   echo 'int i;' > conftest.$ac_ext
7749   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7750   (eval $ac_compile) 2>&5
7751   ac_status=$?
7752   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7753   test $ac_status = 0; }; then
7754     case `/usr/bin/file conftest.$ac_objext` in
7755       *ELF-32*)
7756         HPUX_IA64_MODE="32"
7757         ;;
7758       *ELF-64*)
7759         HPUX_IA64_MODE="64"
7760         ;;
7761     esac
7762   fi
7763   rm -rf conftest*
7764   ;;
7765 *-*-irix6*)
7766   # Find out which ABI we are using.
7767   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7768   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7769   (eval $ac_compile) 2>&5
7770   ac_status=$?
7771   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7772   test $ac_status = 0; }; then
7773     if test "$lt_cv_prog_gnu_ld" = yes; then
7774       case `/usr/bin/file conftest.$ac_objext` in
7775         *32-bit*)
7776           LD="${LD-ld} -melf32bsmip"
7777           ;;
7778         *N32*)
7779           LD="${LD-ld} -melf32bmipn32"
7780           ;;
7781         *64-bit*)
7782           LD="${LD-ld} -melf64bmip"
7783         ;;
7784       esac
7785     else
7786       case `/usr/bin/file conftest.$ac_objext` in
7787         *32-bit*)
7788           LD="${LD-ld} -32"
7789           ;;
7790         *N32*)
7791           LD="${LD-ld} -n32"
7792           ;;
7793         *64-bit*)
7794           LD="${LD-ld} -64"
7795           ;;
7796       esac
7797     fi
7798   fi
7799   rm -rf conftest*
7800   ;;
7801
7802 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7803 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7804   # Find out which ABI we are using.
7805   echo 'int i;' > conftest.$ac_ext
7806   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7807   (eval $ac_compile) 2>&5
7808   ac_status=$?
7809   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7810   test $ac_status = 0; }; then
7811     case `/usr/bin/file conftest.o` in
7812       *32-bit*)
7813         case $host in
7814           x86_64-*kfreebsd*-gnu)
7815             LD="${LD-ld} -m elf_i386_fbsd"
7816             ;;
7817           x86_64-*linux*)
7818             LD="${LD-ld} -m elf_i386"
7819             ;;
7820           ppc64-*linux*|powerpc64-*linux*)
7821             LD="${LD-ld} -m elf32ppclinux"
7822             ;;
7823           s390x-*linux*)
7824             LD="${LD-ld} -m elf_s390"
7825             ;;
7826           sparc64-*linux*)
7827             LD="${LD-ld} -m elf32_sparc"
7828             ;;
7829         esac
7830         ;;
7831       *64-bit*)
7832         case $host in
7833           x86_64-*kfreebsd*-gnu)
7834             LD="${LD-ld} -m elf_x86_64_fbsd"
7835             ;;
7836           x86_64-*linux*)
7837             LD="${LD-ld} -m elf_x86_64"
7838             ;;
7839           ppc*-*linux*|powerpc*-*linux*)
7840             LD="${LD-ld} -m elf64ppc"
7841             ;;
7842           s390*-*linux*|s390*-*tpf*)
7843             LD="${LD-ld} -m elf64_s390"
7844             ;;
7845           sparc*-*linux*)
7846             LD="${LD-ld} -m elf64_sparc"
7847             ;;
7848         esac
7849         ;;
7850     esac
7851   fi
7852   rm -rf conftest*
7853   ;;
7854
7855 *-*-sco3.2v5*)
7856   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7857   SAVE_CFLAGS="$CFLAGS"
7858   CFLAGS="$CFLAGS -belf"
7859   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7860 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7861 if ${lt_cv_cc_needs_belf+:} false; then :
7862   $as_echo_n "(cached) " >&6
7863 else
7864   ac_ext=c
7865 ac_cpp='$CPP $CPPFLAGS'
7866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7869
7870      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7871 /* end confdefs.h.  */
7872
7873 int
7874 main ()
7875 {
7876
7877   ;
7878   return 0;
7879 }
7880 _ACEOF
7881 if ac_fn_c_try_link "$LINENO"; then :
7882   lt_cv_cc_needs_belf=yes
7883 else
7884   lt_cv_cc_needs_belf=no
7885 fi
7886 rm -f core conftest.err conftest.$ac_objext \
7887     conftest$ac_exeext conftest.$ac_ext
7888      ac_ext=c
7889 ac_cpp='$CPP $CPPFLAGS'
7890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7893
7894 fi
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7896 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7897   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7898     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7899     CFLAGS="$SAVE_CFLAGS"
7900   fi
7901   ;;
7902 *-*solaris*)
7903   # Find out which ABI we are using.
7904   echo 'int i;' > conftest.$ac_ext
7905   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7906   (eval $ac_compile) 2>&5
7907   ac_status=$?
7908   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7909   test $ac_status = 0; }; then
7910     case `/usr/bin/file conftest.o` in
7911     *64-bit*)
7912       case $lt_cv_prog_gnu_ld in
7913       yes*)
7914         case $host in
7915         i?86-*-solaris*)
7916           LD="${LD-ld} -m elf_x86_64"
7917           ;;
7918         sparc*-*-solaris*)
7919           LD="${LD-ld} -m elf64_sparc"
7920           ;;
7921         esac
7922         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7923         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7924           LD="${LD-ld}_sol2"
7925         fi
7926         ;;
7927       *)
7928         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7929           LD="${LD-ld} -64"
7930         fi
7931         ;;
7932       esac
7933       ;;
7934     esac
7935   fi
7936   rm -rf conftest*
7937   ;;
7938 esac
7939
7940 need_locks="$enable_libtool_lock"
7941
7942 if test -n "$ac_tool_prefix"; then
7943   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7944 set dummy ${ac_tool_prefix}mt; ac_word=$2
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7946 $as_echo_n "checking for $ac_word... " >&6; }
7947 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7948   $as_echo_n "(cached) " >&6
7949 else
7950   if test -n "$MANIFEST_TOOL"; then
7951   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7952 else
7953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7954 for as_dir in $PATH
7955 do
7956   IFS=$as_save_IFS
7957   test -z "$as_dir" && as_dir=.
7958     for ac_exec_ext in '' $ac_executable_extensions; do
7959   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7960     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7961     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7962     break 2
7963   fi
7964 done
7965   done
7966 IFS=$as_save_IFS
7967
7968 fi
7969 fi
7970 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7971 if test -n "$MANIFEST_TOOL"; then
7972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7973 $as_echo "$MANIFEST_TOOL" >&6; }
7974 else
7975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7976 $as_echo "no" >&6; }
7977 fi
7978
7979
7980 fi
7981 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7982   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7983   # Extract the first word of "mt", so it can be a program name with args.
7984 set dummy mt; ac_word=$2
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7986 $as_echo_n "checking for $ac_word... " >&6; }
7987 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7988   $as_echo_n "(cached) " >&6
7989 else
7990   if test -n "$ac_ct_MANIFEST_TOOL"; then
7991   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7992 else
7993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7994 for as_dir in $PATH
7995 do
7996   IFS=$as_save_IFS
7997   test -z "$as_dir" && as_dir=.
7998     for ac_exec_ext in '' $ac_executable_extensions; do
7999   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8000     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8001     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8002     break 2
8003   fi
8004 done
8005   done
8006 IFS=$as_save_IFS
8007
8008 fi
8009 fi
8010 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8011 if test -n "$ac_ct_MANIFEST_TOOL"; then
8012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8013 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8014 else
8015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8016 $as_echo "no" >&6; }
8017 fi
8018
8019   if test "x$ac_ct_MANIFEST_TOOL" = x; then
8020     MANIFEST_TOOL=":"
8021   else
8022     case $cross_compiling:$ac_tool_warned in
8023 yes:)
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8025 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8026 ac_tool_warned=yes ;;
8027 esac
8028     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8029   fi
8030 else
8031   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8032 fi
8033
8034 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8036 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8037 if ${lt_cv_path_mainfest_tool+:} false; then :
8038   $as_echo_n "(cached) " >&6
8039 else
8040   lt_cv_path_mainfest_tool=no
8041   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8042   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8043   cat conftest.err >&5
8044   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8045     lt_cv_path_mainfest_tool=yes
8046   fi
8047   rm -f conftest*
8048 fi
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8050 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8051 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8052   MANIFEST_TOOL=:
8053 fi
8054
8055
8056
8057
8058
8059
8060   case $host_os in
8061     rhapsody* | darwin*)
8062     if test -n "$ac_tool_prefix"; then
8063   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8064 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8066 $as_echo_n "checking for $ac_word... " >&6; }
8067 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8068   $as_echo_n "(cached) " >&6
8069 else
8070   if test -n "$DSYMUTIL"; then
8071   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8072 else
8073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8074 for as_dir in $PATH
8075 do
8076   IFS=$as_save_IFS
8077   test -z "$as_dir" && as_dir=.
8078     for ac_exec_ext in '' $ac_executable_extensions; do
8079   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8080     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8081     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8082     break 2
8083   fi
8084 done
8085   done
8086 IFS=$as_save_IFS
8087
8088 fi
8089 fi
8090 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8091 if test -n "$DSYMUTIL"; then
8092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8093 $as_echo "$DSYMUTIL" >&6; }
8094 else
8095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8096 $as_echo "no" >&6; }
8097 fi
8098
8099
8100 fi
8101 if test -z "$ac_cv_prog_DSYMUTIL"; then
8102   ac_ct_DSYMUTIL=$DSYMUTIL
8103   # Extract the first word of "dsymutil", so it can be a program name with args.
8104 set dummy dsymutil; ac_word=$2
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8106 $as_echo_n "checking for $ac_word... " >&6; }
8107 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8108   $as_echo_n "(cached) " >&6
8109 else
8110   if test -n "$ac_ct_DSYMUTIL"; then
8111   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8112 else
8113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8114 for as_dir in $PATH
8115 do
8116   IFS=$as_save_IFS
8117   test -z "$as_dir" && as_dir=.
8118     for ac_exec_ext in '' $ac_executable_extensions; do
8119   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8120     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8121     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8122     break 2
8123   fi
8124 done
8125   done
8126 IFS=$as_save_IFS
8127
8128 fi
8129 fi
8130 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8131 if test -n "$ac_ct_DSYMUTIL"; then
8132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8133 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8134 else
8135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8136 $as_echo "no" >&6; }
8137 fi
8138
8139   if test "x$ac_ct_DSYMUTIL" = x; then
8140     DSYMUTIL=":"
8141   else
8142     case $cross_compiling:$ac_tool_warned in
8143 yes:)
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8145 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8146 ac_tool_warned=yes ;;
8147 esac
8148     DSYMUTIL=$ac_ct_DSYMUTIL
8149   fi
8150 else
8151   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8152 fi
8153
8154     if test -n "$ac_tool_prefix"; then
8155   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8156 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8158 $as_echo_n "checking for $ac_word... " >&6; }
8159 if ${ac_cv_prog_NMEDIT+:} false; then :
8160   $as_echo_n "(cached) " >&6
8161 else
8162   if test -n "$NMEDIT"; then
8163   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8164 else
8165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8166 for as_dir in $PATH
8167 do
8168   IFS=$as_save_IFS
8169   test -z "$as_dir" && as_dir=.
8170     for ac_exec_ext in '' $ac_executable_extensions; do
8171   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8172     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8173     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8174     break 2
8175   fi
8176 done
8177   done
8178 IFS=$as_save_IFS
8179
8180 fi
8181 fi
8182 NMEDIT=$ac_cv_prog_NMEDIT
8183 if test -n "$NMEDIT"; then
8184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8185 $as_echo "$NMEDIT" >&6; }
8186 else
8187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8188 $as_echo "no" >&6; }
8189 fi
8190
8191
8192 fi
8193 if test -z "$ac_cv_prog_NMEDIT"; then
8194   ac_ct_NMEDIT=$NMEDIT
8195   # Extract the first word of "nmedit", so it can be a program name with args.
8196 set dummy nmedit; ac_word=$2
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8198 $as_echo_n "checking for $ac_word... " >&6; }
8199 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8200   $as_echo_n "(cached) " >&6
8201 else
8202   if test -n "$ac_ct_NMEDIT"; then
8203   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8204 else
8205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8206 for as_dir in $PATH
8207 do
8208   IFS=$as_save_IFS
8209   test -z "$as_dir" && as_dir=.
8210     for ac_exec_ext in '' $ac_executable_extensions; do
8211   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8212     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8213     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8214     break 2
8215   fi
8216 done
8217   done
8218 IFS=$as_save_IFS
8219
8220 fi
8221 fi
8222 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8223 if test -n "$ac_ct_NMEDIT"; then
8224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8225 $as_echo "$ac_ct_NMEDIT" >&6; }
8226 else
8227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8228 $as_echo "no" >&6; }
8229 fi
8230
8231   if test "x$ac_ct_NMEDIT" = x; then
8232     NMEDIT=":"
8233   else
8234     case $cross_compiling:$ac_tool_warned in
8235 yes:)
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8237 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8238 ac_tool_warned=yes ;;
8239 esac
8240     NMEDIT=$ac_ct_NMEDIT
8241   fi
8242 else
8243   NMEDIT="$ac_cv_prog_NMEDIT"
8244 fi
8245
8246     if test -n "$ac_tool_prefix"; then
8247   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8248 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8250 $as_echo_n "checking for $ac_word... " >&6; }
8251 if ${ac_cv_prog_LIPO+:} false; then :
8252   $as_echo_n "(cached) " >&6
8253 else
8254   if test -n "$LIPO"; then
8255   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8256 else
8257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8258 for as_dir in $PATH
8259 do
8260   IFS=$as_save_IFS
8261   test -z "$as_dir" && as_dir=.
8262     for ac_exec_ext in '' $ac_executable_extensions; do
8263   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8264     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8265     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8266     break 2
8267   fi
8268 done
8269   done
8270 IFS=$as_save_IFS
8271
8272 fi
8273 fi
8274 LIPO=$ac_cv_prog_LIPO
8275 if test -n "$LIPO"; then
8276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8277 $as_echo "$LIPO" >&6; }
8278 else
8279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8280 $as_echo "no" >&6; }
8281 fi
8282
8283
8284 fi
8285 if test -z "$ac_cv_prog_LIPO"; then
8286   ac_ct_LIPO=$LIPO
8287   # Extract the first word of "lipo", so it can be a program name with args.
8288 set dummy lipo; ac_word=$2
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8290 $as_echo_n "checking for $ac_word... " >&6; }
8291 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8292   $as_echo_n "(cached) " >&6
8293 else
8294   if test -n "$ac_ct_LIPO"; then
8295   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8296 else
8297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8298 for as_dir in $PATH
8299 do
8300   IFS=$as_save_IFS
8301   test -z "$as_dir" && as_dir=.
8302     for ac_exec_ext in '' $ac_executable_extensions; do
8303   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8304     ac_cv_prog_ac_ct_LIPO="lipo"
8305     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8306     break 2
8307   fi
8308 done
8309   done
8310 IFS=$as_save_IFS
8311
8312 fi
8313 fi
8314 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8315 if test -n "$ac_ct_LIPO"; then
8316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8317 $as_echo "$ac_ct_LIPO" >&6; }
8318 else
8319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8320 $as_echo "no" >&6; }
8321 fi
8322
8323   if test "x$ac_ct_LIPO" = x; then
8324     LIPO=":"
8325   else
8326     case $cross_compiling:$ac_tool_warned in
8327 yes:)
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8329 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8330 ac_tool_warned=yes ;;
8331 esac
8332     LIPO=$ac_ct_LIPO
8333   fi
8334 else
8335   LIPO="$ac_cv_prog_LIPO"
8336 fi
8337
8338     if test -n "$ac_tool_prefix"; then
8339   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8340 set dummy ${ac_tool_prefix}otool; ac_word=$2
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8342 $as_echo_n "checking for $ac_word... " >&6; }
8343 if ${ac_cv_prog_OTOOL+:} false; then :
8344   $as_echo_n "(cached) " >&6
8345 else
8346   if test -n "$OTOOL"; then
8347   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8348 else
8349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8350 for as_dir in $PATH
8351 do
8352   IFS=$as_save_IFS
8353   test -z "$as_dir" && as_dir=.
8354     for ac_exec_ext in '' $ac_executable_extensions; do
8355   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8356     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8357     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8358     break 2
8359   fi
8360 done
8361   done
8362 IFS=$as_save_IFS
8363
8364 fi
8365 fi
8366 OTOOL=$ac_cv_prog_OTOOL
8367 if test -n "$OTOOL"; then
8368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8369 $as_echo "$OTOOL" >&6; }
8370 else
8371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8372 $as_echo "no" >&6; }
8373 fi
8374
8375
8376 fi
8377 if test -z "$ac_cv_prog_OTOOL"; then
8378   ac_ct_OTOOL=$OTOOL
8379   # Extract the first word of "otool", so it can be a program name with args.
8380 set dummy otool; ac_word=$2
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8382 $as_echo_n "checking for $ac_word... " >&6; }
8383 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8384   $as_echo_n "(cached) " >&6
8385 else
8386   if test -n "$ac_ct_OTOOL"; then
8387   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8388 else
8389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8390 for as_dir in $PATH
8391 do
8392   IFS=$as_save_IFS
8393   test -z "$as_dir" && as_dir=.
8394     for ac_exec_ext in '' $ac_executable_extensions; do
8395   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8396     ac_cv_prog_ac_ct_OTOOL="otool"
8397     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8398     break 2
8399   fi
8400 done
8401   done
8402 IFS=$as_save_IFS
8403
8404 fi
8405 fi
8406 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8407 if test -n "$ac_ct_OTOOL"; then
8408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8409 $as_echo "$ac_ct_OTOOL" >&6; }
8410 else
8411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8412 $as_echo "no" >&6; }
8413 fi
8414
8415   if test "x$ac_ct_OTOOL" = x; then
8416     OTOOL=":"
8417   else
8418     case $cross_compiling:$ac_tool_warned in
8419 yes:)
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8421 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8422 ac_tool_warned=yes ;;
8423 esac
8424     OTOOL=$ac_ct_OTOOL
8425   fi
8426 else
8427   OTOOL="$ac_cv_prog_OTOOL"
8428 fi
8429
8430     if test -n "$ac_tool_prefix"; then
8431   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8432 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8434 $as_echo_n "checking for $ac_word... " >&6; }
8435 if ${ac_cv_prog_OTOOL64+:} false; then :
8436   $as_echo_n "(cached) " >&6
8437 else
8438   if test -n "$OTOOL64"; then
8439   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8440 else
8441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8442 for as_dir in $PATH
8443 do
8444   IFS=$as_save_IFS
8445   test -z "$as_dir" && as_dir=.
8446     for ac_exec_ext in '' $ac_executable_extensions; do
8447   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8448     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8449     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8450     break 2
8451   fi
8452 done
8453   done
8454 IFS=$as_save_IFS
8455
8456 fi
8457 fi
8458 OTOOL64=$ac_cv_prog_OTOOL64
8459 if test -n "$OTOOL64"; then
8460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8461 $as_echo "$OTOOL64" >&6; }
8462 else
8463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8464 $as_echo "no" >&6; }
8465 fi
8466
8467
8468 fi
8469 if test -z "$ac_cv_prog_OTOOL64"; then
8470   ac_ct_OTOOL64=$OTOOL64
8471   # Extract the first word of "otool64", so it can be a program name with args.
8472 set dummy otool64; ac_word=$2
8473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8474 $as_echo_n "checking for $ac_word... " >&6; }
8475 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8476   $as_echo_n "(cached) " >&6
8477 else
8478   if test -n "$ac_ct_OTOOL64"; then
8479   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8480 else
8481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8482 for as_dir in $PATH
8483 do
8484   IFS=$as_save_IFS
8485   test -z "$as_dir" && as_dir=.
8486     for ac_exec_ext in '' $ac_executable_extensions; do
8487   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8488     ac_cv_prog_ac_ct_OTOOL64="otool64"
8489     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8490     break 2
8491   fi
8492 done
8493   done
8494 IFS=$as_save_IFS
8495
8496 fi
8497 fi
8498 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8499 if test -n "$ac_ct_OTOOL64"; then
8500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8501 $as_echo "$ac_ct_OTOOL64" >&6; }
8502 else
8503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8504 $as_echo "no" >&6; }
8505 fi
8506
8507   if test "x$ac_ct_OTOOL64" = x; then
8508     OTOOL64=":"
8509   else
8510     case $cross_compiling:$ac_tool_warned in
8511 yes:)
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8513 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8514 ac_tool_warned=yes ;;
8515 esac
8516     OTOOL64=$ac_ct_OTOOL64
8517   fi
8518 else
8519   OTOOL64="$ac_cv_prog_OTOOL64"
8520 fi
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8549 $as_echo_n "checking for -single_module linker flag... " >&6; }
8550 if ${lt_cv_apple_cc_single_mod+:} false; then :
8551   $as_echo_n "(cached) " >&6
8552 else
8553   lt_cv_apple_cc_single_mod=no
8554       if test -z "${LT_MULTI_MODULE}"; then
8555         # By default we will add the -single_module flag. You can override
8556         # by either setting the environment variable LT_MULTI_MODULE
8557         # non-empty at configure time, or by adding -multi_module to the
8558         # link flags.
8559         rm -rf libconftest.dylib*
8560         echo "int foo(void){return 1;}" > conftest.c
8561         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8562 -dynamiclib -Wl,-single_module conftest.c" >&5
8563         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8564           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8565         _lt_result=$?
8566         # If there is a non-empty error log, and "single_module"
8567         # appears in it, assume the flag caused a linker warning
8568         if test -s conftest.err && $GREP single_module conftest.err; then
8569           cat conftest.err >&5
8570         # Otherwise, if the output was created with a 0 exit code from
8571         # the compiler, it worked.
8572         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8573           lt_cv_apple_cc_single_mod=yes
8574         else
8575           cat conftest.err >&5
8576         fi
8577         rm -rf libconftest.dylib*
8578         rm -f conftest.*
8579       fi
8580 fi
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8582 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8583
8584     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8585 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8586 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8587   $as_echo_n "(cached) " >&6
8588 else
8589   lt_cv_ld_exported_symbols_list=no
8590       save_LDFLAGS=$LDFLAGS
8591       echo "_main" > conftest.sym
8592       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8593       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8594 /* end confdefs.h.  */
8595
8596 int
8597 main ()
8598 {
8599
8600   ;
8601   return 0;
8602 }
8603 _ACEOF
8604 if ac_fn_c_try_link "$LINENO"; then :
8605   lt_cv_ld_exported_symbols_list=yes
8606 else
8607   lt_cv_ld_exported_symbols_list=no
8608 fi
8609 rm -f core conftest.err conftest.$ac_objext \
8610     conftest$ac_exeext conftest.$ac_ext
8611         LDFLAGS="$save_LDFLAGS"
8612
8613 fi
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8615 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8616
8617     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8618 $as_echo_n "checking for -force_load linker flag... " >&6; }
8619 if ${lt_cv_ld_force_load+:} false; then :
8620   $as_echo_n "(cached) " >&6
8621 else
8622   lt_cv_ld_force_load=no
8623       cat > conftest.c << _LT_EOF
8624 int forced_loaded() { return 2;}
8625 _LT_EOF
8626       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8627       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8628       echo "$AR cru libconftest.a conftest.o" >&5
8629       $AR cru libconftest.a conftest.o 2>&5
8630       echo "$RANLIB libconftest.a" >&5
8631       $RANLIB libconftest.a 2>&5
8632       cat > conftest.c << _LT_EOF
8633 int main() { return 0;}
8634 _LT_EOF
8635       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8636       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8637       _lt_result=$?
8638       if test -s conftest.err && $GREP force_load conftest.err; then
8639         cat conftest.err >&5
8640       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8641         lt_cv_ld_force_load=yes
8642       else
8643         cat conftest.err >&5
8644       fi
8645         rm -f conftest.err libconftest.a conftest conftest.c
8646         rm -rf conftest.dSYM
8647
8648 fi
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8650 $as_echo "$lt_cv_ld_force_load" >&6; }
8651     case $host_os in
8652     rhapsody* | darwin1.[012])
8653       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8654     darwin1.*)
8655       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8656     darwin*) # darwin 5.x on
8657       # if running on 10.5 or later, the deployment target defaults
8658       # to the OS version, if on x86, and 10.4, the deployment
8659       # target defaults to 10.4. Don't you love it?
8660       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8661         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8662           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8663         10.[012]*)
8664           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8665         10.*)
8666           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8667       esac
8668     ;;
8669   esac
8670     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8671       _lt_dar_single_mod='$single_module'
8672     fi
8673     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8674       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8675     else
8676       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8677     fi
8678     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8679       _lt_dsymutil='~$DSYMUTIL $lib || :'
8680     else
8681       _lt_dsymutil=
8682     fi
8683     ;;
8684   esac
8685
8686 for ac_header in dlfcn.h
8687 do :
8688   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8689 "
8690 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8691   cat >>confdefs.h <<_ACEOF
8692 #define HAVE_DLFCN_H 1
8693 _ACEOF
8694
8695 fi
8696
8697 done
8698
8699
8700
8701
8702
8703 # Set options
8704
8705
8706
8707         enable_dlopen=no
8708
8709
8710   enable_win32_dll=no
8711
8712
8713             # Check whether --enable-shared was given.
8714 if test "${enable_shared+set}" = set; then :
8715   enableval=$enable_shared; p=${PACKAGE-default}
8716     case $enableval in
8717     yes) enable_shared=yes ;;
8718     no) enable_shared=no ;;
8719     *)
8720       enable_shared=no
8721       # Look at the argument we got.  We use all the common list separators.
8722       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8723       for pkg in $enableval; do
8724         IFS="$lt_save_ifs"
8725         if test "X$pkg" = "X$p"; then
8726           enable_shared=yes
8727         fi
8728       done
8729       IFS="$lt_save_ifs"
8730       ;;
8731     esac
8732 else
8733   enable_shared=yes
8734 fi
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746 # Check whether --with-pic was given.
8747 if test "${with_pic+set}" = set; then :
8748   withval=$with_pic; lt_p=${PACKAGE-default}
8749     case $withval in
8750     yes|no) pic_mode=$withval ;;
8751     *)
8752       pic_mode=default
8753       # Look at the argument we got.  We use all the common list separators.
8754       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8755       for lt_pkg in $withval; do
8756         IFS="$lt_save_ifs"
8757         if test "X$lt_pkg" = "X$lt_p"; then
8758           pic_mode=yes
8759         fi
8760       done
8761       IFS="$lt_save_ifs"
8762       ;;
8763     esac
8764 else
8765   pic_mode=default
8766 fi
8767
8768
8769 test -z "$pic_mode" && pic_mode=default
8770
8771
8772
8773
8774
8775
8776
8777   # Check whether --enable-fast-install was given.
8778 if test "${enable_fast_install+set}" = set; then :
8779   enableval=$enable_fast_install; p=${PACKAGE-default}
8780     case $enableval in
8781     yes) enable_fast_install=yes ;;
8782     no) enable_fast_install=no ;;
8783     *)
8784       enable_fast_install=no
8785       # Look at the argument we got.  We use all the common list separators.
8786       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8787       for pkg in $enableval; do
8788         IFS="$lt_save_ifs"
8789         if test "X$pkg" = "X$p"; then
8790           enable_fast_install=yes
8791         fi
8792       done
8793       IFS="$lt_save_ifs"
8794       ;;
8795     esac
8796 else
8797   enable_fast_install=yes
8798 fi
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810 # This can be used to rebuild libtool when needed
8811 LIBTOOL_DEPS="$ltmain"
8812
8813 # Always use our own libtool.
8814 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845 test -z "$LN_S" && LN_S="ln -s"
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860 if test -n "${ZSH_VERSION+set}" ; then
8861    setopt NO_GLOB_SUBST
8862 fi
8863
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8865 $as_echo_n "checking for objdir... " >&6; }
8866 if ${lt_cv_objdir+:} false; then :
8867   $as_echo_n "(cached) " >&6
8868 else
8869   rm -f .libs 2>/dev/null
8870 mkdir .libs 2>/dev/null
8871 if test -d .libs; then
8872   lt_cv_objdir=.libs
8873 else
8874   # MS-DOS does not allow filenames that begin with a dot.
8875   lt_cv_objdir=_libs
8876 fi
8877 rmdir .libs 2>/dev/null
8878 fi
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8880 $as_echo "$lt_cv_objdir" >&6; }
8881 objdir=$lt_cv_objdir
8882
8883
8884
8885
8886
8887 cat >>confdefs.h <<_ACEOF
8888 #define LT_OBJDIR "$lt_cv_objdir/"
8889 _ACEOF
8890
8891
8892
8893
8894 case $host_os in
8895 aix3*)
8896   # AIX sometimes has problems with the GCC collect2 program.  For some
8897   # reason, if we set the COLLECT_NAMES environment variable, the problems
8898   # vanish in a puff of smoke.
8899   if test "X${COLLECT_NAMES+set}" != Xset; then
8900     COLLECT_NAMES=
8901     export COLLECT_NAMES
8902   fi
8903   ;;
8904 esac
8905
8906 # Global variables:
8907 ofile=libtool
8908 can_build_shared=yes
8909
8910 # All known linkers require a `.a' archive for static linking (except MSVC,
8911 # which needs '.lib').
8912 libext=a
8913
8914 with_gnu_ld="$lt_cv_prog_gnu_ld"
8915
8916 old_CC="$CC"
8917 old_CFLAGS="$CFLAGS"
8918
8919 # Set sane defaults for various variables
8920 test -z "$CC" && CC=cc
8921 test -z "$LTCC" && LTCC=$CC
8922 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8923 test -z "$LD" && LD=ld
8924 test -z "$ac_objext" && ac_objext=o
8925
8926 for cc_temp in $compiler""; do
8927   case $cc_temp in
8928     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8929     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8930     \-*) ;;
8931     *) break;;
8932   esac
8933 done
8934 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8935
8936
8937 # Only perform the check for file, if the check method requires it
8938 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8939 case $deplibs_check_method in
8940 file_magic*)
8941   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8942     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8943 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8944 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8945   $as_echo_n "(cached) " >&6
8946 else
8947   case $MAGIC_CMD in
8948 [\\/*] |  ?:[\\/]*)
8949   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8950   ;;
8951 *)
8952   lt_save_MAGIC_CMD="$MAGIC_CMD"
8953   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8954   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8955   for ac_dir in $ac_dummy; do
8956     IFS="$lt_save_ifs"
8957     test -z "$ac_dir" && ac_dir=.
8958     if test -f $ac_dir/${ac_tool_prefix}file; then
8959       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8960       if test -n "$file_magic_test_file"; then
8961         case $deplibs_check_method in
8962         "file_magic "*)
8963           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8964           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8965           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8966             $EGREP "$file_magic_regex" > /dev/null; then
8967             :
8968           else
8969             cat <<_LT_EOF 1>&2
8970
8971 *** Warning: the command libtool uses to detect shared libraries,
8972 *** $file_magic_cmd, produces output that libtool cannot recognize.
8973 *** The result is that libtool may fail to recognize shared libraries
8974 *** as such.  This will affect the creation of libtool libraries that
8975 *** depend on shared libraries, but programs linked with such libtool
8976 *** libraries will work regardless of this problem.  Nevertheless, you
8977 *** may want to report the problem to your system manager and/or to
8978 *** bug-libtool@gnu.org
8979
8980 _LT_EOF
8981           fi ;;
8982         esac
8983       fi
8984       break
8985     fi
8986   done
8987   IFS="$lt_save_ifs"
8988   MAGIC_CMD="$lt_save_MAGIC_CMD"
8989   ;;
8990 esac
8991 fi
8992
8993 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8994 if test -n "$MAGIC_CMD"; then
8995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8996 $as_echo "$MAGIC_CMD" >&6; }
8997 else
8998   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8999 $as_echo "no" >&6; }
9000 fi
9001
9002
9003
9004
9005
9006 if test -z "$lt_cv_path_MAGIC_CMD"; then
9007   if test -n "$ac_tool_prefix"; then
9008     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9009 $as_echo_n "checking for file... " >&6; }
9010 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9011   $as_echo_n "(cached) " >&6
9012 else
9013   case $MAGIC_CMD in
9014 [\\/*] |  ?:[\\/]*)
9015   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9016   ;;
9017 *)
9018   lt_save_MAGIC_CMD="$MAGIC_CMD"
9019   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9020   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9021   for ac_dir in $ac_dummy; do
9022     IFS="$lt_save_ifs"
9023     test -z "$ac_dir" && ac_dir=.
9024     if test -f $ac_dir/file; then
9025       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9026       if test -n "$file_magic_test_file"; then
9027         case $deplibs_check_method in
9028         "file_magic "*)
9029           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9030           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9031           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9032             $EGREP "$file_magic_regex" > /dev/null; then
9033             :
9034           else
9035             cat <<_LT_EOF 1>&2
9036
9037 *** Warning: the command libtool uses to detect shared libraries,
9038 *** $file_magic_cmd, produces output that libtool cannot recognize.
9039 *** The result is that libtool may fail to recognize shared libraries
9040 *** as such.  This will affect the creation of libtool libraries that
9041 *** depend on shared libraries, but programs linked with such libtool
9042 *** libraries will work regardless of this problem.  Nevertheless, you
9043 *** may want to report the problem to your system manager and/or to
9044 *** bug-libtool@gnu.org
9045
9046 _LT_EOF
9047           fi ;;
9048         esac
9049       fi
9050       break
9051     fi
9052   done
9053   IFS="$lt_save_ifs"
9054   MAGIC_CMD="$lt_save_MAGIC_CMD"
9055   ;;
9056 esac
9057 fi
9058
9059 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9060 if test -n "$MAGIC_CMD"; then
9061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9062 $as_echo "$MAGIC_CMD" >&6; }
9063 else
9064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9065 $as_echo "no" >&6; }
9066 fi
9067
9068
9069   else
9070     MAGIC_CMD=:
9071   fi
9072 fi
9073
9074   fi
9075   ;;
9076 esac
9077
9078 # Use C for the default configuration in the libtool script
9079
9080 lt_save_CC="$CC"
9081 ac_ext=c
9082 ac_cpp='$CPP $CPPFLAGS'
9083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9086
9087
9088 # Source file extension for C test sources.
9089 ac_ext=c
9090
9091 # Object file extension for compiled C test sources.
9092 objext=o
9093 objext=$objext
9094
9095 # Code to be used in simple compile tests
9096 lt_simple_compile_test_code="int some_variable = 0;"
9097
9098 # Code to be used in simple link tests
9099 lt_simple_link_test_code='int main(){return(0);}'
9100
9101
9102
9103
9104
9105
9106
9107 # If no C compiler was specified, use CC.
9108 LTCC=${LTCC-"$CC"}
9109
9110 # If no C compiler flags were specified, use CFLAGS.
9111 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9112
9113 # Allow CC to be a program name with arguments.
9114 compiler=$CC
9115
9116 # Save the default compiler, since it gets overwritten when the other
9117 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9118 compiler_DEFAULT=$CC
9119
9120 # save warnings/boilerplate of simple test code
9121 ac_outfile=conftest.$ac_objext
9122 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9123 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9124 _lt_compiler_boilerplate=`cat conftest.err`
9125 $RM conftest*
9126
9127 ac_outfile=conftest.$ac_objext
9128 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9129 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9130 _lt_linker_boilerplate=`cat conftest.err`
9131 $RM -r conftest*
9132
9133
9134 if test -n "$compiler"; then
9135
9136 lt_prog_compiler_no_builtin_flag=
9137
9138 if test "$GCC" = yes; then
9139   case $cc_basename in
9140   nvcc*)
9141     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9142   *)
9143     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9144   esac
9145
9146   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9147 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9148 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9149   $as_echo_n "(cached) " >&6
9150 else
9151   lt_cv_prog_compiler_rtti_exceptions=no
9152    ac_outfile=conftest.$ac_objext
9153    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9154    lt_compiler_flag="-fno-rtti -fno-exceptions"
9155    # Insert the option either (1) after the last *FLAGS variable, or
9156    # (2) before a word containing "conftest.", or (3) at the end.
9157    # Note that $ac_compile itself does not contain backslashes and begins
9158    # with a dollar sign (not a hyphen), so the echo should work correctly.
9159    # The option is referenced via a variable to avoid confusing sed.
9160    lt_compile=`echo "$ac_compile" | $SED \
9161    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9162    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9163    -e 's:$: $lt_compiler_flag:'`
9164    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9165    (eval "$lt_compile" 2>conftest.err)
9166    ac_status=$?
9167    cat conftest.err >&5
9168    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9169    if (exit $ac_status) && test -s "$ac_outfile"; then
9170      # The compiler can only warn and ignore the option if not recognized
9171      # So say no if there are warnings other than the usual output.
9172      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9173      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9174      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9175        lt_cv_prog_compiler_rtti_exceptions=yes
9176      fi
9177    fi
9178    $RM conftest*
9179
9180 fi
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9182 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9183
9184 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9185     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9186 else
9187     :
9188 fi
9189
9190 fi
9191
9192
9193
9194
9195
9196
9197   lt_prog_compiler_wl=
9198 lt_prog_compiler_pic=
9199 lt_prog_compiler_static=
9200
9201
9202   if test "$GCC" = yes; then
9203     lt_prog_compiler_wl='-Wl,'
9204     lt_prog_compiler_static='-static'
9205
9206     case $host_os in
9207       aix*)
9208       # All AIX code is PIC.
9209       if test "$host_cpu" = ia64; then
9210         # AIX 5 now supports IA64 processor
9211         lt_prog_compiler_static='-Bstatic'
9212       fi
9213       ;;
9214
9215     amigaos*)
9216       case $host_cpu in
9217       powerpc)
9218             # see comment about AmigaOS4 .so support
9219             lt_prog_compiler_pic='-fPIC'
9220         ;;
9221       m68k)
9222             # FIXME: we need at least 68020 code to build shared libraries, but
9223             # adding the `-m68020' flag to GCC prevents building anything better,
9224             # like `-m68040'.
9225             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9226         ;;
9227       esac
9228       ;;
9229
9230     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9231       # PIC is the default for these OSes.
9232       ;;
9233
9234     mingw* | cygwin* | pw32* | os2* | cegcc*)
9235       # This hack is so that the source file can tell whether it is being
9236       # built for inclusion in a dll (and should export symbols for example).
9237       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9238       # (--disable-auto-import) libraries
9239       lt_prog_compiler_pic='-DDLL_EXPORT'
9240       ;;
9241
9242     darwin* | rhapsody*)
9243       # PIC is the default on this platform
9244       # Common symbols not allowed in MH_DYLIB files
9245       lt_prog_compiler_pic='-fno-common'
9246       ;;
9247
9248     haiku*)
9249       # PIC is the default for Haiku.
9250       # The "-static" flag exists, but is broken.
9251       lt_prog_compiler_static=
9252       ;;
9253
9254     hpux*)
9255       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9256       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9257       # sets the default TLS model and affects inlining.
9258       case $host_cpu in
9259       hppa*64*)
9260         # +Z the default
9261         ;;
9262       *)
9263         lt_prog_compiler_pic='-fPIC'
9264         ;;
9265       esac
9266       ;;
9267
9268     interix[3-9]*)
9269       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9270       # Instead, we relocate shared libraries at runtime.
9271       ;;
9272
9273     msdosdjgpp*)
9274       # Just because we use GCC doesn't mean we suddenly get shared libraries
9275       # on systems that don't support them.
9276       lt_prog_compiler_can_build_shared=no
9277       enable_shared=no
9278       ;;
9279
9280     *nto* | *qnx*)
9281       # QNX uses GNU C++, but need to define -shared option too, otherwise
9282       # it will coredump.
9283       lt_prog_compiler_pic='-fPIC -shared'
9284       ;;
9285
9286     sysv4*MP*)
9287       if test -d /usr/nec; then
9288         lt_prog_compiler_pic=-Kconform_pic
9289       fi
9290       ;;
9291
9292     *)
9293       lt_prog_compiler_pic='-fPIC'
9294       ;;
9295     esac
9296
9297     case $cc_basename in
9298     nvcc*) # Cuda Compiler Driver 2.2
9299       lt_prog_compiler_wl='-Xlinker '
9300       if test -n "$lt_prog_compiler_pic"; then
9301         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9302       fi
9303       ;;
9304     esac
9305   else
9306     # PORTME Check for flag to pass linker flags through the system compiler.
9307     case $host_os in
9308     aix*)
9309       lt_prog_compiler_wl='-Wl,'
9310       if test "$host_cpu" = ia64; then
9311         # AIX 5 now supports IA64 processor
9312         lt_prog_compiler_static='-Bstatic'
9313       else
9314         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9315       fi
9316       ;;
9317
9318     mingw* | cygwin* | pw32* | os2* | cegcc*)
9319       # This hack is so that the source file can tell whether it is being
9320       # built for inclusion in a dll (and should export symbols for example).
9321       lt_prog_compiler_pic='-DDLL_EXPORT'
9322       ;;
9323
9324     hpux9* | hpux10* | hpux11*)
9325       lt_prog_compiler_wl='-Wl,'
9326       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9327       # not for PA HP-UX.
9328       case $host_cpu in
9329       hppa*64*|ia64*)
9330         # +Z the default
9331         ;;
9332       *)
9333         lt_prog_compiler_pic='+Z'
9334         ;;
9335       esac
9336       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9337       lt_prog_compiler_static='${wl}-a ${wl}archive'
9338       ;;
9339
9340     irix5* | irix6* | nonstopux*)
9341       lt_prog_compiler_wl='-Wl,'
9342       # PIC (with -KPIC) is the default.
9343       lt_prog_compiler_static='-non_shared'
9344       ;;
9345
9346     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9347       case $cc_basename in
9348       # old Intel for x86_64 which still supported -KPIC.
9349       ecc*)
9350         lt_prog_compiler_wl='-Wl,'
9351         lt_prog_compiler_pic='-KPIC'
9352         lt_prog_compiler_static='-static'
9353         ;;
9354       # icc used to be incompatible with GCC.
9355       # ICC 10 doesn't accept -KPIC any more.
9356       icc* | ifort*)
9357         lt_prog_compiler_wl='-Wl,'
9358         lt_prog_compiler_pic='-fPIC'
9359         lt_prog_compiler_static='-static'
9360         ;;
9361       # Lahey Fortran 8.1.
9362       lf95*)
9363         lt_prog_compiler_wl='-Wl,'
9364         lt_prog_compiler_pic='--shared'
9365         lt_prog_compiler_static='--static'
9366         ;;
9367       nagfor*)
9368         # NAG Fortran compiler
9369         lt_prog_compiler_wl='-Wl,-Wl,,'
9370         lt_prog_compiler_pic='-PIC'
9371         lt_prog_compiler_static='-Bstatic'
9372         ;;
9373       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9374         # Portland Group compilers (*not* the Pentium gcc compiler,
9375         # which looks to be a dead project)
9376         lt_prog_compiler_wl='-Wl,'
9377         lt_prog_compiler_pic='-fpic'
9378         lt_prog_compiler_static='-Bstatic'
9379         ;;
9380       ccc*)
9381         lt_prog_compiler_wl='-Wl,'
9382         # All Alpha code is PIC.
9383         lt_prog_compiler_static='-non_shared'
9384         ;;
9385       xl* | bgxl* | bgf* | mpixl*)
9386         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9387         lt_prog_compiler_wl='-Wl,'
9388         lt_prog_compiler_pic='-qpic'
9389         lt_prog_compiler_static='-qstaticlink'
9390         ;;
9391       *)
9392         case `$CC -V 2>&1 | sed 5q` in
9393         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9394           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9395           lt_prog_compiler_pic='-KPIC'
9396           lt_prog_compiler_static='-Bstatic'
9397           lt_prog_compiler_wl=''
9398           ;;
9399         *Sun\ F* | *Sun*Fortran*)
9400           lt_prog_compiler_pic='-KPIC'
9401           lt_prog_compiler_static='-Bstatic'
9402           lt_prog_compiler_wl='-Qoption ld '
9403           ;;
9404         *Sun\ C*)
9405           # Sun C 5.9
9406           lt_prog_compiler_pic='-KPIC'
9407           lt_prog_compiler_static='-Bstatic'
9408           lt_prog_compiler_wl='-Wl,'
9409           ;;
9410         *Intel*\ [CF]*Compiler*)
9411           lt_prog_compiler_wl='-Wl,'
9412           lt_prog_compiler_pic='-fPIC'
9413           lt_prog_compiler_static='-static'
9414           ;;
9415         *Portland\ Group*)
9416           lt_prog_compiler_wl='-Wl,'
9417           lt_prog_compiler_pic='-fpic'
9418           lt_prog_compiler_static='-Bstatic'
9419           ;;
9420         esac
9421         ;;
9422       esac
9423       ;;
9424
9425     newsos6)
9426       lt_prog_compiler_pic='-KPIC'
9427       lt_prog_compiler_static='-Bstatic'
9428       ;;
9429
9430     *nto* | *qnx*)
9431       # QNX uses GNU C++, but need to define -shared option too, otherwise
9432       # it will coredump.
9433       lt_prog_compiler_pic='-fPIC -shared'
9434       ;;
9435
9436     osf3* | osf4* | osf5*)
9437       lt_prog_compiler_wl='-Wl,'
9438       # All OSF/1 code is PIC.
9439       lt_prog_compiler_static='-non_shared'
9440       ;;
9441
9442     rdos*)
9443       lt_prog_compiler_static='-non_shared'
9444       ;;
9445
9446     solaris*)
9447       lt_prog_compiler_pic='-KPIC'
9448       lt_prog_compiler_static='-Bstatic'
9449       case $cc_basename in
9450       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9451         lt_prog_compiler_wl='-Qoption ld ';;
9452       *)
9453         lt_prog_compiler_wl='-Wl,';;
9454       esac
9455       ;;
9456
9457     sunos4*)
9458       lt_prog_compiler_wl='-Qoption ld '
9459       lt_prog_compiler_pic='-PIC'
9460       lt_prog_compiler_static='-Bstatic'
9461       ;;
9462
9463     sysv4 | sysv4.2uw2* | sysv4.3*)
9464       lt_prog_compiler_wl='-Wl,'
9465       lt_prog_compiler_pic='-KPIC'
9466       lt_prog_compiler_static='-Bstatic'
9467       ;;
9468
9469     sysv4*MP*)
9470       if test -d /usr/nec ;then
9471         lt_prog_compiler_pic='-Kconform_pic'
9472         lt_prog_compiler_static='-Bstatic'
9473       fi
9474       ;;
9475
9476     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9477       lt_prog_compiler_wl='-Wl,'
9478       lt_prog_compiler_pic='-KPIC'
9479       lt_prog_compiler_static='-Bstatic'
9480       ;;
9481
9482     unicos*)
9483       lt_prog_compiler_wl='-Wl,'
9484       lt_prog_compiler_can_build_shared=no
9485       ;;
9486
9487     uts4*)
9488       lt_prog_compiler_pic='-pic'
9489       lt_prog_compiler_static='-Bstatic'
9490       ;;
9491
9492     *)
9493       lt_prog_compiler_can_build_shared=no
9494       ;;
9495     esac
9496   fi
9497
9498 case $host_os in
9499   # For platforms which do not support PIC, -DPIC is meaningless:
9500   *djgpp*)
9501     lt_prog_compiler_pic=
9502     ;;
9503   *)
9504     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9505     ;;
9506 esac
9507
9508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9509 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9510 if ${lt_cv_prog_compiler_pic+:} false; then :
9511   $as_echo_n "(cached) " >&6
9512 else
9513   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9514 fi
9515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9516 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9517 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9518
9519 #
9520 # Check to make sure the PIC flag actually works.
9521 #
9522 if test -n "$lt_prog_compiler_pic"; then
9523   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9524 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9525 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9526   $as_echo_n "(cached) " >&6
9527 else
9528   lt_cv_prog_compiler_pic_works=no
9529    ac_outfile=conftest.$ac_objext
9530    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9531    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9532    # Insert the option either (1) after the last *FLAGS variable, or
9533    # (2) before a word containing "conftest.", or (3) at the end.
9534    # Note that $ac_compile itself does not contain backslashes and begins
9535    # with a dollar sign (not a hyphen), so the echo should work correctly.
9536    # The option is referenced via a variable to avoid confusing sed.
9537    lt_compile=`echo "$ac_compile" | $SED \
9538    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9539    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9540    -e 's:$: $lt_compiler_flag:'`
9541    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9542    (eval "$lt_compile" 2>conftest.err)
9543    ac_status=$?
9544    cat conftest.err >&5
9545    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9546    if (exit $ac_status) && test -s "$ac_outfile"; then
9547      # The compiler can only warn and ignore the option if not recognized
9548      # So say no if there are warnings other than the usual output.
9549      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9550      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9551      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9552        lt_cv_prog_compiler_pic_works=yes
9553      fi
9554    fi
9555    $RM conftest*
9556
9557 fi
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9559 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9560
9561 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9562     case $lt_prog_compiler_pic in
9563      "" | " "*) ;;
9564      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9565      esac
9566 else
9567     lt_prog_compiler_pic=
9568      lt_prog_compiler_can_build_shared=no
9569 fi
9570
9571 fi
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583 #
9584 # Check to make sure the static flag actually works.
9585 #
9586 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9588 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9589 if ${lt_cv_prog_compiler_static_works+:} false; then :
9590   $as_echo_n "(cached) " >&6
9591 else
9592   lt_cv_prog_compiler_static_works=no
9593    save_LDFLAGS="$LDFLAGS"
9594    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9595    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9596    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9597      # The linker can only warn and ignore the option if not recognized
9598      # So say no if there are warnings
9599      if test -s conftest.err; then
9600        # Append any errors to the config.log.
9601        cat conftest.err 1>&5
9602        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9603        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9604        if diff conftest.exp conftest.er2 >/dev/null; then
9605          lt_cv_prog_compiler_static_works=yes
9606        fi
9607      else
9608        lt_cv_prog_compiler_static_works=yes
9609      fi
9610    fi
9611    $RM -r conftest*
9612    LDFLAGS="$save_LDFLAGS"
9613
9614 fi
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9616 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9617
9618 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9619     :
9620 else
9621     lt_prog_compiler_static=
9622 fi
9623
9624
9625
9626
9627
9628
9629
9630   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9631 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9632 if ${lt_cv_prog_compiler_c_o+:} false; then :
9633   $as_echo_n "(cached) " >&6
9634 else
9635   lt_cv_prog_compiler_c_o=no
9636    $RM -r conftest 2>/dev/null
9637    mkdir conftest
9638    cd conftest
9639    mkdir out
9640    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9641
9642    lt_compiler_flag="-o out/conftest2.$ac_objext"
9643    # Insert the option either (1) after the last *FLAGS variable, or
9644    # (2) before a word containing "conftest.", or (3) at the end.
9645    # Note that $ac_compile itself does not contain backslashes and begins
9646    # with a dollar sign (not a hyphen), so the echo should work correctly.
9647    lt_compile=`echo "$ac_compile" | $SED \
9648    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9649    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9650    -e 's:$: $lt_compiler_flag:'`
9651    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9652    (eval "$lt_compile" 2>out/conftest.err)
9653    ac_status=$?
9654    cat out/conftest.err >&5
9655    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9656    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9657    then
9658      # The compiler can only warn and ignore the option if not recognized
9659      # So say no if there are warnings
9660      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9661      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9662      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9663        lt_cv_prog_compiler_c_o=yes
9664      fi
9665    fi
9666    chmod u+w . 2>&5
9667    $RM conftest*
9668    # SGI C++ compiler will create directory out/ii_files/ for
9669    # template instantiation
9670    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9671    $RM out/* && rmdir out
9672    cd ..
9673    $RM -r conftest
9674    $RM conftest*
9675
9676 fi
9677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9678 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9679
9680
9681
9682
9683
9684
9685   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9686 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9687 if ${lt_cv_prog_compiler_c_o+:} false; then :
9688   $as_echo_n "(cached) " >&6
9689 else
9690   lt_cv_prog_compiler_c_o=no
9691    $RM -r conftest 2>/dev/null
9692    mkdir conftest
9693    cd conftest
9694    mkdir out
9695    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9696
9697    lt_compiler_flag="-o out/conftest2.$ac_objext"
9698    # Insert the option either (1) after the last *FLAGS variable, or
9699    # (2) before a word containing "conftest.", or (3) at the end.
9700    # Note that $ac_compile itself does not contain backslashes and begins
9701    # with a dollar sign (not a hyphen), so the echo should work correctly.
9702    lt_compile=`echo "$ac_compile" | $SED \
9703    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9704    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9705    -e 's:$: $lt_compiler_flag:'`
9706    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9707    (eval "$lt_compile" 2>out/conftest.err)
9708    ac_status=$?
9709    cat out/conftest.err >&5
9710    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9711    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9712    then
9713      # The compiler can only warn and ignore the option if not recognized
9714      # So say no if there are warnings
9715      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9716      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9717      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9718        lt_cv_prog_compiler_c_o=yes
9719      fi
9720    fi
9721    chmod u+w . 2>&5
9722    $RM conftest*
9723    # SGI C++ compiler will create directory out/ii_files/ for
9724    # template instantiation
9725    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9726    $RM out/* && rmdir out
9727    cd ..
9728    $RM -r conftest
9729    $RM conftest*
9730
9731 fi
9732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9733 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9734
9735
9736
9737
9738 hard_links="nottested"
9739 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9740   # do not overwrite the value of need_locks provided by the user
9741   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9742 $as_echo_n "checking if we can lock with hard links... " >&6; }
9743   hard_links=yes
9744   $RM conftest*
9745   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9746   touch conftest.a
9747   ln conftest.a conftest.b 2>&5 || hard_links=no
9748   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9750 $as_echo "$hard_links" >&6; }
9751   if test "$hard_links" = no; then
9752     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9753 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9754     need_locks=warn
9755   fi
9756 else
9757   need_locks=no
9758 fi
9759
9760
9761
9762
9763
9764
9765   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9766 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9767
9768   runpath_var=
9769   allow_undefined_flag=
9770   always_export_symbols=no
9771   archive_cmds=
9772   archive_expsym_cmds=
9773   compiler_needs_object=no
9774   enable_shared_with_static_runtimes=no
9775   export_dynamic_flag_spec=
9776   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9777   hardcode_automatic=no
9778   hardcode_direct=no
9779   hardcode_direct_absolute=no
9780   hardcode_libdir_flag_spec=
9781   hardcode_libdir_separator=
9782   hardcode_minus_L=no
9783   hardcode_shlibpath_var=unsupported
9784   inherit_rpath=no
9785   link_all_deplibs=unknown
9786   module_cmds=
9787   module_expsym_cmds=
9788   old_archive_from_new_cmds=
9789   old_archive_from_expsyms_cmds=
9790   thread_safe_flag_spec=
9791   whole_archive_flag_spec=
9792   # include_expsyms should be a list of space-separated symbols to be *always*
9793   # included in the symbol list
9794   include_expsyms=
9795   # exclude_expsyms can be an extended regexp of symbols to exclude
9796   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9797   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9798   # as well as any symbol that contains `d'.
9799   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9800   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9801   # platforms (ab)use it in PIC code, but their linkers get confused if
9802   # the symbol is explicitly referenced.  Since portable code cannot
9803   # rely on this symbol name, it's probably fine to never include it in
9804   # preloaded symbol tables.
9805   # Exclude shared library initialization/finalization symbols.
9806   extract_expsyms_cmds=
9807
9808   case $host_os in
9809   cygwin* | mingw* | pw32* | cegcc*)
9810     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9811     # When not using gcc, we currently assume that we are using
9812     # Microsoft Visual C++.
9813     if test "$GCC" != yes; then
9814       with_gnu_ld=no
9815     fi
9816     ;;
9817   interix*)
9818     # we just hope/assume this is gcc and not c89 (= MSVC++)
9819     with_gnu_ld=yes
9820     ;;
9821   openbsd*)
9822     with_gnu_ld=no
9823     ;;
9824   linux* | k*bsd*-gnu | gnu*)
9825     link_all_deplibs=no
9826     ;;
9827   esac
9828
9829   ld_shlibs=yes
9830
9831   # On some targets, GNU ld is compatible enough with the native linker
9832   # that we're better off using the native interface for both.
9833   lt_use_gnu_ld_interface=no
9834   if test "$with_gnu_ld" = yes; then
9835     case $host_os in
9836       aix*)
9837         # The AIX port of GNU ld has always aspired to compatibility
9838         # with the native linker.  However, as the warning in the GNU ld
9839         # block says, versions before 2.19.5* couldn't really create working
9840         # shared libraries, regardless of the interface used.
9841         case `$LD -v 2>&1` in
9842           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9843           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9844           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9845           *)
9846             lt_use_gnu_ld_interface=yes
9847             ;;
9848         esac
9849         ;;
9850       *)
9851         lt_use_gnu_ld_interface=yes
9852         ;;
9853     esac
9854   fi
9855
9856   if test "$lt_use_gnu_ld_interface" = yes; then
9857     # If archive_cmds runs LD, not CC, wlarc should be empty
9858     wlarc='${wl}'
9859
9860     # Set some defaults for GNU ld with shared library support. These
9861     # are reset later if shared libraries are not supported. Putting them
9862     # here allows them to be overridden if necessary.
9863     runpath_var=LD_RUN_PATH
9864     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9865     export_dynamic_flag_spec='${wl}--export-dynamic'
9866     # ancient GNU ld didn't support --whole-archive et. al.
9867     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9868       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9869     else
9870       whole_archive_flag_spec=
9871     fi
9872     supports_anon_versioning=no
9873     case `$LD -v 2>&1` in
9874       *GNU\ gold*) supports_anon_versioning=yes ;;
9875       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9876       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9877       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9878       *\ 2.11.*) ;; # other 2.11 versions
9879       *) supports_anon_versioning=yes ;;
9880     esac
9881
9882     # See if GNU ld supports shared libraries.
9883     case $host_os in
9884     aix[3-9]*)
9885       # On AIX/PPC, the GNU linker is very broken
9886       if test "$host_cpu" != ia64; then
9887         ld_shlibs=no
9888         cat <<_LT_EOF 1>&2
9889
9890 *** Warning: the GNU linker, at least up to release 2.19, is reported
9891 *** to be unable to reliably create shared libraries on AIX.
9892 *** Therefore, libtool is disabling shared libraries support.  If you
9893 *** really care for shared libraries, you may want to install binutils
9894 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9895 *** You will then need to restart the configuration process.
9896
9897 _LT_EOF
9898       fi
9899       ;;
9900
9901     amigaos*)
9902       case $host_cpu in
9903       powerpc)
9904             # see comment about AmigaOS4 .so support
9905             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9906             archive_expsym_cmds=''
9907         ;;
9908       m68k)
9909             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)'
9910             hardcode_libdir_flag_spec='-L$libdir'
9911             hardcode_minus_L=yes
9912         ;;
9913       esac
9914       ;;
9915
9916     beos*)
9917       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9918         allow_undefined_flag=unsupported
9919         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9920         # support --undefined.  This deserves some investigation.  FIXME
9921         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9922       else
9923         ld_shlibs=no
9924       fi
9925       ;;
9926
9927     cygwin* | mingw* | pw32* | cegcc*)
9928       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9929       # as there is no search path for DLLs.
9930       hardcode_libdir_flag_spec='-L$libdir'
9931       export_dynamic_flag_spec='${wl}--export-all-symbols'
9932       allow_undefined_flag=unsupported
9933       always_export_symbols=no
9934       enable_shared_with_static_runtimes=yes
9935       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'
9936       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9937
9938       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9939         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9940         # If the export-symbols file already is a .def file (1st line
9941         # is EXPORTS), use it as is; otherwise, prepend...
9942         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9943           cp $export_symbols $output_objdir/$soname.def;
9944         else
9945           echo EXPORTS > $output_objdir/$soname.def;
9946           cat $export_symbols >> $output_objdir/$soname.def;
9947         fi~
9948         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9949       else
9950         ld_shlibs=no
9951       fi
9952       ;;
9953
9954     haiku*)
9955       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9956       link_all_deplibs=yes
9957       ;;
9958
9959     interix[3-9]*)
9960       hardcode_direct=no
9961       hardcode_shlibpath_var=no
9962       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9963       export_dynamic_flag_spec='${wl}-E'
9964       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9965       # Instead, shared libraries are loaded at an image base (0x10000000 by
9966       # default) and relocated if they conflict, which is a slow very memory
9967       # consuming and fragmenting process.  To avoid this, we pick a random,
9968       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9969       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9970       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9971       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'
9972       ;;
9973
9974     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9975       tmp_diet=no
9976       if test "$host_os" = linux-dietlibc; then
9977         case $cc_basename in
9978           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9979         esac
9980       fi
9981       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9982          && test "$tmp_diet" = no
9983       then
9984         tmp_addflag=' $pic_flag'
9985         tmp_sharedflag='-shared'
9986         case $cc_basename,$host_cpu in
9987         pgcc*)                          # Portland Group C compiler
9988           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'
9989           tmp_addflag=' $pic_flag'
9990           ;;
9991         pgf77* | pgf90* | pgf95* | pgfortran*)
9992                                         # Portland Group f77 and f90 compilers
9993           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'
9994           tmp_addflag=' $pic_flag -Mnomain' ;;
9995         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9996           tmp_addflag=' -i_dynamic' ;;
9997         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9998           tmp_addflag=' -i_dynamic -nofor_main' ;;
9999         ifc* | ifort*)                  # Intel Fortran compiler
10000           tmp_addflag=' -nofor_main' ;;
10001         lf95*)                          # Lahey Fortran 8.1
10002           whole_archive_flag_spec=
10003           tmp_sharedflag='--shared' ;;
10004         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10005           tmp_sharedflag='-qmkshrobj'
10006           tmp_addflag= ;;
10007         nvcc*)  # Cuda Compiler Driver 2.2
10008           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'
10009           compiler_needs_object=yes
10010           ;;
10011         esac
10012         case `$CC -V 2>&1 | sed 5q` in
10013         *Sun\ C*)                       # Sun C 5.9
10014           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'
10015           compiler_needs_object=yes
10016           tmp_sharedflag='-G' ;;
10017         *Sun\ F*)                       # Sun Fortran 8.3
10018           tmp_sharedflag='-G' ;;
10019         esac
10020         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10021
10022         if test "x$supports_anon_versioning" = xyes; then
10023           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10024             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10025             echo "local: *; };" >> $output_objdir/$libname.ver~
10026             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10027         fi
10028
10029         case $cc_basename in
10030         xlf* | bgf* | bgxlf* | mpixlf*)
10031           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10032           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10033           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10034           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10035           if test "x$supports_anon_versioning" = xyes; then
10036             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10037               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10038               echo "local: *; };" >> $output_objdir/$libname.ver~
10039               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10040           fi
10041           ;;
10042         esac
10043       else
10044         ld_shlibs=no
10045       fi
10046       ;;
10047
10048     netbsd* | netbsdelf*-gnu)
10049       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10050         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10051         wlarc=
10052       else
10053         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10054         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10055       fi
10056       ;;
10057
10058     solaris*)
10059       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10060         ld_shlibs=no
10061         cat <<_LT_EOF 1>&2
10062
10063 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10064 *** create shared libraries on Solaris systems.  Therefore, libtool
10065 *** is disabling shared libraries support.  We urge you to upgrade GNU
10066 *** binutils to release 2.9.1 or newer.  Another option is to modify
10067 *** your PATH or compiler configuration so that the native linker is
10068 *** used, and then restart.
10069
10070 _LT_EOF
10071       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10072         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10073         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10074       else
10075         ld_shlibs=no
10076       fi
10077       ;;
10078
10079     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10080       case `$LD -v 2>&1` in
10081         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10082         ld_shlibs=no
10083         cat <<_LT_EOF 1>&2
10084
10085 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10086 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10087 *** is disabling shared libraries support.  We urge you to upgrade GNU
10088 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10089 *** your PATH or compiler configuration so that the native linker is
10090 *** used, and then restart.
10091
10092 _LT_EOF
10093         ;;
10094         *)
10095           # For security reasons, it is highly recommended that you always
10096           # use absolute paths for naming shared libraries, and exclude the
10097           # DT_RUNPATH tag from executables and libraries.  But doing so
10098           # requires that you compile everything twice, which is a pain.
10099           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10100             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10101             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10102             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10103           else
10104             ld_shlibs=no
10105           fi
10106         ;;
10107       esac
10108       ;;
10109
10110     sunos4*)
10111       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10112       wlarc=
10113       hardcode_direct=yes
10114       hardcode_shlibpath_var=no
10115       ;;
10116
10117     *)
10118       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10119         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10120         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10121       else
10122         ld_shlibs=no
10123       fi
10124       ;;
10125     esac
10126
10127     if test "$ld_shlibs" = no; then
10128       runpath_var=
10129       hardcode_libdir_flag_spec=
10130       export_dynamic_flag_spec=
10131       whole_archive_flag_spec=
10132     fi
10133   else
10134     # PORTME fill in a description of your system's linker (not GNU ld)
10135     case $host_os in
10136     aix3*)
10137       allow_undefined_flag=unsupported
10138       always_export_symbols=yes
10139       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'
10140       # Note: this linker hardcodes the directories in LIBPATH if there
10141       # are no directories specified by -L.
10142       hardcode_minus_L=yes
10143       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10144         # Neither direct hardcoding nor static linking is supported with a
10145         # broken collect2.
10146         hardcode_direct=unsupported
10147       fi
10148       ;;
10149
10150     aix[4-9]*)
10151       if test "$host_cpu" = ia64; then
10152         # On IA64, the linker does run time linking by default, so we don't
10153         # have to do anything special.
10154         aix_use_runtimelinking=no
10155         exp_sym_flag='-Bexport'
10156         no_entry_flag=""
10157       else
10158         # If we're using GNU nm, then we don't want the "-C" option.
10159         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10160         # Also, AIX nm treats weak defined symbols like other global
10161         # defined symbols, whereas GNU nm marks them as "W".
10162         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10163           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10164         else
10165           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10166         fi
10167         aix_use_runtimelinking=no
10168
10169         # Test if we are trying to use run time linking or normal
10170         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10171         # need to do runtime linking.
10172         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10173           for ld_flag in $LDFLAGS; do
10174           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10175             aix_use_runtimelinking=yes
10176             break
10177           fi
10178           done
10179           ;;
10180         esac
10181
10182         exp_sym_flag='-bexport'
10183         no_entry_flag='-bnoentry'
10184       fi
10185
10186       # When large executables or shared objects are built, AIX ld can
10187       # have problems creating the table of contents.  If linking a library
10188       # or program results in "error TOC overflow" add -mminimal-toc to
10189       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10190       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10191
10192       archive_cmds=''
10193       hardcode_direct=yes
10194       hardcode_direct_absolute=yes
10195       hardcode_libdir_separator=':'
10196       link_all_deplibs=yes
10197       file_list_spec='${wl}-f,'
10198
10199       if test "$GCC" = yes; then
10200         case $host_os in aix4.[012]|aix4.[012].*)
10201         # We only want to do this on AIX 4.2 and lower, the check
10202         # below for broken collect2 doesn't work under 4.3+
10203           collect2name=`${CC} -print-prog-name=collect2`
10204           if test -f "$collect2name" &&
10205            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10206           then
10207           # We have reworked collect2
10208           :
10209           else
10210           # We have old collect2
10211           hardcode_direct=unsupported
10212           # It fails to find uninstalled libraries when the uninstalled
10213           # path is not listed in the libpath.  Setting hardcode_minus_L
10214           # to unsupported forces relinking
10215           hardcode_minus_L=yes
10216           hardcode_libdir_flag_spec='-L$libdir'
10217           hardcode_libdir_separator=
10218           fi
10219           ;;
10220         esac
10221         shared_flag='-shared'
10222         if test "$aix_use_runtimelinking" = yes; then
10223           shared_flag="$shared_flag "'${wl}-G'
10224         fi
10225         link_all_deplibs=no
10226       else
10227         # not using gcc
10228         if test "$host_cpu" = ia64; then
10229         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10230         # chokes on -Wl,-G. The following line is correct:
10231           shared_flag='-G'
10232         else
10233           if test "$aix_use_runtimelinking" = yes; then
10234             shared_flag='${wl}-G'
10235           else
10236             shared_flag='${wl}-bM:SRE'
10237           fi
10238         fi
10239       fi
10240
10241       export_dynamic_flag_spec='${wl}-bexpall'
10242       # It seems that -bexpall does not export symbols beginning with
10243       # underscore (_), so it is better to generate a list of symbols to export.
10244       always_export_symbols=yes
10245       if test "$aix_use_runtimelinking" = yes; then
10246         # Warning - without using the other runtime loading flags (-brtl),
10247         # -berok will link without error, but may produce a broken library.
10248         allow_undefined_flag='-berok'
10249         # Determine the default libpath from the value encoded in an
10250         # empty executable.
10251         if test "${lt_cv_aix_libpath+set}" = set; then
10252   aix_libpath=$lt_cv_aix_libpath
10253 else
10254   if ${lt_cv_aix_libpath_+:} false; then :
10255   $as_echo_n "(cached) " >&6
10256 else
10257   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10258 /* end confdefs.h.  */
10259
10260 int
10261 main ()
10262 {
10263
10264   ;
10265   return 0;
10266 }
10267 _ACEOF
10268 if ac_fn_c_try_link "$LINENO"; then :
10269
10270   lt_aix_libpath_sed='
10271       /Import File Strings/,/^$/ {
10272           /^0/ {
10273               s/^0  *\([^ ]*\) *$/\1/
10274               p
10275           }
10276       }'
10277   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10278   # Check for a 64-bit object if we didn't find anything.
10279   if test -z "$lt_cv_aix_libpath_"; then
10280     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10281   fi
10282 fi
10283 rm -f core conftest.err conftest.$ac_objext \
10284     conftest$ac_exeext conftest.$ac_ext
10285   if test -z "$lt_cv_aix_libpath_"; then
10286     lt_cv_aix_libpath_="/usr/lib:/lib"
10287   fi
10288
10289 fi
10290
10291   aix_libpath=$lt_cv_aix_libpath_
10292 fi
10293
10294         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10295         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10296       else
10297         if test "$host_cpu" = ia64; then
10298           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10299           allow_undefined_flag="-z nodefs"
10300           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"
10301         else
10302          # Determine the default libpath from the value encoded in an
10303          # empty executable.
10304          if test "${lt_cv_aix_libpath+set}" = set; then
10305   aix_libpath=$lt_cv_aix_libpath
10306 else
10307   if ${lt_cv_aix_libpath_+:} false; then :
10308   $as_echo_n "(cached) " >&6
10309 else
10310   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10311 /* end confdefs.h.  */
10312
10313 int
10314 main ()
10315 {
10316
10317   ;
10318   return 0;
10319 }
10320 _ACEOF
10321 if ac_fn_c_try_link "$LINENO"; then :
10322
10323   lt_aix_libpath_sed='
10324       /Import File Strings/,/^$/ {
10325           /^0/ {
10326               s/^0  *\([^ ]*\) *$/\1/
10327               p
10328           }
10329       }'
10330   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10331   # Check for a 64-bit object if we didn't find anything.
10332   if test -z "$lt_cv_aix_libpath_"; then
10333     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10334   fi
10335 fi
10336 rm -f core conftest.err conftest.$ac_objext \
10337     conftest$ac_exeext conftest.$ac_ext
10338   if test -z "$lt_cv_aix_libpath_"; then
10339     lt_cv_aix_libpath_="/usr/lib:/lib"
10340   fi
10341
10342 fi
10343
10344   aix_libpath=$lt_cv_aix_libpath_
10345 fi
10346
10347          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10348           # Warning - without using the other run time loading flags,
10349           # -berok will link without error, but may produce a broken library.
10350           no_undefined_flag=' ${wl}-bernotok'
10351           allow_undefined_flag=' ${wl}-berok'
10352           if test "$with_gnu_ld" = yes; then
10353             # We only use this code for GNU lds that support --whole-archive.
10354             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10355           else
10356             # Exported symbols can be pulled into shared objects from archives
10357             whole_archive_flag_spec='$convenience'
10358           fi
10359           archive_cmds_need_lc=yes
10360           # This is similar to how AIX traditionally builds its shared libraries.
10361           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10362         fi
10363       fi
10364       ;;
10365
10366     amigaos*)
10367       case $host_cpu in
10368       powerpc)
10369             # see comment about AmigaOS4 .so support
10370             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10371             archive_expsym_cmds=''
10372         ;;
10373       m68k)
10374             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)'
10375             hardcode_libdir_flag_spec='-L$libdir'
10376             hardcode_minus_L=yes
10377         ;;
10378       esac
10379       ;;
10380
10381     bsdi[45]*)
10382       export_dynamic_flag_spec=-rdynamic
10383       ;;
10384
10385     cygwin* | mingw* | pw32* | cegcc*)
10386       # When not using gcc, we currently assume that we are using
10387       # Microsoft Visual C++.
10388       # hardcode_libdir_flag_spec is actually meaningless, as there is
10389       # no search path for DLLs.
10390       case $cc_basename in
10391       cl*)
10392         # Native MSVC
10393         hardcode_libdir_flag_spec=' '
10394         allow_undefined_flag=unsupported
10395         always_export_symbols=yes
10396         file_list_spec='@'
10397         # Tell ltmain to make .lib files, not .a files.
10398         libext=lib
10399         # Tell ltmain to make .dll files, not .so files.
10400         shrext_cmds=".dll"
10401         # FIXME: Setting linknames here is a bad hack.
10402         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10403         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10404             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10405           else
10406             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10407           fi~
10408           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10409           linknames='
10410         # The linker will not automatically build a static lib if we build a DLL.
10411         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10412         enable_shared_with_static_runtimes=yes
10413         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10414         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10415         # Don't use ranlib
10416         old_postinstall_cmds='chmod 644 $oldlib'
10417         postlink_cmds='lt_outputfile="@OUTPUT@"~
10418           lt_tool_outputfile="@TOOL_OUTPUT@"~
10419           case $lt_outputfile in
10420             *.exe|*.EXE) ;;
10421             *)
10422               lt_outputfile="$lt_outputfile.exe"
10423               lt_tool_outputfile="$lt_tool_outputfile.exe"
10424               ;;
10425           esac~
10426           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10427             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10428             $RM "$lt_outputfile.manifest";
10429           fi'
10430         ;;
10431       *)
10432         # Assume MSVC wrapper
10433         hardcode_libdir_flag_spec=' '
10434         allow_undefined_flag=unsupported
10435         # Tell ltmain to make .lib files, not .a files.
10436         libext=lib
10437         # Tell ltmain to make .dll files, not .so files.
10438         shrext_cmds=".dll"
10439         # FIXME: Setting linknames here is a bad hack.
10440         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10441         # The linker will automatically build a .lib file if we build a DLL.
10442         old_archive_from_new_cmds='true'
10443         # FIXME: Should let the user specify the lib program.
10444         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10445         enable_shared_with_static_runtimes=yes
10446         ;;
10447       esac
10448       ;;
10449
10450     darwin* | rhapsody*)
10451
10452
10453   archive_cmds_need_lc=no
10454   hardcode_direct=no
10455   hardcode_automatic=yes
10456   hardcode_shlibpath_var=unsupported
10457   if test "$lt_cv_ld_force_load" = "yes"; then
10458     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\"`'
10459
10460   else
10461     whole_archive_flag_spec=''
10462   fi
10463   link_all_deplibs=yes
10464   allow_undefined_flag="$_lt_dar_allow_undefined"
10465   case $cc_basename in
10466      ifort*) _lt_dar_can_shared=yes ;;
10467      *) _lt_dar_can_shared=$GCC ;;
10468   esac
10469   if test "$_lt_dar_can_shared" = "yes"; then
10470     output_verbose_link_cmd=func_echo_all
10471     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10472     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10473     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}"
10474     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}"
10475
10476   else
10477   ld_shlibs=no
10478   fi
10479
10480       ;;
10481
10482     dgux*)
10483       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10484       hardcode_libdir_flag_spec='-L$libdir'
10485       hardcode_shlibpath_var=no
10486       ;;
10487
10488     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10489     # support.  Future versions do this automatically, but an explicit c++rt0.o
10490     # does not break anything, and helps significantly (at the cost of a little
10491     # extra space).
10492     freebsd2.2*)
10493       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10494       hardcode_libdir_flag_spec='-R$libdir'
10495       hardcode_direct=yes
10496       hardcode_shlibpath_var=no
10497       ;;
10498
10499     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10500     freebsd2.*)
10501       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10502       hardcode_direct=yes
10503       hardcode_minus_L=yes
10504       hardcode_shlibpath_var=no
10505       ;;
10506
10507     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10508     freebsd* | dragonfly*)
10509       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10510       hardcode_libdir_flag_spec='-R$libdir'
10511       hardcode_direct=yes
10512       hardcode_shlibpath_var=no
10513       ;;
10514
10515     hpux9*)
10516       if test "$GCC" = yes; then
10517         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10518       else
10519         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10520       fi
10521       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10522       hardcode_libdir_separator=:
10523       hardcode_direct=yes
10524
10525       # hardcode_minus_L: Not really in the search PATH,
10526       # but as the default location of the library.
10527       hardcode_minus_L=yes
10528       export_dynamic_flag_spec='${wl}-E'
10529       ;;
10530
10531     hpux10*)
10532       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10533         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10534       else
10535         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10536       fi
10537       if test "$with_gnu_ld" = no; then
10538         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10539         hardcode_libdir_separator=:
10540         hardcode_direct=yes
10541         hardcode_direct_absolute=yes
10542         export_dynamic_flag_spec='${wl}-E'
10543         # hardcode_minus_L: Not really in the search PATH,
10544         # but as the default location of the library.
10545         hardcode_minus_L=yes
10546       fi
10547       ;;
10548
10549     hpux11*)
10550       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10551         case $host_cpu in
10552         hppa*64*)
10553           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10554           ;;
10555         ia64*)
10556           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10557           ;;
10558         *)
10559           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10560           ;;
10561         esac
10562       else
10563         case $host_cpu in
10564         hppa*64*)
10565           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10566           ;;
10567         ia64*)
10568           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10569           ;;
10570         *)
10571
10572           # Older versions of the 11.00 compiler do not understand -b yet
10573           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10574           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10575 $as_echo_n "checking if $CC understands -b... " >&6; }
10576 if ${lt_cv_prog_compiler__b+:} false; then :
10577   $as_echo_n "(cached) " >&6
10578 else
10579   lt_cv_prog_compiler__b=no
10580    save_LDFLAGS="$LDFLAGS"
10581    LDFLAGS="$LDFLAGS -b"
10582    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10583    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10584      # The linker can only warn and ignore the option if not recognized
10585      # So say no if there are warnings
10586      if test -s conftest.err; then
10587        # Append any errors to the config.log.
10588        cat conftest.err 1>&5
10589        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10590        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10591        if diff conftest.exp conftest.er2 >/dev/null; then
10592          lt_cv_prog_compiler__b=yes
10593        fi
10594      else
10595        lt_cv_prog_compiler__b=yes
10596      fi
10597    fi
10598    $RM -r conftest*
10599    LDFLAGS="$save_LDFLAGS"
10600
10601 fi
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10603 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10604
10605 if test x"$lt_cv_prog_compiler__b" = xyes; then
10606     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10607 else
10608     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10609 fi
10610
10611           ;;
10612         esac
10613       fi
10614       if test "$with_gnu_ld" = no; then
10615         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10616         hardcode_libdir_separator=:
10617
10618         case $host_cpu in
10619         hppa*64*|ia64*)
10620           hardcode_direct=no
10621           hardcode_shlibpath_var=no
10622           ;;
10623         *)
10624           hardcode_direct=yes
10625           hardcode_direct_absolute=yes
10626           export_dynamic_flag_spec='${wl}-E'
10627
10628           # hardcode_minus_L: Not really in the search PATH,
10629           # but as the default location of the library.
10630           hardcode_minus_L=yes
10631           ;;
10632         esac
10633       fi
10634       ;;
10635
10636     irix5* | irix6* | nonstopux*)
10637       if test "$GCC" = yes; then
10638         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'
10639         # Try to use the -exported_symbol ld option, if it does not
10640         # work, assume that -exports_file does not work either and
10641         # implicitly export all symbols.
10642         # This should be the same for all languages, so no per-tag cache variable.
10643         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10644 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10645 if ${lt_cv_irix_exported_symbol+:} false; then :
10646   $as_echo_n "(cached) " >&6
10647 else
10648   save_LDFLAGS="$LDFLAGS"
10649            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10650            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10651 /* end confdefs.h.  */
10652 int foo (void) { return 0; }
10653 _ACEOF
10654 if ac_fn_c_try_link "$LINENO"; then :
10655   lt_cv_irix_exported_symbol=yes
10656 else
10657   lt_cv_irix_exported_symbol=no
10658 fi
10659 rm -f core conftest.err conftest.$ac_objext \
10660     conftest$ac_exeext conftest.$ac_ext
10661            LDFLAGS="$save_LDFLAGS"
10662 fi
10663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10664 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10665         if test "$lt_cv_irix_exported_symbol" = yes; then
10666           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'
10667         fi
10668       else
10669         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'
10670         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'
10671       fi
10672       archive_cmds_need_lc='no'
10673       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10674       hardcode_libdir_separator=:
10675       inherit_rpath=yes
10676       link_all_deplibs=yes
10677       ;;
10678
10679     netbsd* | netbsdelf*-gnu)
10680       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10681         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10682       else
10683         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10684       fi
10685       hardcode_libdir_flag_spec='-R$libdir'
10686       hardcode_direct=yes
10687       hardcode_shlibpath_var=no
10688       ;;
10689
10690     newsos6)
10691       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10692       hardcode_direct=yes
10693       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10694       hardcode_libdir_separator=:
10695       hardcode_shlibpath_var=no
10696       ;;
10697
10698     *nto* | *qnx*)
10699       ;;
10700
10701     openbsd*)
10702       if test -f /usr/libexec/ld.so; then
10703         hardcode_direct=yes
10704         hardcode_shlibpath_var=no
10705         hardcode_direct_absolute=yes
10706         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10707           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10708           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10709           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10710           export_dynamic_flag_spec='${wl}-E'
10711         else
10712           case $host_os in
10713            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10714              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10715              hardcode_libdir_flag_spec='-R$libdir'
10716              ;;
10717            *)
10718              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10719              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10720              ;;
10721           esac
10722         fi
10723       else
10724         ld_shlibs=no
10725       fi
10726       ;;
10727
10728     os2*)
10729       hardcode_libdir_flag_spec='-L$libdir'
10730       hardcode_minus_L=yes
10731       allow_undefined_flag=unsupported
10732       archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10733       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10734       ;;
10735
10736     osf3*)
10737       if test "$GCC" = yes; then
10738         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10739         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'
10740       else
10741         allow_undefined_flag=' -expect_unresolved \*'
10742         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'
10743       fi
10744       archive_cmds_need_lc='no'
10745       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10746       hardcode_libdir_separator=:
10747       ;;
10748
10749     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10750       if test "$GCC" = yes; then
10751         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10752         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'
10753         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10754       else
10755         allow_undefined_flag=' -expect_unresolved \*'
10756         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'
10757         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~
10758         $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'
10759
10760         # Both c and cxx compiler support -rpath directly
10761         hardcode_libdir_flag_spec='-rpath $libdir'
10762       fi
10763       archive_cmds_need_lc='no'
10764       hardcode_libdir_separator=:
10765       ;;
10766
10767     solaris*)
10768       no_undefined_flag=' -z defs'
10769       if test "$GCC" = yes; then
10770         wlarc='${wl}'
10771         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10772         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10773           $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'
10774       else
10775         case `$CC -V 2>&1` in
10776         *"Compilers 5.0"*)
10777           wlarc=''
10778           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10779           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10780           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10781           ;;
10782         *)
10783           wlarc='${wl}'
10784           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10785           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10786           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10787           ;;
10788         esac
10789       fi
10790       hardcode_libdir_flag_spec='-R$libdir'
10791       hardcode_shlibpath_var=no
10792       case $host_os in
10793       solaris2.[0-5] | solaris2.[0-5].*) ;;
10794       *)
10795         # The compiler driver will combine and reorder linker options,
10796         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10797         # but is careful enough not to reorder.
10798         # Supported since Solaris 2.6 (maybe 2.5.1?)
10799         if test "$GCC" = yes; then
10800           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10801         else
10802           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10803         fi
10804         ;;
10805       esac
10806       link_all_deplibs=yes
10807       ;;
10808
10809     sunos4*)
10810       if test "x$host_vendor" = xsequent; then
10811         # Use $CC to link under sequent, because it throws in some extra .o
10812         # files that make .init and .fini sections work.
10813         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10814       else
10815         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10816       fi
10817       hardcode_libdir_flag_spec='-L$libdir'
10818       hardcode_direct=yes
10819       hardcode_minus_L=yes
10820       hardcode_shlibpath_var=no
10821       ;;
10822
10823     sysv4)
10824       case $host_vendor in
10825         sni)
10826           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10827           hardcode_direct=yes # is this really true???
10828         ;;
10829         siemens)
10830           ## LD is ld it makes a PLAMLIB
10831           ## CC just makes a GrossModule.
10832           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10833           reload_cmds='$CC -r -o $output$reload_objs'
10834           hardcode_direct=no
10835         ;;
10836         motorola)
10837           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10838           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10839         ;;
10840       esac
10841       runpath_var='LD_RUN_PATH'
10842       hardcode_shlibpath_var=no
10843       ;;
10844
10845     sysv4.3*)
10846       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10847       hardcode_shlibpath_var=no
10848       export_dynamic_flag_spec='-Bexport'
10849       ;;
10850
10851     sysv4*MP*)
10852       if test -d /usr/nec; then
10853         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10854         hardcode_shlibpath_var=no
10855         runpath_var=LD_RUN_PATH
10856         hardcode_runpath_var=yes
10857         ld_shlibs=yes
10858       fi
10859       ;;
10860
10861     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10862       no_undefined_flag='${wl}-z,text'
10863       archive_cmds_need_lc=no
10864       hardcode_shlibpath_var=no
10865       runpath_var='LD_RUN_PATH'
10866
10867       if test "$GCC" = yes; then
10868         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10869         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10870       else
10871         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10872         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10873       fi
10874       ;;
10875
10876     sysv5* | sco3.2v5* | sco5v6*)
10877       # Note: We can NOT use -z defs as we might desire, because we do not
10878       # link with -lc, and that would cause any symbols used from libc to
10879       # always be unresolved, which means just about no library would
10880       # ever link correctly.  If we're not using GNU ld we use -z text
10881       # though, which does catch some bad symbols but isn't as heavy-handed
10882       # as -z defs.
10883       no_undefined_flag='${wl}-z,text'
10884       allow_undefined_flag='${wl}-z,nodefs'
10885       archive_cmds_need_lc=no
10886       hardcode_shlibpath_var=no
10887       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10888       hardcode_libdir_separator=':'
10889       link_all_deplibs=yes
10890       export_dynamic_flag_spec='${wl}-Bexport'
10891       runpath_var='LD_RUN_PATH'
10892
10893       if test "$GCC" = yes; then
10894         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10895         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10896       else
10897         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10898         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10899       fi
10900       ;;
10901
10902     uts4*)
10903       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10904       hardcode_libdir_flag_spec='-L$libdir'
10905       hardcode_shlibpath_var=no
10906       ;;
10907
10908     *)
10909       ld_shlibs=no
10910       ;;
10911     esac
10912
10913     if test x$host_vendor = xsni; then
10914       case $host in
10915       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10916         export_dynamic_flag_spec='${wl}-Blargedynsym'
10917         ;;
10918       esac
10919     fi
10920   fi
10921
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10923 $as_echo "$ld_shlibs" >&6; }
10924 test "$ld_shlibs" = no && can_build_shared=no
10925
10926 with_gnu_ld=$with_gnu_ld
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942 #
10943 # Do we need to explicitly link libc?
10944 #
10945 case "x$archive_cmds_need_lc" in
10946 x|xyes)
10947   # Assume -lc should be added
10948   archive_cmds_need_lc=yes
10949
10950   if test "$enable_shared" = yes && test "$GCC" = yes; then
10951     case $archive_cmds in
10952     *'~'*)
10953       # FIXME: we may have to deal with multi-command sequences.
10954       ;;
10955     '$CC '*)
10956       # Test whether the compiler implicitly links with -lc since on some
10957       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10958       # to ld, don't add -lc before -lgcc.
10959       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10960 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10961 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10962   $as_echo_n "(cached) " >&6
10963 else
10964   $RM conftest*
10965         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10966
10967         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10968   (eval $ac_compile) 2>&5
10969   ac_status=$?
10970   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10971   test $ac_status = 0; } 2>conftest.err; then
10972           soname=conftest
10973           lib=conftest
10974           libobjs=conftest.$ac_objext
10975           deplibs=
10976           wl=$lt_prog_compiler_wl
10977           pic_flag=$lt_prog_compiler_pic
10978           compiler_flags=-v
10979           linker_flags=-v
10980           verstring=
10981           output_objdir=.
10982           libname=conftest
10983           lt_save_allow_undefined_flag=$allow_undefined_flag
10984           allow_undefined_flag=
10985           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10986   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10987   ac_status=$?
10988   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10989   test $ac_status = 0; }
10990           then
10991             lt_cv_archive_cmds_need_lc=no
10992           else
10993             lt_cv_archive_cmds_need_lc=yes
10994           fi
10995           allow_undefined_flag=$lt_save_allow_undefined_flag
10996         else
10997           cat conftest.err 1>&5
10998         fi
10999         $RM conftest*
11000
11001 fi
11002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11003 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11004       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11005       ;;
11006     esac
11007   fi
11008   ;;
11009 esac
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11163 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11164
11165 if test "$GCC" = yes; then
11166   case $host_os in
11167     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11168     *) lt_awk_arg="/^libraries:/" ;;
11169   esac
11170   case $host_os in
11171     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11172     *) lt_sed_strip_eq="s,=/,/,g" ;;
11173   esac
11174   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11175   case $lt_search_path_spec in
11176   *\;*)
11177     # if the path contains ";" then we assume it to be the separator
11178     # otherwise default to the standard path separator (i.e. ":") - it is
11179     # assumed that no part of a normal pathname contains ";" but that should
11180     # okay in the real world where ";" in dirpaths is itself problematic.
11181     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11182     ;;
11183   *)
11184     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11185     ;;
11186   esac
11187   # Ok, now we have the path, separated by spaces, we can step through it
11188   # and add multilib dir if necessary.
11189   lt_tmp_lt_search_path_spec=
11190   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11191   for lt_sys_path in $lt_search_path_spec; do
11192     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11193       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11194     else
11195       test -d "$lt_sys_path" && \
11196         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11197     fi
11198   done
11199   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11200 BEGIN {RS=" "; FS="/|\n";} {
11201   lt_foo="";
11202   lt_count=0;
11203   for (lt_i = NF; lt_i > 0; lt_i--) {
11204     if ($lt_i != "" && $lt_i != ".") {
11205       if ($lt_i == "..") {
11206         lt_count++;
11207       } else {
11208         if (lt_count == 0) {
11209           lt_foo="/" $lt_i lt_foo;
11210         } else {
11211           lt_count--;
11212         }
11213       }
11214     }
11215   }
11216   if (lt_foo != "") { lt_freq[lt_foo]++; }
11217   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11218 }'`
11219   # AWK program above erroneously prepends '/' to C:/dos/paths
11220   # for these hosts.
11221   case $host_os in
11222     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11223       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11224   esac
11225   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11226 else
11227   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11228 fi
11229 library_names_spec=
11230 libname_spec='lib$name'
11231 soname_spec=
11232 shrext_cmds=".so"
11233 postinstall_cmds=
11234 postuninstall_cmds=
11235 finish_cmds=
11236 finish_eval=
11237 shlibpath_var=
11238 shlibpath_overrides_runpath=unknown
11239 version_type=none
11240 dynamic_linker="$host_os ld.so"
11241 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11242 need_lib_prefix=unknown
11243 hardcode_into_libs=no
11244
11245 # when you set need_version to no, make sure it does not cause -set_version
11246 # flags to be left without arguments
11247 need_version=unknown
11248
11249 case $host_os in
11250 aix3*)
11251   version_type=linux # correct to gnu/linux during the next big refactor
11252   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11253   shlibpath_var=LIBPATH
11254
11255   # AIX 3 has no versioning support, so we append a major version to the name.
11256   soname_spec='${libname}${release}${shared_ext}$major'
11257   ;;
11258
11259 aix[4-9]*)
11260   version_type=linux # correct to gnu/linux during the next big refactor
11261   need_lib_prefix=no
11262   need_version=no
11263   hardcode_into_libs=yes
11264   if test "$host_cpu" = ia64; then
11265     # AIX 5 supports IA64
11266     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11267     shlibpath_var=LD_LIBRARY_PATH
11268   else
11269     # With GCC up to 2.95.x, collect2 would create an import file
11270     # for dependence libraries.  The import file would start with
11271     # the line `#! .'.  This would cause the generated library to
11272     # depend on `.', always an invalid library.  This was fixed in
11273     # development snapshots of GCC prior to 3.0.
11274     case $host_os in
11275       aix4 | aix4.[01] | aix4.[01].*)
11276       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11277            echo ' yes '
11278            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11279         :
11280       else
11281         can_build_shared=no
11282       fi
11283       ;;
11284     esac
11285     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11286     # soname into executable. Probably we can add versioning support to
11287     # collect2, so additional links can be useful in future.
11288     if test "$aix_use_runtimelinking" = yes; then
11289       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11290       # instead of lib<name>.a to let people know that these are not
11291       # typical AIX shared libraries.
11292       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11293     else
11294       # We preserve .a as extension for shared libraries through AIX4.2
11295       # and later when we are not doing run time linking.
11296       library_names_spec='${libname}${release}.a $libname.a'
11297       soname_spec='${libname}${release}${shared_ext}$major'
11298     fi
11299     shlibpath_var=LIBPATH
11300   fi
11301   ;;
11302
11303 amigaos*)
11304   case $host_cpu in
11305   powerpc)
11306     # Since July 2007 AmigaOS4 officially supports .so libraries.
11307     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11308     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11309     ;;
11310   m68k)
11311     library_names_spec='$libname.ixlibrary $libname.a'
11312     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11313     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11314     ;;
11315   esac
11316   ;;
11317
11318 beos*)
11319   library_names_spec='${libname}${shared_ext}'
11320   dynamic_linker="$host_os ld.so"
11321   shlibpath_var=LIBRARY_PATH
11322   ;;
11323
11324 bsdi[45]*)
11325   version_type=linux # correct to gnu/linux during the next big refactor
11326   need_version=no
11327   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11328   soname_spec='${libname}${release}${shared_ext}$major'
11329   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11330   shlibpath_var=LD_LIBRARY_PATH
11331   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11332   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11333   # the default ld.so.conf also contains /usr/contrib/lib and
11334   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11335   # libtool to hard-code these into programs
11336   ;;
11337
11338 cygwin* | mingw* | pw32* | cegcc*)
11339   version_type=windows
11340   shrext_cmds=".dll"
11341   need_version=no
11342   need_lib_prefix=no
11343
11344   case $GCC,$cc_basename in
11345   yes,*)
11346     # gcc
11347     library_names_spec='$libname.dll.a'
11348     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11349     postinstall_cmds='base_file=`basename \${file}`~
11350       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11351       dldir=$destdir/`dirname \$dlpath`~
11352       test -d \$dldir || mkdir -p \$dldir~
11353       $install_prog $dir/$dlname \$dldir/$dlname~
11354       chmod a+x \$dldir/$dlname~
11355       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11356         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11357       fi'
11358     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11359       dlpath=$dir/\$dldll~
11360        $RM \$dlpath'
11361     shlibpath_overrides_runpath=yes
11362
11363     case $host_os in
11364     cygwin*)
11365       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11366       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11367
11368       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11369       ;;
11370     mingw* | cegcc*)
11371       # MinGW DLLs use traditional 'lib' prefix
11372       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11373       ;;
11374     pw32*)
11375       # pw32 DLLs use 'pw' prefix rather than 'lib'
11376       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11377       ;;
11378     esac
11379     dynamic_linker='Win32 ld.exe'
11380     ;;
11381
11382   *,cl*)
11383     # Native MSVC
11384     libname_spec='$name'
11385     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11386     library_names_spec='${libname}.dll.lib'
11387
11388     case $build_os in
11389     mingw*)
11390       sys_lib_search_path_spec=
11391       lt_save_ifs=$IFS
11392       IFS=';'
11393       for lt_path in $LIB
11394       do
11395         IFS=$lt_save_ifs
11396         # Let DOS variable expansion print the short 8.3 style file name.
11397         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11398         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11399       done
11400       IFS=$lt_save_ifs
11401       # Convert to MSYS style.
11402       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11403       ;;
11404     cygwin*)
11405       # Convert to unix form, then to dos form, then back to unix form
11406       # but this time dos style (no spaces!) so that the unix form looks
11407       # like /cygdrive/c/PROGRA~1:/cygdr...
11408       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11409       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11410       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11411       ;;
11412     *)
11413       sys_lib_search_path_spec="$LIB"
11414       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11415         # It is most probably a Windows format PATH.
11416         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11417       else
11418         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11419       fi
11420       # FIXME: find the short name or the path components, as spaces are
11421       # common. (e.g. "Program Files" -> "PROGRA~1")
11422       ;;
11423     esac
11424
11425     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11426     postinstall_cmds='base_file=`basename \${file}`~
11427       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11428       dldir=$destdir/`dirname \$dlpath`~
11429       test -d \$dldir || mkdir -p \$dldir~
11430       $install_prog $dir/$dlname \$dldir/$dlname'
11431     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11432       dlpath=$dir/\$dldll~
11433        $RM \$dlpath'
11434     shlibpath_overrides_runpath=yes
11435     dynamic_linker='Win32 link.exe'
11436     ;;
11437
11438   *)
11439     # Assume MSVC wrapper
11440     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11441     dynamic_linker='Win32 ld.exe'
11442     ;;
11443   esac
11444   # FIXME: first we should search . and the directory the executable is in
11445   shlibpath_var=PATH
11446   ;;
11447
11448 darwin* | rhapsody*)
11449   dynamic_linker="$host_os dyld"
11450   version_type=darwin
11451   need_lib_prefix=no
11452   need_version=no
11453   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11454   soname_spec='${libname}${release}${major}$shared_ext'
11455   shlibpath_overrides_runpath=yes
11456   shlibpath_var=DYLD_LIBRARY_PATH
11457   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11458
11459   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11460   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11461   ;;
11462
11463 dgux*)
11464   version_type=linux # correct to gnu/linux during the next big refactor
11465   need_lib_prefix=no
11466   need_version=no
11467   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11468   soname_spec='${libname}${release}${shared_ext}$major'
11469   shlibpath_var=LD_LIBRARY_PATH
11470   ;;
11471
11472 freebsd* | dragonfly*)
11473   # DragonFly does not have aout.  When/if they implement a new
11474   # versioning mechanism, adjust this.
11475   if test -x /usr/bin/objformat; then
11476     objformat=`/usr/bin/objformat`
11477   else
11478     case $host_os in
11479     freebsd[23].*) objformat=aout ;;
11480     *) objformat=elf ;;
11481     esac
11482   fi
11483   version_type=freebsd-$objformat
11484   case $version_type in
11485     freebsd-elf*)
11486       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11487       need_version=no
11488       need_lib_prefix=no
11489       ;;
11490     freebsd-*)
11491       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11492       need_version=yes
11493       ;;
11494   esac
11495   shlibpath_var=LD_LIBRARY_PATH
11496   case $host_os in
11497   freebsd2.*)
11498     shlibpath_overrides_runpath=yes
11499     ;;
11500   freebsd3.[01]* | freebsdelf3.[01]*)
11501     shlibpath_overrides_runpath=yes
11502     hardcode_into_libs=yes
11503     ;;
11504   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11505   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11506     shlibpath_overrides_runpath=no
11507     hardcode_into_libs=yes
11508     ;;
11509   *) # from 4.6 on, and DragonFly
11510     shlibpath_overrides_runpath=yes
11511     hardcode_into_libs=yes
11512     ;;
11513   esac
11514   ;;
11515
11516 haiku*)
11517   version_type=linux # correct to gnu/linux during the next big refactor
11518   need_lib_prefix=no
11519   need_version=no
11520   dynamic_linker="$host_os runtime_loader"
11521   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11522   soname_spec='${libname}${release}${shared_ext}$major'
11523   shlibpath_var=LIBRARY_PATH
11524   shlibpath_overrides_runpath=yes
11525   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11526   hardcode_into_libs=yes
11527   ;;
11528
11529 hpux9* | hpux10* | hpux11*)
11530   # Give a soname corresponding to the major version so that dld.sl refuses to
11531   # link against other versions.
11532   version_type=sunos
11533   need_lib_prefix=no
11534   need_version=no
11535   case $host_cpu in
11536   ia64*)
11537     shrext_cmds='.so'
11538     hardcode_into_libs=yes
11539     dynamic_linker="$host_os dld.so"
11540     shlibpath_var=LD_LIBRARY_PATH
11541     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11542     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11543     soname_spec='${libname}${release}${shared_ext}$major'
11544     if test "X$HPUX_IA64_MODE" = X32; then
11545       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11546     else
11547       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11548     fi
11549     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11550     ;;
11551   hppa*64*)
11552     shrext_cmds='.sl'
11553     hardcode_into_libs=yes
11554     dynamic_linker="$host_os dld.sl"
11555     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11556     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11557     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11558     soname_spec='${libname}${release}${shared_ext}$major'
11559     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11560     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11561     ;;
11562   *)
11563     shrext_cmds='.sl'
11564     dynamic_linker="$host_os dld.sl"
11565     shlibpath_var=SHLIB_PATH
11566     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11567     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11568     soname_spec='${libname}${release}${shared_ext}$major'
11569     ;;
11570   esac
11571   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11572   postinstall_cmds='chmod 555 $lib'
11573   # or fails outright, so override atomically:
11574   install_override_mode=555
11575   ;;
11576
11577 interix[3-9]*)
11578   version_type=linux # correct to gnu/linux during the next big refactor
11579   need_lib_prefix=no
11580   need_version=no
11581   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11582   soname_spec='${libname}${release}${shared_ext}$major'
11583   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11584   shlibpath_var=LD_LIBRARY_PATH
11585   shlibpath_overrides_runpath=no
11586   hardcode_into_libs=yes
11587   ;;
11588
11589 irix5* | irix6* | nonstopux*)
11590   case $host_os in
11591     nonstopux*) version_type=nonstopux ;;
11592     *)
11593         if test "$lt_cv_prog_gnu_ld" = yes; then
11594                 version_type=linux # correct to gnu/linux during the next big refactor
11595         else
11596                 version_type=irix
11597         fi ;;
11598   esac
11599   need_lib_prefix=no
11600   need_version=no
11601   soname_spec='${libname}${release}${shared_ext}$major'
11602   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11603   case $host_os in
11604   irix5* | nonstopux*)
11605     libsuff= shlibsuff=
11606     ;;
11607   *)
11608     case $LD in # libtool.m4 will add one of these switches to LD
11609     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11610       libsuff= shlibsuff= libmagic=32-bit;;
11611     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11612       libsuff=32 shlibsuff=N32 libmagic=N32;;
11613     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11614       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11615     *) libsuff= shlibsuff= libmagic=never-match;;
11616     esac
11617     ;;
11618   esac
11619   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11620   shlibpath_overrides_runpath=no
11621   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11622   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11623   hardcode_into_libs=yes
11624   ;;
11625
11626 # No shared lib support for Linux oldld, aout, or coff.
11627 linux*oldld* | linux*aout* | linux*coff*)
11628   dynamic_linker=no
11629   ;;
11630
11631 # This must be glibc/ELF.
11632 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11633   version_type=linux # correct to gnu/linux during the next big refactor
11634   need_lib_prefix=no
11635   need_version=no
11636   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11637   soname_spec='${libname}${release}${shared_ext}$major'
11638   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11639   shlibpath_var=LD_LIBRARY_PATH
11640   shlibpath_overrides_runpath=no
11641
11642   # Some binutils ld are patched to set DT_RUNPATH
11643   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11644   $as_echo_n "(cached) " >&6
11645 else
11646   lt_cv_shlibpath_overrides_runpath=no
11647     save_LDFLAGS=$LDFLAGS
11648     save_libdir=$libdir
11649     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11650          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11651     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11652 /* end confdefs.h.  */
11653
11654 int
11655 main ()
11656 {
11657
11658   ;
11659   return 0;
11660 }
11661 _ACEOF
11662 if ac_fn_c_try_link "$LINENO"; then :
11663   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11664   lt_cv_shlibpath_overrides_runpath=yes
11665 fi
11666 fi
11667 rm -f core conftest.err conftest.$ac_objext \
11668     conftest$ac_exeext conftest.$ac_ext
11669     LDFLAGS=$save_LDFLAGS
11670     libdir=$save_libdir
11671
11672 fi
11673
11674   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11675
11676   # This implies no fast_install, which is unacceptable.
11677   # Some rework will be needed to allow for fast_install
11678   # before this can be enabled.
11679   hardcode_into_libs=yes
11680
11681   # Append ld.so.conf contents to the search path
11682   if test -f /etc/ld.so.conf; then
11683     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' ' '`
11684     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11685   fi
11686
11687   # We used to test for /lib/ld.so.1 and disable shared libraries on
11688   # powerpc, because MkLinux only supported shared libraries with the
11689   # GNU dynamic linker.  Since this was broken with cross compilers,
11690   # most powerpc-linux boxes support dynamic linking these days and
11691   # people can always --disable-shared, the test was removed, and we
11692   # assume the GNU/Linux dynamic linker is in use.
11693   dynamic_linker='GNU/Linux ld.so'
11694   ;;
11695
11696 netbsdelf*-gnu)
11697   version_type=linux
11698   need_lib_prefix=no
11699   need_version=no
11700   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11701   soname_spec='${libname}${release}${shared_ext}$major'
11702   shlibpath_var=LD_LIBRARY_PATH
11703   shlibpath_overrides_runpath=no
11704   hardcode_into_libs=yes
11705   dynamic_linker='NetBSD ld.elf_so'
11706   ;;
11707
11708 netbsd*)
11709   version_type=sunos
11710   need_lib_prefix=no
11711   need_version=no
11712   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11713     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11714     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11715     dynamic_linker='NetBSD (a.out) ld.so'
11716   else
11717     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11718     soname_spec='${libname}${release}${shared_ext}$major'
11719     dynamic_linker='NetBSD ld.elf_so'
11720   fi
11721   shlibpath_var=LD_LIBRARY_PATH
11722   shlibpath_overrides_runpath=yes
11723   hardcode_into_libs=yes
11724   ;;
11725
11726 newsos6)
11727   version_type=linux # correct to gnu/linux during the next big refactor
11728   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11729   shlibpath_var=LD_LIBRARY_PATH
11730   shlibpath_overrides_runpath=yes
11731   ;;
11732
11733 *nto* | *qnx*)
11734   version_type=qnx
11735   need_lib_prefix=no
11736   need_version=no
11737   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11738   soname_spec='${libname}${release}${shared_ext}$major'
11739   shlibpath_var=LD_LIBRARY_PATH
11740   shlibpath_overrides_runpath=no
11741   hardcode_into_libs=yes
11742   dynamic_linker='ldqnx.so'
11743   ;;
11744
11745 openbsd*)
11746   version_type=sunos
11747   sys_lib_dlsearch_path_spec="/usr/lib"
11748   need_lib_prefix=no
11749   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11750   case $host_os in
11751     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11752     *)                          need_version=no  ;;
11753   esac
11754   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11755   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11756   shlibpath_var=LD_LIBRARY_PATH
11757   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11758     case $host_os in
11759       openbsd2.[89] | openbsd2.[89].*)
11760         shlibpath_overrides_runpath=no
11761         ;;
11762       *)
11763         shlibpath_overrides_runpath=yes
11764         ;;
11765       esac
11766   else
11767     shlibpath_overrides_runpath=yes
11768   fi
11769   ;;
11770
11771 os2*)
11772   libname_spec='$name'
11773   shrext_cmds=".dll"
11774   need_lib_prefix=no
11775   library_names_spec='$libname${shared_ext} $libname.a'
11776   dynamic_linker='OS/2 ld.exe'
11777   shlibpath_var=LIBPATH
11778   ;;
11779
11780 osf3* | osf4* | osf5*)
11781   version_type=osf
11782   need_lib_prefix=no
11783   need_version=no
11784   soname_spec='${libname}${release}${shared_ext}$major'
11785   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11786   shlibpath_var=LD_LIBRARY_PATH
11787   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11788   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11789   ;;
11790
11791 rdos*)
11792   dynamic_linker=no
11793   ;;
11794
11795 solaris*)
11796   version_type=linux # correct to gnu/linux during the next big refactor
11797   need_lib_prefix=no
11798   need_version=no
11799   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11800   soname_spec='${libname}${release}${shared_ext}$major'
11801   shlibpath_var=LD_LIBRARY_PATH
11802   shlibpath_overrides_runpath=yes
11803   hardcode_into_libs=yes
11804   # ldd complains unless libraries are executable
11805   postinstall_cmds='chmod +x $lib'
11806   ;;
11807
11808 sunos4*)
11809   version_type=sunos
11810   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11811   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11812   shlibpath_var=LD_LIBRARY_PATH
11813   shlibpath_overrides_runpath=yes
11814   if test "$with_gnu_ld" = yes; then
11815     need_lib_prefix=no
11816   fi
11817   need_version=yes
11818   ;;
11819
11820 sysv4 | sysv4.3*)
11821   version_type=linux # correct to gnu/linux during the next big refactor
11822   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11823   soname_spec='${libname}${release}${shared_ext}$major'
11824   shlibpath_var=LD_LIBRARY_PATH
11825   case $host_vendor in
11826     sni)
11827       shlibpath_overrides_runpath=no
11828       need_lib_prefix=no
11829       runpath_var=LD_RUN_PATH
11830       ;;
11831     siemens)
11832       need_lib_prefix=no
11833       ;;
11834     motorola)
11835       need_lib_prefix=no
11836       need_version=no
11837       shlibpath_overrides_runpath=no
11838       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11839       ;;
11840   esac
11841   ;;
11842
11843 sysv4*MP*)
11844   if test -d /usr/nec ;then
11845     version_type=linux # correct to gnu/linux during the next big refactor
11846     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11847     soname_spec='$libname${shared_ext}.$major'
11848     shlibpath_var=LD_LIBRARY_PATH
11849   fi
11850   ;;
11851
11852 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11853   version_type=freebsd-elf
11854   need_lib_prefix=no
11855   need_version=no
11856   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11857   soname_spec='${libname}${release}${shared_ext}$major'
11858   shlibpath_var=LD_LIBRARY_PATH
11859   shlibpath_overrides_runpath=yes
11860   hardcode_into_libs=yes
11861   if test "$with_gnu_ld" = yes; then
11862     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11863   else
11864     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11865     case $host_os in
11866       sco3.2v5*)
11867         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11868         ;;
11869     esac
11870   fi
11871   sys_lib_dlsearch_path_spec='/usr/lib'
11872   ;;
11873
11874 tpf*)
11875   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11876   version_type=linux # correct to gnu/linux during the next big refactor
11877   need_lib_prefix=no
11878   need_version=no
11879   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11880   shlibpath_var=LD_LIBRARY_PATH
11881   shlibpath_overrides_runpath=no
11882   hardcode_into_libs=yes
11883   ;;
11884
11885 uts4*)
11886   version_type=linux # correct to gnu/linux during the next big refactor
11887   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11888   soname_spec='${libname}${release}${shared_ext}$major'
11889   shlibpath_var=LD_LIBRARY_PATH
11890   ;;
11891
11892 *)
11893   dynamic_linker=no
11894   ;;
11895 esac
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11897 $as_echo "$dynamic_linker" >&6; }
11898 test "$dynamic_linker" = no && can_build_shared=no
11899
11900 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11901 if test "$GCC" = yes; then
11902   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11903 fi
11904
11905 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11906   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11907 fi
11908 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11909   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11910 fi
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12004 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12005 hardcode_action=
12006 if test -n "$hardcode_libdir_flag_spec" ||
12007    test -n "$runpath_var" ||
12008    test "X$hardcode_automatic" = "Xyes" ; then
12009
12010   # We can hardcode non-existent directories.
12011   if test "$hardcode_direct" != no &&
12012      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12013      # have to relink, otherwise we might link with an installed library
12014      # when we should be linking with a yet-to-be-installed one
12015      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12016      test "$hardcode_minus_L" != no; then
12017     # Linking always hardcodes the temporary library directory.
12018     hardcode_action=relink
12019   else
12020     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12021     hardcode_action=immediate
12022   fi
12023 else
12024   # We cannot hardcode anything, or else we can only hardcode existing
12025   # directories.
12026   hardcode_action=unsupported
12027 fi
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12029 $as_echo "$hardcode_action" >&6; }
12030
12031 if test "$hardcode_action" = relink ||
12032    test "$inherit_rpath" = yes; then
12033   # Fast installation is not supported
12034   enable_fast_install=no
12035 elif test "$shlibpath_overrides_runpath" = yes ||
12036      test "$enable_shared" = no; then
12037   # Fast installation is not necessary
12038   enable_fast_install=needless
12039 fi
12040
12041
12042
12043
12044
12045
12046   if test "x$enable_dlopen" != xyes; then
12047   enable_dlopen=unknown
12048   enable_dlopen_self=unknown
12049   enable_dlopen_self_static=unknown
12050 else
12051   lt_cv_dlopen=no
12052   lt_cv_dlopen_libs=
12053
12054   case $host_os in
12055   beos*)
12056     lt_cv_dlopen="load_add_on"
12057     lt_cv_dlopen_libs=
12058     lt_cv_dlopen_self=yes
12059     ;;
12060
12061   mingw* | pw32* | cegcc*)
12062     lt_cv_dlopen="LoadLibrary"
12063     lt_cv_dlopen_libs=
12064     ;;
12065
12066   cygwin*)
12067     lt_cv_dlopen="dlopen"
12068     lt_cv_dlopen_libs=
12069     ;;
12070
12071   darwin*)
12072   # if libdl is installed we need to link against it
12073     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12074 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12075 if ${ac_cv_lib_dl_dlopen+:} false; then :
12076   $as_echo_n "(cached) " >&6
12077 else
12078   ac_check_lib_save_LIBS=$LIBS
12079 LIBS="-ldl  $LIBS"
12080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12081 /* end confdefs.h.  */
12082
12083 /* Override any GCC internal prototype to avoid an error.
12084    Use char because int might match the return type of a GCC
12085    builtin and then its argument prototype would still apply.  */
12086 #ifdef __cplusplus
12087 extern "C"
12088 #endif
12089 char dlopen ();
12090 int
12091 main ()
12092 {
12093 return dlopen ();
12094   ;
12095   return 0;
12096 }
12097 _ACEOF
12098 if ac_fn_c_try_link "$LINENO"; then :
12099   ac_cv_lib_dl_dlopen=yes
12100 else
12101   ac_cv_lib_dl_dlopen=no
12102 fi
12103 rm -f core conftest.err conftest.$ac_objext \
12104     conftest$ac_exeext conftest.$ac_ext
12105 LIBS=$ac_check_lib_save_LIBS
12106 fi
12107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12108 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12109 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12110   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12111 else
12112
12113     lt_cv_dlopen="dyld"
12114     lt_cv_dlopen_libs=
12115     lt_cv_dlopen_self=yes
12116
12117 fi
12118
12119     ;;
12120
12121   *)
12122     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12123 if test "x$ac_cv_func_shl_load" = xyes; then :
12124   lt_cv_dlopen="shl_load"
12125 else
12126   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12127 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12128 if ${ac_cv_lib_dld_shl_load+:} false; then :
12129   $as_echo_n "(cached) " >&6
12130 else
12131   ac_check_lib_save_LIBS=$LIBS
12132 LIBS="-ldld  $LIBS"
12133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12134 /* end confdefs.h.  */
12135
12136 /* Override any GCC internal prototype to avoid an error.
12137    Use char because int might match the return type of a GCC
12138    builtin and then its argument prototype would still apply.  */
12139 #ifdef __cplusplus
12140 extern "C"
12141 #endif
12142 char shl_load ();
12143 int
12144 main ()
12145 {
12146 return shl_load ();
12147   ;
12148   return 0;
12149 }
12150 _ACEOF
12151 if ac_fn_c_try_link "$LINENO"; then :
12152   ac_cv_lib_dld_shl_load=yes
12153 else
12154   ac_cv_lib_dld_shl_load=no
12155 fi
12156 rm -f core conftest.err conftest.$ac_objext \
12157     conftest$ac_exeext conftest.$ac_ext
12158 LIBS=$ac_check_lib_save_LIBS
12159 fi
12160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12161 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12162 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12163   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12164 else
12165   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12166 if test "x$ac_cv_func_dlopen" = xyes; then :
12167   lt_cv_dlopen="dlopen"
12168 else
12169   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12170 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12171 if ${ac_cv_lib_dl_dlopen+:} false; then :
12172   $as_echo_n "(cached) " >&6
12173 else
12174   ac_check_lib_save_LIBS=$LIBS
12175 LIBS="-ldl  $LIBS"
12176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12177 /* end confdefs.h.  */
12178
12179 /* Override any GCC internal prototype to avoid an error.
12180    Use char because int might match the return type of a GCC
12181    builtin and then its argument prototype would still apply.  */
12182 #ifdef __cplusplus
12183 extern "C"
12184 #endif
12185 char dlopen ();
12186 int
12187 main ()
12188 {
12189 return dlopen ();
12190   ;
12191   return 0;
12192 }
12193 _ACEOF
12194 if ac_fn_c_try_link "$LINENO"; then :
12195   ac_cv_lib_dl_dlopen=yes
12196 else
12197   ac_cv_lib_dl_dlopen=no
12198 fi
12199 rm -f core conftest.err conftest.$ac_objext \
12200     conftest$ac_exeext conftest.$ac_ext
12201 LIBS=$ac_check_lib_save_LIBS
12202 fi
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12204 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12205 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12206   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12207 else
12208   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12209 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12210 if ${ac_cv_lib_svld_dlopen+:} false; then :
12211   $as_echo_n "(cached) " >&6
12212 else
12213   ac_check_lib_save_LIBS=$LIBS
12214 LIBS="-lsvld  $LIBS"
12215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12216 /* end confdefs.h.  */
12217
12218 /* Override any GCC internal prototype to avoid an error.
12219    Use char because int might match the return type of a GCC
12220    builtin and then its argument prototype would still apply.  */
12221 #ifdef __cplusplus
12222 extern "C"
12223 #endif
12224 char dlopen ();
12225 int
12226 main ()
12227 {
12228 return dlopen ();
12229   ;
12230   return 0;
12231 }
12232 _ACEOF
12233 if ac_fn_c_try_link "$LINENO"; then :
12234   ac_cv_lib_svld_dlopen=yes
12235 else
12236   ac_cv_lib_svld_dlopen=no
12237 fi
12238 rm -f core conftest.err conftest.$ac_objext \
12239     conftest$ac_exeext conftest.$ac_ext
12240 LIBS=$ac_check_lib_save_LIBS
12241 fi
12242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12243 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12244 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12245   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12246 else
12247   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12248 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12249 if ${ac_cv_lib_dld_dld_link+:} false; then :
12250   $as_echo_n "(cached) " >&6
12251 else
12252   ac_check_lib_save_LIBS=$LIBS
12253 LIBS="-ldld  $LIBS"
12254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12255 /* end confdefs.h.  */
12256
12257 /* Override any GCC internal prototype to avoid an error.
12258    Use char because int might match the return type of a GCC
12259    builtin and then its argument prototype would still apply.  */
12260 #ifdef __cplusplus
12261 extern "C"
12262 #endif
12263 char dld_link ();
12264 int
12265 main ()
12266 {
12267 return dld_link ();
12268   ;
12269   return 0;
12270 }
12271 _ACEOF
12272 if ac_fn_c_try_link "$LINENO"; then :
12273   ac_cv_lib_dld_dld_link=yes
12274 else
12275   ac_cv_lib_dld_dld_link=no
12276 fi
12277 rm -f core conftest.err conftest.$ac_objext \
12278     conftest$ac_exeext conftest.$ac_ext
12279 LIBS=$ac_check_lib_save_LIBS
12280 fi
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12282 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12283 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12284   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12285 fi
12286
12287
12288 fi
12289
12290
12291 fi
12292
12293
12294 fi
12295
12296
12297 fi
12298
12299
12300 fi
12301
12302     ;;
12303   esac
12304
12305   if test "x$lt_cv_dlopen" != xno; then
12306     enable_dlopen=yes
12307   else
12308     enable_dlopen=no
12309   fi
12310
12311   case $lt_cv_dlopen in
12312   dlopen)
12313     save_CPPFLAGS="$CPPFLAGS"
12314     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12315
12316     save_LDFLAGS="$LDFLAGS"
12317     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12318
12319     save_LIBS="$LIBS"
12320     LIBS="$lt_cv_dlopen_libs $LIBS"
12321
12322     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12323 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12324 if ${lt_cv_dlopen_self+:} false; then :
12325   $as_echo_n "(cached) " >&6
12326 else
12327           if test "$cross_compiling" = yes; then :
12328   lt_cv_dlopen_self=cross
12329 else
12330   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12331   lt_status=$lt_dlunknown
12332   cat > conftest.$ac_ext <<_LT_EOF
12333 #line $LINENO "configure"
12334 #include "confdefs.h"
12335
12336 #if HAVE_DLFCN_H
12337 #include <dlfcn.h>
12338 #endif
12339
12340 #include <stdio.h>
12341
12342 #ifdef RTLD_GLOBAL
12343 #  define LT_DLGLOBAL           RTLD_GLOBAL
12344 #else
12345 #  ifdef DL_GLOBAL
12346 #    define LT_DLGLOBAL         DL_GLOBAL
12347 #  else
12348 #    define LT_DLGLOBAL         0
12349 #  endif
12350 #endif
12351
12352 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12353    find out it does not work in some platform. */
12354 #ifndef LT_DLLAZY_OR_NOW
12355 #  ifdef RTLD_LAZY
12356 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12357 #  else
12358 #    ifdef DL_LAZY
12359 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12360 #    else
12361 #      ifdef RTLD_NOW
12362 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12363 #      else
12364 #        ifdef DL_NOW
12365 #          define LT_DLLAZY_OR_NOW      DL_NOW
12366 #        else
12367 #          define LT_DLLAZY_OR_NOW      0
12368 #        endif
12369 #      endif
12370 #    endif
12371 #  endif
12372 #endif
12373
12374 /* When -fvisbility=hidden is used, assume the code has been annotated
12375    correspondingly for the symbols needed.  */
12376 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12377 int fnord () __attribute__((visibility("default")));
12378 #endif
12379
12380 int fnord () { return 42; }
12381 int main ()
12382 {
12383   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12384   int status = $lt_dlunknown;
12385
12386   if (self)
12387     {
12388       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12389       else
12390         {
12391           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12392           else puts (dlerror ());
12393         }
12394       /* dlclose (self); */
12395     }
12396   else
12397     puts (dlerror ());
12398
12399   return status;
12400 }
12401 _LT_EOF
12402   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12403   (eval $ac_link) 2>&5
12404   ac_status=$?
12405   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12406   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12407     (./conftest; exit; ) >&5 2>/dev/null
12408     lt_status=$?
12409     case x$lt_status in
12410       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12411       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12412       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12413     esac
12414   else :
12415     # compilation failed
12416     lt_cv_dlopen_self=no
12417   fi
12418 fi
12419 rm -fr conftest*
12420
12421
12422 fi
12423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12424 $as_echo "$lt_cv_dlopen_self" >&6; }
12425
12426     if test "x$lt_cv_dlopen_self" = xyes; then
12427       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12428       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12429 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12430 if ${lt_cv_dlopen_self_static+:} false; then :
12431   $as_echo_n "(cached) " >&6
12432 else
12433           if test "$cross_compiling" = yes; then :
12434   lt_cv_dlopen_self_static=cross
12435 else
12436   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12437   lt_status=$lt_dlunknown
12438   cat > conftest.$ac_ext <<_LT_EOF
12439 #line $LINENO "configure"
12440 #include "confdefs.h"
12441
12442 #if HAVE_DLFCN_H
12443 #include <dlfcn.h>
12444 #endif
12445
12446 #include <stdio.h>
12447
12448 #ifdef RTLD_GLOBAL
12449 #  define LT_DLGLOBAL           RTLD_GLOBAL
12450 #else
12451 #  ifdef DL_GLOBAL
12452 #    define LT_DLGLOBAL         DL_GLOBAL
12453 #  else
12454 #    define LT_DLGLOBAL         0
12455 #  endif
12456 #endif
12457
12458 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12459    find out it does not work in some platform. */
12460 #ifndef LT_DLLAZY_OR_NOW
12461 #  ifdef RTLD_LAZY
12462 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12463 #  else
12464 #    ifdef DL_LAZY
12465 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12466 #    else
12467 #      ifdef RTLD_NOW
12468 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12469 #      else
12470 #        ifdef DL_NOW
12471 #          define LT_DLLAZY_OR_NOW      DL_NOW
12472 #        else
12473 #          define LT_DLLAZY_OR_NOW      0
12474 #        endif
12475 #      endif
12476 #    endif
12477 #  endif
12478 #endif
12479
12480 /* When -fvisbility=hidden is used, assume the code has been annotated
12481    correspondingly for the symbols needed.  */
12482 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12483 int fnord () __attribute__((visibility("default")));
12484 #endif
12485
12486 int fnord () { return 42; }
12487 int main ()
12488 {
12489   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12490   int status = $lt_dlunknown;
12491
12492   if (self)
12493     {
12494       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12495       else
12496         {
12497           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12498           else puts (dlerror ());
12499         }
12500       /* dlclose (self); */
12501     }
12502   else
12503     puts (dlerror ());
12504
12505   return status;
12506 }
12507 _LT_EOF
12508   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12509   (eval $ac_link) 2>&5
12510   ac_status=$?
12511   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12512   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12513     (./conftest; exit; ) >&5 2>/dev/null
12514     lt_status=$?
12515     case x$lt_status in
12516       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12517       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12518       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12519     esac
12520   else :
12521     # compilation failed
12522     lt_cv_dlopen_self_static=no
12523   fi
12524 fi
12525 rm -fr conftest*
12526
12527
12528 fi
12529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12530 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12531     fi
12532
12533     CPPFLAGS="$save_CPPFLAGS"
12534     LDFLAGS="$save_LDFLAGS"
12535     LIBS="$save_LIBS"
12536     ;;
12537   esac
12538
12539   case $lt_cv_dlopen_self in
12540   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12541   *) enable_dlopen_self=unknown ;;
12542   esac
12543
12544   case $lt_cv_dlopen_self_static in
12545   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12546   *) enable_dlopen_self_static=unknown ;;
12547   esac
12548 fi
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566 striplib=
12567 old_striplib=
12568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12569 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12570 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12571   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12572   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12574 $as_echo "yes" >&6; }
12575 else
12576 # FIXME - insert some real tests, host_os isn't really good enough
12577   case $host_os in
12578   darwin*)
12579     if test -n "$STRIP" ; then
12580       striplib="$STRIP -x"
12581       old_striplib="$STRIP -S"
12582       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12583 $as_echo "yes" >&6; }
12584     else
12585       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12586 $as_echo "no" >&6; }
12587     fi
12588     ;;
12589   *)
12590     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12591 $as_echo "no" >&6; }
12592     ;;
12593   esac
12594 fi
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607   # Report which library types will actually be built
12608   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12609 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12611 $as_echo "$can_build_shared" >&6; }
12612
12613   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12614 $as_echo_n "checking whether to build shared libraries... " >&6; }
12615   test "$can_build_shared" = "no" && enable_shared=no
12616
12617   # On AIX, shared libraries and static libraries use the same namespace, and
12618   # are all built from PIC.
12619   case $host_os in
12620   aix3*)
12621     test "$enable_shared" = yes && enable_static=no
12622     if test -n "$RANLIB"; then
12623       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12624       postinstall_cmds='$RANLIB $lib'
12625     fi
12626     ;;
12627
12628   aix[4-9]*)
12629     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12630       test "$enable_shared" = yes && enable_static=no
12631     fi
12632     ;;
12633   esac
12634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12635 $as_echo "$enable_shared" >&6; }
12636
12637   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12638 $as_echo_n "checking whether to build static libraries... " >&6; }
12639   # Make sure either enable_shared or enable_static is yes.
12640   test "$enable_shared" = yes || enable_static=yes
12641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12642 $as_echo "$enable_static" >&6; }
12643
12644
12645
12646
12647 fi
12648 ac_ext=c
12649 ac_cpp='$CPP $CPPFLAGS'
12650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12653
12654 CC="$lt_save_CC"
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670         ac_config_commands="$ac_config_commands libtool"
12671
12672
12673
12674
12675 # Only expand once:
12676
12677
12678
12679
12680         misc_cflags=""
12681         misc_ldflags=""
12682         # Check whether --enable-optimization was given.
12683 if test "${enable_optimization+set}" = set; then :
12684   enableval=$enable_optimization;
12685                 if (test "${enableval}" = "no"); then
12686                         misc_cflags="$misc_cflags -O0"
12687                 fi
12688
12689 fi
12690
12691         # Check whether --enable-debug was given.
12692 if test "${enable_debug+set}" = set; then :
12693   enableval=$enable_debug;
12694                 if (test "${enableval}" = "yes" &&
12695                                 test "${ac_cv_prog_cc_g}" = "yes"); then
12696                         misc_cflags="$misc_cflags -g"
12697                 fi
12698
12699 fi
12700
12701         # Check whether --enable-pie was given.
12702 if test "${enable_pie+set}" = set; then :
12703   enableval=$enable_pie;
12704                 if (test "${enableval}" = "yes" &&
12705                                 test "${ac_cv_prog_cc_pie}" = "yes"); then
12706                         misc_cflags="$misc_cflags -fPIC"
12707                         misc_ldflags="$misc_ldflags -pie"
12708                 fi
12709
12710 fi
12711
12712         MISC_CFLAGS=$misc_cflags
12713
12714         MISC_LDFLAGS=$misc_ldflags
12715
12716
12717
12718 # Check whether --enable-threads was given.
12719 if test "${enable_threads+set}" = set; then :
12720   enableval=$enable_threads; enable_threads=${enableval}
12721 fi
12722
12723
12724 ac_fn_c_check_func "$LINENO" "signalfd" "ac_cv_func_signalfd"
12725 if test "x$ac_cv_func_signalfd" = xyes; then :
12726   dummy=yes
12727 else
12728   as_fn_error $? "signalfd support is required" "$LINENO" 5
12729 fi
12730
12731
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
12733 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
12734 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
12735   $as_echo_n "(cached) " >&6
12736 else
12737   ac_check_lib_save_LIBS=$LIBS
12738 LIBS="-lrt  $LIBS"
12739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12740 /* end confdefs.h.  */
12741
12742 /* Override any GCC internal prototype to avoid an error.
12743    Use char because int might match the return type of a GCC
12744    builtin and then its argument prototype would still apply.  */
12745 #ifdef __cplusplus
12746 extern "C"
12747 #endif
12748 char clock_gettime ();
12749 int
12750 main ()
12751 {
12752 return clock_gettime ();
12753   ;
12754   return 0;
12755 }
12756 _ACEOF
12757 if ac_fn_c_try_link "$LINENO"; then :
12758   ac_cv_lib_rt_clock_gettime=yes
12759 else
12760   ac_cv_lib_rt_clock_gettime=no
12761 fi
12762 rm -f core conftest.err conftest.$ac_objext \
12763     conftest$ac_exeext conftest.$ac_ext
12764 LIBS=$ac_check_lib_save_LIBS
12765 fi
12766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
12767 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
12768 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
12769   dummy=yes
12770 else
12771   as_fn_error $? "realtime clock support is required" "$LINENO" 5
12772 fi
12773
12774
12775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
12776 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
12777 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
12778   $as_echo_n "(cached) " >&6
12779 else
12780   ac_check_lib_save_LIBS=$LIBS
12781 LIBS="-lpthread  $LIBS"
12782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12783 /* end confdefs.h.  */
12784
12785 /* Override any GCC internal prototype to avoid an error.
12786    Use char because int might match the return type of a GCC
12787    builtin and then its argument prototype would still apply.  */
12788 #ifdef __cplusplus
12789 extern "C"
12790 #endif
12791 char pthread_create ();
12792 int
12793 main ()
12794 {
12795 return pthread_create ();
12796   ;
12797   return 0;
12798 }
12799 _ACEOF
12800 if ac_fn_c_try_link "$LINENO"; then :
12801   ac_cv_lib_pthread_pthread_create=yes
12802 else
12803   ac_cv_lib_pthread_pthread_create=no
12804 fi
12805 rm -f core conftest.err conftest.$ac_objext \
12806     conftest$ac_exeext conftest.$ac_ext
12807 LIBS=$ac_check_lib_save_LIBS
12808 fi
12809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
12810 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
12811 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
12812   dummy=yes
12813 else
12814   as_fn_error $? "posix thread support is required" "$LINENO" 5
12815 fi
12816
12817
12818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12819 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12820 if ${ac_cv_lib_dl_dlopen+:} false; then :
12821   $as_echo_n "(cached) " >&6
12822 else
12823   ac_check_lib_save_LIBS=$LIBS
12824 LIBS="-ldl  $LIBS"
12825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12826 /* end confdefs.h.  */
12827
12828 /* Override any GCC internal prototype to avoid an error.
12829    Use char because int might match the return type of a GCC
12830    builtin and then its argument prototype would still apply.  */
12831 #ifdef __cplusplus
12832 extern "C"
12833 #endif
12834 char dlopen ();
12835 int
12836 main ()
12837 {
12838 return dlopen ();
12839   ;
12840   return 0;
12841 }
12842 _ACEOF
12843 if ac_fn_c_try_link "$LINENO"; then :
12844   ac_cv_lib_dl_dlopen=yes
12845 else
12846   ac_cv_lib_dl_dlopen=no
12847 fi
12848 rm -f core conftest.err conftest.$ac_objext \
12849     conftest$ac_exeext conftest.$ac_ext
12850 LIBS=$ac_check_lib_save_LIBS
12851 fi
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12853 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12854 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12855   dummy=yes
12856 else
12857   as_fn_error $? "dynamic linking loader is required" "$LINENO" 5
12858 fi
12859
12860
12861
12862 pkg_failed=no
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
12864 $as_echo_n "checking for GLIB... " >&6; }
12865
12866 if test -n "$GLIB_CFLAGS"; then
12867     pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
12868  elif test -n "$PKG_CONFIG"; then
12869     if test -n "$PKG_CONFIG" && \
12870     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.28\""; } >&5
12871   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.28") 2>&5
12872   ac_status=$?
12873   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12874   test $ac_status = 0; }; then
12875   pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.28" 2>/dev/null`
12876                       test "x$?" != "x0" && pkg_failed=yes
12877 else
12878   pkg_failed=yes
12879 fi
12880  else
12881     pkg_failed=untried
12882 fi
12883 if test -n "$GLIB_LIBS"; then
12884     pkg_cv_GLIB_LIBS="$GLIB_LIBS"
12885  elif test -n "$PKG_CONFIG"; then
12886     if test -n "$PKG_CONFIG" && \
12887     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.28\""; } >&5
12888   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.28") 2>&5
12889   ac_status=$?
12890   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12891   test $ac_status = 0; }; then
12892   pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.28" 2>/dev/null`
12893                       test "x$?" != "x0" && pkg_failed=yes
12894 else
12895   pkg_failed=yes
12896 fi
12897  else
12898     pkg_failed=untried
12899 fi
12900
12901
12902
12903 if test $pkg_failed = yes; then
12904         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12905 $as_echo "no" >&6; }
12906
12907 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12908         _pkg_short_errors_supported=yes
12909 else
12910         _pkg_short_errors_supported=no
12911 fi
12912         if test $_pkg_short_errors_supported = yes; then
12913                 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.28" 2>&1`
12914         else
12915                 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.28" 2>&1`
12916         fi
12917         # Put the nasty error message in config.log where it belongs
12918         echo "$GLIB_PKG_ERRORS" >&5
12919
12920         as_fn_error $? "GLib >= 2.28 is required" "$LINENO" 5
12921 elif test $pkg_failed = untried; then
12922         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12923 $as_echo "no" >&6; }
12924         as_fn_error $? "GLib >= 2.28 is required" "$LINENO" 5
12925 else
12926         GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
12927         GLIB_LIBS=$pkg_cv_GLIB_LIBS
12928         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12929 $as_echo "yes" >&6; }
12930         dummy=yes
12931 fi
12932
12933
12934
12935 if (test "${enable_threads}" = "yes"); then
12936
12937 $as_echo "#define NEED_THREADS 1" >>confdefs.h
12938
12939
12940 pkg_failed=no
12941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTHREAD" >&5
12942 $as_echo_n "checking for GTHREAD... " >&6; }
12943
12944 if test -n "$GTHREAD_CFLAGS"; then
12945     pkg_cv_GTHREAD_CFLAGS="$GTHREAD_CFLAGS"
12946  elif test -n "$PKG_CONFIG"; then
12947     if test -n "$PKG_CONFIG" && \
12948     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gthread-2.0 >= 2.16\""; } >&5
12949   ($PKG_CONFIG --exists --print-errors "gthread-2.0 >= 2.16") 2>&5
12950   ac_status=$?
12951   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12952   test $ac_status = 0; }; then
12953   pkg_cv_GTHREAD_CFLAGS=`$PKG_CONFIG --cflags "gthread-2.0 >= 2.16" 2>/dev/null`
12954                       test "x$?" != "x0" && pkg_failed=yes
12955 else
12956   pkg_failed=yes
12957 fi
12958  else
12959     pkg_failed=untried
12960 fi
12961 if test -n "$GTHREAD_LIBS"; then
12962     pkg_cv_GTHREAD_LIBS="$GTHREAD_LIBS"
12963  elif test -n "$PKG_CONFIG"; then
12964     if test -n "$PKG_CONFIG" && \
12965     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gthread-2.0 >= 2.16\""; } >&5
12966   ($PKG_CONFIG --exists --print-errors "gthread-2.0 >= 2.16") 2>&5
12967   ac_status=$?
12968   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12969   test $ac_status = 0; }; then
12970   pkg_cv_GTHREAD_LIBS=`$PKG_CONFIG --libs "gthread-2.0 >= 2.16" 2>/dev/null`
12971                       test "x$?" != "x0" && pkg_failed=yes
12972 else
12973   pkg_failed=yes
12974 fi
12975  else
12976     pkg_failed=untried
12977 fi
12978
12979
12980
12981 if test $pkg_failed = yes; then
12982         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12983 $as_echo "no" >&6; }
12984
12985 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12986         _pkg_short_errors_supported=yes
12987 else
12988         _pkg_short_errors_supported=no
12989 fi
12990         if test $_pkg_short_errors_supported = yes; then
12991                 GTHREAD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gthread-2.0 >= 2.16" 2>&1`
12992         else
12993                 GTHREAD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gthread-2.0 >= 2.16" 2>&1`
12994         fi
12995         # Put the nasty error message in config.log where it belongs
12996         echo "$GTHREAD_PKG_ERRORS" >&5
12997
12998         as_fn_error $? "GThread >= 2.16 is required" "$LINENO" 5
12999 elif test $pkg_failed = untried; then
13000         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13001 $as_echo "no" >&6; }
13002         as_fn_error $? "GThread >= 2.16 is required" "$LINENO" 5
13003 else
13004         GTHREAD_CFLAGS=$pkg_cv_GTHREAD_CFLAGS
13005         GTHREAD_LIBS=$pkg_cv_GTHREAD_LIBS
13006         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13007 $as_echo "yes" >&6; }
13008         dummy=yes
13009 fi
13010         GLIB_CFLAGS="$GLIB_CFLAGS $GTHREAD_CFLAGS"
13011         GLIB_LIBS="$GLIB_LIBS $GTHREAD_LIBS"
13012 fi
13013
13014
13015 pkg_failed=no
13016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
13017 $as_echo_n "checking for DBUS... " >&6; }
13018
13019 if test -n "$DBUS_CFLAGS"; then
13020     pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
13021  elif test -n "$PKG_CONFIG"; then
13022     if test -n "$PKG_CONFIG" && \
13023     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1 >= 1.6\""; } >&5
13024   ($PKG_CONFIG --exists --print-errors "dbus-1 >= 1.6") 2>&5
13025   ac_status=$?
13026   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13027   test $ac_status = 0; }; then
13028   pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.6" 2>/dev/null`
13029                       test "x$?" != "x0" && pkg_failed=yes
13030 else
13031   pkg_failed=yes
13032 fi
13033  else
13034     pkg_failed=untried
13035 fi
13036 if test -n "$DBUS_LIBS"; then
13037     pkg_cv_DBUS_LIBS="$DBUS_LIBS"
13038  elif test -n "$PKG_CONFIG"; then
13039     if test -n "$PKG_CONFIG" && \
13040     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1 >= 1.6\""; } >&5
13041   ($PKG_CONFIG --exists --print-errors "dbus-1 >= 1.6") 2>&5
13042   ac_status=$?
13043   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13044   test $ac_status = 0; }; then
13045   pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.6" 2>/dev/null`
13046                       test "x$?" != "x0" && pkg_failed=yes
13047 else
13048   pkg_failed=yes
13049 fi
13050  else
13051     pkg_failed=untried
13052 fi
13053
13054
13055
13056 if test $pkg_failed = yes; then
13057         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13058 $as_echo "no" >&6; }
13059
13060 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13061         _pkg_short_errors_supported=yes
13062 else
13063         _pkg_short_errors_supported=no
13064 fi
13065         if test $_pkg_short_errors_supported = yes; then
13066                 DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbus-1 >= 1.6" 2>&1`
13067         else
13068                 DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbus-1 >= 1.6" 2>&1`
13069         fi
13070         # Put the nasty error message in config.log where it belongs
13071         echo "$DBUS_PKG_ERRORS" >&5
13072
13073         as_fn_error $? "D-Bus >= 1.6 is required" "$LINENO" 5
13074 elif test $pkg_failed = untried; then
13075         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13076 $as_echo "no" >&6; }
13077         as_fn_error $? "D-Bus >= 1.6 is required" "$LINENO" 5
13078 else
13079         DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
13080         DBUS_LIBS=$pkg_cv_DBUS_LIBS
13081         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13082 $as_echo "yes" >&6; }
13083         dummy=yes
13084 fi
13085
13086
13087
13088
13089 # Check whether --with-dbusconfdir was given.
13090 if test "${with_dbusconfdir+set}" = set; then :
13091   withval=$with_dbusconfdir; path_dbusconfdir=${withval}
13092 fi
13093
13094 if (test -z "${path_dbusconfdir}"); then
13095         { $as_echo "$as_me:${as_lineno-$LINENO}: checking D-Bus configuration directory" >&5
13096 $as_echo_n "checking D-Bus configuration directory... " >&6; }
13097         path_dbusconfdir="`$PKG_CONFIG --variable=sysconfdir dbus-1`"
13098         if (test -z "${path_dbusconfdir}"); then
13099                 as_fn_error $? "D-Bus configuration directory is required" "$LINENO" 5
13100         fi
13101         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${path_dbusconfdir}" >&5
13102 $as_echo "${path_dbusconfdir}" >&6; }
13103 fi
13104 DBUS_CONFDIR=${path_dbusconfdir}
13105
13106
13107
13108 # Check whether --with-dbussystembusdir was given.
13109 if test "${with_dbussystembusdir+set}" = set; then :
13110   withval=$with_dbussystembusdir; path_dbussystembusdir=${withval}
13111 fi
13112
13113 if (test -z "${path_dbussystembusdir}"); then
13114         { $as_echo "$as_me:${as_lineno-$LINENO}: checking D-Bus system bus services dir" >&5
13115 $as_echo_n "checking D-Bus system bus services dir... " >&6; }
13116         path_dbussystembusdir="`$PKG_CONFIG --variable=system_bus_services_dir dbus-1`"
13117         if (test -z "${path_dbussystembusdir}"); then
13118                 as_fn_error $? "D-Bus system bus services directory is required" "$LINENO" 5
13119         fi
13120         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${path_dbussystembusdir}" >&5
13121 $as_echo "${path_dbussystembusdir}" >&6; }
13122 fi
13123 DBUS_SYSTEMBUSDIR=${path_dbussystembusdir}
13124
13125
13126
13127 # Check whether --with-dbussessionbusdir was given.
13128 if test "${with_dbussessionbusdir+set}" = set; then :
13129   withval=$with_dbussessionbusdir; path_dbussessionbusdir=${withval}
13130 fi
13131
13132 if (test -z "${path_dbussessionbusdir}"); then
13133         { $as_echo "$as_me:${as_lineno-$LINENO}: checking D-Bus session bus services dir" >&5
13134 $as_echo_n "checking D-Bus session bus services dir... " >&6; }
13135         path_dbussessionbusdir="`$PKG_CONFIG --variable=session_bus_services_dir dbus-1`"
13136         if (test -z "${path_dbussessionbusdir}"); then
13137                 as_fn_error $? "D-Bus session bus services directory is required" "$LINENO" 5
13138         fi
13139         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${path_dbussessionbusdir}" >&5
13140 $as_echo "${path_dbussessionbusdir}" >&6; }
13141 fi
13142 DBUS_SESSIONBUSDIR=${path_dbussessionbusdir}
13143
13144
13145 # Check whether --enable-library was given.
13146 if test "${enable_library+set}" = set; then :
13147   enableval=$enable_library; enable_library=${enableval}
13148 fi
13149
13150  if test "${enable_library}" = "yes"; then
13151   LIBRARY_TRUE=
13152   LIBRARY_FALSE='#'
13153 else
13154   LIBRARY_TRUE='#'
13155   LIBRARY_FALSE=
13156 fi
13157
13158
13159 # Check whether --enable-test was given.
13160 if test "${enable_test+set}" = set; then :
13161   enableval=$enable_test; enable_test=${enableval}
13162 fi
13163
13164  if test "${enable_test}" = "yes"; then
13165   TEST_TRUE=
13166   TEST_FALSE='#'
13167 else
13168   TEST_TRUE='#'
13169   TEST_FALSE=
13170 fi
13171
13172
13173 # Check whether --enable-tools was given.
13174 if test "${enable_tools+set}" = set; then :
13175   enableval=$enable_tools; enable_tools=${enableval}
13176 fi
13177
13178  if test "${enable_tools}" != "no"; then
13179   TOOLS_TRUE=
13180   TOOLS_FALSE='#'
13181 else
13182   TOOLS_TRUE='#'
13183   TOOLS_FALSE=
13184 fi
13185
13186
13187 # Check whether --enable-monitor was given.
13188 if test "${enable_monitor+set}" = set; then :
13189   enableval=$enable_monitor; enable_monitor=${enableval}
13190 fi
13191
13192  if test "${enable_monitor}" != "no"; then
13193   MONITOR_TRUE=
13194   MONITOR_FALSE='#'
13195 else
13196   MONITOR_TRUE='#'
13197   MONITOR_FALSE=
13198 fi
13199
13200
13201 # Check whether --enable-udev was given.
13202 if test "${enable_udev+set}" = set; then :
13203   enableval=$enable_udev; enable_udev=${enableval}
13204 fi
13205
13206 if (test "${enable_tools}" != "no" && test "${enable_udev}" != "no"); then
13207
13208 pkg_failed=no
13209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UDEV" >&5
13210 $as_echo_n "checking for UDEV... " >&6; }
13211
13212 if test -n "$UDEV_CFLAGS"; then
13213     pkg_cv_UDEV_CFLAGS="$UDEV_CFLAGS"
13214  elif test -n "$PKG_CONFIG"; then
13215     if test -n "$PKG_CONFIG" && \
13216     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 143\""; } >&5
13217   ($PKG_CONFIG --exists --print-errors "libudev >= 143") 2>&5
13218   ac_status=$?
13219   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13220   test $ac_status = 0; }; then
13221   pkg_cv_UDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev >= 143" 2>/dev/null`
13222                       test "x$?" != "x0" && pkg_failed=yes
13223 else
13224   pkg_failed=yes
13225 fi
13226  else
13227     pkg_failed=untried
13228 fi
13229 if test -n "$UDEV_LIBS"; then
13230     pkg_cv_UDEV_LIBS="$UDEV_LIBS"
13231  elif test -n "$PKG_CONFIG"; then
13232     if test -n "$PKG_CONFIG" && \
13233     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 143\""; } >&5
13234   ($PKG_CONFIG --exists --print-errors "libudev >= 143") 2>&5
13235   ac_status=$?
13236   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13237   test $ac_status = 0; }; then
13238   pkg_cv_UDEV_LIBS=`$PKG_CONFIG --libs "libudev >= 143" 2>/dev/null`
13239                       test "x$?" != "x0" && pkg_failed=yes
13240 else
13241   pkg_failed=yes
13242 fi
13243  else
13244     pkg_failed=untried
13245 fi
13246
13247
13248
13249 if test $pkg_failed = yes; then
13250         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13251 $as_echo "no" >&6; }
13252
13253 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13254         _pkg_short_errors_supported=yes
13255 else
13256         _pkg_short_errors_supported=no
13257 fi
13258         if test $_pkg_short_errors_supported = yes; then
13259                 UDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libudev >= 143" 2>&1`
13260         else
13261                 UDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libudev >= 143" 2>&1`
13262         fi
13263         # Put the nasty error message in config.log where it belongs
13264         echo "$UDEV_PKG_ERRORS" >&5
13265
13266         as_fn_error $? "libudev >= 143 is required" "$LINENO" 5
13267 elif test $pkg_failed = untried; then
13268         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13269 $as_echo "no" >&6; }
13270         as_fn_error $? "libudev >= 143 is required" "$LINENO" 5
13271 else
13272         UDEV_CFLAGS=$pkg_cv_UDEV_CFLAGS
13273         UDEV_LIBS=$pkg_cv_UDEV_LIBS
13274         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13275 $as_echo "yes" >&6; }
13276         dummy=yes
13277 fi
13278
13279
13280         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev_hwdb_new in -ludev" >&5
13281 $as_echo_n "checking for udev_hwdb_new in -ludev... " >&6; }
13282 if ${ac_cv_lib_udev_udev_hwdb_new+:} false; then :
13283   $as_echo_n "(cached) " >&6
13284 else
13285   ac_check_lib_save_LIBS=$LIBS
13286 LIBS="-ludev  $LIBS"
13287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13288 /* end confdefs.h.  */
13289
13290 /* Override any GCC internal prototype to avoid an error.
13291    Use char because int might match the return type of a GCC
13292    builtin and then its argument prototype would still apply.  */
13293 #ifdef __cplusplus
13294 extern "C"
13295 #endif
13296 char udev_hwdb_new ();
13297 int
13298 main ()
13299 {
13300 return udev_hwdb_new ();
13301   ;
13302   return 0;
13303 }
13304 _ACEOF
13305 if ac_fn_c_try_link "$LINENO"; then :
13306   ac_cv_lib_udev_udev_hwdb_new=yes
13307 else
13308   ac_cv_lib_udev_udev_hwdb_new=no
13309 fi
13310 rm -f core conftest.err conftest.$ac_objext \
13311     conftest$ac_exeext conftest.$ac_ext
13312 LIBS=$ac_check_lib_save_LIBS
13313 fi
13314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_udev_udev_hwdb_new" >&5
13315 $as_echo "$ac_cv_lib_udev_udev_hwdb_new" >&6; }
13316 if test "x$ac_cv_lib_udev_udev_hwdb_new" = xyes; then :
13317
13318 $as_echo "#define HAVE_UDEV_HWDB_NEW 1" >>confdefs.h
13319
13320 fi
13321
13322 fi
13323  if test "${enable_udev}" != "no"; then
13324   UDEV_TRUE=
13325   UDEV_FALSE='#'
13326 else
13327   UDEV_TRUE='#'
13328   UDEV_FALSE=
13329 fi
13330
13331
13332
13333 # Check whether --with-udevdir was given.
13334 if test "${with_udevdir+set}" = set; then :
13335   withval=$with_udevdir; path_udevdir=${withval}
13336 fi
13337
13338 if (test "${enable_udev}" != "no" && test -z "${path_udevdir}"); then
13339         { $as_echo "$as_me:${as_lineno-$LINENO}: checking udev directory" >&5
13340 $as_echo_n "checking udev directory... " >&6; }
13341         path_udevdir="`$PKG_CONFIG --variable=udevdir udev`"
13342         if (test -z "${path_udevdir}"); then
13343                 as_fn_error $? "udev directory is required" "$LINENO" 5
13344         fi
13345         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${path_udevdir}" >&5
13346 $as_echo "${path_udevdir}" >&6; }
13347 fi
13348 UDEV_DIR=${path_udevdir}
13349
13350
13351  if test "${enable_tools}" != "no" &&
13352                                                 test "${enable_udev}" != "no"; then
13353   HID2HCI_TRUE=
13354   HID2HCI_FALSE='#'
13355 else
13356   HID2HCI_TRUE='#'
13357   HID2HCI_FALSE=
13358 fi
13359
13360
13361 # Check whether --enable-cups was given.
13362 if test "${enable_cups+set}" = set; then :
13363   enableval=$enable_cups; enable_cups=${enableval}
13364 fi
13365
13366  if test "${enable_cups}" != "no"; then
13367   CUPS_TRUE=
13368   CUPS_FALSE='#'
13369 else
13370   CUPS_TRUE='#'
13371   CUPS_FALSE=
13372 fi
13373
13374
13375 # Check whether --enable-obex was given.
13376 if test "${enable_obex+set}" = set; then :
13377   enableval=$enable_obex; enable_obex=${enableval}
13378 fi
13379
13380 if (test "${enable_obex}" != "no"); then
13381
13382 pkg_failed=no
13383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICAL" >&5
13384 $as_echo_n "checking for ICAL... " >&6; }
13385
13386 if test -n "$ICAL_CFLAGS"; then
13387     pkg_cv_ICAL_CFLAGS="$ICAL_CFLAGS"
13388  elif test -n "$PKG_CONFIG"; then
13389     if test -n "$PKG_CONFIG" && \
13390     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libical\""; } >&5
13391   ($PKG_CONFIG --exists --print-errors "libical") 2>&5
13392   ac_status=$?
13393   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13394   test $ac_status = 0; }; then
13395   pkg_cv_ICAL_CFLAGS=`$PKG_CONFIG --cflags "libical" 2>/dev/null`
13396                       test "x$?" != "x0" && pkg_failed=yes
13397 else
13398   pkg_failed=yes
13399 fi
13400  else
13401     pkg_failed=untried
13402 fi
13403 if test -n "$ICAL_LIBS"; then
13404     pkg_cv_ICAL_LIBS="$ICAL_LIBS"
13405  elif test -n "$PKG_CONFIG"; then
13406     if test -n "$PKG_CONFIG" && \
13407     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libical\""; } >&5
13408   ($PKG_CONFIG --exists --print-errors "libical") 2>&5
13409   ac_status=$?
13410   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13411   test $ac_status = 0; }; then
13412   pkg_cv_ICAL_LIBS=`$PKG_CONFIG --libs "libical" 2>/dev/null`
13413                       test "x$?" != "x0" && pkg_failed=yes
13414 else
13415   pkg_failed=yes
13416 fi
13417  else
13418     pkg_failed=untried
13419 fi
13420
13421
13422
13423 if test $pkg_failed = yes; then
13424         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13425 $as_echo "no" >&6; }
13426
13427 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13428         _pkg_short_errors_supported=yes
13429 else
13430         _pkg_short_errors_supported=no
13431 fi
13432         if test $_pkg_short_errors_supported = yes; then
13433                 ICAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libical" 2>&1`
13434         else
13435                 ICAL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libical" 2>&1`
13436         fi
13437         # Put the nasty error message in config.log where it belongs
13438         echo "$ICAL_PKG_ERRORS" >&5
13439
13440         as_fn_error $? "libical is required" "$LINENO" 5
13441 elif test $pkg_failed = untried; then
13442         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13443 $as_echo "no" >&6; }
13444         as_fn_error $? "libical is required" "$LINENO" 5
13445 else
13446         ICAL_CFLAGS=$pkg_cv_ICAL_CFLAGS
13447         ICAL_LIBS=$pkg_cv_ICAL_LIBS
13448         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13449 $as_echo "yes" >&6; }
13450         dummy=yes
13451 fi
13452
13453
13454 fi
13455  if test "${enable_obex}" != "no"; then
13456   OBEX_TRUE=
13457   OBEX_FALSE='#'
13458 else
13459   OBEX_TRUE='#'
13460   OBEX_FALSE=
13461 fi
13462
13463
13464 # Check whether --enable-client was given.
13465 if test "${enable_client+set}" = set; then :
13466   enableval=$enable_client; enable_client=${enableval}
13467 fi
13468
13469  if test "${enable_client}" != "no"; then
13470   CLIENT_TRUE=
13471   CLIENT_FALSE='#'
13472 else
13473   CLIENT_TRUE='#'
13474   CLIENT_FALSE=
13475 fi
13476
13477
13478 if (test "${enable_client}" != "no"); then
13479         for ac_header in readline/readline.h
13480 do :
13481   ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
13482 if test "x$ac_cv_header_readline_readline_h" = xyes; then :
13483   cat >>confdefs.h <<_ACEOF
13484 #define HAVE_READLINE_READLINE_H 1
13485 _ACEOF
13486  enable_readline=yes
13487 else
13488   as_fn_error $? "readline header files are required" "$LINENO" 5
13489 fi
13490
13491 done
13492
13493 fi
13494  if test "${enable_readline}" = "yes"; then
13495   READLINE_TRUE=
13496   READLINE_FALSE='#'
13497 else
13498   READLINE_TRUE='#'
13499   READLINE_FALSE=
13500 fi
13501
13502
13503 # Check whether --enable-systemd was given.
13504 if test "${enable_systemd+set}" = set; then :
13505   enableval=$enable_systemd; enable_systemd=${enableval}
13506 fi
13507
13508  if test "${enable_systemd}" != "no"; then
13509   SYSTEMD_TRUE=
13510   SYSTEMD_FALSE='#'
13511 else
13512   SYSTEMD_TRUE='#'
13513   SYSTEMD_FALSE=
13514 fi
13515
13516
13517
13518 # Check whether --with-systemdsystemunitdir was given.
13519 if test "${with_systemdsystemunitdir+set}" = set; then :
13520   withval=$with_systemdsystemunitdir; path_systemunitdir=${withval}
13521 fi
13522
13523 if (test "${enable_systemd}" != "no" && test -z "${path_systemunitdir}"); then
13524         { $as_echo "$as_me:${as_lineno-$LINENO}: checking systemd system unit dir" >&5
13525 $as_echo_n "checking systemd system unit dir... " >&6; }
13526         path_systemunitdir="`$PKG_CONFIG --variable=systemdsystemunitdir systemd`"
13527         if (test -z "${path_systemunitdir}"); then
13528                 as_fn_error $? "systemd system unit directory is required" "$LINENO" 5
13529         fi
13530         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${path_systemunitdir}" >&5
13531 $as_echo "${path_systemunitdir}" >&6; }
13532 fi
13533 SYSTEMD_SYSTEMUNITDIR=${path_systemunitdir}
13534
13535
13536
13537 # Check whether --with-systemduserunitdir was given.
13538 if test "${with_systemduserunitdir+set}" = set; then :
13539   withval=$with_systemduserunitdir; path_userunitdir=${withval}
13540 fi
13541
13542 if (test "${enable_systemd}" != "no" && test -z "${path_userunitdir}"); then
13543         { $as_echo "$as_me:${as_lineno-$LINENO}: checking systemd user unit dir" >&5
13544 $as_echo_n "checking systemd user unit dir... " >&6; }
13545         path_userunitdir="`$PKG_CONFIG --variable=systemduserunitdir systemd`"
13546         if (test -z "${path_userunitdir}"); then
13547                 as_fn_error $? "systemd user unit directory is required" "$LINENO" 5
13548         fi
13549         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${path_userunitdir}" >&5
13550 $as_echo "${path_userunitdir}" >&6; }
13551 fi
13552 SYSTEMD_USERUNITDIR=${path_userunitdir}
13553
13554
13555 # Check whether --enable-datafiles was given.
13556 if test "${enable_datafiles+set}" = set; then :
13557   enableval=$enable_datafiles; enable_datafiles=${enableval}
13558 fi
13559
13560  if test "${enable_datafiles}" != "no"; then
13561   DATAFILES_TRUE=
13562   DATAFILES_FALSE='#'
13563 else
13564   DATAFILES_TRUE='#'
13565   DATAFILES_FALSE=
13566 fi
13567
13568
13569 # Check whether --enable-experimental was given.
13570 if test "${enable_experimental+set}" = set; then :
13571   enableval=$enable_experimental; enable_experimental=${enableval}
13572 fi
13573
13574  if test "${enable_experimental}" = "yes"; then
13575   EXPERIMENTAL_TRUE=
13576   EXPERIMENTAL_FALSE='#'
13577 else
13578   EXPERIMENTAL_TRUE='#'
13579   EXPERIMENTAL_FALSE=
13580 fi
13581
13582
13583 # Check whether --enable-sixaxis was given.
13584 if test "${enable_sixaxis+set}" = set; then :
13585   enableval=$enable_sixaxis; enable_sixaxis=${enableval}
13586 fi
13587
13588  if test "${enable_sixaxis}" = "yes" &&
13589                                          test "${enable_udev}" != "no"; then
13590   SIXAXIS_TRUE=
13591   SIXAXIS_FALSE='#'
13592 else
13593   SIXAXIS_TRUE='#'
13594   SIXAXIS_FALSE=
13595 fi
13596
13597
13598 if (test "${prefix}" = "NONE"); then
13599                 if (test "$localstatedir" = '${prefix}/var'); then
13600                 localstatedir='/var'
13601
13602         fi
13603
13604         prefix="${ac_default_prefix}"
13605 fi
13606
13607 if (test "$localstatedir" = '${prefix}/var'); then
13608         storagedir="${prefix}/var/lib/bluetooth"
13609 else
13610         storagedir="${localstatedir}/lib/bluetooth"
13611 fi
13612
13613 cat >>confdefs.h <<_ACEOF
13614 #define STORAGEDIR "${storagedir}"
13615 _ACEOF
13616
13617
13618 if (test "$sysconfdir" = '${prefix}/etc'); then
13619         configdir="${prefix}/etc/bluetooth"
13620 else
13621         configdir="${sysconfdir}/bluetooth"
13622 fi
13623
13624 cat >>confdefs.h <<_ACEOF
13625 #define CONFIGDIR "${configdir}"
13626 _ACEOF
13627
13628 CONFIGDIR="${configdir}"
13629
13630
13631 # Check whether --enable-android was given.
13632 if test "${enable_android+set}" = set; then :
13633   enableval=$enable_android; enable_android=${enableval}
13634 fi
13635
13636  if test "${enable_android}" = "yes"; then
13637   ANDROID_TRUE=
13638   ANDROID_FALSE='#'
13639 else
13640   ANDROID_TRUE='#'
13641   ANDROID_FALSE=
13642 fi
13643
13644
13645 if (test "${enable_android}" = "yes"); then
13646
13647 pkg_failed=no
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SBC" >&5
13649 $as_echo_n "checking for SBC... " >&6; }
13650
13651 if test -n "$SBC_CFLAGS"; then
13652     pkg_cv_SBC_CFLAGS="$SBC_CFLAGS"
13653  elif test -n "$PKG_CONFIG"; then
13654     if test -n "$PKG_CONFIG" && \
13655     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sbc >= 1.2\""; } >&5
13656   ($PKG_CONFIG --exists --print-errors "sbc >= 1.2") 2>&5
13657   ac_status=$?
13658   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13659   test $ac_status = 0; }; then
13660   pkg_cv_SBC_CFLAGS=`$PKG_CONFIG --cflags "sbc >= 1.2" 2>/dev/null`
13661                       test "x$?" != "x0" && pkg_failed=yes
13662 else
13663   pkg_failed=yes
13664 fi
13665  else
13666     pkg_failed=untried
13667 fi
13668 if test -n "$SBC_LIBS"; then
13669     pkg_cv_SBC_LIBS="$SBC_LIBS"
13670  elif test -n "$PKG_CONFIG"; then
13671     if test -n "$PKG_CONFIG" && \
13672     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sbc >= 1.2\""; } >&5
13673   ($PKG_CONFIG --exists --print-errors "sbc >= 1.2") 2>&5
13674   ac_status=$?
13675   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13676   test $ac_status = 0; }; then
13677   pkg_cv_SBC_LIBS=`$PKG_CONFIG --libs "sbc >= 1.2" 2>/dev/null`
13678                       test "x$?" != "x0" && pkg_failed=yes
13679 else
13680   pkg_failed=yes
13681 fi
13682  else
13683     pkg_failed=untried
13684 fi
13685
13686
13687
13688 if test $pkg_failed = yes; then
13689         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13690 $as_echo "no" >&6; }
13691
13692 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13693         _pkg_short_errors_supported=yes
13694 else
13695         _pkg_short_errors_supported=no
13696 fi
13697         if test $_pkg_short_errors_supported = yes; then
13698                 SBC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sbc >= 1.2" 2>&1`
13699         else
13700                 SBC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sbc >= 1.2" 2>&1`
13701         fi
13702         # Put the nasty error message in config.log where it belongs
13703         echo "$SBC_PKG_ERRORS" >&5
13704
13705         as_fn_error $? "SBC library >= 1.2 is required" "$LINENO" 5
13706 elif test $pkg_failed = untried; then
13707         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13708 $as_echo "no" >&6; }
13709         as_fn_error $? "SBC library >= 1.2 is required" "$LINENO" 5
13710 else
13711         SBC_CFLAGS=$pkg_cv_SBC_CFLAGS
13712         SBC_LIBS=$pkg_cv_SBC_LIBS
13713         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13714 $as_echo "yes" >&6; }
13715         dummy=yes
13716 fi
13717
13718
13719 fi
13720
13721 if (test "${enable_android}" = "yes"); then
13722
13723 pkg_failed=no
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SPEEXDSP" >&5
13725 $as_echo_n "checking for SPEEXDSP... " >&6; }
13726
13727 if test -n "$SPEEXDSP_CFLAGS"; then
13728     pkg_cv_SPEEXDSP_CFLAGS="$SPEEXDSP_CFLAGS"
13729  elif test -n "$PKG_CONFIG"; then
13730     if test -n "$PKG_CONFIG" && \
13731     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"speexdsp >= 1.2\""; } >&5
13732   ($PKG_CONFIG --exists --print-errors "speexdsp >= 1.2") 2>&5
13733   ac_status=$?
13734   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13735   test $ac_status = 0; }; then
13736   pkg_cv_SPEEXDSP_CFLAGS=`$PKG_CONFIG --cflags "speexdsp >= 1.2" 2>/dev/null`
13737                       test "x$?" != "x0" && pkg_failed=yes
13738 else
13739   pkg_failed=yes
13740 fi
13741  else
13742     pkg_failed=untried
13743 fi
13744 if test -n "$SPEEXDSP_LIBS"; then
13745     pkg_cv_SPEEXDSP_LIBS="$SPEEXDSP_LIBS"
13746  elif test -n "$PKG_CONFIG"; then
13747     if test -n "$PKG_CONFIG" && \
13748     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"speexdsp >= 1.2\""; } >&5
13749   ($PKG_CONFIG --exists --print-errors "speexdsp >= 1.2") 2>&5
13750   ac_status=$?
13751   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13752   test $ac_status = 0; }; then
13753   pkg_cv_SPEEXDSP_LIBS=`$PKG_CONFIG --libs "speexdsp >= 1.2" 2>/dev/null`
13754                       test "x$?" != "x0" && pkg_failed=yes
13755 else
13756   pkg_failed=yes
13757 fi
13758  else
13759     pkg_failed=untried
13760 fi
13761
13762
13763
13764 if test $pkg_failed = yes; then
13765         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13766 $as_echo "no" >&6; }
13767
13768 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13769         _pkg_short_errors_supported=yes
13770 else
13771         _pkg_short_errors_supported=no
13772 fi
13773         if test $_pkg_short_errors_supported = yes; then
13774                 SPEEXDSP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "speexdsp >= 1.2" 2>&1`
13775         else
13776                 SPEEXDSP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "speexdsp >= 1.2" 2>&1`
13777         fi
13778         # Put the nasty error message in config.log where it belongs
13779         echo "$SPEEXDSP_PKG_ERRORS" >&5
13780
13781         as_fn_error $? "SPEEXDSP library >= 1.2 is required" "$LINENO" 5
13782 elif test $pkg_failed = untried; then
13783         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13784 $as_echo "no" >&6; }
13785         as_fn_error $? "SPEEXDSP library >= 1.2 is required" "$LINENO" 5
13786 else
13787         SPEEXDSP_CFLAGS=$pkg_cv_SPEEXDSP_CFLAGS
13788         SPEEXDSP_LIBS=$pkg_cv_SPEEXDSP_LIBS
13789         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13790 $as_echo "yes" >&6; }
13791         dummy=yes
13792 fi
13793
13794
13795 fi
13796
13797
13798 cat >>confdefs.h <<_ACEOF
13799 #define ANDROID_STORAGEDIR "${storagedir}/android"
13800 _ACEOF
13801
13802
13803 ac_config_files="$ac_config_files Makefile src/bluetoothd.8 lib/bluez.pc"
13804
13805 cat >confcache <<\_ACEOF
13806 # This file is a shell script that caches the results of configure
13807 # tests run on this system so they can be shared between configure
13808 # scripts and configure runs, see configure's option --config-cache.
13809 # It is not useful on other systems.  If it contains results you don't
13810 # want to keep, you may remove or edit it.
13811 #
13812 # config.status only pays attention to the cache file if you give it
13813 # the --recheck option to rerun configure.
13814 #
13815 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13816 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13817 # following values.
13818
13819 _ACEOF
13820
13821 # The following way of writing the cache mishandles newlines in values,
13822 # but we know of no workaround that is simple, portable, and efficient.
13823 # So, we kill variables containing newlines.
13824 # Ultrix sh set writes to stderr and can't be redirected directly,
13825 # and sets the high bit in the cache file unless we assign to the vars.
13826 (
13827   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13828     eval ac_val=\$$ac_var
13829     case $ac_val in #(
13830     *${as_nl}*)
13831       case $ac_var in #(
13832       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13833 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13834       esac
13835       case $ac_var in #(
13836       _ | IFS | as_nl) ;; #(
13837       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13838       *) { eval $ac_var=; unset $ac_var;} ;;
13839       esac ;;
13840     esac
13841   done
13842
13843   (set) 2>&1 |
13844     case $as_nl`(ac_space=' '; set) 2>&1` in #(
13845     *${as_nl}ac_space=\ *)
13846       # `set' does not quote correctly, so add quotes: double-quote
13847       # substitution turns \\\\ into \\, and sed turns \\ into \.
13848       sed -n \
13849         "s/'/'\\\\''/g;
13850           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13851       ;; #(
13852     *)
13853       # `set' quotes correctly as required by POSIX, so do not add quotes.
13854       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13855       ;;
13856     esac |
13857     sort
13858 ) |
13859   sed '
13860      /^ac_cv_env_/b end
13861      t clear
13862      :clear
13863      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13864      t end
13865      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13866      :end' >>confcache
13867 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13868   if test -w "$cache_file"; then
13869     if test "x$cache_file" != "x/dev/null"; then
13870       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13871 $as_echo "$as_me: updating cache $cache_file" >&6;}
13872       if test ! -f "$cache_file" || test -h "$cache_file"; then
13873         cat confcache >"$cache_file"
13874       else
13875         case $cache_file in #(
13876         */* | ?:*)
13877           mv -f confcache "$cache_file"$$ &&
13878           mv -f "$cache_file"$$ "$cache_file" ;; #(
13879         *)
13880           mv -f confcache "$cache_file" ;;
13881         esac
13882       fi
13883     fi
13884   else
13885     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13886 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13887   fi
13888 fi
13889 rm -f confcache
13890
13891 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13892 # Let make expand exec_prefix.
13893 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13894
13895 DEFS=-DHAVE_CONFIG_H
13896
13897 ac_libobjs=
13898 ac_ltlibobjs=
13899 U=
13900 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13901   # 1. Remove the extension, and $U if already installed.
13902   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13903   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13904   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13905   #    will be set to the directory where LIBOBJS objects are built.
13906   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13907   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13908 done
13909 LIBOBJS=$ac_libobjs
13910
13911 LTLIBOBJS=$ac_ltlibobjs
13912
13913
13914  if test -n "$EXEEXT"; then
13915   am__EXEEXT_TRUE=
13916   am__EXEEXT_FALSE='#'
13917 else
13918   am__EXEEXT_TRUE='#'
13919   am__EXEEXT_FALSE=
13920 fi
13921
13922 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13923   as_fn_error $? "conditional \"AMDEP\" was never defined.
13924 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13925 fi
13926 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13927   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13928 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13929 fi
13930 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13931   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
13932 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13933 fi
13934 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13935   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13936 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13937 fi
13938 if test -z "${LIBRARY_TRUE}" && test -z "${LIBRARY_FALSE}"; then
13939   as_fn_error $? "conditional \"LIBRARY\" was never defined.
13940 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13941 fi
13942 if test -z "${TEST_TRUE}" && test -z "${TEST_FALSE}"; then
13943   as_fn_error $? "conditional \"TEST\" was never defined.
13944 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13945 fi
13946 if test -z "${TOOLS_TRUE}" && test -z "${TOOLS_FALSE}"; then
13947   as_fn_error $? "conditional \"TOOLS\" was never defined.
13948 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13949 fi
13950 if test -z "${MONITOR_TRUE}" && test -z "${MONITOR_FALSE}"; then
13951   as_fn_error $? "conditional \"MONITOR\" was never defined.
13952 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13953 fi
13954 if test -z "${UDEV_TRUE}" && test -z "${UDEV_FALSE}"; then
13955   as_fn_error $? "conditional \"UDEV\" was never defined.
13956 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13957 fi
13958 if test -z "${HID2HCI_TRUE}" && test -z "${HID2HCI_FALSE}"; then
13959   as_fn_error $? "conditional \"HID2HCI\" was never defined.
13960 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13961 fi
13962 if test -z "${CUPS_TRUE}" && test -z "${CUPS_FALSE}"; then
13963   as_fn_error $? "conditional \"CUPS\" was never defined.
13964 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13965 fi
13966 if test -z "${OBEX_TRUE}" && test -z "${OBEX_FALSE}"; then
13967   as_fn_error $? "conditional \"OBEX\" was never defined.
13968 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13969 fi
13970 if test -z "${CLIENT_TRUE}" && test -z "${CLIENT_FALSE}"; then
13971   as_fn_error $? "conditional \"CLIENT\" was never defined.
13972 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13973 fi
13974 if test -z "${READLINE_TRUE}" && test -z "${READLINE_FALSE}"; then
13975   as_fn_error $? "conditional \"READLINE\" was never defined.
13976 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13977 fi
13978 if test -z "${SYSTEMD_TRUE}" && test -z "${SYSTEMD_FALSE}"; then
13979   as_fn_error $? "conditional \"SYSTEMD\" was never defined.
13980 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13981 fi
13982 if test -z "${DATAFILES_TRUE}" && test -z "${DATAFILES_FALSE}"; then
13983   as_fn_error $? "conditional \"DATAFILES\" was never defined.
13984 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13985 fi
13986 if test -z "${EXPERIMENTAL_TRUE}" && test -z "${EXPERIMENTAL_FALSE}"; then
13987   as_fn_error $? "conditional \"EXPERIMENTAL\" was never defined.
13988 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13989 fi
13990 if test -z "${SIXAXIS_TRUE}" && test -z "${SIXAXIS_FALSE}"; then
13991   as_fn_error $? "conditional \"SIXAXIS\" was never defined.
13992 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13993 fi
13994 if test -z "${ANDROID_TRUE}" && test -z "${ANDROID_FALSE}"; then
13995   as_fn_error $? "conditional \"ANDROID\" was never defined.
13996 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13997 fi
13998
13999 : "${CONFIG_STATUS=./config.status}"
14000 ac_write_fail=0
14001 ac_clean_files_save=$ac_clean_files
14002 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14003 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14004 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14005 as_write_fail=0
14006 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14007 #! $SHELL
14008 # Generated by $as_me.
14009 # Run this file to recreate the current configuration.
14010 # Compiler output produced by configure, useful for debugging
14011 # configure, is in config.log if it exists.
14012
14013 debug=false
14014 ac_cs_recheck=false
14015 ac_cs_silent=false
14016
14017 SHELL=\${CONFIG_SHELL-$SHELL}
14018 export SHELL
14019 _ASEOF
14020 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14021 ## -------------------- ##
14022 ## M4sh Initialization. ##
14023 ## -------------------- ##
14024
14025 # Be more Bourne compatible
14026 DUALCASE=1; export DUALCASE # for MKS sh
14027 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14028   emulate sh
14029   NULLCMD=:
14030   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14031   # is contrary to our usage.  Disable this feature.
14032   alias -g '${1+"$@"}'='"$@"'
14033   setopt NO_GLOB_SUBST
14034 else
14035   case `(set -o) 2>/dev/null` in #(
14036   *posix*) :
14037     set -o posix ;; #(
14038   *) :
14039      ;;
14040 esac
14041 fi
14042
14043
14044 as_nl='
14045 '
14046 export as_nl
14047 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14048 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14049 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14050 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14051 # Prefer a ksh shell builtin over an external printf program on Solaris,
14052 # but without wasting forks for bash or zsh.
14053 if test -z "$BASH_VERSION$ZSH_VERSION" \
14054     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14055   as_echo='print -r --'
14056   as_echo_n='print -rn --'
14057 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14058   as_echo='printf %s\n'
14059   as_echo_n='printf %s'
14060 else
14061   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14062     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14063     as_echo_n='/usr/ucb/echo -n'
14064   else
14065     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14066     as_echo_n_body='eval
14067       arg=$1;
14068       case $arg in #(
14069       *"$as_nl"*)
14070         expr "X$arg" : "X\\(.*\\)$as_nl";
14071         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14072       esac;
14073       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14074     '
14075     export as_echo_n_body
14076     as_echo_n='sh -c $as_echo_n_body as_echo'
14077   fi
14078   export as_echo_body
14079   as_echo='sh -c $as_echo_body as_echo'
14080 fi
14081
14082 # The user is always right.
14083 if test "${PATH_SEPARATOR+set}" != set; then
14084   PATH_SEPARATOR=:
14085   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14086     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14087       PATH_SEPARATOR=';'
14088   }
14089 fi
14090
14091
14092 # IFS
14093 # We need space, tab and new line, in precisely that order.  Quoting is
14094 # there to prevent editors from complaining about space-tab.
14095 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14096 # splitting by setting IFS to empty value.)
14097 IFS=" ""        $as_nl"
14098
14099 # Find who we are.  Look in the path if we contain no directory separator.
14100 as_myself=
14101 case $0 in #((
14102   *[\\/]* ) as_myself=$0 ;;
14103   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14104 for as_dir in $PATH
14105 do
14106   IFS=$as_save_IFS
14107   test -z "$as_dir" && as_dir=.
14108     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14109   done
14110 IFS=$as_save_IFS
14111
14112      ;;
14113 esac
14114 # We did not find ourselves, most probably we were run as `sh COMMAND'
14115 # in which case we are not to be found in the path.
14116 if test "x$as_myself" = x; then
14117   as_myself=$0
14118 fi
14119 if test ! -f "$as_myself"; then
14120   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14121   exit 1
14122 fi
14123
14124 # Unset variables that we do not need and which cause bugs (e.g. in
14125 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14126 # suppresses any "Segmentation fault" message there.  '((' could
14127 # trigger a bug in pdksh 5.2.14.
14128 for as_var in BASH_ENV ENV MAIL MAILPATH
14129 do eval test x\${$as_var+set} = xset \
14130   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14131 done
14132 PS1='$ '
14133 PS2='> '
14134 PS4='+ '
14135
14136 # NLS nuisances.
14137 LC_ALL=C
14138 export LC_ALL
14139 LANGUAGE=C
14140 export LANGUAGE
14141
14142 # CDPATH.
14143 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14144
14145
14146 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14147 # ----------------------------------------
14148 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14149 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14150 # script with STATUS, using 1 if that was 0.
14151 as_fn_error ()
14152 {
14153   as_status=$1; test $as_status -eq 0 && as_status=1
14154   if test "$4"; then
14155     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14156     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14157   fi
14158   $as_echo "$as_me: error: $2" >&2
14159   as_fn_exit $as_status
14160 } # as_fn_error
14161
14162
14163 # as_fn_set_status STATUS
14164 # -----------------------
14165 # Set $? to STATUS, without forking.
14166 as_fn_set_status ()
14167 {
14168   return $1
14169 } # as_fn_set_status
14170
14171 # as_fn_exit STATUS
14172 # -----------------
14173 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14174 as_fn_exit ()
14175 {
14176   set +e
14177   as_fn_set_status $1
14178   exit $1
14179 } # as_fn_exit
14180
14181 # as_fn_unset VAR
14182 # ---------------
14183 # Portably unset VAR.
14184 as_fn_unset ()
14185 {
14186   { eval $1=; unset $1;}
14187 }
14188 as_unset=as_fn_unset
14189 # as_fn_append VAR VALUE
14190 # ----------------------
14191 # Append the text in VALUE to the end of the definition contained in VAR. Take
14192 # advantage of any shell optimizations that allow amortized linear growth over
14193 # repeated appends, instead of the typical quadratic growth present in naive
14194 # implementations.
14195 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14196   eval 'as_fn_append ()
14197   {
14198     eval $1+=\$2
14199   }'
14200 else
14201   as_fn_append ()
14202   {
14203     eval $1=\$$1\$2
14204   }
14205 fi # as_fn_append
14206
14207 # as_fn_arith ARG...
14208 # ------------------
14209 # Perform arithmetic evaluation on the ARGs, and store the result in the
14210 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14211 # must be portable across $(()) and expr.
14212 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14213   eval 'as_fn_arith ()
14214   {
14215     as_val=$(( $* ))
14216   }'
14217 else
14218   as_fn_arith ()
14219   {
14220     as_val=`expr "$@" || test $? -eq 1`
14221   }
14222 fi # as_fn_arith
14223
14224
14225 if expr a : '\(a\)' >/dev/null 2>&1 &&
14226    test "X`expr 00001 : '.*\(...\)'`" = X001; then
14227   as_expr=expr
14228 else
14229   as_expr=false
14230 fi
14231
14232 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14233   as_basename=basename
14234 else
14235   as_basename=false
14236 fi
14237
14238 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14239   as_dirname=dirname
14240 else
14241   as_dirname=false
14242 fi
14243
14244 as_me=`$as_basename -- "$0" ||
14245 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14246          X"$0" : 'X\(//\)$' \| \
14247          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14248 $as_echo X/"$0" |
14249     sed '/^.*\/\([^/][^/]*\)\/*$/{
14250             s//\1/
14251             q
14252           }
14253           /^X\/\(\/\/\)$/{
14254             s//\1/
14255             q
14256           }
14257           /^X\/\(\/\).*/{
14258             s//\1/
14259             q
14260           }
14261           s/.*/./; q'`
14262
14263 # Avoid depending upon Character Ranges.
14264 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14265 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14266 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14267 as_cr_digits='0123456789'
14268 as_cr_alnum=$as_cr_Letters$as_cr_digits
14269
14270 ECHO_C= ECHO_N= ECHO_T=
14271 case `echo -n x` in #(((((
14272 -n*)
14273   case `echo 'xy\c'` in
14274   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
14275   xy)  ECHO_C='\c';;
14276   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14277        ECHO_T=' ';;
14278   esac;;
14279 *)
14280   ECHO_N='-n';;
14281 esac
14282
14283 rm -f conf$$ conf$$.exe conf$$.file
14284 if test -d conf$$.dir; then
14285   rm -f conf$$.dir/conf$$.file
14286 else
14287   rm -f conf$$.dir
14288   mkdir conf$$.dir 2>/dev/null
14289 fi
14290 if (echo >conf$$.file) 2>/dev/null; then
14291   if ln -s conf$$.file conf$$ 2>/dev/null; then
14292     as_ln_s='ln -s'
14293     # ... but there are two gotchas:
14294     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14295     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14296     # In both cases, we have to default to `cp -pR'.
14297     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14298       as_ln_s='cp -pR'
14299   elif ln conf$$.file conf$$ 2>/dev/null; then
14300     as_ln_s=ln
14301   else
14302     as_ln_s='cp -pR'
14303   fi
14304 else
14305   as_ln_s='cp -pR'
14306 fi
14307 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14308 rmdir conf$$.dir 2>/dev/null
14309
14310
14311 # as_fn_mkdir_p
14312 # -------------
14313 # Create "$as_dir" as a directory, including parents if necessary.
14314 as_fn_mkdir_p ()
14315 {
14316
14317   case $as_dir in #(
14318   -*) as_dir=./$as_dir;;
14319   esac
14320   test -d "$as_dir" || eval $as_mkdir_p || {
14321     as_dirs=
14322     while :; do
14323       case $as_dir in #(
14324       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14325       *) as_qdir=$as_dir;;
14326       esac
14327       as_dirs="'$as_qdir' $as_dirs"
14328       as_dir=`$as_dirname -- "$as_dir" ||
14329 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14330          X"$as_dir" : 'X\(//\)[^/]' \| \
14331          X"$as_dir" : 'X\(//\)$' \| \
14332          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14333 $as_echo X"$as_dir" |
14334     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14335             s//\1/
14336             q
14337           }
14338           /^X\(\/\/\)[^/].*/{
14339             s//\1/
14340             q
14341           }
14342           /^X\(\/\/\)$/{
14343             s//\1/
14344             q
14345           }
14346           /^X\(\/\).*/{
14347             s//\1/
14348             q
14349           }
14350           s/.*/./; q'`
14351       test -d "$as_dir" && break
14352     done
14353     test -z "$as_dirs" || eval "mkdir $as_dirs"
14354   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14355
14356
14357 } # as_fn_mkdir_p
14358 if mkdir -p . 2>/dev/null; then
14359   as_mkdir_p='mkdir -p "$as_dir"'
14360 else
14361   test -d ./-p && rmdir ./-p
14362   as_mkdir_p=false
14363 fi
14364
14365
14366 # as_fn_executable_p FILE
14367 # -----------------------
14368 # Test if FILE is an executable regular file.
14369 as_fn_executable_p ()
14370 {
14371   test -f "$1" && test -x "$1"
14372 } # as_fn_executable_p
14373 as_test_x='test -x'
14374 as_executable_p=as_fn_executable_p
14375
14376 # Sed expression to map a string onto a valid CPP name.
14377 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14378
14379 # Sed expression to map a string onto a valid variable name.
14380 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14381
14382
14383 exec 6>&1
14384 ## ----------------------------------- ##
14385 ## Main body of $CONFIG_STATUS script. ##
14386 ## ----------------------------------- ##
14387 _ASEOF
14388 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14389
14390 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14391 # Save the log message, to keep $0 and so on meaningful, and to
14392 # report actual input values of CONFIG_FILES etc. instead of their
14393 # values after options handling.
14394 ac_log="
14395 This file was extended by bluez $as_me 5.19, which was
14396 generated by GNU Autoconf 2.69.  Invocation command line was
14397
14398   CONFIG_FILES    = $CONFIG_FILES
14399   CONFIG_HEADERS  = $CONFIG_HEADERS
14400   CONFIG_LINKS    = $CONFIG_LINKS
14401   CONFIG_COMMANDS = $CONFIG_COMMANDS
14402   $ $0 $@
14403
14404 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14405 "
14406
14407 _ACEOF
14408
14409 case $ac_config_files in *"
14410 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14411 esac
14412
14413 case $ac_config_headers in *"
14414 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14415 esac
14416
14417
14418 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14419 # Files that config.status was made for.
14420 config_files="$ac_config_files"
14421 config_headers="$ac_config_headers"
14422 config_commands="$ac_config_commands"
14423
14424 _ACEOF
14425
14426 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14427 ac_cs_usage="\
14428 \`$as_me' instantiates files and other configuration actions
14429 from templates according to the current configuration.  Unless the files
14430 and actions are specified as TAGs, all are instantiated by default.
14431
14432 Usage: $0 [OPTION]... [TAG]...
14433
14434   -h, --help       print this help, then exit
14435   -V, --version    print version number and configuration settings, then exit
14436       --config     print configuration, then exit
14437   -q, --quiet, --silent
14438                    do not print progress messages
14439   -d, --debug      don't remove temporary files
14440       --recheck    update $as_me by reconfiguring in the same conditions
14441       --file=FILE[:TEMPLATE]
14442                    instantiate the configuration file FILE
14443       --header=FILE[:TEMPLATE]
14444                    instantiate the configuration header FILE
14445
14446 Configuration files:
14447 $config_files
14448
14449 Configuration headers:
14450 $config_headers
14451
14452 Configuration commands:
14453 $config_commands
14454
14455 Report bugs to the package provider."
14456
14457 _ACEOF
14458 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14459 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14460 ac_cs_version="\\
14461 bluez config.status 5.19
14462 configured by $0, generated by GNU Autoconf 2.69,
14463   with options \\"\$ac_cs_config\\"
14464
14465 Copyright (C) 2012 Free Software Foundation, Inc.
14466 This config.status script is free software; the Free Software Foundation
14467 gives unlimited permission to copy, distribute and modify it."
14468
14469 ac_pwd='$ac_pwd'
14470 srcdir='$srcdir'
14471 INSTALL='$INSTALL'
14472 MKDIR_P='$MKDIR_P'
14473 AWK='$AWK'
14474 test -n "\$AWK" || AWK=awk
14475 _ACEOF
14476
14477 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14478 # The default lists apply if the user does not specify any file.
14479 ac_need_defaults=:
14480 while test $# != 0
14481 do
14482   case $1 in
14483   --*=?*)
14484     ac_option=`expr "X$1" : 'X\([^=]*\)='`
14485     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14486     ac_shift=:
14487     ;;
14488   --*=)
14489     ac_option=`expr "X$1" : 'X\([^=]*\)='`
14490     ac_optarg=
14491     ac_shift=:
14492     ;;
14493   *)
14494     ac_option=$1
14495     ac_optarg=$2
14496     ac_shift=shift
14497     ;;
14498   esac
14499
14500   case $ac_option in
14501   # Handling of the options.
14502   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14503     ac_cs_recheck=: ;;
14504   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14505     $as_echo "$ac_cs_version"; exit ;;
14506   --config | --confi | --conf | --con | --co | --c )
14507     $as_echo "$ac_cs_config"; exit ;;
14508   --debug | --debu | --deb | --de | --d | -d )
14509     debug=: ;;
14510   --file | --fil | --fi | --f )
14511     $ac_shift
14512     case $ac_optarg in
14513     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14514     '') as_fn_error $? "missing file argument" ;;
14515     esac
14516     as_fn_append CONFIG_FILES " '$ac_optarg'"
14517     ac_need_defaults=false;;
14518   --header | --heade | --head | --hea )
14519     $ac_shift
14520     case $ac_optarg in
14521     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14522     esac
14523     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14524     ac_need_defaults=false;;
14525   --he | --h)
14526     # Conflict between --help and --header
14527     as_fn_error $? "ambiguous option: \`$1'
14528 Try \`$0 --help' for more information.";;
14529   --help | --hel | -h )
14530     $as_echo "$ac_cs_usage"; exit ;;
14531   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14532   | -silent | --silent | --silen | --sile | --sil | --si | --s)
14533     ac_cs_silent=: ;;
14534
14535   # This is an error.
14536   -*) as_fn_error $? "unrecognized option: \`$1'
14537 Try \`$0 --help' for more information." ;;
14538
14539   *) as_fn_append ac_config_targets " $1"
14540      ac_need_defaults=false ;;
14541
14542   esac
14543   shift
14544 done
14545
14546 ac_configure_extra_args=
14547
14548 if $ac_cs_silent; then
14549   exec 6>/dev/null
14550   ac_configure_extra_args="$ac_configure_extra_args --silent"
14551 fi
14552
14553 _ACEOF
14554 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14555 if \$ac_cs_recheck; then
14556   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14557   shift
14558   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14559   CONFIG_SHELL='$SHELL'
14560   export CONFIG_SHELL
14561   exec "\$@"
14562 fi
14563
14564 _ACEOF
14565 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14566 exec 5>>config.log
14567 {
14568   echo
14569   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14570 ## Running $as_me. ##
14571 _ASBOX
14572   $as_echo "$ac_log"
14573 } >&5
14574
14575 _ACEOF
14576 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14577 #
14578 # INIT-COMMANDS
14579 #
14580 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14581
14582
14583 # The HP-UX ksh and POSIX shell print the target directory to stdout
14584 # if CDPATH is set.
14585 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14586
14587 sed_quote_subst='$sed_quote_subst'
14588 double_quote_subst='$double_quote_subst'
14589 delay_variable_subst='$delay_variable_subst'
14590 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14591 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14592 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14593 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14594 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14595 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14596 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14597 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14598 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14599 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14600 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14601 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14602 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14603 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14604 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14605 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14606 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14607 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14608 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14609 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14610 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14611 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14612 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14613 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14614 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14615 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14616 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14617 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14618 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14619 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14620 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14621 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14622 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14623 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14624 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14625 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14626 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14627 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14628 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14629 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14630 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14631 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14632 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14633 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14634 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14635 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14636 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14637 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14638 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14639 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14640 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14641 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14642 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14643 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14644 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14645 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14646 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"`'
14647 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14648 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14649 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14650 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14651 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14652 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14653 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14654 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14655 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14656 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14657 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14658 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14659 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14660 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14661 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14662 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14663 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14664 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14665 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14666 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14667 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14668 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14669 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14670 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14671 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14672 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14673 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14674 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14675 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14676 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14677 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14678 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14679 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14680 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14681 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14682 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14683 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14684 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14685 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14686 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14687 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14688 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14689 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14690 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14691 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14692 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14693 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14694 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14695 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14696 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14697 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14698 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14699 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14700 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14701 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14702 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14703 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14704 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14705 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14706 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14707 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14708 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14709 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14710 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14711 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14712 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14713 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14714 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14715 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14716 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14717 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14718 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14719 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14720
14721 LTCC='$LTCC'
14722 LTCFLAGS='$LTCFLAGS'
14723 compiler='$compiler_DEFAULT'
14724
14725 # A function that is used when there is no print builtin or printf.
14726 func_fallback_echo ()
14727 {
14728   eval 'cat <<_LTECHO_EOF
14729 \$1
14730 _LTECHO_EOF'
14731 }
14732
14733 # Quote evaled strings.
14734 for var in SHELL \
14735 ECHO \
14736 PATH_SEPARATOR \
14737 SED \
14738 GREP \
14739 EGREP \
14740 FGREP \
14741 LD \
14742 NM \
14743 LN_S \
14744 lt_SP2NL \
14745 lt_NL2SP \
14746 reload_flag \
14747 OBJDUMP \
14748 deplibs_check_method \
14749 file_magic_cmd \
14750 file_magic_glob \
14751 want_nocaseglob \
14752 DLLTOOL \
14753 sharedlib_from_linklib_cmd \
14754 AR \
14755 AR_FLAGS \
14756 archiver_list_spec \
14757 STRIP \
14758 RANLIB \
14759 CC \
14760 CFLAGS \
14761 compiler \
14762 lt_cv_sys_global_symbol_pipe \
14763 lt_cv_sys_global_symbol_to_cdecl \
14764 lt_cv_sys_global_symbol_to_c_name_address \
14765 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14766 nm_file_list_spec \
14767 lt_prog_compiler_no_builtin_flag \
14768 lt_prog_compiler_pic \
14769 lt_prog_compiler_wl \
14770 lt_prog_compiler_static \
14771 lt_cv_prog_compiler_c_o \
14772 need_locks \
14773 MANIFEST_TOOL \
14774 DSYMUTIL \
14775 NMEDIT \
14776 LIPO \
14777 OTOOL \
14778 OTOOL64 \
14779 shrext_cmds \
14780 export_dynamic_flag_spec \
14781 whole_archive_flag_spec \
14782 compiler_needs_object \
14783 with_gnu_ld \
14784 allow_undefined_flag \
14785 no_undefined_flag \
14786 hardcode_libdir_flag_spec \
14787 hardcode_libdir_separator \
14788 exclude_expsyms \
14789 include_expsyms \
14790 file_list_spec \
14791 variables_saved_for_relink \
14792 libname_spec \
14793 library_names_spec \
14794 soname_spec \
14795 install_override_mode \
14796 finish_eval \
14797 old_striplib \
14798 striplib; do
14799     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14800     *[\\\\\\\`\\"\\\$]*)
14801       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14802       ;;
14803     *)
14804       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14805       ;;
14806     esac
14807 done
14808
14809 # Double-quote double-evaled strings.
14810 for var in reload_cmds \
14811 old_postinstall_cmds \
14812 old_postuninstall_cmds \
14813 old_archive_cmds \
14814 extract_expsyms_cmds \
14815 old_archive_from_new_cmds \
14816 old_archive_from_expsyms_cmds \
14817 archive_cmds \
14818 archive_expsym_cmds \
14819 module_cmds \
14820 module_expsym_cmds \
14821 export_symbols_cmds \
14822 prelink_cmds \
14823 postlink_cmds \
14824 postinstall_cmds \
14825 postuninstall_cmds \
14826 finish_cmds \
14827 sys_lib_search_path_spec \
14828 sys_lib_dlsearch_path_spec; do
14829     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14830     *[\\\\\\\`\\"\\\$]*)
14831       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14832       ;;
14833     *)
14834       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14835       ;;
14836     esac
14837 done
14838
14839 ac_aux_dir='$ac_aux_dir'
14840 xsi_shell='$xsi_shell'
14841 lt_shell_append='$lt_shell_append'
14842
14843 # See if we are running on zsh, and set the options which allow our
14844 # commands through without removal of \ escapes INIT.
14845 if test -n "\${ZSH_VERSION+set}" ; then
14846    setopt NO_GLOB_SUBST
14847 fi
14848
14849
14850     PACKAGE='$PACKAGE'
14851     VERSION='$VERSION'
14852     TIMESTAMP='$TIMESTAMP'
14853     RM='$RM'
14854     ofile='$ofile'
14855
14856
14857
14858
14859 _ACEOF
14860
14861 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14862
14863 # Handling of arguments.
14864 for ac_config_target in $ac_config_targets
14865 do
14866   case $ac_config_target in
14867     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14868     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14869     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14870     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14871     "src/bluetoothd.8") CONFIG_FILES="$CONFIG_FILES src/bluetoothd.8" ;;
14872     "lib/bluez.pc") CONFIG_FILES="$CONFIG_FILES lib/bluez.pc" ;;
14873
14874   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14875   esac
14876 done
14877
14878
14879 # If the user did not use the arguments to specify the items to instantiate,
14880 # then the envvar interface is used.  Set only those that are not.
14881 # We use the long form for the default assignment because of an extremely
14882 # bizarre bug on SunOS 4.1.3.
14883 if $ac_need_defaults; then
14884   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14885   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14886   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14887 fi
14888
14889 # Have a temporary directory for convenience.  Make it in the build tree
14890 # simply because there is no reason against having it here, and in addition,
14891 # creating and moving files from /tmp can sometimes cause problems.
14892 # Hook for its removal unless debugging.
14893 # Note that there is a small window in which the directory will not be cleaned:
14894 # after its creation but before its name has been assigned to `$tmp'.
14895 $debug ||
14896 {
14897   tmp= ac_tmp=
14898   trap 'exit_status=$?
14899   : "${ac_tmp:=$tmp}"
14900   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14901 ' 0
14902   trap 'as_fn_exit 1' 1 2 13 15
14903 }
14904 # Create a (secure) tmp directory for tmp files.
14905
14906 {
14907   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14908   test -d "$tmp"
14909 }  ||
14910 {
14911   tmp=./conf$$-$RANDOM
14912   (umask 077 && mkdir "$tmp")
14913 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14914 ac_tmp=$tmp
14915
14916 # Set up the scripts for CONFIG_FILES section.
14917 # No need to generate them if there are no CONFIG_FILES.
14918 # This happens for instance with `./config.status config.h'.
14919 if test -n "$CONFIG_FILES"; then
14920
14921
14922 ac_cr=`echo X | tr X '\015'`
14923 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14924 # But we know of no other shell where ac_cr would be empty at this
14925 # point, so we can use a bashism as a fallback.
14926 if test "x$ac_cr" = x; then
14927   eval ac_cr=\$\'\\r\'
14928 fi
14929 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14930 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14931   ac_cs_awk_cr='\\r'
14932 else
14933   ac_cs_awk_cr=$ac_cr
14934 fi
14935
14936 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14937 _ACEOF
14938
14939
14940 {
14941   echo "cat >conf$$subs.awk <<_ACEOF" &&
14942   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14943   echo "_ACEOF"
14944 } >conf$$subs.sh ||
14945   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14946 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14947 ac_delim='%!_!# '
14948 for ac_last_try in false false false false false :; do
14949   . ./conf$$subs.sh ||
14950     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14951
14952   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14953   if test $ac_delim_n = $ac_delim_num; then
14954     break
14955   elif $ac_last_try; then
14956     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14957   else
14958     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14959   fi
14960 done
14961 rm -f conf$$subs.sh
14962
14963 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14964 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14965 _ACEOF
14966 sed -n '
14967 h
14968 s/^/S["/; s/!.*/"]=/
14969 p
14970 g
14971 s/^[^!]*!//
14972 :repl
14973 t repl
14974 s/'"$ac_delim"'$//
14975 t delim
14976 :nl
14977 h
14978 s/\(.\{148\}\)..*/\1/
14979 t more1
14980 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14981 p
14982 n
14983 b repl
14984 :more1
14985 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14986 p
14987 g
14988 s/.\{148\}//
14989 t nl
14990 :delim
14991 h
14992 s/\(.\{148\}\)..*/\1/
14993 t more2
14994 s/["\\]/\\&/g; s/^/"/; s/$/"/
14995 p
14996 b
14997 :more2
14998 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14999 p
15000 g
15001 s/.\{148\}//
15002 t delim
15003 ' <conf$$subs.awk | sed '
15004 /^[^""]/{
15005   N
15006   s/\n//
15007 }
15008 ' >>$CONFIG_STATUS || ac_write_fail=1
15009 rm -f conf$$subs.awk
15010 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15011 _ACAWK
15012 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15013   for (key in S) S_is_set[key] = 1
15014   FS = "\a"
15015
15016 }
15017 {
15018   line = $ 0
15019   nfields = split(line, field, "@")
15020   substed = 0
15021   len = length(field[1])
15022   for (i = 2; i < nfields; i++) {
15023     key = field[i]
15024     keylen = length(key)
15025     if (S_is_set[key]) {
15026       value = S[key]
15027       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15028       len += length(value) + length(field[++i])
15029       substed = 1
15030     } else
15031       len += 1 + keylen
15032   }
15033
15034   print line
15035 }
15036
15037 _ACAWK
15038 _ACEOF
15039 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15040 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15041   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15042 else
15043   cat
15044 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15045   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15046 _ACEOF
15047
15048 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15049 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15050 # trailing colons and then remove the whole line if VPATH becomes empty
15051 # (actually we leave an empty line to preserve line numbers).
15052 if test "x$srcdir" = x.; then
15053   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
15054 h
15055 s///
15056 s/^/:/
15057 s/[      ]*$/:/
15058 s/:\$(srcdir):/:/g
15059 s/:\${srcdir}:/:/g
15060 s/:@srcdir@:/:/g
15061 s/^:*//
15062 s/:*$//
15063 x
15064 s/\(=[   ]*\).*/\1/
15065 G
15066 s/\n//
15067 s/^[^=]*=[       ]*$//
15068 }'
15069 fi
15070
15071 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15072 fi # test -n "$CONFIG_FILES"
15073
15074 # Set up the scripts for CONFIG_HEADERS section.
15075 # No need to generate them if there are no CONFIG_HEADERS.
15076 # This happens for instance with `./config.status Makefile'.
15077 if test -n "$CONFIG_HEADERS"; then
15078 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15079 BEGIN {
15080 _ACEOF
15081
15082 # Transform confdefs.h into an awk script `defines.awk', embedded as
15083 # here-document in config.status, that substitutes the proper values into
15084 # config.h.in to produce config.h.
15085
15086 # Create a delimiter string that does not exist in confdefs.h, to ease
15087 # handling of long lines.
15088 ac_delim='%!_!# '
15089 for ac_last_try in false false :; do
15090   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15091   if test -z "$ac_tt"; then
15092     break
15093   elif $ac_last_try; then
15094     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15095   else
15096     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15097   fi
15098 done
15099
15100 # For the awk script, D is an array of macro values keyed by name,
15101 # likewise P contains macro parameters if any.  Preserve backslash
15102 # newline sequences.
15103
15104 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15105 sed -n '
15106 s/.\{148\}/&'"$ac_delim"'/g
15107 t rset
15108 :rset
15109 s/^[     ]*#[    ]*define[       ][      ]*/ /
15110 t def
15111 d
15112 :def
15113 s/\\$//
15114 t bsnl
15115 s/["\\]/\\&/g
15116 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15117 D["\1"]=" \3"/p
15118 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
15119 d
15120 :bsnl
15121 s/["\\]/\\&/g
15122 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15123 D["\1"]=" \3\\\\\\n"\\/p
15124 t cont
15125 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15126 t cont
15127 d
15128 :cont
15129 n
15130 s/.\{148\}/&'"$ac_delim"'/g
15131 t clear
15132 :clear
15133 s/\\$//
15134 t bsnlc
15135 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15136 d
15137 :bsnlc
15138 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15139 b cont
15140 ' <confdefs.h | sed '
15141 s/'"$ac_delim"'/"\\\
15142 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15143
15144 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15145   for (key in D) D_is_set[key] = 1
15146   FS = "\a"
15147 }
15148 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15149   line = \$ 0
15150   split(line, arg, " ")
15151   if (arg[1] == "#") {
15152     defundef = arg[2]
15153     mac1 = arg[3]
15154   } else {
15155     defundef = substr(arg[1], 2)
15156     mac1 = arg[2]
15157   }
15158   split(mac1, mac2, "(") #)
15159   macro = mac2[1]
15160   prefix = substr(line, 1, index(line, defundef) - 1)
15161   if (D_is_set[macro]) {
15162     # Preserve the white space surrounding the "#".
15163     print prefix "define", macro P[macro] D[macro]
15164     next
15165   } else {
15166     # Replace #undef with comments.  This is necessary, for example,
15167     # in the case of _POSIX_SOURCE, which is predefined and required
15168     # on some systems where configure will not decide to define it.
15169     if (defundef == "undef") {
15170       print "/*", prefix defundef, macro, "*/"
15171       next
15172     }
15173   }
15174 }
15175 { print }
15176 _ACAWK
15177 _ACEOF
15178 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15179   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15180 fi # test -n "$CONFIG_HEADERS"
15181
15182
15183 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
15184 shift
15185 for ac_tag
15186 do
15187   case $ac_tag in
15188   :[FHLC]) ac_mode=$ac_tag; continue;;
15189   esac
15190   case $ac_mode$ac_tag in
15191   :[FHL]*:*);;
15192   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15193   :[FH]-) ac_tag=-:-;;
15194   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15195   esac
15196   ac_save_IFS=$IFS
15197   IFS=:
15198   set x $ac_tag
15199   IFS=$ac_save_IFS
15200   shift
15201   ac_file=$1
15202   shift
15203
15204   case $ac_mode in
15205   :L) ac_source=$1;;
15206   :[FH])
15207     ac_file_inputs=
15208     for ac_f
15209     do
15210       case $ac_f in
15211       -) ac_f="$ac_tmp/stdin";;
15212       *) # Look for the file first in the build tree, then in the source tree
15213          # (if the path is not absolute).  The absolute path cannot be DOS-style,
15214          # because $ac_f cannot contain `:'.
15215          test -f "$ac_f" ||
15216            case $ac_f in
15217            [\\/$]*) false;;
15218            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15219            esac ||
15220            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15221       esac
15222       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15223       as_fn_append ac_file_inputs " '$ac_f'"
15224     done
15225
15226     # Let's still pretend it is `configure' which instantiates (i.e., don't
15227     # use $as_me), people would be surprised to read:
15228     #    /* config.h.  Generated by config.status.  */
15229     configure_input='Generated from '`
15230           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15231         `' by configure.'
15232     if test x"$ac_file" != x-; then
15233       configure_input="$ac_file.  $configure_input"
15234       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15235 $as_echo "$as_me: creating $ac_file" >&6;}
15236     fi
15237     # Neutralize special characters interpreted by sed in replacement strings.
15238     case $configure_input in #(
15239     *\&* | *\|* | *\\* )
15240        ac_sed_conf_input=`$as_echo "$configure_input" |
15241        sed 's/[\\\\&|]/\\\\&/g'`;; #(
15242     *) ac_sed_conf_input=$configure_input;;
15243     esac
15244
15245     case $ac_tag in
15246     *:-:* | *:-) cat >"$ac_tmp/stdin" \
15247       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15248     esac
15249     ;;
15250   esac
15251
15252   ac_dir=`$as_dirname -- "$ac_file" ||
15253 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15254          X"$ac_file" : 'X\(//\)[^/]' \| \
15255          X"$ac_file" : 'X\(//\)$' \| \
15256          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15257 $as_echo X"$ac_file" |
15258     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15259             s//\1/
15260             q
15261           }
15262           /^X\(\/\/\)[^/].*/{
15263             s//\1/
15264             q
15265           }
15266           /^X\(\/\/\)$/{
15267             s//\1/
15268             q
15269           }
15270           /^X\(\/\).*/{
15271             s//\1/
15272             q
15273           }
15274           s/.*/./; q'`
15275   as_dir="$ac_dir"; as_fn_mkdir_p
15276   ac_builddir=.
15277
15278 case "$ac_dir" in
15279 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15280 *)
15281   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15282   # A ".." for each directory in $ac_dir_suffix.
15283   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15284   case $ac_top_builddir_sub in
15285   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15286   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15287   esac ;;
15288 esac
15289 ac_abs_top_builddir=$ac_pwd
15290 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15291 # for backward compatibility:
15292 ac_top_builddir=$ac_top_build_prefix
15293
15294 case $srcdir in
15295   .)  # We are building in place.
15296     ac_srcdir=.
15297     ac_top_srcdir=$ac_top_builddir_sub
15298     ac_abs_top_srcdir=$ac_pwd ;;
15299   [\\/]* | ?:[\\/]* )  # Absolute name.
15300     ac_srcdir=$srcdir$ac_dir_suffix;
15301     ac_top_srcdir=$srcdir
15302     ac_abs_top_srcdir=$srcdir ;;
15303   *) # Relative name.
15304     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15305     ac_top_srcdir=$ac_top_build_prefix$srcdir
15306     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15307 esac
15308 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15309
15310
15311   case $ac_mode in
15312   :F)
15313   #
15314   # CONFIG_FILE
15315   #
15316
15317   case $INSTALL in
15318   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15319   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15320   esac
15321   ac_MKDIR_P=$MKDIR_P
15322   case $MKDIR_P in
15323   [\\/$]* | ?:[\\/]* ) ;;
15324   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15325   esac
15326 _ACEOF
15327
15328 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15329 # If the template does not know about datarootdir, expand it.
15330 # FIXME: This hack should be removed a few years after 2.60.
15331 ac_datarootdir_hack=; ac_datarootdir_seen=
15332 ac_sed_dataroot='
15333 /datarootdir/ {
15334   p
15335   q
15336 }
15337 /@datadir@/p
15338 /@docdir@/p
15339 /@infodir@/p
15340 /@localedir@/p
15341 /@mandir@/p'
15342 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15343 *datarootdir*) ac_datarootdir_seen=yes;;
15344 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15345   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15346 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15347 _ACEOF
15348 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15349   ac_datarootdir_hack='
15350   s&@datadir@&$datadir&g
15351   s&@docdir@&$docdir&g
15352   s&@infodir@&$infodir&g
15353   s&@localedir@&$localedir&g
15354   s&@mandir@&$mandir&g
15355   s&\\\${datarootdir}&$datarootdir&g' ;;
15356 esac
15357 _ACEOF
15358
15359 # Neutralize VPATH when `$srcdir' = `.'.
15360 # Shell code in configure.ac might set extrasub.
15361 # FIXME: do we really want to maintain this feature?
15362 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15363 ac_sed_extra="$ac_vpsub
15364 $extrasub
15365 _ACEOF
15366 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15367 :t
15368 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15369 s|@configure_input@|$ac_sed_conf_input|;t t
15370 s&@top_builddir@&$ac_top_builddir_sub&;t t
15371 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15372 s&@srcdir@&$ac_srcdir&;t t
15373 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15374 s&@top_srcdir@&$ac_top_srcdir&;t t
15375 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15376 s&@builddir@&$ac_builddir&;t t
15377 s&@abs_builddir@&$ac_abs_builddir&;t t
15378 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15379 s&@INSTALL@&$ac_INSTALL&;t t
15380 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15381 $ac_datarootdir_hack
15382 "
15383 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15384   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15385
15386 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15387   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15388   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
15389       "$ac_tmp/out"`; test -z "$ac_out"; } &&
15390   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15391 which seems to be undefined.  Please make sure it is defined" >&5
15392 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15393 which seems to be undefined.  Please make sure it is defined" >&2;}
15394
15395   rm -f "$ac_tmp/stdin"
15396   case $ac_file in
15397   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15398   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15399   esac \
15400   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15401  ;;
15402   :H)
15403   #
15404   # CONFIG_HEADER
15405   #
15406   if test x"$ac_file" != x-; then
15407     {
15408       $as_echo "/* $configure_input  */" \
15409       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15410     } >"$ac_tmp/config.h" \
15411       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15412     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15413       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15414 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15415     else
15416       rm -f "$ac_file"
15417       mv "$ac_tmp/config.h" "$ac_file" \
15418         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15419     fi
15420   else
15421     $as_echo "/* $configure_input  */" \
15422       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15423       || as_fn_error $? "could not create -" "$LINENO" 5
15424   fi
15425 # Compute "$ac_file"'s index in $config_headers.
15426 _am_arg="$ac_file"
15427 _am_stamp_count=1
15428 for _am_header in $config_headers :; do
15429   case $_am_header in
15430     $_am_arg | $_am_arg:* )
15431       break ;;
15432     * )
15433       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15434   esac
15435 done
15436 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15437 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15438          X"$_am_arg" : 'X\(//\)[^/]' \| \
15439          X"$_am_arg" : 'X\(//\)$' \| \
15440          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15441 $as_echo X"$_am_arg" |
15442     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15443             s//\1/
15444             q
15445           }
15446           /^X\(\/\/\)[^/].*/{
15447             s//\1/
15448             q
15449           }
15450           /^X\(\/\/\)$/{
15451             s//\1/
15452             q
15453           }
15454           /^X\(\/\).*/{
15455             s//\1/
15456             q
15457           }
15458           s/.*/./; q'`/stamp-h$_am_stamp_count
15459  ;;
15460
15461   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15462 $as_echo "$as_me: executing $ac_file commands" >&6;}
15463  ;;
15464   esac
15465
15466
15467   case $ac_file$ac_mode in
15468     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15469   # Autoconf 2.62 quotes --file arguments for eval, but not when files
15470   # are listed without --file.  Let's play safe and only enable the eval
15471   # if we detect the quoting.
15472   case $CONFIG_FILES in
15473   *\'*) eval set x "$CONFIG_FILES" ;;
15474   *)   set x $CONFIG_FILES ;;
15475   esac
15476   shift
15477   for mf
15478   do
15479     # Strip MF so we end up with the name of the file.
15480     mf=`echo "$mf" | sed -e 's/:.*$//'`
15481     # Check whether this is an Automake generated Makefile or not.
15482     # We used to match only the files named `Makefile.in', but
15483     # some people rename them; so instead we look at the file content.
15484     # Grep'ing the first line is not enough: some people post-process
15485     # each Makefile.in and add a new line on top of each file to say so.
15486     # Grep'ing the whole file is not good either: AIX grep has a line
15487     # limit of 2048, but all sed's we know have understand at least 4000.
15488     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15489       dirpart=`$as_dirname -- "$mf" ||
15490 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15491          X"$mf" : 'X\(//\)[^/]' \| \
15492          X"$mf" : 'X\(//\)$' \| \
15493          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15494 $as_echo X"$mf" |
15495     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15496             s//\1/
15497             q
15498           }
15499           /^X\(\/\/\)[^/].*/{
15500             s//\1/
15501             q
15502           }
15503           /^X\(\/\/\)$/{
15504             s//\1/
15505             q
15506           }
15507           /^X\(\/\).*/{
15508             s//\1/
15509             q
15510           }
15511           s/.*/./; q'`
15512     else
15513       continue
15514     fi
15515     # Extract the definition of DEPDIR, am__include, and am__quote
15516     # from the Makefile without running `make'.
15517     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15518     test -z "$DEPDIR" && continue
15519     am__include=`sed -n 's/^am__include = //p' < "$mf"`
15520     test -z "am__include" && continue
15521     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15522     # When using ansi2knr, U may be empty or an underscore; expand it
15523     U=`sed -n 's/^U = //p' < "$mf"`
15524     # Find all dependency output files, they are included files with
15525     # $(DEPDIR) in their names.  We invoke sed twice because it is the
15526     # simplest approach to changing $(DEPDIR) to its actual value in the
15527     # expansion.
15528     for file in `sed -n "
15529       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15530          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15531       # Make sure the directory exists.
15532       test -f "$dirpart/$file" && continue
15533       fdir=`$as_dirname -- "$file" ||
15534 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15535          X"$file" : 'X\(//\)[^/]' \| \
15536          X"$file" : 'X\(//\)$' \| \
15537          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15538 $as_echo X"$file" |
15539     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15540             s//\1/
15541             q
15542           }
15543           /^X\(\/\/\)[^/].*/{
15544             s//\1/
15545             q
15546           }
15547           /^X\(\/\/\)$/{
15548             s//\1/
15549             q
15550           }
15551           /^X\(\/\).*/{
15552             s//\1/
15553             q
15554           }
15555           s/.*/./; q'`
15556       as_dir=$dirpart/$fdir; as_fn_mkdir_p
15557       # echo "creating $dirpart/$file"
15558       echo '# dummy' > "$dirpart/$file"
15559     done
15560   done
15561 }
15562  ;;
15563     "libtool":C)
15564
15565     # See if we are running on zsh, and set the options which allow our
15566     # commands through without removal of \ escapes.
15567     if test -n "${ZSH_VERSION+set}" ; then
15568       setopt NO_GLOB_SUBST
15569     fi
15570
15571     cfgfile="${ofile}T"
15572     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15573     $RM "$cfgfile"
15574
15575     cat <<_LT_EOF >> "$cfgfile"
15576 #! $SHELL
15577
15578 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15579 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15580 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15581 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15582 #
15583 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15584 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
15585 #                 Foundation, Inc.
15586 #   Written by Gordon Matzigkeit, 1996
15587 #
15588 #   This file is part of GNU Libtool.
15589 #
15590 # GNU Libtool is free software; you can redistribute it and/or
15591 # modify it under the terms of the GNU General Public License as
15592 # published by the Free Software Foundation; either version 2 of
15593 # the License, or (at your option) any later version.
15594 #
15595 # As a special exception to the GNU General Public License,
15596 # if you distribute this file as part of a program or library that
15597 # is built using GNU Libtool, you may include this file under the
15598 # same distribution terms that you use for the rest of that program.
15599 #
15600 # GNU Libtool is distributed in the hope that it will be useful,
15601 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15602 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15603 # GNU General Public License for more details.
15604 #
15605 # You should have received a copy of the GNU General Public License
15606 # along with GNU Libtool; see the file COPYING.  If not, a copy
15607 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15608 # obtained by writing to the Free Software Foundation, Inc.,
15609 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15610
15611
15612 # The names of the tagged configurations supported by this script.
15613 available_tags=""
15614
15615 # ### BEGIN LIBTOOL CONFIG
15616
15617 # Whether or not to build static libraries.
15618 build_old_libs=$enable_static
15619
15620 # Which release of libtool.m4 was used?
15621 macro_version=$macro_version
15622 macro_revision=$macro_revision
15623
15624 # Whether or not to build shared libraries.
15625 build_libtool_libs=$enable_shared
15626
15627 # What type of objects to build.
15628 pic_mode=$pic_mode
15629
15630 # Whether or not to optimize for fast installation.
15631 fast_install=$enable_fast_install
15632
15633 # Shell to use when invoking shell scripts.
15634 SHELL=$lt_SHELL
15635
15636 # An echo program that protects backslashes.
15637 ECHO=$lt_ECHO
15638
15639 # The PATH separator for the build system.
15640 PATH_SEPARATOR=$lt_PATH_SEPARATOR
15641
15642 # The host system.
15643 host_alias=$host_alias
15644 host=$host
15645 host_os=$host_os
15646
15647 # The build system.
15648 build_alias=$build_alias
15649 build=$build
15650 build_os=$build_os
15651
15652 # A sed program that does not truncate output.
15653 SED=$lt_SED
15654
15655 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15656 Xsed="\$SED -e 1s/^X//"
15657
15658 # A grep program that handles long lines.
15659 GREP=$lt_GREP
15660
15661 # An ERE matcher.
15662 EGREP=$lt_EGREP
15663
15664 # A literal string matcher.
15665 FGREP=$lt_FGREP
15666
15667 # A BSD- or MS-compatible name lister.
15668 NM=$lt_NM
15669
15670 # Whether we need soft or hard links.
15671 LN_S=$lt_LN_S
15672
15673 # What is the maximum length of a command?
15674 max_cmd_len=$max_cmd_len
15675
15676 # Object file suffix (normally "o").
15677 objext=$ac_objext
15678
15679 # Executable file suffix (normally "").
15680 exeext=$exeext
15681
15682 # whether the shell understands "unset".
15683 lt_unset=$lt_unset
15684
15685 # turn spaces into newlines.
15686 SP2NL=$lt_lt_SP2NL
15687
15688 # turn newlines into spaces.
15689 NL2SP=$lt_lt_NL2SP
15690
15691 # convert \$build file names to \$host format.
15692 to_host_file_cmd=$lt_cv_to_host_file_cmd
15693
15694 # convert \$build files to toolchain format.
15695 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15696
15697 # An object symbol dumper.
15698 OBJDUMP=$lt_OBJDUMP
15699
15700 # Method to check whether dependent libraries are shared objects.
15701 deplibs_check_method=$lt_deplibs_check_method
15702
15703 # Command to use when deplibs_check_method = "file_magic".
15704 file_magic_cmd=$lt_file_magic_cmd
15705
15706 # How to find potential files when deplibs_check_method = "file_magic".
15707 file_magic_glob=$lt_file_magic_glob
15708
15709 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15710 want_nocaseglob=$lt_want_nocaseglob
15711
15712 # DLL creation program.
15713 DLLTOOL=$lt_DLLTOOL
15714
15715 # Command to associate shared and link libraries.
15716 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15717
15718 # The archiver.
15719 AR=$lt_AR
15720
15721 # Flags to create an archive.
15722 AR_FLAGS=$lt_AR_FLAGS
15723
15724 # How to feed a file listing to the archiver.
15725 archiver_list_spec=$lt_archiver_list_spec
15726
15727 # A symbol stripping program.
15728 STRIP=$lt_STRIP
15729
15730 # Commands used to install an old-style archive.
15731 RANLIB=$lt_RANLIB
15732 old_postinstall_cmds=$lt_old_postinstall_cmds
15733 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15734
15735 # Whether to use a lock for old archive extraction.
15736 lock_old_archive_extraction=$lock_old_archive_extraction
15737
15738 # A C compiler.
15739 LTCC=$lt_CC
15740
15741 # LTCC compiler flags.
15742 LTCFLAGS=$lt_CFLAGS
15743
15744 # Take the output of nm and produce a listing of raw symbols and C names.
15745 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15746
15747 # Transform the output of nm in a proper C declaration.
15748 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15749
15750 # Transform the output of nm in a C name address pair.
15751 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15752
15753 # Transform the output of nm in a C name address pair when lib prefix is needed.
15754 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15755
15756 # Specify filename containing input files for \$NM.
15757 nm_file_list_spec=$lt_nm_file_list_spec
15758
15759 # The root where to search for dependent libraries,and in which our libraries should be installed.
15760 lt_sysroot=$lt_sysroot
15761
15762 # The name of the directory that contains temporary libtool files.
15763 objdir=$objdir
15764
15765 # Used to examine libraries when file_magic_cmd begins with "file".
15766 MAGIC_CMD=$MAGIC_CMD
15767
15768 # Must we lock files when doing compilation?
15769 need_locks=$lt_need_locks
15770
15771 # Manifest tool.
15772 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15773
15774 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15775 DSYMUTIL=$lt_DSYMUTIL
15776
15777 # Tool to change global to local symbols on Mac OS X.
15778 NMEDIT=$lt_NMEDIT
15779
15780 # Tool to manipulate fat objects and archives on Mac OS X.
15781 LIPO=$lt_LIPO
15782
15783 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15784 OTOOL=$lt_OTOOL
15785
15786 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15787 OTOOL64=$lt_OTOOL64
15788
15789 # Old archive suffix (normally "a").
15790 libext=$libext
15791
15792 # Shared library suffix (normally ".so").
15793 shrext_cmds=$lt_shrext_cmds
15794
15795 # The commands to extract the exported symbol list from a shared archive.
15796 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15797
15798 # Variables whose values should be saved in libtool wrapper scripts and
15799 # restored at link time.
15800 variables_saved_for_relink=$lt_variables_saved_for_relink
15801
15802 # Do we need the "lib" prefix for modules?
15803 need_lib_prefix=$need_lib_prefix
15804
15805 # Do we need a version for libraries?
15806 need_version=$need_version
15807
15808 # Library versioning type.
15809 version_type=$version_type
15810
15811 # Shared library runtime path variable.
15812 runpath_var=$runpath_var
15813
15814 # Shared library path variable.
15815 shlibpath_var=$shlibpath_var
15816
15817 # Is shlibpath searched before the hard-coded library search path?
15818 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15819
15820 # Format of library name prefix.
15821 libname_spec=$lt_libname_spec
15822
15823 # List of archive names.  First name is the real one, the rest are links.
15824 # The last name is the one that the linker finds with -lNAME
15825 library_names_spec=$lt_library_names_spec
15826
15827 # The coded name of the library, if different from the real name.
15828 soname_spec=$lt_soname_spec
15829
15830 # Permission mode override for installation of shared libraries.
15831 install_override_mode=$lt_install_override_mode
15832
15833 # Command to use after installation of a shared archive.
15834 postinstall_cmds=$lt_postinstall_cmds
15835
15836 # Command to use after uninstallation of a shared archive.
15837 postuninstall_cmds=$lt_postuninstall_cmds
15838
15839 # Commands used to finish a libtool library installation in a directory.
15840 finish_cmds=$lt_finish_cmds
15841
15842 # As "finish_cmds", except a single script fragment to be evaled but
15843 # not shown.
15844 finish_eval=$lt_finish_eval
15845
15846 # Whether we should hardcode library paths into libraries.
15847 hardcode_into_libs=$hardcode_into_libs
15848
15849 # Compile-time system search path for libraries.
15850 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15851
15852 # Run-time system search path for libraries.
15853 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15854
15855 # Whether dlopen is supported.
15856 dlopen_support=$enable_dlopen
15857
15858 # Whether dlopen of programs is supported.
15859 dlopen_self=$enable_dlopen_self
15860
15861 # Whether dlopen of statically linked programs is supported.
15862 dlopen_self_static=$enable_dlopen_self_static
15863
15864 # Commands to strip libraries.
15865 old_striplib=$lt_old_striplib
15866 striplib=$lt_striplib
15867
15868
15869 # The linker used to build libraries.
15870 LD=$lt_LD
15871
15872 # How to create reloadable object files.
15873 reload_flag=$lt_reload_flag
15874 reload_cmds=$lt_reload_cmds
15875
15876 # Commands used to build an old-style archive.
15877 old_archive_cmds=$lt_old_archive_cmds
15878
15879 # A language specific compiler.
15880 CC=$lt_compiler
15881
15882 # Is the compiler the GNU compiler?
15883 with_gcc=$GCC
15884
15885 # Compiler flag to turn off builtin functions.
15886 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15887
15888 # Additional compiler flags for building library objects.
15889 pic_flag=$lt_lt_prog_compiler_pic
15890
15891 # How to pass a linker flag through the compiler.
15892 wl=$lt_lt_prog_compiler_wl
15893
15894 # Compiler flag to prevent dynamic linking.
15895 link_static_flag=$lt_lt_prog_compiler_static
15896
15897 # Does compiler simultaneously support -c and -o options?
15898 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15899
15900 # Whether or not to add -lc for building shared libraries.
15901 build_libtool_need_lc=$archive_cmds_need_lc
15902
15903 # Whether or not to disallow shared libs when runtime libs are static.
15904 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15905
15906 # Compiler flag to allow reflexive dlopens.
15907 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15908
15909 # Compiler flag to generate shared objects directly from archives.
15910 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15911
15912 # Whether the compiler copes with passing no objects directly.
15913 compiler_needs_object=$lt_compiler_needs_object
15914
15915 # Create an old-style archive from a shared archive.
15916 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15917
15918 # Create a temporary old-style archive to link instead of a shared archive.
15919 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15920
15921 # Commands used to build a shared archive.
15922 archive_cmds=$lt_archive_cmds
15923 archive_expsym_cmds=$lt_archive_expsym_cmds
15924
15925 # Commands used to build a loadable module if different from building
15926 # a shared archive.
15927 module_cmds=$lt_module_cmds
15928 module_expsym_cmds=$lt_module_expsym_cmds
15929
15930 # Whether we are building with GNU ld or not.
15931 with_gnu_ld=$lt_with_gnu_ld
15932
15933 # Flag that allows shared libraries with undefined symbols to be built.
15934 allow_undefined_flag=$lt_allow_undefined_flag
15935
15936 # Flag that enforces no undefined symbols.
15937 no_undefined_flag=$lt_no_undefined_flag
15938
15939 # Flag to hardcode \$libdir into a binary during linking.
15940 # This must work even if \$libdir does not exist
15941 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15942
15943 # Whether we need a single "-rpath" flag with a separated argument.
15944 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15945
15946 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15947 # DIR into the resulting binary.
15948 hardcode_direct=$hardcode_direct
15949
15950 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15951 # DIR into the resulting binary and the resulting library dependency is
15952 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15953 # library is relocated.
15954 hardcode_direct_absolute=$hardcode_direct_absolute
15955
15956 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15957 # into the resulting binary.
15958 hardcode_minus_L=$hardcode_minus_L
15959
15960 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15961 # into the resulting binary.
15962 hardcode_shlibpath_var=$hardcode_shlibpath_var
15963
15964 # Set to "yes" if building a shared library automatically hardcodes DIR
15965 # into the library and all subsequent libraries and executables linked
15966 # against it.
15967 hardcode_automatic=$hardcode_automatic
15968
15969 # Set to yes if linker adds runtime paths of dependent libraries
15970 # to runtime path list.
15971 inherit_rpath=$inherit_rpath
15972
15973 # Whether libtool must link a program against all its dependency libraries.
15974 link_all_deplibs=$link_all_deplibs
15975
15976 # Set to "yes" if exported symbols are required.
15977 always_export_symbols=$always_export_symbols
15978
15979 # The commands to list exported symbols.
15980 export_symbols_cmds=$lt_export_symbols_cmds
15981
15982 # Symbols that should not be listed in the preloaded symbols.
15983 exclude_expsyms=$lt_exclude_expsyms
15984
15985 # Symbols that must always be exported.
15986 include_expsyms=$lt_include_expsyms
15987
15988 # Commands necessary for linking programs (against libraries) with templates.
15989 prelink_cmds=$lt_prelink_cmds
15990
15991 # Commands necessary for finishing linking programs.
15992 postlink_cmds=$lt_postlink_cmds
15993
15994 # Specify filename containing input files.
15995 file_list_spec=$lt_file_list_spec
15996
15997 # How to hardcode a shared library path into an executable.
15998 hardcode_action=$hardcode_action
15999
16000 # ### END LIBTOOL CONFIG
16001
16002 _LT_EOF
16003
16004   case $host_os in
16005   aix3*)
16006     cat <<\_LT_EOF >> "$cfgfile"
16007 # AIX sometimes has problems with the GCC collect2 program.  For some
16008 # reason, if we set the COLLECT_NAMES environment variable, the problems
16009 # vanish in a puff of smoke.
16010 if test "X${COLLECT_NAMES+set}" != Xset; then
16011   COLLECT_NAMES=
16012   export COLLECT_NAMES
16013 fi
16014 _LT_EOF
16015     ;;
16016   esac
16017
16018
16019 ltmain="$ac_aux_dir/ltmain.sh"
16020
16021
16022   # We use sed instead of cat because bash on DJGPP gets confused if
16023   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
16024   # text mode, it properly converts lines to CR/LF.  This bash problem
16025   # is reportedly fixed, but why not run on old versions too?
16026   sed '$q' "$ltmain" >> "$cfgfile" \
16027      || (rm -f "$cfgfile"; exit 1)
16028
16029   if test x"$xsi_shell" = xyes; then
16030   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
16031 func_dirname ()\
16032 {\
16033 \    case ${1} in\
16034 \      */*) func_dirname_result="${1%/*}${2}" ;;\
16035 \      *  ) func_dirname_result="${3}" ;;\
16036 \    esac\
16037 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
16038   && mv -f "$cfgfile.tmp" "$cfgfile" \
16039     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16040 test 0 -eq $? || _lt_function_replace_fail=:
16041
16042
16043   sed -e '/^func_basename ()$/,/^} # func_basename /c\
16044 func_basename ()\
16045 {\
16046 \    func_basename_result="${1##*/}"\
16047 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
16048   && mv -f "$cfgfile.tmp" "$cfgfile" \
16049     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16050 test 0 -eq $? || _lt_function_replace_fail=:
16051
16052
16053   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
16054 func_dirname_and_basename ()\
16055 {\
16056 \    case ${1} in\
16057 \      */*) func_dirname_result="${1%/*}${2}" ;;\
16058 \      *  ) func_dirname_result="${3}" ;;\
16059 \    esac\
16060 \    func_basename_result="${1##*/}"\
16061 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
16062   && mv -f "$cfgfile.tmp" "$cfgfile" \
16063     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16064 test 0 -eq $? || _lt_function_replace_fail=:
16065
16066
16067   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
16068 func_stripname ()\
16069 {\
16070 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
16071 \    # positional parameters, so assign one to ordinary parameter first.\
16072 \    func_stripname_result=${3}\
16073 \    func_stripname_result=${func_stripname_result#"${1}"}\
16074 \    func_stripname_result=${func_stripname_result%"${2}"}\
16075 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
16076   && mv -f "$cfgfile.tmp" "$cfgfile" \
16077     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16078 test 0 -eq $? || _lt_function_replace_fail=:
16079
16080
16081   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
16082 func_split_long_opt ()\
16083 {\
16084 \    func_split_long_opt_name=${1%%=*}\
16085 \    func_split_long_opt_arg=${1#*=}\
16086 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
16087   && mv -f "$cfgfile.tmp" "$cfgfile" \
16088     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16089 test 0 -eq $? || _lt_function_replace_fail=:
16090
16091
16092   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
16093 func_split_short_opt ()\
16094 {\
16095 \    func_split_short_opt_arg=${1#??}\
16096 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
16097 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
16098   && mv -f "$cfgfile.tmp" "$cfgfile" \
16099     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16100 test 0 -eq $? || _lt_function_replace_fail=:
16101
16102
16103   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
16104 func_lo2o ()\
16105 {\
16106 \    case ${1} in\
16107 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
16108 \      *)    func_lo2o_result=${1} ;;\
16109 \    esac\
16110 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
16111   && mv -f "$cfgfile.tmp" "$cfgfile" \
16112     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16113 test 0 -eq $? || _lt_function_replace_fail=:
16114
16115
16116   sed -e '/^func_xform ()$/,/^} # func_xform /c\
16117 func_xform ()\
16118 {\
16119     func_xform_result=${1%.*}.lo\
16120 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
16121   && mv -f "$cfgfile.tmp" "$cfgfile" \
16122     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16123 test 0 -eq $? || _lt_function_replace_fail=:
16124
16125
16126   sed -e '/^func_arith ()$/,/^} # func_arith /c\
16127 func_arith ()\
16128 {\
16129     func_arith_result=$(( $* ))\
16130 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
16131   && mv -f "$cfgfile.tmp" "$cfgfile" \
16132     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16133 test 0 -eq $? || _lt_function_replace_fail=:
16134
16135
16136   sed -e '/^func_len ()$/,/^} # func_len /c\
16137 func_len ()\
16138 {\
16139     func_len_result=${#1}\
16140 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
16141   && mv -f "$cfgfile.tmp" "$cfgfile" \
16142     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16143 test 0 -eq $? || _lt_function_replace_fail=:
16144
16145 fi
16146
16147 if test x"$lt_shell_append" = xyes; then
16148   sed -e '/^func_append ()$/,/^} # func_append /c\
16149 func_append ()\
16150 {\
16151     eval "${1}+=\\${2}"\
16152 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
16153   && mv -f "$cfgfile.tmp" "$cfgfile" \
16154     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16155 test 0 -eq $? || _lt_function_replace_fail=:
16156
16157
16158   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
16159 func_append_quoted ()\
16160 {\
16161 \    func_quote_for_eval "${2}"\
16162 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
16163 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
16164   && mv -f "$cfgfile.tmp" "$cfgfile" \
16165     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16166 test 0 -eq $? || _lt_function_replace_fail=:
16167
16168
16169   # Save a `func_append' function call where possible by direct use of '+='
16170   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
16171     && mv -f "$cfgfile.tmp" "$cfgfile" \
16172       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16173   test 0 -eq $? || _lt_function_replace_fail=:
16174 else
16175   # Save a `func_append' function call even when '+=' is not available
16176   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
16177     && mv -f "$cfgfile.tmp" "$cfgfile" \
16178       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16179   test 0 -eq $? || _lt_function_replace_fail=:
16180 fi
16181
16182 if test x"$_lt_function_replace_fail" = x":"; then
16183   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
16184 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
16185 fi
16186
16187
16188    mv -f "$cfgfile" "$ofile" ||
16189     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16190   chmod +x "$ofile"
16191
16192  ;;
16193
16194   esac
16195 done # for ac_tag
16196
16197
16198 as_fn_exit 0
16199 _ACEOF
16200 ac_clean_files=$ac_clean_files_save
16201
16202 test $ac_write_fail = 0 ||
16203   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16204
16205
16206 # configure is writing to config.log, and then calls config.status.
16207 # config.status does its own redirection, appending to config.log.
16208 # Unfortunately, on DOS this fails, as config.log is still kept open
16209 # by configure, so config.status won't be able to write to it; its
16210 # output is simply discarded.  So we exec the FD to /dev/null,
16211 # effectively closing config.log, so it can be properly (re)opened and
16212 # appended to by config.status.  When coming back to configure, we
16213 # need to make the FD available again.
16214 if test "$no_create" != yes; then
16215   ac_cs_success=:
16216   ac_config_status_args=
16217   test "$silent" = yes &&
16218     ac_config_status_args="$ac_config_status_args --quiet"
16219   exec 5>/dev/null
16220   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16221   exec 5>>config.log
16222   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16223   # would make configure fail if this is the last instruction.
16224   $ac_cs_success || as_fn_exit 1
16225 fi
16226 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16227   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16228 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16229 fi
16230