Initial submission of GUPnP to Tizen IVI
[profile/ivi/GUPnP.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for gupnp 0.18.0.
4 #
5 # Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=gupnp&component=gupnp>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22   emulate sh
23   NULLCMD=:
24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25   # is contrary to our usage.  Disable this feature.
26   alias -g '${1+"$@"}'='"$@"'
27   setopt NO_GLOB_SUBST
28 else
29   case `(set -o) 2>/dev/null` in #(
30   *posix*) :
31     set -o posix ;; #(
32   *) :
33      ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49   as_echo='print -r --'
50   as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in #(
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order.  Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" ""        $as_nl"
92
93 # Find who we are.  Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96   *[\\/]* ) as_myself=$0 ;;
97   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100   IFS=$as_save_IFS
101   test -z "$as_dir" && as_dir=.
102     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103   done
104 IFS=$as_save_IFS
105
106      ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111   as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115   exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there.  '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141   emulate sh
142   NULLCMD=:
143   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144   # is contrary to our usage.  Disable this feature.
145   alias -g '\${1+\"\$@\"}'='\"\$@\"'
146   setopt NO_GLOB_SUBST
147 else
148   case \`(set -o) 2>/dev/null\` in #(
149   *posix*) :
150     set -o posix ;; #(
151   *) :
152      ;;
153 esac
154 fi
155 "
156   as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170   exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1
178
179   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
180     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183     PATH=/empty FPATH=/empty; export PATH FPATH
184     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
185       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
186   if (eval "$as_required") 2>/dev/null; then :
187   as_have_required=yes
188 else
189   as_have_required=no
190 fi
191   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193 else
194   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195 as_found=false
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 do
198   IFS=$as_save_IFS
199   test -z "$as_dir" && as_dir=.
200   as_found=:
201   case $as_dir in #(
202          /*)
203            for as_base in sh bash ksh sh5; do
204              # Try only shells that exist, to save several forks.
205              as_shell=$as_dir/$as_base
206              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208   CONFIG_SHELL=$as_shell as_have_required=yes
209                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210   break 2
211 fi
212 fi
213            done;;
214        esac
215   as_found=false
216 done
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219   CONFIG_SHELL=$SHELL as_have_required=yes
220 fi; }
221 IFS=$as_save_IFS
222
223
224       if test "x$CONFIG_SHELL" != x; then :
225   # We cannot yet assume a decent shell, so we have to provide a
226         # neutralization value for shells without unset; and this also
227         # works around shells that cannot unset nonexistent variables.
228         # Preserve -v and -x to the replacement shell.
229         BASH_ENV=/dev/null
230         ENV=/dev/null
231         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232         export CONFIG_SHELL
233         case $- in # ((((
234           *v*x* | *x*v* ) as_opts=-vx ;;
235           *v* ) as_opts=-v ;;
236           *x* ) as_opts=-x ;;
237           * ) as_opts= ;;
238         esac
239         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 fi
241
242     if test x$as_have_required = xno; then :
243   $as_echo "$0: This script requires a shell more modern than all"
244   $as_echo "$0: the shells that I found on your system."
245   if test x${ZSH_VERSION+set} = xset ; then
246     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248   else
249     $as_echo "$0: Please tell bug-autoconf@gnu.org and
250 $0: http://bugzilla.gnome.org/enter_bug.cgi?product=gupnp&component=gupnp
251 $0: about your system, including any error possibly output
252 $0: before this message. Then install a modern shell, or
253 $0: manually run the script under such a shell if you do
254 $0: have one."
255   fi
256   exit 1
257 fi
258 fi
259 fi
260 SHELL=${CONFIG_SHELL-/bin/sh}
261 export SHELL
262 # Unset more variables known to interfere with behavior of common tools.
263 CLICOLOR_FORCE= GREP_OPTIONS=
264 unset CLICOLOR_FORCE GREP_OPTIONS
265
266 ## --------------------- ##
267 ## M4sh Shell Functions. ##
268 ## --------------------- ##
269 # as_fn_unset VAR
270 # ---------------
271 # Portably unset VAR.
272 as_fn_unset ()
273 {
274   { eval $1=; unset $1;}
275 }
276 as_unset=as_fn_unset
277
278 # as_fn_set_status STATUS
279 # -----------------------
280 # Set $? to STATUS, without forking.
281 as_fn_set_status ()
282 {
283   return $1
284 } # as_fn_set_status
285
286 # as_fn_exit STATUS
287 # -----------------
288 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
289 as_fn_exit ()
290 {
291   set +e
292   as_fn_set_status $1
293   exit $1
294 } # as_fn_exit
295
296 # as_fn_mkdir_p
297 # -------------
298 # Create "$as_dir" as a directory, including parents if necessary.
299 as_fn_mkdir_p ()
300 {
301
302   case $as_dir in #(
303   -*) as_dir=./$as_dir;;
304   esac
305   test -d "$as_dir" || eval $as_mkdir_p || {
306     as_dirs=
307     while :; do
308       case $as_dir in #(
309       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
310       *) as_qdir=$as_dir;;
311       esac
312       as_dirs="'$as_qdir' $as_dirs"
313       as_dir=`$as_dirname -- "$as_dir" ||
314 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
315          X"$as_dir" : 'X\(//\)[^/]' \| \
316          X"$as_dir" : 'X\(//\)$' \| \
317          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
318 $as_echo X"$as_dir" |
319     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
320             s//\1/
321             q
322           }
323           /^X\(\/\/\)[^/].*/{
324             s//\1/
325             q
326           }
327           /^X\(\/\/\)$/{
328             s//\1/
329             q
330           }
331           /^X\(\/\).*/{
332             s//\1/
333             q
334           }
335           s/.*/./; q'`
336       test -d "$as_dir" && break
337     done
338     test -z "$as_dirs" || eval "mkdir $as_dirs"
339   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
340
341
342 } # as_fn_mkdir_p
343 # as_fn_append VAR VALUE
344 # ----------------------
345 # Append the text in VALUE to the end of the definition contained in VAR. Take
346 # advantage of any shell optimizations that allow amortized linear growth over
347 # repeated appends, instead of the typical quadratic growth present in naive
348 # implementations.
349 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
350   eval 'as_fn_append ()
351   {
352     eval $1+=\$2
353   }'
354 else
355   as_fn_append ()
356   {
357     eval $1=\$$1\$2
358   }
359 fi # as_fn_append
360
361 # as_fn_arith ARG...
362 # ------------------
363 # Perform arithmetic evaluation on the ARGs, and store the result in the
364 # global $as_val. Take advantage of shells that can avoid forks. The arguments
365 # must be portable across $(()) and expr.
366 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
367   eval 'as_fn_arith ()
368   {
369     as_val=$(( $* ))
370   }'
371 else
372   as_fn_arith ()
373   {
374     as_val=`expr "$@" || test $? -eq 1`
375   }
376 fi # as_fn_arith
377
378
379 # as_fn_error STATUS ERROR [LINENO LOG_FD]
380 # ----------------------------------------
381 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
382 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
383 # script with STATUS, using 1 if that was 0.
384 as_fn_error ()
385 {
386   as_status=$1; test $as_status -eq 0 && as_status=1
387   if test "$4"; then
388     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
389     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
390   fi
391   $as_echo "$as_me: error: $2" >&2
392   as_fn_exit $as_status
393 } # as_fn_error
394
395 if expr a : '\(a\)' >/dev/null 2>&1 &&
396    test "X`expr 00001 : '.*\(...\)'`" = X001; then
397   as_expr=expr
398 else
399   as_expr=false
400 fi
401
402 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
403   as_basename=basename
404 else
405   as_basename=false
406 fi
407
408 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
409   as_dirname=dirname
410 else
411   as_dirname=false
412 fi
413
414 as_me=`$as_basename -- "$0" ||
415 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
416          X"$0" : 'X\(//\)$' \| \
417          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
418 $as_echo X/"$0" |
419     sed '/^.*\/\([^/][^/]*\)\/*$/{
420             s//\1/
421             q
422           }
423           /^X\/\(\/\/\)$/{
424             s//\1/
425             q
426           }
427           /^X\/\(\/\).*/{
428             s//\1/
429             q
430           }
431           s/.*/./; q'`
432
433 # Avoid depending upon Character Ranges.
434 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
435 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
436 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
437 as_cr_digits='0123456789'
438 as_cr_alnum=$as_cr_Letters$as_cr_digits
439
440
441   as_lineno_1=$LINENO as_lineno_1a=$LINENO
442   as_lineno_2=$LINENO as_lineno_2a=$LINENO
443   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
444   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
445   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
446   sed -n '
447     p
448     /[$]LINENO/=
449   ' <$as_myself |
450     sed '
451       s/[$]LINENO.*/&-/
452       t lineno
453       b
454       :lineno
455       N
456       :loop
457       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
458       t loop
459       s/-\n.*//
460     ' >$as_me.lineno &&
461   chmod +x "$as_me.lineno" ||
462     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
463
464   # Don't try to exec as it changes $[0], causing all sort of problems
465   # (the dirname of $[0] is not the place where we might find the
466   # original and so on.  Autoconf is especially sensitive to this).
467   . "./$as_me.lineno"
468   # Exit status is that of the last command.
469   exit
470 }
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in #(((((
474 -n*)
475   case `echo 'xy\c'` in
476   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477   xy)  ECHO_C='\c';;
478   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
479        ECHO_T=' ';;
480   esac;;
481 *)
482   ECHO_N='-n';;
483 esac
484
485 rm -f conf$$ conf$$.exe conf$$.file
486 if test -d conf$$.dir; then
487   rm -f conf$$.dir/conf$$.file
488 else
489   rm -f conf$$.dir
490   mkdir conf$$.dir 2>/dev/null
491 fi
492 if (echo >conf$$.file) 2>/dev/null; then
493   if ln -s conf$$.file conf$$ 2>/dev/null; then
494     as_ln_s='ln -s'
495     # ... but there are two gotchas:
496     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
497     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
498     # In both cases, we have to default to `cp -p'.
499     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500       as_ln_s='cp -p'
501   elif ln conf$$.file conf$$ 2>/dev/null; then
502     as_ln_s=ln
503   else
504     as_ln_s='cp -p'
505   fi
506 else
507   as_ln_s='cp -p'
508 fi
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
511
512 if mkdir -p . 2>/dev/null; then
513   as_mkdir_p='mkdir -p "$as_dir"'
514 else
515   test -d ./-p && rmdir ./-p
516   as_mkdir_p=false
517 fi
518
519 if test -x / >/dev/null 2>&1; then
520   as_test_x='test -x'
521 else
522   if ls -dL / >/dev/null 2>&1; then
523     as_ls_L_option=L
524   else
525     as_ls_L_option=
526   fi
527   as_test_x='
528     eval sh -c '\''
529       if test -d "$1"; then
530         test -d "$1/.";
531       else
532         case $1 in #(
533         -*)set "./$1";;
534         esac;
535         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
536         ???[sx]*):;;*)false;;esac;fi
537     '\'' sh
538   '
539 fi
540 as_executable_p=$as_test_x
541
542 # Sed expression to map a string onto a valid CPP name.
543 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
544
545 # Sed expression to map a string onto a valid variable name.
546 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
547
548 SHELL=${CONFIG_SHELL-/bin/sh}
549
550
551 test -n "$DJDIR" || exec 7<&0 </dev/null
552 exec 6>&1
553
554 # Name of the host.
555 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559 #
560 # Initializations.
561 #
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570
571 # Identity of this package.
572 PACKAGE_NAME='gupnp'
573 PACKAGE_TARNAME='gupnp'
574 PACKAGE_VERSION='0.18.0'
575 PACKAGE_STRING='gupnp 0.18.0'
576 PACKAGE_BUGREPORT='http://bugzilla.gnome.org/enter_bug.cgi?product=gupnp&component=gupnp'
577 PACKAGE_URL='http://www.gupnp.org/'
578
579 ac_unique_file="libgupnp/gupnp.h"
580 ac_header_list=
581 # Factoring default headers for most tests.
582 ac_includes_default="\
583 #include <stdio.h>
584 #ifdef HAVE_SYS_TYPES_H
585 # include <sys/types.h>
586 #endif
587 #ifdef HAVE_SYS_STAT_H
588 # include <sys/stat.h>
589 #endif
590 #ifdef STDC_HEADERS
591 # include <stdlib.h>
592 # include <stddef.h>
593 #else
594 # ifdef HAVE_STDLIB_H
595 #  include <stdlib.h>
596 # endif
597 #endif
598 #ifdef HAVE_STRING_H
599 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
600 #  include <memory.h>
601 # endif
602 # include <string.h>
603 #endif
604 #ifdef HAVE_STRINGS_H
605 # include <strings.h>
606 #endif
607 #ifdef HAVE_INTTYPES_H
608 # include <inttypes.h>
609 #endif
610 #ifdef HAVE_STDINT_H
611 # include <stdint.h>
612 #endif
613 #ifdef HAVE_UNISTD_H
614 # include <unistd.h>
615 #endif"
616
617 ac_subst_vars='am__EXEEXT_FALSE
618 am__EXEEXT_TRUE
619 LTLIBOBJS
620 LIBOBJS
621 GTK_DOC_USE_REBASE_FALSE
622 GTK_DOC_USE_REBASE_TRUE
623 GTK_DOC_USE_LIBTOOL_FALSE
624 GTK_DOC_USE_LIBTOOL_TRUE
625 GTK_DOC_BUILD_PDF_FALSE
626 GTK_DOC_BUILD_PDF_TRUE
627 GTK_DOC_BUILD_HTML_FALSE
628 GTK_DOC_BUILD_HTML_TRUE
629 ENABLE_GTK_DOC_FALSE
630 ENABLE_GTK_DOC_TRUE
631 GTKDOC_DEPS_LIBS
632 GTKDOC_DEPS_CFLAGS
633 HTML_DIR
634 GTKDOC_MKPDF
635 GTKDOC_REBASE
636 GTKDOC_CHECK
637 HAVE_INTROSPECTION_FALSE
638 HAVE_INTROSPECTION_TRUE
639 INTROSPECTION_MAKEFILE
640 INTROSPECTION_LIBS
641 INTROSPECTION_CFLAGS
642 INTROSPECTION_TYPELIBDIR
643 INTROSPECTION_GIRDIR
644 INTROSPECTION_GENERATE
645 INTROSPECTION_COMPILER
646 INTROSPECTION_SCANNER
647 GLIB_GENMARSHAL
648 USE_NETLINK
649 USE_NETLINK_FALSE
650 USE_NETLINK_TRUE
651 CONNMAN_LIBS
652 CONNMAN_CFLAGS
653 USE_CONNMAN_FALSE
654 USE_CONNMAN_TRUE
655 GIO_LIBS
656 GIO_CFLAGS
657 USE_NETWORK_MANAGER_FALSE
658 USE_NETWORK_MANAGER_TRUE
659 HAVE_NETLINK
660 HAVE_NETLINK_FALSE
661 HAVE_NETLINK_TRUE
662 GTHREAD_LIBS
663 GTHREAD_CFLAGS
664 LIBGUPNP_LIBS
665 LIBGUPNP_CFLAGS
666 HAVE_GTEST_FALSE
667 HAVE_GTEST_TRUE
668 GTest_LIBS
669 GTest_CFLAGS
670 PKG_CONFIG_LIBDIR
671 PKG_CONFIG_PATH
672 PKG_CONFIG
673 OTOOL64
674 OTOOL
675 LIPO
676 NMEDIT
677 DSYMUTIL
678 MANIFEST_TOOL
679 RANLIB
680 ac_ct_AR
681 AR
682 DLLTOOL
683 OBJDUMP
684 LN_S
685 NM
686 ac_ct_DUMPBIN
687 DUMPBIN
688 LD
689 FGREP
690 SED
691 LIBTOOL
692 EGREP
693 GREP
694 CPP
695 am__fastdepCC_FALSE
696 am__fastdepCC_TRUE
697 CCDEPMODE
698 am__nodep
699 AMDEPBACKSLASH
700 AMDEP_FALSE
701 AMDEP_TRUE
702 am__quote
703 am__include
704 DEPDIR
705 OBJEXT
706 EXEEXT
707 ac_ct_CC
708 CPPFLAGS
709 LDFLAGS
710 CFLAGS
711 CC
712 AM_BACKSLASH
713 AM_DEFAULT_VERBOSITY
714 AM_DEFAULT_V
715 AM_V
716 MAINT
717 MAINTAINER_MODE_FALSE
718 MAINTAINER_MODE_TRUE
719 am__untar
720 am__tar
721 AMTAR
722 am__leading_dot
723 SET_MAKE
724 AWK
725 mkdir_p
726 MKDIR_P
727 INSTALL_STRIP_PROGRAM
728 STRIP
729 install_sh
730 MAKEINFO
731 AUTOHEADER
732 AUTOMAKE
733 AUTOCONF
734 ACLOCAL
735 VERSION
736 PACKAGE
737 CYGPATH_W
738 am__isrc
739 INSTALL_DATA
740 INSTALL_SCRIPT
741 INSTALL_PROGRAM
742 target_os
743 target_vendor
744 target_cpu
745 target
746 host_os
747 host_vendor
748 host_cpu
749 host
750 build_os
751 build_vendor
752 build_cpu
753 build
754 target_alias
755 host_alias
756 build_alias
757 LIBS
758 ECHO_T
759 ECHO_N
760 ECHO_C
761 DEFS
762 mandir
763 localedir
764 libdir
765 psdir
766 pdfdir
767 dvidir
768 htmldir
769 infodir
770 docdir
771 oldincludedir
772 includedir
773 localstatedir
774 sharedstatedir
775 sysconfdir
776 datadir
777 datarootdir
778 libexecdir
779 sbindir
780 bindir
781 program_transform_name
782 prefix
783 exec_prefix
784 PACKAGE_URL
785 PACKAGE_BUGREPORT
786 PACKAGE_STRING
787 PACKAGE_VERSION
788 PACKAGE_TARNAME
789 PACKAGE_NAME
790 PATH_SEPARATOR
791 SHELL'
792 ac_subst_files=''
793 ac_user_opts='
794 enable_option_checking
795 enable_maintainer_mode
796 enable_silent_rules
797 enable_dependency_tracking
798 enable_largefile
799 enable_shared
800 enable_static
801 with_pic
802 enable_fast_install
803 with_gnu_ld
804 with_sysroot
805 enable_libtool_lock
806 with_context_manager
807 enable_debug
808 enable_introspection
809 with_html_dir
810 enable_gtk_doc
811 enable_gtk_doc_html
812 enable_gtk_doc_pdf
813 '
814       ac_precious_vars='build_alias
815 host_alias
816 target_alias
817 CC
818 CFLAGS
819 LDFLAGS
820 LIBS
821 CPPFLAGS
822 CPP
823 PKG_CONFIG
824 PKG_CONFIG_PATH
825 PKG_CONFIG_LIBDIR
826 GTest_CFLAGS
827 GTest_LIBS
828 LIBGUPNP_CFLAGS
829 LIBGUPNP_LIBS
830 GTHREAD_CFLAGS
831 GTHREAD_LIBS
832 GIO_CFLAGS
833 GIO_LIBS
834 CONNMAN_CFLAGS
835 CONNMAN_LIBS
836 GTKDOC_DEPS_CFLAGS
837 GTKDOC_DEPS_LIBS'
838
839
840 # Initialize some variables set by options.
841 ac_init_help=
842 ac_init_version=false
843 ac_unrecognized_opts=
844 ac_unrecognized_sep=
845 # The variables have the same names as the options, with
846 # dashes changed to underlines.
847 cache_file=/dev/null
848 exec_prefix=NONE
849 no_create=
850 no_recursion=
851 prefix=NONE
852 program_prefix=NONE
853 program_suffix=NONE
854 program_transform_name=s,x,x,
855 silent=
856 site=
857 srcdir=
858 verbose=
859 x_includes=NONE
860 x_libraries=NONE
861
862 # Installation directory options.
863 # These are left unexpanded so users can "make install exec_prefix=/foo"
864 # and all the variables that are supposed to be based on exec_prefix
865 # by default will actually change.
866 # Use braces instead of parens because sh, perl, etc. also accept them.
867 # (The list follows the same order as the GNU Coding Standards.)
868 bindir='${exec_prefix}/bin'
869 sbindir='${exec_prefix}/sbin'
870 libexecdir='${exec_prefix}/libexec'
871 datarootdir='${prefix}/share'
872 datadir='${datarootdir}'
873 sysconfdir='${prefix}/etc'
874 sharedstatedir='${prefix}/com'
875 localstatedir='${prefix}/var'
876 includedir='${prefix}/include'
877 oldincludedir='/usr/include'
878 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
879 infodir='${datarootdir}/info'
880 htmldir='${docdir}'
881 dvidir='${docdir}'
882 pdfdir='${docdir}'
883 psdir='${docdir}'
884 libdir='${exec_prefix}/lib'
885 localedir='${datarootdir}/locale'
886 mandir='${datarootdir}/man'
887
888 ac_prev=
889 ac_dashdash=
890 for ac_option
891 do
892   # If the previous option needs an argument, assign it.
893   if test -n "$ac_prev"; then
894     eval $ac_prev=\$ac_option
895     ac_prev=
896     continue
897   fi
898
899   case $ac_option in
900   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
901   *=)   ac_optarg= ;;
902   *)    ac_optarg=yes ;;
903   esac
904
905   # Accept the important Cygnus configure options, so we can diagnose typos.
906
907   case $ac_dashdash$ac_option in
908   --)
909     ac_dashdash=yes ;;
910
911   -bindir | --bindir | --bindi | --bind | --bin | --bi)
912     ac_prev=bindir ;;
913   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
914     bindir=$ac_optarg ;;
915
916   -build | --build | --buil | --bui | --bu)
917     ac_prev=build_alias ;;
918   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
919     build_alias=$ac_optarg ;;
920
921   -cache-file | --cache-file | --cache-fil | --cache-fi \
922   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
923     ac_prev=cache_file ;;
924   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
925   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
926     cache_file=$ac_optarg ;;
927
928   --config-cache | -C)
929     cache_file=config.cache ;;
930
931   -datadir | --datadir | --datadi | --datad)
932     ac_prev=datadir ;;
933   -datadir=* | --datadir=* | --datadi=* | --datad=*)
934     datadir=$ac_optarg ;;
935
936   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
937   | --dataroo | --dataro | --datar)
938     ac_prev=datarootdir ;;
939   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
940   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
941     datarootdir=$ac_optarg ;;
942
943   -disable-* | --disable-*)
944     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
945     # Reject names that are not valid shell variable names.
946     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
947       as_fn_error $? "invalid feature name: $ac_useropt"
948     ac_useropt_orig=$ac_useropt
949     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
950     case $ac_user_opts in
951       *"
952 "enable_$ac_useropt"
953 "*) ;;
954       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
955          ac_unrecognized_sep=', ';;
956     esac
957     eval enable_$ac_useropt=no ;;
958
959   -docdir | --docdir | --docdi | --doc | --do)
960     ac_prev=docdir ;;
961   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
962     docdir=$ac_optarg ;;
963
964   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
965     ac_prev=dvidir ;;
966   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
967     dvidir=$ac_optarg ;;
968
969   -enable-* | --enable-*)
970     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
971     # Reject names that are not valid shell variable names.
972     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
973       as_fn_error $? "invalid feature name: $ac_useropt"
974     ac_useropt_orig=$ac_useropt
975     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
976     case $ac_user_opts in
977       *"
978 "enable_$ac_useropt"
979 "*) ;;
980       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
981          ac_unrecognized_sep=', ';;
982     esac
983     eval enable_$ac_useropt=\$ac_optarg ;;
984
985   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
986   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
987   | --exec | --exe | --ex)
988     ac_prev=exec_prefix ;;
989   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
990   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
991   | --exec=* | --exe=* | --ex=*)
992     exec_prefix=$ac_optarg ;;
993
994   -gas | --gas | --ga | --g)
995     # Obsolete; use --with-gas.
996     with_gas=yes ;;
997
998   -help | --help | --hel | --he | -h)
999     ac_init_help=long ;;
1000   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1001     ac_init_help=recursive ;;
1002   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1003     ac_init_help=short ;;
1004
1005   -host | --host | --hos | --ho)
1006     ac_prev=host_alias ;;
1007   -host=* | --host=* | --hos=* | --ho=*)
1008     host_alias=$ac_optarg ;;
1009
1010   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1011     ac_prev=htmldir ;;
1012   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1013   | --ht=*)
1014     htmldir=$ac_optarg ;;
1015
1016   -includedir | --includedir | --includedi | --included | --include \
1017   | --includ | --inclu | --incl | --inc)
1018     ac_prev=includedir ;;
1019   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1020   | --includ=* | --inclu=* | --incl=* | --inc=*)
1021     includedir=$ac_optarg ;;
1022
1023   -infodir | --infodir | --infodi | --infod | --info | --inf)
1024     ac_prev=infodir ;;
1025   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1026     infodir=$ac_optarg ;;
1027
1028   -libdir | --libdir | --libdi | --libd)
1029     ac_prev=libdir ;;
1030   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1031     libdir=$ac_optarg ;;
1032
1033   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1034   | --libexe | --libex | --libe)
1035     ac_prev=libexecdir ;;
1036   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1037   | --libexe=* | --libex=* | --libe=*)
1038     libexecdir=$ac_optarg ;;
1039
1040   -localedir | --localedir | --localedi | --localed | --locale)
1041     ac_prev=localedir ;;
1042   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1043     localedir=$ac_optarg ;;
1044
1045   -localstatedir | --localstatedir | --localstatedi | --localstated \
1046   | --localstate | --localstat | --localsta | --localst | --locals)
1047     ac_prev=localstatedir ;;
1048   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1049   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1050     localstatedir=$ac_optarg ;;
1051
1052   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1053     ac_prev=mandir ;;
1054   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1055     mandir=$ac_optarg ;;
1056
1057   -nfp | --nfp | --nf)
1058     # Obsolete; use --without-fp.
1059     with_fp=no ;;
1060
1061   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1062   | --no-cr | --no-c | -n)
1063     no_create=yes ;;
1064
1065   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1066   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1067     no_recursion=yes ;;
1068
1069   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1070   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1071   | --oldin | --oldi | --old | --ol | --o)
1072     ac_prev=oldincludedir ;;
1073   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1074   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1075   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1076     oldincludedir=$ac_optarg ;;
1077
1078   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1079     ac_prev=prefix ;;
1080   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1081     prefix=$ac_optarg ;;
1082
1083   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1084   | --program-pre | --program-pr | --program-p)
1085     ac_prev=program_prefix ;;
1086   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1087   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1088     program_prefix=$ac_optarg ;;
1089
1090   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1091   | --program-suf | --program-su | --program-s)
1092     ac_prev=program_suffix ;;
1093   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1094   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1095     program_suffix=$ac_optarg ;;
1096
1097   -program-transform-name | --program-transform-name \
1098   | --program-transform-nam | --program-transform-na \
1099   | --program-transform-n | --program-transform- \
1100   | --program-transform | --program-transfor \
1101   | --program-transfo | --program-transf \
1102   | --program-trans | --program-tran \
1103   | --progr-tra | --program-tr | --program-t)
1104     ac_prev=program_transform_name ;;
1105   -program-transform-name=* | --program-transform-name=* \
1106   | --program-transform-nam=* | --program-transform-na=* \
1107   | --program-transform-n=* | --program-transform-=* \
1108   | --program-transform=* | --program-transfor=* \
1109   | --program-transfo=* | --program-transf=* \
1110   | --program-trans=* | --program-tran=* \
1111   | --progr-tra=* | --program-tr=* | --program-t=*)
1112     program_transform_name=$ac_optarg ;;
1113
1114   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1115     ac_prev=pdfdir ;;
1116   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1117     pdfdir=$ac_optarg ;;
1118
1119   -psdir | --psdir | --psdi | --psd | --ps)
1120     ac_prev=psdir ;;
1121   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1122     psdir=$ac_optarg ;;
1123
1124   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1125   | -silent | --silent | --silen | --sile | --sil)
1126     silent=yes ;;
1127
1128   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1129     ac_prev=sbindir ;;
1130   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1131   | --sbi=* | --sb=*)
1132     sbindir=$ac_optarg ;;
1133
1134   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1135   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1136   | --sharedst | --shareds | --shared | --share | --shar \
1137   | --sha | --sh)
1138     ac_prev=sharedstatedir ;;
1139   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1140   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1141   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1142   | --sha=* | --sh=*)
1143     sharedstatedir=$ac_optarg ;;
1144
1145   -site | --site | --sit)
1146     ac_prev=site ;;
1147   -site=* | --site=* | --sit=*)
1148     site=$ac_optarg ;;
1149
1150   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1151     ac_prev=srcdir ;;
1152   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1153     srcdir=$ac_optarg ;;
1154
1155   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1156   | --syscon | --sysco | --sysc | --sys | --sy)
1157     ac_prev=sysconfdir ;;
1158   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1159   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1160     sysconfdir=$ac_optarg ;;
1161
1162   -target | --target | --targe | --targ | --tar | --ta | --t)
1163     ac_prev=target_alias ;;
1164   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1165     target_alias=$ac_optarg ;;
1166
1167   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1168     verbose=yes ;;
1169
1170   -version | --version | --versio | --versi | --vers | -V)
1171     ac_init_version=: ;;
1172
1173   -with-* | --with-*)
1174     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1175     # Reject names that are not valid shell variable names.
1176     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1177       as_fn_error $? "invalid package name: $ac_useropt"
1178     ac_useropt_orig=$ac_useropt
1179     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1180     case $ac_user_opts in
1181       *"
1182 "with_$ac_useropt"
1183 "*) ;;
1184       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1185          ac_unrecognized_sep=', ';;
1186     esac
1187     eval with_$ac_useropt=\$ac_optarg ;;
1188
1189   -without-* | --without-*)
1190     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1191     # Reject names that are not valid shell variable names.
1192     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1193       as_fn_error $? "invalid package name: $ac_useropt"
1194     ac_useropt_orig=$ac_useropt
1195     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1196     case $ac_user_opts in
1197       *"
1198 "with_$ac_useropt"
1199 "*) ;;
1200       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1201          ac_unrecognized_sep=', ';;
1202     esac
1203     eval with_$ac_useropt=no ;;
1204
1205   --x)
1206     # Obsolete; use --with-x.
1207     with_x=yes ;;
1208
1209   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1210   | --x-incl | --x-inc | --x-in | --x-i)
1211     ac_prev=x_includes ;;
1212   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1213   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1214     x_includes=$ac_optarg ;;
1215
1216   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1217   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1218     ac_prev=x_libraries ;;
1219   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1220   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1221     x_libraries=$ac_optarg ;;
1222
1223   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1224 Try \`$0 --help' for more information"
1225     ;;
1226
1227   *=*)
1228     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1229     # Reject names that are not valid shell variable names.
1230     case $ac_envvar in #(
1231       '' | [0-9]* | *[!_$as_cr_alnum]* )
1232       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1233     esac
1234     eval $ac_envvar=\$ac_optarg
1235     export $ac_envvar ;;
1236
1237   *)
1238     # FIXME: should be removed in autoconf 3.0.
1239     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1240     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1241       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1242     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1243     ;;
1244
1245   esac
1246 done
1247
1248 if test -n "$ac_prev"; then
1249   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1250   as_fn_error $? "missing argument to $ac_option"
1251 fi
1252
1253 if test -n "$ac_unrecognized_opts"; then
1254   case $enable_option_checking in
1255     no) ;;
1256     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1257     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1258   esac
1259 fi
1260
1261 # Check all directory arguments for consistency.
1262 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1263                 datadir sysconfdir sharedstatedir localstatedir includedir \
1264                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1265                 libdir localedir mandir
1266 do
1267   eval ac_val=\$$ac_var
1268   # Remove trailing slashes.
1269   case $ac_val in
1270     */ )
1271       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1272       eval $ac_var=\$ac_val;;
1273   esac
1274   # Be sure to have absolute directory names.
1275   case $ac_val in
1276     [\\/$]* | ?:[\\/]* )  continue;;
1277     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1278   esac
1279   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1280 done
1281
1282 # There might be people who depend on the old broken behavior: `$host'
1283 # used to hold the argument of --host etc.
1284 # FIXME: To remove some day.
1285 build=$build_alias
1286 host=$host_alias
1287 target=$target_alias
1288
1289 # FIXME: To remove some day.
1290 if test "x$host_alias" != x; then
1291   if test "x$build_alias" = x; then
1292     cross_compiling=maybe
1293     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1294     If a cross compiler is detected then cross compile mode will be used" >&2
1295   elif test "x$build_alias" != "x$host_alias"; then
1296     cross_compiling=yes
1297   fi
1298 fi
1299
1300 ac_tool_prefix=
1301 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1302
1303 test "$silent" = yes && exec 6>/dev/null
1304
1305
1306 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1307 ac_ls_di=`ls -di .` &&
1308 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1309   as_fn_error $? "working directory cannot be determined"
1310 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1311   as_fn_error $? "pwd does not report name of working directory"
1312
1313
1314 # Find the source files, if location was not specified.
1315 if test -z "$srcdir"; then
1316   ac_srcdir_defaulted=yes
1317   # Try the directory containing this script, then the parent directory.
1318   ac_confdir=`$as_dirname -- "$as_myself" ||
1319 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1320          X"$as_myself" : 'X\(//\)[^/]' \| \
1321          X"$as_myself" : 'X\(//\)$' \| \
1322          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1323 $as_echo X"$as_myself" |
1324     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1325             s//\1/
1326             q
1327           }
1328           /^X\(\/\/\)[^/].*/{
1329             s//\1/
1330             q
1331           }
1332           /^X\(\/\/\)$/{
1333             s//\1/
1334             q
1335           }
1336           /^X\(\/\).*/{
1337             s//\1/
1338             q
1339           }
1340           s/.*/./; q'`
1341   srcdir=$ac_confdir
1342   if test ! -r "$srcdir/$ac_unique_file"; then
1343     srcdir=..
1344   fi
1345 else
1346   ac_srcdir_defaulted=no
1347 fi
1348 if test ! -r "$srcdir/$ac_unique_file"; then
1349   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1350   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1351 fi
1352 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1353 ac_abs_confdir=`(
1354         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1355         pwd)`
1356 # When building in place, set srcdir=.
1357 if test "$ac_abs_confdir" = "$ac_pwd"; then
1358   srcdir=.
1359 fi
1360 # Remove unnecessary trailing slashes from srcdir.
1361 # Double slashes in file names in object file debugging info
1362 # mess up M-x gdb in Emacs.
1363 case $srcdir in
1364 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1365 esac
1366 for ac_var in $ac_precious_vars; do
1367   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1368   eval ac_env_${ac_var}_value=\$${ac_var}
1369   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1370   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1371 done
1372
1373 #
1374 # Report the --help message.
1375 #
1376 if test "$ac_init_help" = "long"; then
1377   # Omit some internal or obsolete options to make the list less imposing.
1378   # This message is too long to be a string in the A/UX 3.1 sh.
1379   cat <<_ACEOF
1380 \`configure' configures gupnp 0.18.0 to adapt to many kinds of systems.
1381
1382 Usage: $0 [OPTION]... [VAR=VALUE]...
1383
1384 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1385 VAR=VALUE.  See below for descriptions of some of the useful variables.
1386
1387 Defaults for the options are specified in brackets.
1388
1389 Configuration:
1390   -h, --help              display this help and exit
1391       --help=short        display options specific to this package
1392       --help=recursive    display the short help of all the included packages
1393   -V, --version           display version information and exit
1394   -q, --quiet, --silent   do not print \`checking ...' messages
1395       --cache-file=FILE   cache test results in FILE [disabled]
1396   -C, --config-cache      alias for \`--cache-file=config.cache'
1397   -n, --no-create         do not create output files
1398       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1399
1400 Installation directories:
1401   --prefix=PREFIX         install architecture-independent files in PREFIX
1402                           [$ac_default_prefix]
1403   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1404                           [PREFIX]
1405
1406 By default, \`make install' will install all the files in
1407 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1408 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1409 for instance \`--prefix=\$HOME'.
1410
1411 For better control, use the options below.
1412
1413 Fine tuning of the installation directories:
1414   --bindir=DIR            user executables [EPREFIX/bin]
1415   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1416   --libexecdir=DIR        program executables [EPREFIX/libexec]
1417   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1418   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1419   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1420   --libdir=DIR            object code libraries [EPREFIX/lib]
1421   --includedir=DIR        C header files [PREFIX/include]
1422   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1423   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1424   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1425   --infodir=DIR           info documentation [DATAROOTDIR/info]
1426   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1427   --mandir=DIR            man documentation [DATAROOTDIR/man]
1428   --docdir=DIR            documentation root [DATAROOTDIR/doc/gupnp]
1429   --htmldir=DIR           html documentation [DOCDIR]
1430   --dvidir=DIR            dvi documentation [DOCDIR]
1431   --pdfdir=DIR            pdf documentation [DOCDIR]
1432   --psdir=DIR             ps documentation [DOCDIR]
1433 _ACEOF
1434
1435   cat <<\_ACEOF
1436
1437 Program names:
1438   --program-prefix=PREFIX            prepend PREFIX to installed program names
1439   --program-suffix=SUFFIX            append SUFFIX to installed program names
1440   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1441
1442 System types:
1443   --build=BUILD     configure for building on BUILD [guessed]
1444   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1445   --target=TARGET   configure for building compilers for TARGET [HOST]
1446 _ACEOF
1447 fi
1448
1449 if test -n "$ac_init_help"; then
1450   case $ac_init_help in
1451      short | recursive ) echo "Configuration of gupnp 0.18.0:";;
1452    esac
1453   cat <<\_ACEOF
1454
1455 Optional Features:
1456   --disable-option-checking  ignore unrecognized --enable/--with options
1457   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1458   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1459   --disable-maintainer-mode  disable make rules and dependencies not useful
1460                           (and sometimes confusing) to the casual installer
1461   --enable-silent-rules          less verbose build output (undo: `make V=1')
1462   --disable-silent-rules         verbose build output (undo: `make V=0')
1463   --disable-dependency-tracking  speeds up one-time build
1464   --enable-dependency-tracking   do not reject slow dependency extractors
1465   --disable-largefile     omit support for large files
1466   --enable-shared[=PKGS]  build shared libraries [default=yes]
1467   --enable-static[=PKGS]  build static libraries [default=yes]
1468   --enable-fast-install[=PKGS]
1469                           optimize for fast installation [default=yes]
1470   --disable-libtool-lock  avoid locking (might break parallel builds)
1471   --enable-debug          enable debugging
1472   --enable-introspection=[no/auto/yes]
1473                           Enable introspection for this build
1474   --enable-gtk-doc        use gtk-doc to build documentation [[default=no]]
1475   --enable-gtk-doc-html   build documentation in html format [[default=yes]]
1476   --enable-gtk-doc-pdf    build documentation in pdf format [[default=no]]
1477
1478 Optional Packages:
1479   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1480   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1481   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1482                           both]
1483   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1484   --with-sysroot=DIR Search for dependent libraries within DIR
1485                         (or the compiler's sysroot if not specified).
1486   --with-context-manager=[network-manager/connman/unix/linux]
1487                           Context Manager backend to use
1488   --with-html-dir=PATH    path to installed docs
1489
1490 Some influential environment variables:
1491   CC          C compiler command
1492   CFLAGS      C compiler flags
1493   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1494               nonstandard directory <lib dir>
1495   LIBS        libraries to pass to the linker, e.g. -l<library>
1496   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1497               you have headers in a nonstandard directory <include dir>
1498   CPP         C preprocessor
1499   PKG_CONFIG  path to pkg-config utility
1500   PKG_CONFIG_PATH
1501               directories to add to pkg-config's search path
1502   PKG_CONFIG_LIBDIR
1503               path overriding pkg-config's built-in search path
1504   GTest_CFLAGS
1505               C compiler flags for GTest, overriding pkg-config
1506   GTest_LIBS  linker flags for GTest, overriding pkg-config
1507   LIBGUPNP_CFLAGS
1508               C compiler flags for LIBGUPNP, overriding pkg-config
1509   LIBGUPNP_LIBS
1510               linker flags for LIBGUPNP, overriding pkg-config
1511   GTHREAD_CFLAGS
1512               C compiler flags for GTHREAD, overriding pkg-config
1513   GTHREAD_LIBS
1514               linker flags for GTHREAD, overriding pkg-config
1515   GIO_CFLAGS  C compiler flags for GIO, overriding pkg-config
1516   GIO_LIBS    linker flags for GIO, overriding pkg-config
1517   CONNMAN_CFLAGS
1518               C compiler flags for CONNMAN, overriding pkg-config
1519   CONNMAN_LIBS
1520               linker flags for CONNMAN, overriding pkg-config
1521   GTKDOC_DEPS_CFLAGS
1522               C compiler flags for GTKDOC_DEPS, overriding pkg-config
1523   GTKDOC_DEPS_LIBS
1524               linker flags for GTKDOC_DEPS, overriding pkg-config
1525
1526 Use these variables to override the choices made by `configure' or to help
1527 it to find libraries and programs with nonstandard names/locations.
1528
1529 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=gupnp&component=gupnp>.
1530 gupnp home page: <http://www.gupnp.org/>.
1531 _ACEOF
1532 ac_status=$?
1533 fi
1534
1535 if test "$ac_init_help" = "recursive"; then
1536   # If there are subdirs, report their specific --help.
1537   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1538     test -d "$ac_dir" ||
1539       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1540       continue
1541     ac_builddir=.
1542
1543 case "$ac_dir" in
1544 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1545 *)
1546   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1547   # A ".." for each directory in $ac_dir_suffix.
1548   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1549   case $ac_top_builddir_sub in
1550   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1551   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1552   esac ;;
1553 esac
1554 ac_abs_top_builddir=$ac_pwd
1555 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1556 # for backward compatibility:
1557 ac_top_builddir=$ac_top_build_prefix
1558
1559 case $srcdir in
1560   .)  # We are building in place.
1561     ac_srcdir=.
1562     ac_top_srcdir=$ac_top_builddir_sub
1563     ac_abs_top_srcdir=$ac_pwd ;;
1564   [\\/]* | ?:[\\/]* )  # Absolute name.
1565     ac_srcdir=$srcdir$ac_dir_suffix;
1566     ac_top_srcdir=$srcdir
1567     ac_abs_top_srcdir=$srcdir ;;
1568   *) # Relative name.
1569     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1570     ac_top_srcdir=$ac_top_build_prefix$srcdir
1571     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1572 esac
1573 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1574
1575     cd "$ac_dir" || { ac_status=$?; continue; }
1576     # Check for guested configure.
1577     if test -f "$ac_srcdir/configure.gnu"; then
1578       echo &&
1579       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1580     elif test -f "$ac_srcdir/configure"; then
1581       echo &&
1582       $SHELL "$ac_srcdir/configure" --help=recursive
1583     else
1584       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1585     fi || ac_status=$?
1586     cd "$ac_pwd" || { ac_status=$?; break; }
1587   done
1588 fi
1589
1590 test -n "$ac_init_help" && exit $ac_status
1591 if $ac_init_version; then
1592   cat <<\_ACEOF
1593 gupnp configure 0.18.0
1594 generated by GNU Autoconf 2.68
1595
1596 Copyright (C) 2010 Free Software Foundation, Inc.
1597 This configure script is free software; the Free Software Foundation
1598 gives unlimited permission to copy, distribute and modify it.
1599 _ACEOF
1600   exit
1601 fi
1602
1603 ## ------------------------ ##
1604 ## Autoconf initialization. ##
1605 ## ------------------------ ##
1606
1607 # ac_fn_c_try_compile LINENO
1608 # --------------------------
1609 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1610 ac_fn_c_try_compile ()
1611 {
1612   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1613   rm -f conftest.$ac_objext
1614   if { { ac_try="$ac_compile"
1615 case "(($ac_try" in
1616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1617   *) ac_try_echo=$ac_try;;
1618 esac
1619 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1620 $as_echo "$ac_try_echo"; } >&5
1621   (eval "$ac_compile") 2>conftest.err
1622   ac_status=$?
1623   if test -s conftest.err; then
1624     grep -v '^ *+' conftest.err >conftest.er1
1625     cat conftest.er1 >&5
1626     mv -f conftest.er1 conftest.err
1627   fi
1628   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1629   test $ac_status = 0; } && {
1630          test -z "$ac_c_werror_flag" ||
1631          test ! -s conftest.err
1632        } && test -s conftest.$ac_objext; then :
1633   ac_retval=0
1634 else
1635   $as_echo "$as_me: failed program was:" >&5
1636 sed 's/^/| /' conftest.$ac_ext >&5
1637
1638         ac_retval=1
1639 fi
1640   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1641   as_fn_set_status $ac_retval
1642
1643 } # ac_fn_c_try_compile
1644
1645 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1646 # -------------------------------------------------------
1647 # Tests whether HEADER exists and can be compiled using the include files in
1648 # INCLUDES, setting the cache variable VAR accordingly.
1649 ac_fn_c_check_header_compile ()
1650 {
1651   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1652   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1653 $as_echo_n "checking for $2... " >&6; }
1654 if eval \${$3+:} false; then :
1655   $as_echo_n "(cached) " >&6
1656 else
1657   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1658 /* end confdefs.h.  */
1659 $4
1660 #include <$2>
1661 _ACEOF
1662 if ac_fn_c_try_compile "$LINENO"; then :
1663   eval "$3=yes"
1664 else
1665   eval "$3=no"
1666 fi
1667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1668 fi
1669 eval ac_res=\$$3
1670                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1671 $as_echo "$ac_res" >&6; }
1672   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1673
1674 } # ac_fn_c_check_header_compile
1675
1676 # ac_fn_c_try_cpp LINENO
1677 # ----------------------
1678 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1679 ac_fn_c_try_cpp ()
1680 {
1681   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1682   if { { ac_try="$ac_cpp conftest.$ac_ext"
1683 case "(($ac_try" in
1684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1685   *) ac_try_echo=$ac_try;;
1686 esac
1687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1688 $as_echo "$ac_try_echo"; } >&5
1689   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1690   ac_status=$?
1691   if test -s conftest.err; then
1692     grep -v '^ *+' conftest.err >conftest.er1
1693     cat conftest.er1 >&5
1694     mv -f conftest.er1 conftest.err
1695   fi
1696   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1697   test $ac_status = 0; } > conftest.i && {
1698          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1699          test ! -s conftest.err
1700        }; then :
1701   ac_retval=0
1702 else
1703   $as_echo "$as_me: failed program was:" >&5
1704 sed 's/^/| /' conftest.$ac_ext >&5
1705
1706     ac_retval=1
1707 fi
1708   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1709   as_fn_set_status $ac_retval
1710
1711 } # ac_fn_c_try_cpp
1712
1713 # ac_fn_c_try_run LINENO
1714 # ----------------------
1715 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1716 # that executables *can* be run.
1717 ac_fn_c_try_run ()
1718 {
1719   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1720   if { { ac_try="$ac_link"
1721 case "(($ac_try" in
1722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1723   *) ac_try_echo=$ac_try;;
1724 esac
1725 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1726 $as_echo "$ac_try_echo"; } >&5
1727   (eval "$ac_link") 2>&5
1728   ac_status=$?
1729   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1730   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1731   { { case "(($ac_try" in
1732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1733   *) ac_try_echo=$ac_try;;
1734 esac
1735 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1736 $as_echo "$ac_try_echo"; } >&5
1737   (eval "$ac_try") 2>&5
1738   ac_status=$?
1739   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1740   test $ac_status = 0; }; }; then :
1741   ac_retval=0
1742 else
1743   $as_echo "$as_me: program exited with status $ac_status" >&5
1744        $as_echo "$as_me: failed program was:" >&5
1745 sed 's/^/| /' conftest.$ac_ext >&5
1746
1747        ac_retval=$ac_status
1748 fi
1749   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1750   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1751   as_fn_set_status $ac_retval
1752
1753 } # ac_fn_c_try_run
1754
1755 # ac_fn_c_try_link LINENO
1756 # -----------------------
1757 # Try to link conftest.$ac_ext, and return whether this succeeded.
1758 ac_fn_c_try_link ()
1759 {
1760   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1761   rm -f conftest.$ac_objext conftest$ac_exeext
1762   if { { ac_try="$ac_link"
1763 case "(($ac_try" in
1764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1765   *) ac_try_echo=$ac_try;;
1766 esac
1767 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1768 $as_echo "$ac_try_echo"; } >&5
1769   (eval "$ac_link") 2>conftest.err
1770   ac_status=$?
1771   if test -s conftest.err; then
1772     grep -v '^ *+' conftest.err >conftest.er1
1773     cat conftest.er1 >&5
1774     mv -f conftest.er1 conftest.err
1775   fi
1776   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1777   test $ac_status = 0; } && {
1778          test -z "$ac_c_werror_flag" ||
1779          test ! -s conftest.err
1780        } && test -s conftest$ac_exeext && {
1781          test "$cross_compiling" = yes ||
1782          $as_test_x conftest$ac_exeext
1783        }; then :
1784   ac_retval=0
1785 else
1786   $as_echo "$as_me: failed program was:" >&5
1787 sed 's/^/| /' conftest.$ac_ext >&5
1788
1789         ac_retval=1
1790 fi
1791   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1792   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1793   # interfere with the next link command; also delete a directory that is
1794   # left behind by Apple's compiler.  We do this before executing the actions.
1795   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1796   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1797   as_fn_set_status $ac_retval
1798
1799 } # ac_fn_c_try_link
1800
1801 # ac_fn_c_check_func LINENO FUNC VAR
1802 # ----------------------------------
1803 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1804 ac_fn_c_check_func ()
1805 {
1806   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1807   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1808 $as_echo_n "checking for $2... " >&6; }
1809 if eval \${$3+:} false; then :
1810   $as_echo_n "(cached) " >&6
1811 else
1812   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1813 /* end confdefs.h.  */
1814 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1815    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1816 #define $2 innocuous_$2
1817
1818 /* System header to define __stub macros and hopefully few prototypes,
1819     which can conflict with char $2 (); below.
1820     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1821     <limits.h> exists even on freestanding compilers.  */
1822
1823 #ifdef __STDC__
1824 # include <limits.h>
1825 #else
1826 # include <assert.h>
1827 #endif
1828
1829 #undef $2
1830
1831 /* Override any GCC internal prototype to avoid an error.
1832    Use char because int might match the return type of a GCC
1833    builtin and then its argument prototype would still apply.  */
1834 #ifdef __cplusplus
1835 extern "C"
1836 #endif
1837 char $2 ();
1838 /* The GNU C library defines this for functions which it implements
1839     to always fail with ENOSYS.  Some functions are actually named
1840     something starting with __ and the normal name is an alias.  */
1841 #if defined __stub_$2 || defined __stub___$2
1842 choke me
1843 #endif
1844
1845 int
1846 main ()
1847 {
1848 return $2 ();
1849   ;
1850   return 0;
1851 }
1852 _ACEOF
1853 if ac_fn_c_try_link "$LINENO"; then :
1854   eval "$3=yes"
1855 else
1856   eval "$3=no"
1857 fi
1858 rm -f core conftest.err conftest.$ac_objext \
1859     conftest$ac_exeext conftest.$ac_ext
1860 fi
1861 eval ac_res=\$$3
1862                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1863 $as_echo "$ac_res" >&6; }
1864   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1865
1866 } # ac_fn_c_check_func
1867 cat >config.log <<_ACEOF
1868 This file contains any messages produced by compilers while
1869 running configure, to aid debugging if configure makes a mistake.
1870
1871 It was created by gupnp $as_me 0.18.0, which was
1872 generated by GNU Autoconf 2.68.  Invocation command line was
1873
1874   $ $0 $@
1875
1876 _ACEOF
1877 exec 5>>config.log
1878 {
1879 cat <<_ASUNAME
1880 ## --------- ##
1881 ## Platform. ##
1882 ## --------- ##
1883
1884 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1885 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1886 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1887 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1888 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1889
1890 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1891 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1892
1893 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1894 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1895 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1896 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1897 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1898 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1899 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1900
1901 _ASUNAME
1902
1903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1904 for as_dir in $PATH
1905 do
1906   IFS=$as_save_IFS
1907   test -z "$as_dir" && as_dir=.
1908     $as_echo "PATH: $as_dir"
1909   done
1910 IFS=$as_save_IFS
1911
1912 } >&5
1913
1914 cat >&5 <<_ACEOF
1915
1916
1917 ## ----------- ##
1918 ## Core tests. ##
1919 ## ----------- ##
1920
1921 _ACEOF
1922
1923
1924 # Keep a trace of the command line.
1925 # Strip out --no-create and --no-recursion so they do not pile up.
1926 # Strip out --silent because we don't want to record it for future runs.
1927 # Also quote any args containing shell meta-characters.
1928 # Make two passes to allow for proper duplicate-argument suppression.
1929 ac_configure_args=
1930 ac_configure_args0=
1931 ac_configure_args1=
1932 ac_must_keep_next=false
1933 for ac_pass in 1 2
1934 do
1935   for ac_arg
1936   do
1937     case $ac_arg in
1938     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1939     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1940     | -silent | --silent | --silen | --sile | --sil)
1941       continue ;;
1942     *\'*)
1943       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1944     esac
1945     case $ac_pass in
1946     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1947     2)
1948       as_fn_append ac_configure_args1 " '$ac_arg'"
1949       if test $ac_must_keep_next = true; then
1950         ac_must_keep_next=false # Got value, back to normal.
1951       else
1952         case $ac_arg in
1953           *=* | --config-cache | -C | -disable-* | --disable-* \
1954           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1955           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1956           | -with-* | --with-* | -without-* | --without-* | --x)
1957             case "$ac_configure_args0 " in
1958               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1959             esac
1960             ;;
1961           -* ) ac_must_keep_next=true ;;
1962         esac
1963       fi
1964       as_fn_append ac_configure_args " '$ac_arg'"
1965       ;;
1966     esac
1967   done
1968 done
1969 { ac_configure_args0=; unset ac_configure_args0;}
1970 { ac_configure_args1=; unset ac_configure_args1;}
1971
1972 # When interrupted or exit'd, cleanup temporary files, and complete
1973 # config.log.  We remove comments because anyway the quotes in there
1974 # would cause problems or look ugly.
1975 # WARNING: Use '\'' to represent an apostrophe within the trap.
1976 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1977 trap 'exit_status=$?
1978   # Save into config.log some information that might help in debugging.
1979   {
1980     echo
1981
1982     $as_echo "## ---------------- ##
1983 ## Cache variables. ##
1984 ## ---------------- ##"
1985     echo
1986     # The following way of writing the cache mishandles newlines in values,
1987 (
1988   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1989     eval ac_val=\$$ac_var
1990     case $ac_val in #(
1991     *${as_nl}*)
1992       case $ac_var in #(
1993       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1994 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1995       esac
1996       case $ac_var in #(
1997       _ | IFS | as_nl) ;; #(
1998       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1999       *) { eval $ac_var=; unset $ac_var;} ;;
2000       esac ;;
2001     esac
2002   done
2003   (set) 2>&1 |
2004     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2005     *${as_nl}ac_space=\ *)
2006       sed -n \
2007         "s/'\''/'\''\\\\'\'''\''/g;
2008           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2009       ;; #(
2010     *)
2011       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2012       ;;
2013     esac |
2014     sort
2015 )
2016     echo
2017
2018     $as_echo "## ----------------- ##
2019 ## Output variables. ##
2020 ## ----------------- ##"
2021     echo
2022     for ac_var in $ac_subst_vars
2023     do
2024       eval ac_val=\$$ac_var
2025       case $ac_val in
2026       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2027       esac
2028       $as_echo "$ac_var='\''$ac_val'\''"
2029     done | sort
2030     echo
2031
2032     if test -n "$ac_subst_files"; then
2033       $as_echo "## ------------------- ##
2034 ## File substitutions. ##
2035 ## ------------------- ##"
2036       echo
2037       for ac_var in $ac_subst_files
2038       do
2039         eval ac_val=\$$ac_var
2040         case $ac_val in
2041         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2042         esac
2043         $as_echo "$ac_var='\''$ac_val'\''"
2044       done | sort
2045       echo
2046     fi
2047
2048     if test -s confdefs.h; then
2049       $as_echo "## ----------- ##
2050 ## confdefs.h. ##
2051 ## ----------- ##"
2052       echo
2053       cat confdefs.h
2054       echo
2055     fi
2056     test "$ac_signal" != 0 &&
2057       $as_echo "$as_me: caught signal $ac_signal"
2058     $as_echo "$as_me: exit $exit_status"
2059   } >&5
2060   rm -f core *.core core.conftest.* &&
2061     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2062     exit $exit_status
2063 ' 0
2064 for ac_signal in 1 2 13 15; do
2065   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2066 done
2067 ac_signal=0
2068
2069 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2070 rm -f -r conftest* confdefs.h
2071
2072 $as_echo "/* confdefs.h */" > confdefs.h
2073
2074 # Predefined preprocessor variables.
2075
2076 cat >>confdefs.h <<_ACEOF
2077 #define PACKAGE_NAME "$PACKAGE_NAME"
2078 _ACEOF
2079
2080 cat >>confdefs.h <<_ACEOF
2081 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2082 _ACEOF
2083
2084 cat >>confdefs.h <<_ACEOF
2085 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2086 _ACEOF
2087
2088 cat >>confdefs.h <<_ACEOF
2089 #define PACKAGE_STRING "$PACKAGE_STRING"
2090 _ACEOF
2091
2092 cat >>confdefs.h <<_ACEOF
2093 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2094 _ACEOF
2095
2096 cat >>confdefs.h <<_ACEOF
2097 #define PACKAGE_URL "$PACKAGE_URL"
2098 _ACEOF
2099
2100
2101 # Let the site file select an alternate cache file if it wants to.
2102 # Prefer an explicitly selected file to automatically selected ones.
2103 ac_site_file1=NONE
2104 ac_site_file2=NONE
2105 if test -n "$CONFIG_SITE"; then
2106   # We do not want a PATH search for config.site.
2107   case $CONFIG_SITE in #((
2108     -*)  ac_site_file1=./$CONFIG_SITE;;
2109     */*) ac_site_file1=$CONFIG_SITE;;
2110     *)   ac_site_file1=./$CONFIG_SITE;;
2111   esac
2112 elif test "x$prefix" != xNONE; then
2113   ac_site_file1=$prefix/share/config.site
2114   ac_site_file2=$prefix/etc/config.site
2115 else
2116   ac_site_file1=$ac_default_prefix/share/config.site
2117   ac_site_file2=$ac_default_prefix/etc/config.site
2118 fi
2119 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2120 do
2121   test "x$ac_site_file" = xNONE && continue
2122   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2123     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2124 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2125     sed 's/^/| /' "$ac_site_file" >&5
2126     . "$ac_site_file" \
2127       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2128 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2129 as_fn_error $? "failed to load site script $ac_site_file
2130 See \`config.log' for more details" "$LINENO" 5; }
2131   fi
2132 done
2133
2134 if test -r "$cache_file"; then
2135   # Some versions of bash will fail to source /dev/null (special files
2136   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2137   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2138     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2139 $as_echo "$as_me: loading cache $cache_file" >&6;}
2140     case $cache_file in
2141       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2142       *)                      . "./$cache_file";;
2143     esac
2144   fi
2145 else
2146   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2147 $as_echo "$as_me: creating cache $cache_file" >&6;}
2148   >$cache_file
2149 fi
2150
2151 as_fn_append ac_header_list " stdlib.h"
2152 as_fn_append ac_header_list " unistd.h"
2153 as_fn_append ac_header_list " sys/param.h"
2154 # Check that the precious variables saved in the cache have kept the same
2155 # value.
2156 ac_cache_corrupted=false
2157 for ac_var in $ac_precious_vars; do
2158   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2159   eval ac_new_set=\$ac_env_${ac_var}_set
2160   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2161   eval ac_new_val=\$ac_env_${ac_var}_value
2162   case $ac_old_set,$ac_new_set in
2163     set,)
2164       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2165 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2166       ac_cache_corrupted=: ;;
2167     ,set)
2168       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2169 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2170       ac_cache_corrupted=: ;;
2171     ,);;
2172     *)
2173       if test "x$ac_old_val" != "x$ac_new_val"; then
2174         # differences in whitespace do not lead to failure.
2175         ac_old_val_w=`echo x $ac_old_val`
2176         ac_new_val_w=`echo x $ac_new_val`
2177         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2178           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2179 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2180           ac_cache_corrupted=:
2181         else
2182           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2183 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2184           eval $ac_var=\$ac_old_val
2185         fi
2186         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2187 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2188         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2189 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2190       fi;;
2191   esac
2192   # Pass precious variables to config.status.
2193   if test "$ac_new_set" = set; then
2194     case $ac_new_val in
2195     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2196     *) ac_arg=$ac_var=$ac_new_val ;;
2197     esac
2198     case " $ac_configure_args " in
2199       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2200       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2201     esac
2202   fi
2203 done
2204 if $ac_cache_corrupted; then
2205   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2206 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2207   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2208 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2209   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2210 fi
2211 ## -------------------- ##
2212 ## Main body of script. ##
2213 ## -------------------- ##
2214
2215 ac_ext=c
2216 ac_cpp='$CPP $CPPFLAGS'
2217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2220
2221
2222
2223 ac_config_headers="$ac_config_headers config.h"
2224
2225
2226
2227 ac_aux_dir=
2228 for ac_dir in build-aux "$srcdir"/build-aux; do
2229   if test -f "$ac_dir/install-sh"; then
2230     ac_aux_dir=$ac_dir
2231     ac_install_sh="$ac_aux_dir/install-sh -c"
2232     break
2233   elif test -f "$ac_dir/install.sh"; then
2234     ac_aux_dir=$ac_dir
2235     ac_install_sh="$ac_aux_dir/install.sh -c"
2236     break
2237   elif test -f "$ac_dir/shtool"; then
2238     ac_aux_dir=$ac_dir
2239     ac_install_sh="$ac_aux_dir/shtool install -c"
2240     break
2241   fi
2242 done
2243 if test -z "$ac_aux_dir"; then
2244   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2245 fi
2246
2247 # These three variables are undocumented and unsupported,
2248 # and are intended to be withdrawn in a future Autoconf release.
2249 # They can cause serious problems if a builder's source tree is in a directory
2250 # whose full name contains unusual characters.
2251 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2252 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2253 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2254
2255
2256
2257 # Make sure we can run config.sub.
2258 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2259   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2260
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2262 $as_echo_n "checking build system type... " >&6; }
2263 if ${ac_cv_build+:} false; then :
2264   $as_echo_n "(cached) " >&6
2265 else
2266   ac_build_alias=$build_alias
2267 test "x$ac_build_alias" = x &&
2268   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2269 test "x$ac_build_alias" = x &&
2270   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2271 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2272   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2273
2274 fi
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2276 $as_echo "$ac_cv_build" >&6; }
2277 case $ac_cv_build in
2278 *-*-*) ;;
2279 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2280 esac
2281 build=$ac_cv_build
2282 ac_save_IFS=$IFS; IFS='-'
2283 set x $ac_cv_build
2284 shift
2285 build_cpu=$1
2286 build_vendor=$2
2287 shift; shift
2288 # Remember, the first character of IFS is used to create $*,
2289 # except with old shells:
2290 build_os=$*
2291 IFS=$ac_save_IFS
2292 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2293
2294
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2296 $as_echo_n "checking host system type... " >&6; }
2297 if ${ac_cv_host+:} false; then :
2298   $as_echo_n "(cached) " >&6
2299 else
2300   if test "x$host_alias" = x; then
2301   ac_cv_host=$ac_cv_build
2302 else
2303   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2304     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2305 fi
2306
2307 fi
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2309 $as_echo "$ac_cv_host" >&6; }
2310 case $ac_cv_host in
2311 *-*-*) ;;
2312 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2313 esac
2314 host=$ac_cv_host
2315 ac_save_IFS=$IFS; IFS='-'
2316 set x $ac_cv_host
2317 shift
2318 host_cpu=$1
2319 host_vendor=$2
2320 shift; shift
2321 # Remember, the first character of IFS is used to create $*,
2322 # except with old shells:
2323 host_os=$*
2324 IFS=$ac_save_IFS
2325 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2326
2327
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2329 $as_echo_n "checking target system type... " >&6; }
2330 if ${ac_cv_target+:} false; then :
2331   $as_echo_n "(cached) " >&6
2332 else
2333   if test "x$target_alias" = x; then
2334   ac_cv_target=$ac_cv_host
2335 else
2336   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2337     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2338 fi
2339
2340 fi
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2342 $as_echo "$ac_cv_target" >&6; }
2343 case $ac_cv_target in
2344 *-*-*) ;;
2345 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2346 esac
2347 target=$ac_cv_target
2348 ac_save_IFS=$IFS; IFS='-'
2349 set x $ac_cv_target
2350 shift
2351 target_cpu=$1
2352 target_vendor=$2
2353 shift; shift
2354 # Remember, the first character of IFS is used to create $*,
2355 # except with old shells:
2356 target_os=$*
2357 IFS=$ac_save_IFS
2358 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2359
2360
2361 # The aliases save the names the user supplied, while $host etc.
2362 # will get canonicalized.
2363 test -n "$target_alias" &&
2364   test "$program_prefix$program_suffix$program_transform_name" = \
2365     NONENONEs,x,x, &&
2366   program_prefix=${target_alias}-
2367
2368 am__api_version='1.11'
2369
2370 # Find a good install program.  We prefer a C program (faster),
2371 # so one script is as good as another.  But avoid the broken or
2372 # incompatible versions:
2373 # SysV /etc/install, /usr/sbin/install
2374 # SunOS /usr/etc/install
2375 # IRIX /sbin/install
2376 # AIX /bin/install
2377 # AmigaOS /C/install, which installs bootblocks on floppy discs
2378 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2379 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2380 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2381 # OS/2's system install, which has a completely different semantic
2382 # ./install, which can be erroneously created by make from ./install.sh.
2383 # Reject install programs that cannot install multiple files.
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2385 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2386 if test -z "$INSTALL"; then
2387 if ${ac_cv_path_install+:} false; then :
2388   $as_echo_n "(cached) " >&6
2389 else
2390   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2391 for as_dir in $PATH
2392 do
2393   IFS=$as_save_IFS
2394   test -z "$as_dir" && as_dir=.
2395     # Account for people who put trailing slashes in PATH elements.
2396 case $as_dir/ in #((
2397   ./ | .// | /[cC]/* | \
2398   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2399   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2400   /usr/ucb/* ) ;;
2401   *)
2402     # OSF1 and SCO ODT 3.0 have their own names for install.
2403     # Don't use installbsd from OSF since it installs stuff as root
2404     # by default.
2405     for ac_prog in ginstall scoinst install; do
2406       for ac_exec_ext in '' $ac_executable_extensions; do
2407         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2408           if test $ac_prog = install &&
2409             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2410             # AIX install.  It has an incompatible calling convention.
2411             :
2412           elif test $ac_prog = install &&
2413             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2414             # program-specific install script used by HP pwplus--don't use.
2415             :
2416           else
2417             rm -rf conftest.one conftest.two conftest.dir
2418             echo one > conftest.one
2419             echo two > conftest.two
2420             mkdir conftest.dir
2421             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2422               test -s conftest.one && test -s conftest.two &&
2423               test -s conftest.dir/conftest.one &&
2424               test -s conftest.dir/conftest.two
2425             then
2426               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2427               break 3
2428             fi
2429           fi
2430         fi
2431       done
2432     done
2433     ;;
2434 esac
2435
2436   done
2437 IFS=$as_save_IFS
2438
2439 rm -rf conftest.one conftest.two conftest.dir
2440
2441 fi
2442   if test "${ac_cv_path_install+set}" = set; then
2443     INSTALL=$ac_cv_path_install
2444   else
2445     # As a last resort, use the slow shell script.  Don't cache a
2446     # value for INSTALL within a source directory, because that will
2447     # break other packages using the cache if that directory is
2448     # removed, or if the value is a relative name.
2449     INSTALL=$ac_install_sh
2450   fi
2451 fi
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2453 $as_echo "$INSTALL" >&6; }
2454
2455 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2456 # It thinks the first close brace ends the variable substitution.
2457 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2458
2459 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2460
2461 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2462
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2464 $as_echo_n "checking whether build environment is sane... " >&6; }
2465 # Just in case
2466 sleep 1
2467 echo timestamp > conftest.file
2468 # Reject unsafe characters in $srcdir or the absolute working directory
2469 # name.  Accept space and tab only in the latter.
2470 am_lf='
2471 '
2472 case `pwd` in
2473   *[\\\"\#\$\&\'\`$am_lf]*)
2474     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2475 esac
2476 case $srcdir in
2477   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2478     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2479 esac
2480
2481 # Do `set' in a subshell so we don't clobber the current shell's
2482 # arguments.  Must try -L first in case configure is actually a
2483 # symlink; some systems play weird games with the mod time of symlinks
2484 # (eg FreeBSD returns the mod time of the symlink's containing
2485 # directory).
2486 if (
2487    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2488    if test "$*" = "X"; then
2489       # -L didn't work.
2490       set X `ls -t "$srcdir/configure" conftest.file`
2491    fi
2492    rm -f conftest.file
2493    if test "$*" != "X $srcdir/configure conftest.file" \
2494       && test "$*" != "X conftest.file $srcdir/configure"; then
2495
2496       # If neither matched, then we have a broken ls.  This can happen
2497       # if, for instance, CONFIG_SHELL is bash and it inherits a
2498       # broken ls alias from the environment.  This has actually
2499       # happened.  Such a system could not be considered "sane".
2500       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2501 alias in your environment" "$LINENO" 5
2502    fi
2503
2504    test "$2" = conftest.file
2505    )
2506 then
2507    # Ok.
2508    :
2509 else
2510    as_fn_error $? "newly created file is older than distributed files!
2511 Check your system clock" "$LINENO" 5
2512 fi
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2514 $as_echo "yes" >&6; }
2515 test "$program_prefix" != NONE &&
2516   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2517 # Use a double $ so make ignores it.
2518 test "$program_suffix" != NONE &&
2519   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2520 # Double any \ or $.
2521 # By default was `s,x,x', remove it if useless.
2522 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2523 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2524
2525 # expand $ac_aux_dir to an absolute path
2526 am_aux_dir=`cd $ac_aux_dir && pwd`
2527
2528 if test x"${MISSING+set}" != xset; then
2529   case $am_aux_dir in
2530   *\ * | *\     *)
2531     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2532   *)
2533     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2534   esac
2535 fi
2536 # Use eval to expand $SHELL
2537 if eval "$MISSING --run true"; then
2538   am_missing_run="$MISSING --run "
2539 else
2540   am_missing_run=
2541   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2542 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2543 fi
2544
2545 if test x"${install_sh}" != xset; then
2546   case $am_aux_dir in
2547   *\ * | *\     *)
2548     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2549   *)
2550     install_sh="\${SHELL} $am_aux_dir/install-sh"
2551   esac
2552 fi
2553
2554 # Installed binaries are usually stripped using `strip' when the user
2555 # run `make install-strip'.  However `strip' might not be the right
2556 # tool to use in cross-compilation environments, therefore Automake
2557 # will honor the `STRIP' environment variable to overrule this program.
2558 if test "$cross_compiling" != no; then
2559   if test -n "$ac_tool_prefix"; then
2560   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2561 set dummy ${ac_tool_prefix}strip; ac_word=$2
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2563 $as_echo_n "checking for $ac_word... " >&6; }
2564 if ${ac_cv_prog_STRIP+:} false; then :
2565   $as_echo_n "(cached) " >&6
2566 else
2567   if test -n "$STRIP"; then
2568   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2569 else
2570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2571 for as_dir in $PATH
2572 do
2573   IFS=$as_save_IFS
2574   test -z "$as_dir" && as_dir=.
2575     for ac_exec_ext in '' $ac_executable_extensions; do
2576   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2577     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2578     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2579     break 2
2580   fi
2581 done
2582   done
2583 IFS=$as_save_IFS
2584
2585 fi
2586 fi
2587 STRIP=$ac_cv_prog_STRIP
2588 if test -n "$STRIP"; then
2589   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2590 $as_echo "$STRIP" >&6; }
2591 else
2592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2593 $as_echo "no" >&6; }
2594 fi
2595
2596
2597 fi
2598 if test -z "$ac_cv_prog_STRIP"; then
2599   ac_ct_STRIP=$STRIP
2600   # Extract the first word of "strip", so it can be a program name with args.
2601 set dummy strip; ac_word=$2
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2603 $as_echo_n "checking for $ac_word... " >&6; }
2604 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2605   $as_echo_n "(cached) " >&6
2606 else
2607   if test -n "$ac_ct_STRIP"; then
2608   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2609 else
2610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2611 for as_dir in $PATH
2612 do
2613   IFS=$as_save_IFS
2614   test -z "$as_dir" && as_dir=.
2615     for ac_exec_ext in '' $ac_executable_extensions; do
2616   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2617     ac_cv_prog_ac_ct_STRIP="strip"
2618     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2619     break 2
2620   fi
2621 done
2622   done
2623 IFS=$as_save_IFS
2624
2625 fi
2626 fi
2627 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2628 if test -n "$ac_ct_STRIP"; then
2629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2630 $as_echo "$ac_ct_STRIP" >&6; }
2631 else
2632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2633 $as_echo "no" >&6; }
2634 fi
2635
2636   if test "x$ac_ct_STRIP" = x; then
2637     STRIP=":"
2638   else
2639     case $cross_compiling:$ac_tool_warned in
2640 yes:)
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2642 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2643 ac_tool_warned=yes ;;
2644 esac
2645     STRIP=$ac_ct_STRIP
2646   fi
2647 else
2648   STRIP="$ac_cv_prog_STRIP"
2649 fi
2650
2651 fi
2652 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2653
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2655 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2656 if test -z "$MKDIR_P"; then
2657   if ${ac_cv_path_mkdir+:} false; then :
2658   $as_echo_n "(cached) " >&6
2659 else
2660   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2661 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2662 do
2663   IFS=$as_save_IFS
2664   test -z "$as_dir" && as_dir=.
2665     for ac_prog in mkdir gmkdir; do
2666          for ac_exec_ext in '' $ac_executable_extensions; do
2667            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2668            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2669              'mkdir (GNU coreutils) '* | \
2670              'mkdir (coreutils) '* | \
2671              'mkdir (fileutils) '4.1*)
2672                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2673                break 3;;
2674            esac
2675          done
2676        done
2677   done
2678 IFS=$as_save_IFS
2679
2680 fi
2681
2682   test -d ./--version && rmdir ./--version
2683   if test "${ac_cv_path_mkdir+set}" = set; then
2684     MKDIR_P="$ac_cv_path_mkdir -p"
2685   else
2686     # As a last resort, use the slow shell script.  Don't cache a
2687     # value for MKDIR_P within a source directory, because that will
2688     # break other packages using the cache if that directory is
2689     # removed, or if the value is a relative name.
2690     MKDIR_P="$ac_install_sh -d"
2691   fi
2692 fi
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2694 $as_echo "$MKDIR_P" >&6; }
2695
2696 mkdir_p="$MKDIR_P"
2697 case $mkdir_p in
2698   [\\/$]* | ?:[\\/]*) ;;
2699   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2700 esac
2701
2702 for ac_prog in gawk mawk nawk awk
2703 do
2704   # Extract the first word of "$ac_prog", so it can be a program name with args.
2705 set dummy $ac_prog; ac_word=$2
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2707 $as_echo_n "checking for $ac_word... " >&6; }
2708 if ${ac_cv_prog_AWK+:} false; then :
2709   $as_echo_n "(cached) " >&6
2710 else
2711   if test -n "$AWK"; then
2712   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2713 else
2714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2715 for as_dir in $PATH
2716 do
2717   IFS=$as_save_IFS
2718   test -z "$as_dir" && as_dir=.
2719     for ac_exec_ext in '' $ac_executable_extensions; do
2720   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2721     ac_cv_prog_AWK="$ac_prog"
2722     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2723     break 2
2724   fi
2725 done
2726   done
2727 IFS=$as_save_IFS
2728
2729 fi
2730 fi
2731 AWK=$ac_cv_prog_AWK
2732 if test -n "$AWK"; then
2733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2734 $as_echo "$AWK" >&6; }
2735 else
2736   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2737 $as_echo "no" >&6; }
2738 fi
2739
2740
2741   test -n "$AWK" && break
2742 done
2743
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2745 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2746 set x ${MAKE-make}
2747 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2748 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2749   $as_echo_n "(cached) " >&6
2750 else
2751   cat >conftest.make <<\_ACEOF
2752 SHELL = /bin/sh
2753 all:
2754         @echo '@@@%%%=$(MAKE)=@@@%%%'
2755 _ACEOF
2756 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2757 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2758   *@@@%%%=?*=@@@%%%*)
2759     eval ac_cv_prog_make_${ac_make}_set=yes;;
2760   *)
2761     eval ac_cv_prog_make_${ac_make}_set=no;;
2762 esac
2763 rm -f conftest.make
2764 fi
2765 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2767 $as_echo "yes" >&6; }
2768   SET_MAKE=
2769 else
2770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2771 $as_echo "no" >&6; }
2772   SET_MAKE="MAKE=${MAKE-make}"
2773 fi
2774
2775 rm -rf .tst 2>/dev/null
2776 mkdir .tst 2>/dev/null
2777 if test -d .tst; then
2778   am__leading_dot=.
2779 else
2780   am__leading_dot=_
2781 fi
2782 rmdir .tst 2>/dev/null
2783
2784 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2785   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2786   # is not polluted with repeated "-I."
2787   am__isrc=' -I$(srcdir)'
2788   # test to see if srcdir already configured
2789   if test -f $srcdir/config.status; then
2790     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2791   fi
2792 fi
2793
2794 # test whether we have cygpath
2795 if test -z "$CYGPATH_W"; then
2796   if (cygpath --version) >/dev/null 2>/dev/null; then
2797     CYGPATH_W='cygpath -w'
2798   else
2799     CYGPATH_W=echo
2800   fi
2801 fi
2802
2803
2804 # Define the identity of the package.
2805  PACKAGE='gupnp'
2806  VERSION='0.18.0'
2807
2808
2809 cat >>confdefs.h <<_ACEOF
2810 #define PACKAGE "$PACKAGE"
2811 _ACEOF
2812
2813
2814 cat >>confdefs.h <<_ACEOF
2815 #define VERSION "$VERSION"
2816 _ACEOF
2817
2818 # Some tools Automake needs.
2819
2820 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2821
2822
2823 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2824
2825
2826 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2827
2828
2829 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2830
2831
2832 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2833
2834 # We need awk for the "check" target.  The system "awk" is bad on
2835 # some platforms.
2836 # Always define AMTAR for backward compatibility.  Yes, it's still used
2837 # in the wild :-(  We should find a proper way to deprecate it ...
2838 AMTAR='$${TAR-tar}'
2839
2840
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
2842 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
2843 # Loop over all known methods to create a tar archive until one works.
2844 _am_tools='gnutar plaintar pax cpio none'
2845 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
2846 # Do not fold the above two line into one, because Tru64 sh and
2847 # Solaris sh will not grok spaces in the rhs of `-'.
2848 for _am_tool in $_am_tools
2849 do
2850   case $_am_tool in
2851   gnutar)
2852     for _am_tar in tar gnutar gtar;
2853     do
2854       { echo "$as_me:$LINENO: $_am_tar --version" >&5
2855    ($_am_tar --version) >&5 2>&5
2856    ac_status=$?
2857    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858    (exit $ac_status); } && break
2859     done
2860     am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
2861     am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
2862     am__untar="$_am_tar -xf -"
2863     ;;
2864   plaintar)
2865     # Must skip GNU tar: if it does not support --format= it doesn't create
2866     # ustar tarball either.
2867     (tar --version) >/dev/null 2>&1 && continue
2868     am__tar='tar chf - "$$tardir"'
2869     am__tar_='tar chf - "$tardir"'
2870     am__untar='tar xf -'
2871     ;;
2872   pax)
2873     am__tar='pax -L -x ustar -w "$$tardir"'
2874     am__tar_='pax -L -x ustar -w "$tardir"'
2875     am__untar='pax -r'
2876     ;;
2877   cpio)
2878     am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
2879     am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
2880     am__untar='cpio -i -H ustar -d'
2881     ;;
2882   none)
2883     am__tar=false
2884     am__tar_=false
2885     am__untar=false
2886     ;;
2887   esac
2888
2889   # If the value was cached, stop now.  We just wanted to have am__tar
2890   # and am__untar set.
2891   test -n "${am_cv_prog_tar_ustar}" && break
2892
2893   # tar/untar a dummy directory, and stop if the command works
2894   rm -rf conftest.dir
2895   mkdir conftest.dir
2896   echo GrepMe > conftest.dir/file
2897   { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
2898    (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
2899    ac_status=$?
2900    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901    (exit $ac_status); }
2902   rm -rf conftest.dir
2903   if test -s conftest.tar; then
2904     { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
2905    ($am__untar <conftest.tar) >&5 2>&5
2906    ac_status=$?
2907    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2908    (exit $ac_status); }
2909     grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
2910   fi
2911 done
2912 rm -rf conftest.dir
2913
2914 if ${am_cv_prog_tar_ustar+:} false; then :
2915   $as_echo_n "(cached) " >&6
2916 else
2917   am_cv_prog_tar_ustar=$_am_tool
2918 fi
2919
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
2921 $as_echo "$am_cv_prog_tar_ustar" >&6; }
2922
2923
2924
2925
2926
2927
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2929 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2930     # Check whether --enable-maintainer-mode was given.
2931 if test "${enable_maintainer_mode+set}" = set; then :
2932   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2933 else
2934   USE_MAINTAINER_MODE=yes
2935 fi
2936
2937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2938 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2939    if test $USE_MAINTAINER_MODE = yes; then
2940   MAINTAINER_MODE_TRUE=
2941   MAINTAINER_MODE_FALSE='#'
2942 else
2943   MAINTAINER_MODE_TRUE='#'
2944   MAINTAINER_MODE_FALSE=
2945 fi
2946
2947   MAINT=$MAINTAINER_MODE_TRUE
2948
2949
2950
2951 # Check whether --enable-silent-rules was given.
2952 if test "${enable_silent_rules+set}" = set; then :
2953   enableval=$enable_silent_rules;
2954 fi
2955
2956 case $enable_silent_rules in
2957 yes) AM_DEFAULT_VERBOSITY=0;;
2958 no)  AM_DEFAULT_VERBOSITY=1;;
2959 *)   AM_DEFAULT_VERBOSITY=0;;
2960 esac
2961 am_make=${MAKE-make}
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2963 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2964 if ${am_cv_make_support_nested_variables+:} false; then :
2965   $as_echo_n "(cached) " >&6
2966 else
2967   if $as_echo 'TRUE=$(BAR$(V))
2968 BAR0=false
2969 BAR1=true
2970 V=1
2971 am__doit:
2972         @$(TRUE)
2973 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2974   am_cv_make_support_nested_variables=yes
2975 else
2976   am_cv_make_support_nested_variables=no
2977 fi
2978 fi
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2980 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2981 if test $am_cv_make_support_nested_variables = yes; then
2982     AM_V='$(V)'
2983   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2984 else
2985   AM_V=$AM_DEFAULT_VERBOSITY
2986   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2987 fi
2988 AM_BACKSLASH='\'
2989
2990
2991 # Check for programs
2992 ac_ext=c
2993 ac_cpp='$CPP $CPPFLAGS'
2994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2997 if test -n "$ac_tool_prefix"; then
2998   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2999 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3001 $as_echo_n "checking for $ac_word... " >&6; }
3002 if ${ac_cv_prog_CC+:} false; then :
3003   $as_echo_n "(cached) " >&6
3004 else
3005   if test -n "$CC"; then
3006   ac_cv_prog_CC="$CC" # Let the user override the test.
3007 else
3008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3009 for as_dir in $PATH
3010 do
3011   IFS=$as_save_IFS
3012   test -z "$as_dir" && as_dir=.
3013     for ac_exec_ext in '' $ac_executable_extensions; do
3014   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3015     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3016     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3017     break 2
3018   fi
3019 done
3020   done
3021 IFS=$as_save_IFS
3022
3023 fi
3024 fi
3025 CC=$ac_cv_prog_CC
3026 if test -n "$CC"; then
3027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3028 $as_echo "$CC" >&6; }
3029 else
3030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3031 $as_echo "no" >&6; }
3032 fi
3033
3034
3035 fi
3036 if test -z "$ac_cv_prog_CC"; then
3037   ac_ct_CC=$CC
3038   # Extract the first word of "gcc", so it can be a program name with args.
3039 set dummy gcc; ac_word=$2
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3041 $as_echo_n "checking for $ac_word... " >&6; }
3042 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3043   $as_echo_n "(cached) " >&6
3044 else
3045   if test -n "$ac_ct_CC"; then
3046   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3047 else
3048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3049 for as_dir in $PATH
3050 do
3051   IFS=$as_save_IFS
3052   test -z "$as_dir" && as_dir=.
3053     for ac_exec_ext in '' $ac_executable_extensions; do
3054   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3055     ac_cv_prog_ac_ct_CC="gcc"
3056     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3057     break 2
3058   fi
3059 done
3060   done
3061 IFS=$as_save_IFS
3062
3063 fi
3064 fi
3065 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3066 if test -n "$ac_ct_CC"; then
3067   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3068 $as_echo "$ac_ct_CC" >&6; }
3069 else
3070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3071 $as_echo "no" >&6; }
3072 fi
3073
3074   if test "x$ac_ct_CC" = x; then
3075     CC=""
3076   else
3077     case $cross_compiling:$ac_tool_warned in
3078 yes:)
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3080 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3081 ac_tool_warned=yes ;;
3082 esac
3083     CC=$ac_ct_CC
3084   fi
3085 else
3086   CC="$ac_cv_prog_CC"
3087 fi
3088
3089 if test -z "$CC"; then
3090           if test -n "$ac_tool_prefix"; then
3091     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3092 set dummy ${ac_tool_prefix}cc; ac_word=$2
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3094 $as_echo_n "checking for $ac_word... " >&6; }
3095 if ${ac_cv_prog_CC+:} false; then :
3096   $as_echo_n "(cached) " >&6
3097 else
3098   if test -n "$CC"; then
3099   ac_cv_prog_CC="$CC" # Let the user override the test.
3100 else
3101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3102 for as_dir in $PATH
3103 do
3104   IFS=$as_save_IFS
3105   test -z "$as_dir" && as_dir=.
3106     for ac_exec_ext in '' $ac_executable_extensions; do
3107   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3108     ac_cv_prog_CC="${ac_tool_prefix}cc"
3109     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3110     break 2
3111   fi
3112 done
3113   done
3114 IFS=$as_save_IFS
3115
3116 fi
3117 fi
3118 CC=$ac_cv_prog_CC
3119 if test -n "$CC"; then
3120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3121 $as_echo "$CC" >&6; }
3122 else
3123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3124 $as_echo "no" >&6; }
3125 fi
3126
3127
3128   fi
3129 fi
3130 if test -z "$CC"; then
3131   # Extract the first word of "cc", so it can be a program name with args.
3132 set dummy cc; ac_word=$2
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3134 $as_echo_n "checking for $ac_word... " >&6; }
3135 if ${ac_cv_prog_CC+:} false; then :
3136   $as_echo_n "(cached) " >&6
3137 else
3138   if test -n "$CC"; then
3139   ac_cv_prog_CC="$CC" # Let the user override the test.
3140 else
3141   ac_prog_rejected=no
3142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3143 for as_dir in $PATH
3144 do
3145   IFS=$as_save_IFS
3146   test -z "$as_dir" && as_dir=.
3147     for ac_exec_ext in '' $ac_executable_extensions; do
3148   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3149     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3150        ac_prog_rejected=yes
3151        continue
3152      fi
3153     ac_cv_prog_CC="cc"
3154     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3155     break 2
3156   fi
3157 done
3158   done
3159 IFS=$as_save_IFS
3160
3161 if test $ac_prog_rejected = yes; then
3162   # We found a bogon in the path, so make sure we never use it.
3163   set dummy $ac_cv_prog_CC
3164   shift
3165   if test $# != 0; then
3166     # We chose a different compiler from the bogus one.
3167     # However, it has the same basename, so the bogon will be chosen
3168     # first if we set CC to just the basename; use the full file name.
3169     shift
3170     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3171   fi
3172 fi
3173 fi
3174 fi
3175 CC=$ac_cv_prog_CC
3176 if test -n "$CC"; then
3177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3178 $as_echo "$CC" >&6; }
3179 else
3180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3181 $as_echo "no" >&6; }
3182 fi
3183
3184
3185 fi
3186 if test -z "$CC"; then
3187   if test -n "$ac_tool_prefix"; then
3188   for ac_prog in cl.exe
3189   do
3190     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3191 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3193 $as_echo_n "checking for $ac_word... " >&6; }
3194 if ${ac_cv_prog_CC+:} false; then :
3195   $as_echo_n "(cached) " >&6
3196 else
3197   if test -n "$CC"; then
3198   ac_cv_prog_CC="$CC" # Let the user override the test.
3199 else
3200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3201 for as_dir in $PATH
3202 do
3203   IFS=$as_save_IFS
3204   test -z "$as_dir" && as_dir=.
3205     for ac_exec_ext in '' $ac_executable_extensions; do
3206   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3207     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3208     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3209     break 2
3210   fi
3211 done
3212   done
3213 IFS=$as_save_IFS
3214
3215 fi
3216 fi
3217 CC=$ac_cv_prog_CC
3218 if test -n "$CC"; then
3219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3220 $as_echo "$CC" >&6; }
3221 else
3222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3223 $as_echo "no" >&6; }
3224 fi
3225
3226
3227     test -n "$CC" && break
3228   done
3229 fi
3230 if test -z "$CC"; then
3231   ac_ct_CC=$CC
3232   for ac_prog in cl.exe
3233 do
3234   # Extract the first word of "$ac_prog", so it can be a program name with args.
3235 set dummy $ac_prog; ac_word=$2
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3237 $as_echo_n "checking for $ac_word... " >&6; }
3238 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3239   $as_echo_n "(cached) " >&6
3240 else
3241   if test -n "$ac_ct_CC"; then
3242   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3243 else
3244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3245 for as_dir in $PATH
3246 do
3247   IFS=$as_save_IFS
3248   test -z "$as_dir" && as_dir=.
3249     for ac_exec_ext in '' $ac_executable_extensions; do
3250   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3251     ac_cv_prog_ac_ct_CC="$ac_prog"
3252     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3253     break 2
3254   fi
3255 done
3256   done
3257 IFS=$as_save_IFS
3258
3259 fi
3260 fi
3261 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3262 if test -n "$ac_ct_CC"; then
3263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3264 $as_echo "$ac_ct_CC" >&6; }
3265 else
3266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3267 $as_echo "no" >&6; }
3268 fi
3269
3270
3271   test -n "$ac_ct_CC" && break
3272 done
3273
3274   if test "x$ac_ct_CC" = x; then
3275     CC=""
3276   else
3277     case $cross_compiling:$ac_tool_warned in
3278 yes:)
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3280 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3281 ac_tool_warned=yes ;;
3282 esac
3283     CC=$ac_ct_CC
3284   fi
3285 fi
3286
3287 fi
3288
3289
3290 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3291 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3292 as_fn_error $? "no acceptable C compiler found in \$PATH
3293 See \`config.log' for more details" "$LINENO" 5; }
3294
3295 # Provide some information about the compiler.
3296 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3297 set X $ac_compile
3298 ac_compiler=$2
3299 for ac_option in --version -v -V -qversion; do
3300   { { ac_try="$ac_compiler $ac_option >&5"
3301 case "(($ac_try" in
3302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3303   *) ac_try_echo=$ac_try;;
3304 esac
3305 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3306 $as_echo "$ac_try_echo"; } >&5
3307   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3308   ac_status=$?
3309   if test -s conftest.err; then
3310     sed '10a\
3311 ... rest of stderr output deleted ...
3312          10q' conftest.err >conftest.er1
3313     cat conftest.er1 >&5
3314   fi
3315   rm -f conftest.er1 conftest.err
3316   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3317   test $ac_status = 0; }
3318 done
3319
3320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3321 /* end confdefs.h.  */
3322
3323 int
3324 main ()
3325 {
3326
3327   ;
3328   return 0;
3329 }
3330 _ACEOF
3331 ac_clean_files_save=$ac_clean_files
3332 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3333 # Try to create an executable without -o first, disregard a.out.
3334 # It will help us diagnose broken compilers, and finding out an intuition
3335 # of exeext.
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3337 $as_echo_n "checking whether the C compiler works... " >&6; }
3338 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3339
3340 # The possible output files:
3341 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3342
3343 ac_rmfiles=
3344 for ac_file in $ac_files
3345 do
3346   case $ac_file in
3347     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3348     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3349   esac
3350 done
3351 rm -f $ac_rmfiles
3352
3353 if { { ac_try="$ac_link_default"
3354 case "(($ac_try" in
3355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3356   *) ac_try_echo=$ac_try;;
3357 esac
3358 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3359 $as_echo "$ac_try_echo"; } >&5
3360   (eval "$ac_link_default") 2>&5
3361   ac_status=$?
3362   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3363   test $ac_status = 0; }; then :
3364   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3365 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3366 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3367 # so that the user can short-circuit this test for compilers unknown to
3368 # Autoconf.
3369 for ac_file in $ac_files ''
3370 do
3371   test -f "$ac_file" || continue
3372   case $ac_file in
3373     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3374         ;;
3375     [ab].out )
3376         # We found the default executable, but exeext='' is most
3377         # certainly right.
3378         break;;
3379     *.* )
3380         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3381         then :; else
3382            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3383         fi
3384         # We set ac_cv_exeext here because the later test for it is not
3385         # safe: cross compilers may not add the suffix if given an `-o'
3386         # argument, so we may need to know it at that point already.
3387         # Even if this section looks crufty: it has the advantage of
3388         # actually working.
3389         break;;
3390     * )
3391         break;;
3392   esac
3393 done
3394 test "$ac_cv_exeext" = no && ac_cv_exeext=
3395
3396 else
3397   ac_file=''
3398 fi
3399 if test -z "$ac_file"; then :
3400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3401 $as_echo "no" >&6; }
3402 $as_echo "$as_me: failed program was:" >&5
3403 sed 's/^/| /' conftest.$ac_ext >&5
3404
3405 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3406 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3407 as_fn_error 77 "C compiler cannot create executables
3408 See \`config.log' for more details" "$LINENO" 5; }
3409 else
3410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3411 $as_echo "yes" >&6; }
3412 fi
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3414 $as_echo_n "checking for C compiler default output file name... " >&6; }
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3416 $as_echo "$ac_file" >&6; }
3417 ac_exeext=$ac_cv_exeext
3418
3419 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3420 ac_clean_files=$ac_clean_files_save
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3422 $as_echo_n "checking for suffix of executables... " >&6; }
3423 if { { ac_try="$ac_link"
3424 case "(($ac_try" in
3425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3426   *) ac_try_echo=$ac_try;;
3427 esac
3428 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3429 $as_echo "$ac_try_echo"; } >&5
3430   (eval "$ac_link") 2>&5
3431   ac_status=$?
3432   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3433   test $ac_status = 0; }; then :
3434   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3435 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3436 # work properly (i.e., refer to `conftest.exe'), while it won't with
3437 # `rm'.
3438 for ac_file in conftest.exe conftest conftest.*; do
3439   test -f "$ac_file" || continue
3440   case $ac_file in
3441     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3442     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3443           break;;
3444     * ) break;;
3445   esac
3446 done
3447 else
3448   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3449 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3450 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3451 See \`config.log' for more details" "$LINENO" 5; }
3452 fi
3453 rm -f conftest conftest$ac_cv_exeext
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3455 $as_echo "$ac_cv_exeext" >&6; }
3456
3457 rm -f conftest.$ac_ext
3458 EXEEXT=$ac_cv_exeext
3459 ac_exeext=$EXEEXT
3460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3461 /* end confdefs.h.  */
3462 #include <stdio.h>
3463 int
3464 main ()
3465 {
3466 FILE *f = fopen ("conftest.out", "w");
3467  return ferror (f) || fclose (f) != 0;
3468
3469   ;
3470   return 0;
3471 }
3472 _ACEOF
3473 ac_clean_files="$ac_clean_files conftest.out"
3474 # Check that the compiler produces executables we can run.  If not, either
3475 # the compiler is broken, or we cross compile.
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3477 $as_echo_n "checking whether we are cross compiling... " >&6; }
3478 if test "$cross_compiling" != yes; then
3479   { { ac_try="$ac_link"
3480 case "(($ac_try" in
3481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3482   *) ac_try_echo=$ac_try;;
3483 esac
3484 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3485 $as_echo "$ac_try_echo"; } >&5
3486   (eval "$ac_link") 2>&5
3487   ac_status=$?
3488   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3489   test $ac_status = 0; }
3490   if { ac_try='./conftest$ac_cv_exeext'
3491   { { case "(($ac_try" in
3492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3493   *) ac_try_echo=$ac_try;;
3494 esac
3495 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3496 $as_echo "$ac_try_echo"; } >&5
3497   (eval "$ac_try") 2>&5
3498   ac_status=$?
3499   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3500   test $ac_status = 0; }; }; then
3501     cross_compiling=no
3502   else
3503     if test "$cross_compiling" = maybe; then
3504         cross_compiling=yes
3505     else
3506         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3507 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3508 as_fn_error $? "cannot run C compiled programs.
3509 If you meant to cross compile, use \`--host'.
3510 See \`config.log' for more details" "$LINENO" 5; }
3511     fi
3512   fi
3513 fi
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3515 $as_echo "$cross_compiling" >&6; }
3516
3517 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3518 ac_clean_files=$ac_clean_files_save
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3520 $as_echo_n "checking for suffix of object files... " >&6; }
3521 if ${ac_cv_objext+:} false; then :
3522   $as_echo_n "(cached) " >&6
3523 else
3524   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3525 /* end confdefs.h.  */
3526
3527 int
3528 main ()
3529 {
3530
3531   ;
3532   return 0;
3533 }
3534 _ACEOF
3535 rm -f conftest.o conftest.obj
3536 if { { ac_try="$ac_compile"
3537 case "(($ac_try" in
3538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3539   *) ac_try_echo=$ac_try;;
3540 esac
3541 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3542 $as_echo "$ac_try_echo"; } >&5
3543   (eval "$ac_compile") 2>&5
3544   ac_status=$?
3545   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3546   test $ac_status = 0; }; then :
3547   for ac_file in conftest.o conftest.obj conftest.*; do
3548   test -f "$ac_file" || continue;
3549   case $ac_file in
3550     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3551     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3552        break;;
3553   esac
3554 done
3555 else
3556   $as_echo "$as_me: failed program was:" >&5
3557 sed 's/^/| /' conftest.$ac_ext >&5
3558
3559 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3560 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3561 as_fn_error $? "cannot compute suffix of object files: cannot compile
3562 See \`config.log' for more details" "$LINENO" 5; }
3563 fi
3564 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3565 fi
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3567 $as_echo "$ac_cv_objext" >&6; }
3568 OBJEXT=$ac_cv_objext
3569 ac_objext=$OBJEXT
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3571 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3572 if ${ac_cv_c_compiler_gnu+:} false; then :
3573   $as_echo_n "(cached) " >&6
3574 else
3575   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3576 /* end confdefs.h.  */
3577
3578 int
3579 main ()
3580 {
3581 #ifndef __GNUC__
3582        choke me
3583 #endif
3584
3585   ;
3586   return 0;
3587 }
3588 _ACEOF
3589 if ac_fn_c_try_compile "$LINENO"; then :
3590   ac_compiler_gnu=yes
3591 else
3592   ac_compiler_gnu=no
3593 fi
3594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3595 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3596
3597 fi
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3599 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3600 if test $ac_compiler_gnu = yes; then
3601   GCC=yes
3602 else
3603   GCC=
3604 fi
3605 ac_test_CFLAGS=${CFLAGS+set}
3606 ac_save_CFLAGS=$CFLAGS
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3608 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3609 if ${ac_cv_prog_cc_g+:} false; then :
3610   $as_echo_n "(cached) " >&6
3611 else
3612   ac_save_c_werror_flag=$ac_c_werror_flag
3613    ac_c_werror_flag=yes
3614    ac_cv_prog_cc_g=no
3615    CFLAGS="-g"
3616    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3617 /* end confdefs.h.  */
3618
3619 int
3620 main ()
3621 {
3622
3623   ;
3624   return 0;
3625 }
3626 _ACEOF
3627 if ac_fn_c_try_compile "$LINENO"; then :
3628   ac_cv_prog_cc_g=yes
3629 else
3630   CFLAGS=""
3631       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3632 /* end confdefs.h.  */
3633
3634 int
3635 main ()
3636 {
3637
3638   ;
3639   return 0;
3640 }
3641 _ACEOF
3642 if ac_fn_c_try_compile "$LINENO"; then :
3643
3644 else
3645   ac_c_werror_flag=$ac_save_c_werror_flag
3646          CFLAGS="-g"
3647          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3648 /* end confdefs.h.  */
3649
3650 int
3651 main ()
3652 {
3653
3654   ;
3655   return 0;
3656 }
3657 _ACEOF
3658 if ac_fn_c_try_compile "$LINENO"; then :
3659   ac_cv_prog_cc_g=yes
3660 fi
3661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3662 fi
3663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3664 fi
3665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3666    ac_c_werror_flag=$ac_save_c_werror_flag
3667 fi
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3669 $as_echo "$ac_cv_prog_cc_g" >&6; }
3670 if test "$ac_test_CFLAGS" = set; then
3671   CFLAGS=$ac_save_CFLAGS
3672 elif test $ac_cv_prog_cc_g = yes; then
3673   if test "$GCC" = yes; then
3674     CFLAGS="-g -O2"
3675   else
3676     CFLAGS="-g"
3677   fi
3678 else
3679   if test "$GCC" = yes; then
3680     CFLAGS="-O2"
3681   else
3682     CFLAGS=
3683   fi
3684 fi
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3686 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3687 if ${ac_cv_prog_cc_c89+:} false; then :
3688   $as_echo_n "(cached) " >&6
3689 else
3690   ac_cv_prog_cc_c89=no
3691 ac_save_CC=$CC
3692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3693 /* end confdefs.h.  */
3694 #include <stdarg.h>
3695 #include <stdio.h>
3696 #include <sys/types.h>
3697 #include <sys/stat.h>
3698 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3699 struct buf { int x; };
3700 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3701 static char *e (p, i)
3702      char **p;
3703      int i;
3704 {
3705   return p[i];
3706 }
3707 static char *f (char * (*g) (char **, int), char **p, ...)
3708 {
3709   char *s;
3710   va_list v;
3711   va_start (v,p);
3712   s = g (p, va_arg (v,int));
3713   va_end (v);
3714   return s;
3715 }
3716
3717 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3718    function prototypes and stuff, but not '\xHH' hex character constants.
3719    These don't provoke an error unfortunately, instead are silently treated
3720    as 'x'.  The following induces an error, until -std is added to get
3721    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3722    array size at least.  It's necessary to write '\x00'==0 to get something
3723    that's true only with -std.  */
3724 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3725
3726 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3727    inside strings and character constants.  */
3728 #define FOO(x) 'x'
3729 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3730
3731 int test (int i, double x);
3732 struct s1 {int (*f) (int a);};
3733 struct s2 {int (*f) (double a);};
3734 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3735 int argc;
3736 char **argv;
3737 int
3738 main ()
3739 {
3740 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3741   ;
3742   return 0;
3743 }
3744 _ACEOF
3745 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3746         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3747 do
3748   CC="$ac_save_CC $ac_arg"
3749   if ac_fn_c_try_compile "$LINENO"; then :
3750   ac_cv_prog_cc_c89=$ac_arg
3751 fi
3752 rm -f core conftest.err conftest.$ac_objext
3753   test "x$ac_cv_prog_cc_c89" != "xno" && break
3754 done
3755 rm -f conftest.$ac_ext
3756 CC=$ac_save_CC
3757
3758 fi
3759 # AC_CACHE_VAL
3760 case "x$ac_cv_prog_cc_c89" in
3761   x)
3762     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3763 $as_echo "none needed" >&6; } ;;
3764   xno)
3765     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3766 $as_echo "unsupported" >&6; } ;;
3767   *)
3768     CC="$CC $ac_cv_prog_cc_c89"
3769     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3770 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3771 esac
3772 if test "x$ac_cv_prog_cc_c89" != xno; then :
3773
3774 fi
3775
3776 ac_ext=c
3777 ac_cpp='$CPP $CPPFLAGS'
3778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3781 DEPDIR="${am__leading_dot}deps"
3782
3783 ac_config_commands="$ac_config_commands depfiles"
3784
3785
3786 am_make=${MAKE-make}
3787 cat > confinc << 'END'
3788 am__doit:
3789         @echo this is the am__doit target
3790 .PHONY: am__doit
3791 END
3792 # If we don't find an include directive, just comment out the code.
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3794 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3795 am__include="#"
3796 am__quote=
3797 _am_result=none
3798 # First try GNU make style include.
3799 echo "include confinc" > confmf
3800 # Ignore all kinds of additional output from `make'.
3801 case `$am_make -s -f confmf 2> /dev/null` in #(
3802 *the\ am__doit\ target*)
3803   am__include=include
3804   am__quote=
3805   _am_result=GNU
3806   ;;
3807 esac
3808 # Now try BSD make style include.
3809 if test "$am__include" = "#"; then
3810    echo '.include "confinc"' > confmf
3811    case `$am_make -s -f confmf 2> /dev/null` in #(
3812    *the\ am__doit\ target*)
3813      am__include=.include
3814      am__quote="\""
3815      _am_result=BSD
3816      ;;
3817    esac
3818 fi
3819
3820
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3822 $as_echo "$_am_result" >&6; }
3823 rm -f confinc confmf
3824
3825 # Check whether --enable-dependency-tracking was given.
3826 if test "${enable_dependency_tracking+set}" = set; then :
3827   enableval=$enable_dependency_tracking;
3828 fi
3829
3830 if test "x$enable_dependency_tracking" != xno; then
3831   am_depcomp="$ac_aux_dir/depcomp"
3832   AMDEPBACKSLASH='\'
3833   am__nodep='_no'
3834 fi
3835  if test "x$enable_dependency_tracking" != xno; then
3836   AMDEP_TRUE=
3837   AMDEP_FALSE='#'
3838 else
3839   AMDEP_TRUE='#'
3840   AMDEP_FALSE=
3841 fi
3842
3843
3844
3845 depcc="$CC"   am_compiler_list=
3846
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3848 $as_echo_n "checking dependency style of $depcc... " >&6; }
3849 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3850   $as_echo_n "(cached) " >&6
3851 else
3852   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3853   # We make a subdir and do the tests there.  Otherwise we can end up
3854   # making bogus files that we don't know about and never remove.  For
3855   # instance it was reported that on HP-UX the gcc test will end up
3856   # making a dummy file named `D' -- because `-MD' means `put the output
3857   # in D'.
3858   rm -rf conftest.dir
3859   mkdir conftest.dir
3860   # Copy depcomp to subdir because otherwise we won't find it if we're
3861   # using a relative directory.
3862   cp "$am_depcomp" conftest.dir
3863   cd conftest.dir
3864   # We will build objects and dependencies in a subdirectory because
3865   # it helps to detect inapplicable dependency modes.  For instance
3866   # both Tru64's cc and ICC support -MD to output dependencies as a
3867   # side effect of compilation, but ICC will put the dependencies in
3868   # the current directory while Tru64 will put them in the object
3869   # directory.
3870   mkdir sub
3871
3872   am_cv_CC_dependencies_compiler_type=none
3873   if test "$am_compiler_list" = ""; then
3874      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3875   fi
3876   am__universal=false
3877   case " $depcc " in #(
3878      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3879      esac
3880
3881   for depmode in $am_compiler_list; do
3882     # Setup a source with many dependencies, because some compilers
3883     # like to wrap large dependency lists on column 80 (with \), and
3884     # we should not choose a depcomp mode which is confused by this.
3885     #
3886     # We need to recreate these files for each test, as the compiler may
3887     # overwrite some of them when testing with obscure command lines.
3888     # This happens at least with the AIX C compiler.
3889     : > sub/conftest.c
3890     for i in 1 2 3 4 5 6; do
3891       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3892       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3893       # Solaris 8's {/usr,}/bin/sh.
3894       touch sub/conftst$i.h
3895     done
3896     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3897
3898     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3899     # mode.  It turns out that the SunPro C++ compiler does not properly
3900     # handle `-M -o', and we need to detect this.  Also, some Intel
3901     # versions had trouble with output in subdirs
3902     am__obj=sub/conftest.${OBJEXT-o}
3903     am__minus_obj="-o $am__obj"
3904     case $depmode in
3905     gcc)
3906       # This depmode causes a compiler race in universal mode.
3907       test "$am__universal" = false || continue
3908       ;;
3909     nosideeffect)
3910       # after this tag, mechanisms are not by side-effect, so they'll
3911       # only be used when explicitly requested
3912       if test "x$enable_dependency_tracking" = xyes; then
3913         continue
3914       else
3915         break
3916       fi
3917       ;;
3918     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3919       # This compiler won't grok `-c -o', but also, the minuso test has
3920       # not run yet.  These depmodes are late enough in the game, and
3921       # so weak that their functioning should not be impacted.
3922       am__obj=conftest.${OBJEXT-o}
3923       am__minus_obj=
3924       ;;
3925     none) break ;;
3926     esac
3927     if depmode=$depmode \
3928        source=sub/conftest.c object=$am__obj \
3929        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3930        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3931          >/dev/null 2>conftest.err &&
3932        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3933        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3934        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3935        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3936       # icc doesn't choke on unknown options, it will just issue warnings
3937       # or remarks (even with -Werror).  So we grep stderr for any message
3938       # that says an option was ignored or not supported.
3939       # When given -MP, icc 7.0 and 7.1 complain thusly:
3940       #   icc: Command line warning: ignoring option '-M'; no argument required
3941       # The diagnosis changed in icc 8.0:
3942       #   icc: Command line remark: option '-MP' not supported
3943       if (grep 'ignoring option' conftest.err ||
3944           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3945         am_cv_CC_dependencies_compiler_type=$depmode
3946         break
3947       fi
3948     fi
3949   done
3950
3951   cd ..
3952   rm -rf conftest.dir
3953 else
3954   am_cv_CC_dependencies_compiler_type=none
3955 fi
3956
3957 fi
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3959 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3960 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3961
3962  if
3963   test "x$enable_dependency_tracking" != xno \
3964   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3965   am__fastdepCC_TRUE=
3966   am__fastdepCC_FALSE='#'
3967 else
3968   am__fastdepCC_TRUE='#'
3969   am__fastdepCC_FALSE=
3970 fi
3971
3972
3973
3974 ac_ext=c
3975 ac_cpp='$CPP $CPPFLAGS'
3976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3980 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3981 # On Suns, sometimes $CPP names a directory.
3982 if test -n "$CPP" && test -d "$CPP"; then
3983   CPP=
3984 fi
3985 if test -z "$CPP"; then
3986   if ${ac_cv_prog_CPP+:} false; then :
3987   $as_echo_n "(cached) " >&6
3988 else
3989       # Double quotes because CPP needs to be expanded
3990     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3991     do
3992       ac_preproc_ok=false
3993 for ac_c_preproc_warn_flag in '' yes
3994 do
3995   # Use a header file that comes with gcc, so configuring glibc
3996   # with a fresh cross-compiler works.
3997   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3998   # <limits.h> exists even on freestanding compilers.
3999   # On the NeXT, cc -E runs the code through the compiler's parser,
4000   # not just through cpp. "Syntax error" is here to catch this case.
4001   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4002 /* end confdefs.h.  */
4003 #ifdef __STDC__
4004 # include <limits.h>
4005 #else
4006 # include <assert.h>
4007 #endif
4008                      Syntax error
4009 _ACEOF
4010 if ac_fn_c_try_cpp "$LINENO"; then :
4011
4012 else
4013   # Broken: fails on valid input.
4014 continue
4015 fi
4016 rm -f conftest.err conftest.i conftest.$ac_ext
4017
4018   # OK, works on sane cases.  Now check whether nonexistent headers
4019   # can be detected and how.
4020   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4021 /* end confdefs.h.  */
4022 #include <ac_nonexistent.h>
4023 _ACEOF
4024 if ac_fn_c_try_cpp "$LINENO"; then :
4025   # Broken: success on invalid input.
4026 continue
4027 else
4028   # Passes both tests.
4029 ac_preproc_ok=:
4030 break
4031 fi
4032 rm -f conftest.err conftest.i conftest.$ac_ext
4033
4034 done
4035 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4036 rm -f conftest.i conftest.err conftest.$ac_ext
4037 if $ac_preproc_ok; then :
4038   break
4039 fi
4040
4041     done
4042     ac_cv_prog_CPP=$CPP
4043
4044 fi
4045   CPP=$ac_cv_prog_CPP
4046 else
4047   ac_cv_prog_CPP=$CPP
4048 fi
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4050 $as_echo "$CPP" >&6; }
4051 ac_preproc_ok=false
4052 for ac_c_preproc_warn_flag in '' yes
4053 do
4054   # Use a header file that comes with gcc, so configuring glibc
4055   # with a fresh cross-compiler works.
4056   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4057   # <limits.h> exists even on freestanding compilers.
4058   # On the NeXT, cc -E runs the code through the compiler's parser,
4059   # not just through cpp. "Syntax error" is here to catch this case.
4060   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4061 /* end confdefs.h.  */
4062 #ifdef __STDC__
4063 # include <limits.h>
4064 #else
4065 # include <assert.h>
4066 #endif
4067                      Syntax error
4068 _ACEOF
4069 if ac_fn_c_try_cpp "$LINENO"; then :
4070
4071 else
4072   # Broken: fails on valid input.
4073 continue
4074 fi
4075 rm -f conftest.err conftest.i conftest.$ac_ext
4076
4077   # OK, works on sane cases.  Now check whether nonexistent headers
4078   # can be detected and how.
4079   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4080 /* end confdefs.h.  */
4081 #include <ac_nonexistent.h>
4082 _ACEOF
4083 if ac_fn_c_try_cpp "$LINENO"; then :
4084   # Broken: success on invalid input.
4085 continue
4086 else
4087   # Passes both tests.
4088 ac_preproc_ok=:
4089 break
4090 fi
4091 rm -f conftest.err conftest.i conftest.$ac_ext
4092
4093 done
4094 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4095 rm -f conftest.i conftest.err conftest.$ac_ext
4096 if $ac_preproc_ok; then :
4097
4098 else
4099   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4100 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4101 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4102 See \`config.log' for more details" "$LINENO" 5; }
4103 fi
4104
4105 ac_ext=c
4106 ac_cpp='$CPP $CPPFLAGS'
4107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4110
4111
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4113 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4114 if ${ac_cv_path_GREP+:} false; then :
4115   $as_echo_n "(cached) " >&6
4116 else
4117   if test -z "$GREP"; then
4118   ac_path_GREP_found=false
4119   # Loop through the user's path and test for each of PROGNAME-LIST
4120   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4121 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4122 do
4123   IFS=$as_save_IFS
4124   test -z "$as_dir" && as_dir=.
4125     for ac_prog in grep ggrep; do
4126     for ac_exec_ext in '' $ac_executable_extensions; do
4127       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4128       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4129 # Check for GNU ac_path_GREP and select it if it is found.
4130   # Check for GNU $ac_path_GREP
4131 case `"$ac_path_GREP" --version 2>&1` in
4132 *GNU*)
4133   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4134 *)
4135   ac_count=0
4136   $as_echo_n 0123456789 >"conftest.in"
4137   while :
4138   do
4139     cat "conftest.in" "conftest.in" >"conftest.tmp"
4140     mv "conftest.tmp" "conftest.in"
4141     cp "conftest.in" "conftest.nl"
4142     $as_echo 'GREP' >> "conftest.nl"
4143     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4144     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4145     as_fn_arith $ac_count + 1 && ac_count=$as_val
4146     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4147       # Best one so far, save it but keep looking for a better one
4148       ac_cv_path_GREP="$ac_path_GREP"
4149       ac_path_GREP_max=$ac_count
4150     fi
4151     # 10*(2^10) chars as input seems more than enough
4152     test $ac_count -gt 10 && break
4153   done
4154   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4155 esac
4156
4157       $ac_path_GREP_found && break 3
4158     done
4159   done
4160   done
4161 IFS=$as_save_IFS
4162   if test -z "$ac_cv_path_GREP"; then
4163     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4164   fi
4165 else
4166   ac_cv_path_GREP=$GREP
4167 fi
4168
4169 fi
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4171 $as_echo "$ac_cv_path_GREP" >&6; }
4172  GREP="$ac_cv_path_GREP"
4173
4174
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4176 $as_echo_n "checking for egrep... " >&6; }
4177 if ${ac_cv_path_EGREP+:} false; then :
4178   $as_echo_n "(cached) " >&6
4179 else
4180   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4181    then ac_cv_path_EGREP="$GREP -E"
4182    else
4183      if test -z "$EGREP"; then
4184   ac_path_EGREP_found=false
4185   # Loop through the user's path and test for each of PROGNAME-LIST
4186   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4187 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4188 do
4189   IFS=$as_save_IFS
4190   test -z "$as_dir" && as_dir=.
4191     for ac_prog in egrep; do
4192     for ac_exec_ext in '' $ac_executable_extensions; do
4193       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4194       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4195 # Check for GNU ac_path_EGREP and select it if it is found.
4196   # Check for GNU $ac_path_EGREP
4197 case `"$ac_path_EGREP" --version 2>&1` in
4198 *GNU*)
4199   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4200 *)
4201   ac_count=0
4202   $as_echo_n 0123456789 >"conftest.in"
4203   while :
4204   do
4205     cat "conftest.in" "conftest.in" >"conftest.tmp"
4206     mv "conftest.tmp" "conftest.in"
4207     cp "conftest.in" "conftest.nl"
4208     $as_echo 'EGREP' >> "conftest.nl"
4209     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4210     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4211     as_fn_arith $ac_count + 1 && ac_count=$as_val
4212     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4213       # Best one so far, save it but keep looking for a better one
4214       ac_cv_path_EGREP="$ac_path_EGREP"
4215       ac_path_EGREP_max=$ac_count
4216     fi
4217     # 10*(2^10) chars as input seems more than enough
4218     test $ac_count -gt 10 && break
4219   done
4220   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4221 esac
4222
4223       $ac_path_EGREP_found && break 3
4224     done
4225   done
4226   done
4227 IFS=$as_save_IFS
4228   if test -z "$ac_cv_path_EGREP"; then
4229     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4230   fi
4231 else
4232   ac_cv_path_EGREP=$EGREP
4233 fi
4234
4235    fi
4236 fi
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4238 $as_echo "$ac_cv_path_EGREP" >&6; }
4239  EGREP="$ac_cv_path_EGREP"
4240
4241
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4243 $as_echo_n "checking for ANSI C header files... " >&6; }
4244 if ${ac_cv_header_stdc+:} false; then :
4245   $as_echo_n "(cached) " >&6
4246 else
4247   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4248 /* end confdefs.h.  */
4249 #include <stdlib.h>
4250 #include <stdarg.h>
4251 #include <string.h>
4252 #include <float.h>
4253
4254 int
4255 main ()
4256 {
4257
4258   ;
4259   return 0;
4260 }
4261 _ACEOF
4262 if ac_fn_c_try_compile "$LINENO"; then :
4263   ac_cv_header_stdc=yes
4264 else
4265   ac_cv_header_stdc=no
4266 fi
4267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4268
4269 if test $ac_cv_header_stdc = yes; then
4270   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4271   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4272 /* end confdefs.h.  */
4273 #include <string.h>
4274
4275 _ACEOF
4276 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4277   $EGREP "memchr" >/dev/null 2>&1; then :
4278
4279 else
4280   ac_cv_header_stdc=no
4281 fi
4282 rm -f conftest*
4283
4284 fi
4285
4286 if test $ac_cv_header_stdc = yes; then
4287   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4288   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4289 /* end confdefs.h.  */
4290 #include <stdlib.h>
4291
4292 _ACEOF
4293 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4294   $EGREP "free" >/dev/null 2>&1; then :
4295
4296 else
4297   ac_cv_header_stdc=no
4298 fi
4299 rm -f conftest*
4300
4301 fi
4302
4303 if test $ac_cv_header_stdc = yes; then
4304   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4305   if test "$cross_compiling" = yes; then :
4306   :
4307 else
4308   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4309 /* end confdefs.h.  */
4310 #include <ctype.h>
4311 #include <stdlib.h>
4312 #if ((' ' & 0x0FF) == 0x020)
4313 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4314 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4315 #else
4316 # define ISLOWER(c) \
4317                    (('a' <= (c) && (c) <= 'i') \
4318                      || ('j' <= (c) && (c) <= 'r') \
4319                      || ('s' <= (c) && (c) <= 'z'))
4320 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4321 #endif
4322
4323 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4324 int
4325 main ()
4326 {
4327   int i;
4328   for (i = 0; i < 256; i++)
4329     if (XOR (islower (i), ISLOWER (i))
4330         || toupper (i) != TOUPPER (i))
4331       return 2;
4332   return 0;
4333 }
4334 _ACEOF
4335 if ac_fn_c_try_run "$LINENO"; then :
4336
4337 else
4338   ac_cv_header_stdc=no
4339 fi
4340 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4341   conftest.$ac_objext conftest.beam conftest.$ac_ext
4342 fi
4343
4344 fi
4345 fi
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4347 $as_echo "$ac_cv_header_stdc" >&6; }
4348 if test $ac_cv_header_stdc = yes; then
4349
4350 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4351
4352 fi
4353
4354 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4355 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4356                   inttypes.h stdint.h unistd.h
4357 do :
4358   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4359 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4360 "
4361 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4362   cat >>confdefs.h <<_ACEOF
4363 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4364 _ACEOF
4365
4366 fi
4367
4368 done
4369
4370
4371
4372
4373
4374   for ac_header in $ac_header_list
4375 do :
4376   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4377 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4378 "
4379 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4380   cat >>confdefs.h <<_ACEOF
4381 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4382 _ACEOF
4383
4384 fi
4385
4386 done
4387
4388
4389
4390
4391
4392
4393
4394
4395 for ac_func in getpagesize
4396 do :
4397   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
4398 if test "x$ac_cv_func_getpagesize" = xyes; then :
4399   cat >>confdefs.h <<_ACEOF
4400 #define HAVE_GETPAGESIZE 1
4401 _ACEOF
4402
4403 fi
4404 done
4405
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
4407 $as_echo_n "checking for working mmap... " >&6; }
4408 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
4409   $as_echo_n "(cached) " >&6
4410 else
4411   if test "$cross_compiling" = yes; then :
4412   ac_cv_func_mmap_fixed_mapped=no
4413 else
4414   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4415 /* end confdefs.h.  */
4416 $ac_includes_default
4417 /* malloc might have been renamed as rpl_malloc. */
4418 #undef malloc
4419
4420 /* Thanks to Mike Haertel and Jim Avera for this test.
4421    Here is a matrix of mmap possibilities:
4422         mmap private not fixed
4423         mmap private fixed at somewhere currently unmapped
4424         mmap private fixed at somewhere already mapped
4425         mmap shared not fixed
4426         mmap shared fixed at somewhere currently unmapped
4427         mmap shared fixed at somewhere already mapped
4428    For private mappings, we should verify that changes cannot be read()
4429    back from the file, nor mmap's back from the file at a different
4430    address.  (There have been systems where private was not correctly
4431    implemented like the infamous i386 svr4.0, and systems where the
4432    VM page cache was not coherent with the file system buffer cache
4433    like early versions of FreeBSD and possibly contemporary NetBSD.)
4434    For shared mappings, we should conversely verify that changes get
4435    propagated back to all the places they're supposed to be.
4436
4437    Grep wants private fixed already mapped.
4438    The main things grep needs to know about mmap are:
4439    * does it exist and is it safe to write into the mmap'd area
4440    * how to use it (BSD variants)  */
4441
4442 #include <fcntl.h>
4443 #include <sys/mman.h>
4444
4445 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
4446 char *malloc ();
4447 #endif
4448
4449 /* This mess was copied from the GNU getpagesize.h.  */
4450 #ifndef HAVE_GETPAGESIZE
4451 # ifdef _SC_PAGESIZE
4452 #  define getpagesize() sysconf(_SC_PAGESIZE)
4453 # else /* no _SC_PAGESIZE */
4454 #  ifdef HAVE_SYS_PARAM_H
4455 #   include <sys/param.h>
4456 #   ifdef EXEC_PAGESIZE
4457 #    define getpagesize() EXEC_PAGESIZE
4458 #   else /* no EXEC_PAGESIZE */
4459 #    ifdef NBPG
4460 #     define getpagesize() NBPG * CLSIZE
4461 #     ifndef CLSIZE
4462 #      define CLSIZE 1
4463 #     endif /* no CLSIZE */
4464 #    else /* no NBPG */
4465 #     ifdef NBPC
4466 #      define getpagesize() NBPC
4467 #     else /* no NBPC */
4468 #      ifdef PAGESIZE
4469 #       define getpagesize() PAGESIZE
4470 #      endif /* PAGESIZE */
4471 #     endif /* no NBPC */
4472 #    endif /* no NBPG */
4473 #   endif /* no EXEC_PAGESIZE */
4474 #  else /* no HAVE_SYS_PARAM_H */
4475 #   define getpagesize() 8192   /* punt totally */
4476 #  endif /* no HAVE_SYS_PARAM_H */
4477 # endif /* no _SC_PAGESIZE */
4478
4479 #endif /* no HAVE_GETPAGESIZE */
4480
4481 int
4482 main ()
4483 {
4484   char *data, *data2, *data3;
4485   const char *cdata2;
4486   int i, pagesize;
4487   int fd, fd2;
4488
4489   pagesize = getpagesize ();
4490
4491   /* First, make a file with some known garbage in it. */
4492   data = (char *) malloc (pagesize);
4493   if (!data)
4494     return 1;
4495   for (i = 0; i < pagesize; ++i)
4496     *(data + i) = rand ();
4497   umask (0);
4498   fd = creat ("conftest.mmap", 0600);
4499   if (fd < 0)
4500     return 2;
4501   if (write (fd, data, pagesize) != pagesize)
4502     return 3;
4503   close (fd);
4504
4505   /* Next, check that the tail of a page is zero-filled.  File must have
4506      non-zero length, otherwise we risk SIGBUS for entire page.  */
4507   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
4508   if (fd2 < 0)
4509     return 4;
4510   cdata2 = "";
4511   if (write (fd2, cdata2, 1) != 1)
4512     return 5;
4513   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
4514   if (data2 == MAP_FAILED)
4515     return 6;
4516   for (i = 0; i < pagesize; ++i)
4517     if (*(data2 + i))
4518       return 7;
4519   close (fd2);
4520   if (munmap (data2, pagesize))
4521     return 8;
4522
4523   /* Next, try to mmap the file at a fixed address which already has
4524      something else allocated at it.  If we can, also make sure that
4525      we see the same garbage.  */
4526   fd = open ("conftest.mmap", O_RDWR);
4527   if (fd < 0)
4528     return 9;
4529   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4530                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
4531     return 10;
4532   for (i = 0; i < pagesize; ++i)
4533     if (*(data + i) != *(data2 + i))
4534       return 11;
4535
4536   /* Finally, make sure that changes to the mapped area do not
4537      percolate back to the file as seen by read().  (This is a bug on
4538      some variants of i386 svr4.0.)  */
4539   for (i = 0; i < pagesize; ++i)
4540     *(data2 + i) = *(data2 + i) + 1;
4541   data3 = (char *) malloc (pagesize);
4542   if (!data3)
4543     return 12;
4544   if (read (fd, data3, pagesize) != pagesize)
4545     return 13;
4546   for (i = 0; i < pagesize; ++i)
4547     if (*(data + i) != *(data3 + i))
4548       return 14;
4549   close (fd);
4550   return 0;
4551 }
4552 _ACEOF
4553 if ac_fn_c_try_run "$LINENO"; then :
4554   ac_cv_func_mmap_fixed_mapped=yes
4555 else
4556   ac_cv_func_mmap_fixed_mapped=no
4557 fi
4558 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4559   conftest.$ac_objext conftest.beam conftest.$ac_ext
4560 fi
4561
4562 fi
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
4564 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
4565 if test $ac_cv_func_mmap_fixed_mapped = yes; then
4566
4567 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
4568
4569 fi
4570 rm -f conftest.mmap conftest.txt
4571
4572 # Check whether --enable-largefile was given.
4573 if test "${enable_largefile+set}" = set; then :
4574   enableval=$enable_largefile;
4575 fi
4576
4577 if test "$enable_largefile" != no; then
4578
4579   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4580 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4581 if ${ac_cv_sys_largefile_CC+:} false; then :
4582   $as_echo_n "(cached) " >&6
4583 else
4584   ac_cv_sys_largefile_CC=no
4585      if test "$GCC" != yes; then
4586        ac_save_CC=$CC
4587        while :; do
4588          # IRIX 6.2 and later do not support large files by default,
4589          # so use the C compiler's -n32 option if that helps.
4590          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4591 /* end confdefs.h.  */
4592 #include <sys/types.h>
4593  /* Check that off_t can represent 2**63 - 1 correctly.
4594     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4595     since some C++ compilers masquerading as C compilers
4596     incorrectly reject 9223372036854775807.  */
4597 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4598   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4599                        && LARGE_OFF_T % 2147483647 == 1)
4600                       ? 1 : -1];
4601 int
4602 main ()
4603 {
4604
4605   ;
4606   return 0;
4607 }
4608 _ACEOF
4609          if ac_fn_c_try_compile "$LINENO"; then :
4610   break
4611 fi
4612 rm -f core conftest.err conftest.$ac_objext
4613          CC="$CC -n32"
4614          if ac_fn_c_try_compile "$LINENO"; then :
4615   ac_cv_sys_largefile_CC=' -n32'; break
4616 fi
4617 rm -f core conftest.err conftest.$ac_objext
4618          break
4619        done
4620        CC=$ac_save_CC
4621        rm -f conftest.$ac_ext
4622     fi
4623 fi
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4625 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4626   if test "$ac_cv_sys_largefile_CC" != no; then
4627     CC=$CC$ac_cv_sys_largefile_CC
4628   fi
4629
4630   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4631 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4632 if ${ac_cv_sys_file_offset_bits+:} false; then :
4633   $as_echo_n "(cached) " >&6
4634 else
4635   while :; do
4636   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4637 /* end confdefs.h.  */
4638 #include <sys/types.h>
4639  /* Check that off_t can represent 2**63 - 1 correctly.
4640     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4641     since some C++ compilers masquerading as C compilers
4642     incorrectly reject 9223372036854775807.  */
4643 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4644   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4645                        && LARGE_OFF_T % 2147483647 == 1)
4646                       ? 1 : -1];
4647 int
4648 main ()
4649 {
4650
4651   ;
4652   return 0;
4653 }
4654 _ACEOF
4655 if ac_fn_c_try_compile "$LINENO"; then :
4656   ac_cv_sys_file_offset_bits=no; break
4657 fi
4658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4659   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4660 /* end confdefs.h.  */
4661 #define _FILE_OFFSET_BITS 64
4662 #include <sys/types.h>
4663  /* Check that off_t can represent 2**63 - 1 correctly.
4664     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4665     since some C++ compilers masquerading as C compilers
4666     incorrectly reject 9223372036854775807.  */
4667 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4668   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4669                        && LARGE_OFF_T % 2147483647 == 1)
4670                       ? 1 : -1];
4671 int
4672 main ()
4673 {
4674
4675   ;
4676   return 0;
4677 }
4678 _ACEOF
4679 if ac_fn_c_try_compile "$LINENO"; then :
4680   ac_cv_sys_file_offset_bits=64; break
4681 fi
4682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4683   ac_cv_sys_file_offset_bits=unknown
4684   break
4685 done
4686 fi
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4688 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4689 case $ac_cv_sys_file_offset_bits in #(
4690   no | unknown) ;;
4691   *)
4692 cat >>confdefs.h <<_ACEOF
4693 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4694 _ACEOF
4695 ;;
4696 esac
4697 rm -rf conftest*
4698   if test $ac_cv_sys_file_offset_bits = unknown; then
4699     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4700 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4701 if ${ac_cv_sys_large_files+:} false; then :
4702   $as_echo_n "(cached) " >&6
4703 else
4704   while :; do
4705   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4706 /* end confdefs.h.  */
4707 #include <sys/types.h>
4708  /* Check that off_t can represent 2**63 - 1 correctly.
4709     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4710     since some C++ compilers masquerading as C compilers
4711     incorrectly reject 9223372036854775807.  */
4712 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4713   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4714                        && LARGE_OFF_T % 2147483647 == 1)
4715                       ? 1 : -1];
4716 int
4717 main ()
4718 {
4719
4720   ;
4721   return 0;
4722 }
4723 _ACEOF
4724 if ac_fn_c_try_compile "$LINENO"; then :
4725   ac_cv_sys_large_files=no; break
4726 fi
4727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4728   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4729 /* end confdefs.h.  */
4730 #define _LARGE_FILES 1
4731 #include <sys/types.h>
4732  /* Check that off_t can represent 2**63 - 1 correctly.
4733     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4734     since some C++ compilers masquerading as C compilers
4735     incorrectly reject 9223372036854775807.  */
4736 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4737   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4738                        && LARGE_OFF_T % 2147483647 == 1)
4739                       ? 1 : -1];
4740 int
4741 main ()
4742 {
4743
4744   ;
4745   return 0;
4746 }
4747 _ACEOF
4748 if ac_fn_c_try_compile "$LINENO"; then :
4749   ac_cv_sys_large_files=1; break
4750 fi
4751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4752   ac_cv_sys_large_files=unknown
4753   break
4754 done
4755 fi
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4757 $as_echo "$ac_cv_sys_large_files" >&6; }
4758 case $ac_cv_sys_large_files in #(
4759   no | unknown) ;;
4760   *)
4761 cat >>confdefs.h <<_ACEOF
4762 #define _LARGE_FILES $ac_cv_sys_large_files
4763 _ACEOF
4764 ;;
4765 esac
4766 rm -rf conftest*
4767   fi
4768 fi
4769
4770
4771 # Initialize libtool
4772
4773 case `pwd` in
4774   *\ * | *\     *)
4775     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4776 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4777 esac
4778
4779
4780
4781 macro_version='2.4.2'
4782 macro_revision='1.3337'
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796 ltmain="$ac_aux_dir/ltmain.sh"
4797
4798 # Backslashify metacharacters that are still active within
4799 # double-quoted strings.
4800 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4801
4802 # Same as above, but do not quote variable references.
4803 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4804
4805 # Sed substitution to delay expansion of an escaped shell variable in a
4806 # double_quote_subst'ed string.
4807 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4808
4809 # Sed substitution to delay expansion of an escaped single quote.
4810 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4811
4812 # Sed substitution to avoid accidental globbing in evaled expressions
4813 no_glob_subst='s/\*/\\\*/g'
4814
4815 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4816 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4817 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4818
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4820 $as_echo_n "checking how to print strings... " >&6; }
4821 # Test print first, because it will be a builtin if present.
4822 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4823    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4824   ECHO='print -r --'
4825 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4826   ECHO='printf %s\n'
4827 else
4828   # Use this function as a fallback that always works.
4829   func_fallback_echo ()
4830   {
4831     eval 'cat <<_LTECHO_EOF
4832 $1
4833 _LTECHO_EOF'
4834   }
4835   ECHO='func_fallback_echo'
4836 fi
4837
4838 # func_echo_all arg...
4839 # Invoke $ECHO with all args, space-separated.
4840 func_echo_all ()
4841 {
4842     $ECHO ""
4843 }
4844
4845 case "$ECHO" in
4846   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4847 $as_echo "printf" >&6; } ;;
4848   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4849 $as_echo "print -r" >&6; } ;;
4850   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4851 $as_echo "cat" >&6; } ;;
4852 esac
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4868 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4869 if ${ac_cv_path_SED+:} false; then :
4870   $as_echo_n "(cached) " >&6
4871 else
4872             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4873      for ac_i in 1 2 3 4 5 6 7; do
4874        ac_script="$ac_script$as_nl$ac_script"
4875      done
4876      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4877      { ac_script=; unset ac_script;}
4878      if test -z "$SED"; then
4879   ac_path_SED_found=false
4880   # Loop through the user's path and test for each of PROGNAME-LIST
4881   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4882 for as_dir in $PATH
4883 do
4884   IFS=$as_save_IFS
4885   test -z "$as_dir" && as_dir=.
4886     for ac_prog in sed gsed; do
4887     for ac_exec_ext in '' $ac_executable_extensions; do
4888       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4889       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4890 # Check for GNU ac_path_SED and select it if it is found.
4891   # Check for GNU $ac_path_SED
4892 case `"$ac_path_SED" --version 2>&1` in
4893 *GNU*)
4894   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4895 *)
4896   ac_count=0
4897   $as_echo_n 0123456789 >"conftest.in"
4898   while :
4899   do
4900     cat "conftest.in" "conftest.in" >"conftest.tmp"
4901     mv "conftest.tmp" "conftest.in"
4902     cp "conftest.in" "conftest.nl"
4903     $as_echo '' >> "conftest.nl"
4904     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4905     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4906     as_fn_arith $ac_count + 1 && ac_count=$as_val
4907     if test $ac_count -gt ${ac_path_SED_max-0}; then
4908       # Best one so far, save it but keep looking for a better one
4909       ac_cv_path_SED="$ac_path_SED"
4910       ac_path_SED_max=$ac_count
4911     fi
4912     # 10*(2^10) chars as input seems more than enough
4913     test $ac_count -gt 10 && break
4914   done
4915   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4916 esac
4917
4918       $ac_path_SED_found && break 3
4919     done
4920   done
4921   done
4922 IFS=$as_save_IFS
4923   if test -z "$ac_cv_path_SED"; then
4924     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4925   fi
4926 else
4927   ac_cv_path_SED=$SED
4928 fi
4929
4930 fi
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4932 $as_echo "$ac_cv_path_SED" >&6; }
4933  SED="$ac_cv_path_SED"
4934   rm -f conftest.sed
4935
4936 test -z "$SED" && SED=sed
4937 Xsed="$SED -e 1s/^X//"
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4950 $as_echo_n "checking for fgrep... " >&6; }
4951 if ${ac_cv_path_FGREP+:} false; then :
4952   $as_echo_n "(cached) " >&6
4953 else
4954   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4955    then ac_cv_path_FGREP="$GREP -F"
4956    else
4957      if test -z "$FGREP"; then
4958   ac_path_FGREP_found=false
4959   # Loop through the user's path and test for each of PROGNAME-LIST
4960   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4961 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4962 do
4963   IFS=$as_save_IFS
4964   test -z "$as_dir" && as_dir=.
4965     for ac_prog in fgrep; do
4966     for ac_exec_ext in '' $ac_executable_extensions; do
4967       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4968       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4969 # Check for GNU ac_path_FGREP and select it if it is found.
4970   # Check for GNU $ac_path_FGREP
4971 case `"$ac_path_FGREP" --version 2>&1` in
4972 *GNU*)
4973   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4974 *)
4975   ac_count=0
4976   $as_echo_n 0123456789 >"conftest.in"
4977   while :
4978   do
4979     cat "conftest.in" "conftest.in" >"conftest.tmp"
4980     mv "conftest.tmp" "conftest.in"
4981     cp "conftest.in" "conftest.nl"
4982     $as_echo 'FGREP' >> "conftest.nl"
4983     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4984     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4985     as_fn_arith $ac_count + 1 && ac_count=$as_val
4986     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4987       # Best one so far, save it but keep looking for a better one
4988       ac_cv_path_FGREP="$ac_path_FGREP"
4989       ac_path_FGREP_max=$ac_count
4990     fi
4991     # 10*(2^10) chars as input seems more than enough
4992     test $ac_count -gt 10 && break
4993   done
4994   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4995 esac
4996
4997       $ac_path_FGREP_found && break 3
4998     done
4999   done
5000   done
5001 IFS=$as_save_IFS
5002   if test -z "$ac_cv_path_FGREP"; then
5003     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5004   fi
5005 else
5006   ac_cv_path_FGREP=$FGREP
5007 fi
5008
5009    fi
5010 fi
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5012 $as_echo "$ac_cv_path_FGREP" >&6; }
5013  FGREP="$ac_cv_path_FGREP"
5014
5015
5016 test -z "$GREP" && GREP=grep
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036 # Check whether --with-gnu-ld was given.
5037 if test "${with_gnu_ld+set}" = set; then :
5038   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5039 else
5040   with_gnu_ld=no
5041 fi
5042
5043 ac_prog=ld
5044 if test "$GCC" = yes; then
5045   # Check if gcc -print-prog-name=ld gives a path.
5046   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5047 $as_echo_n "checking for ld used by $CC... " >&6; }
5048   case $host in
5049   *-*-mingw*)
5050     # gcc leaves a trailing carriage return which upsets mingw
5051     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5052   *)
5053     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5054   esac
5055   case $ac_prog in
5056     # Accept absolute paths.
5057     [\\/]* | ?:[\\/]*)
5058       re_direlt='/[^/][^/]*/\.\./'
5059       # Canonicalize the pathname of ld
5060       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5061       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5062         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5063       done
5064       test -z "$LD" && LD="$ac_prog"
5065       ;;
5066   "")
5067     # If it fails, then pretend we aren't using GCC.
5068     ac_prog=ld
5069     ;;
5070   *)
5071     # If it is relative, then search for the first ld in PATH.
5072     with_gnu_ld=unknown
5073     ;;
5074   esac
5075 elif test "$with_gnu_ld" = yes; then
5076   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5077 $as_echo_n "checking for GNU ld... " >&6; }
5078 else
5079   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5080 $as_echo_n "checking for non-GNU ld... " >&6; }
5081 fi
5082 if ${lt_cv_path_LD+:} false; then :
5083   $as_echo_n "(cached) " >&6
5084 else
5085   if test -z "$LD"; then
5086   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5087   for ac_dir in $PATH; do
5088     IFS="$lt_save_ifs"
5089     test -z "$ac_dir" && ac_dir=.
5090     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5091       lt_cv_path_LD="$ac_dir/$ac_prog"
5092       # Check to see if the program is GNU ld.  I'd rather use --version,
5093       # but apparently some variants of GNU ld only accept -v.
5094       # Break only if it was the GNU/non-GNU ld that we prefer.
5095       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5096       *GNU* | *'with BFD'*)
5097         test "$with_gnu_ld" != no && break
5098         ;;
5099       *)
5100         test "$with_gnu_ld" != yes && break
5101         ;;
5102       esac
5103     fi
5104   done
5105   IFS="$lt_save_ifs"
5106 else
5107   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5108 fi
5109 fi
5110
5111 LD="$lt_cv_path_LD"
5112 if test -n "$LD"; then
5113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5114 $as_echo "$LD" >&6; }
5115 else
5116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5117 $as_echo "no" >&6; }
5118 fi
5119 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5121 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5122 if ${lt_cv_prog_gnu_ld+:} false; then :
5123   $as_echo_n "(cached) " >&6
5124 else
5125   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5126 case `$LD -v 2>&1 </dev/null` in
5127 *GNU* | *'with BFD'*)
5128   lt_cv_prog_gnu_ld=yes
5129   ;;
5130 *)
5131   lt_cv_prog_gnu_ld=no
5132   ;;
5133 esac
5134 fi
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5136 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5137 with_gnu_ld=$lt_cv_prog_gnu_ld
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5148 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5149 if ${lt_cv_path_NM+:} false; then :
5150   $as_echo_n "(cached) " >&6
5151 else
5152   if test -n "$NM"; then
5153   # Let the user override the test.
5154   lt_cv_path_NM="$NM"
5155 else
5156   lt_nm_to_check="${ac_tool_prefix}nm"
5157   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5158     lt_nm_to_check="$lt_nm_to_check nm"
5159   fi
5160   for lt_tmp_nm in $lt_nm_to_check; do
5161     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5162     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5163       IFS="$lt_save_ifs"
5164       test -z "$ac_dir" && ac_dir=.
5165       tmp_nm="$ac_dir/$lt_tmp_nm"
5166       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5167         # Check to see if the nm accepts a BSD-compat flag.
5168         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5169         #   nm: unknown option "B" ignored
5170         # Tru64's nm complains that /dev/null is an invalid object file
5171         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5172         */dev/null* | *'Invalid file or object type'*)
5173           lt_cv_path_NM="$tmp_nm -B"
5174           break
5175           ;;
5176         *)
5177           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5178           */dev/null*)
5179             lt_cv_path_NM="$tmp_nm -p"
5180             break
5181             ;;
5182           *)
5183             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5184             continue # so that we can try to find one that supports BSD flags
5185             ;;
5186           esac
5187           ;;
5188         esac
5189       fi
5190     done
5191     IFS="$lt_save_ifs"
5192   done
5193   : ${lt_cv_path_NM=no}
5194 fi
5195 fi
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5197 $as_echo "$lt_cv_path_NM" >&6; }
5198 if test "$lt_cv_path_NM" != "no"; then
5199   NM="$lt_cv_path_NM"
5200 else
5201   # Didn't find any BSD compatible name lister, look for dumpbin.
5202   if test -n "$DUMPBIN"; then :
5203     # Let the user override the test.
5204   else
5205     if test -n "$ac_tool_prefix"; then
5206   for ac_prog in dumpbin "link -dump"
5207   do
5208     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5209 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5211 $as_echo_n "checking for $ac_word... " >&6; }
5212 if ${ac_cv_prog_DUMPBIN+:} false; then :
5213   $as_echo_n "(cached) " >&6
5214 else
5215   if test -n "$DUMPBIN"; then
5216   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5217 else
5218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5219 for as_dir in $PATH
5220 do
5221   IFS=$as_save_IFS
5222   test -z "$as_dir" && as_dir=.
5223     for ac_exec_ext in '' $ac_executable_extensions; do
5224   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5225     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5226     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5227     break 2
5228   fi
5229 done
5230   done
5231 IFS=$as_save_IFS
5232
5233 fi
5234 fi
5235 DUMPBIN=$ac_cv_prog_DUMPBIN
5236 if test -n "$DUMPBIN"; then
5237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5238 $as_echo "$DUMPBIN" >&6; }
5239 else
5240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5241 $as_echo "no" >&6; }
5242 fi
5243
5244
5245     test -n "$DUMPBIN" && break
5246   done
5247 fi
5248 if test -z "$DUMPBIN"; then
5249   ac_ct_DUMPBIN=$DUMPBIN
5250   for ac_prog in dumpbin "link -dump"
5251 do
5252   # Extract the first word of "$ac_prog", so it can be a program name with args.
5253 set dummy $ac_prog; ac_word=$2
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5255 $as_echo_n "checking for $ac_word... " >&6; }
5256 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5257   $as_echo_n "(cached) " >&6
5258 else
5259   if test -n "$ac_ct_DUMPBIN"; then
5260   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5261 else
5262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5263 for as_dir in $PATH
5264 do
5265   IFS=$as_save_IFS
5266   test -z "$as_dir" && as_dir=.
5267     for ac_exec_ext in '' $ac_executable_extensions; do
5268   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5269     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5270     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5271     break 2
5272   fi
5273 done
5274   done
5275 IFS=$as_save_IFS
5276
5277 fi
5278 fi
5279 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5280 if test -n "$ac_ct_DUMPBIN"; then
5281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5282 $as_echo "$ac_ct_DUMPBIN" >&6; }
5283 else
5284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5285 $as_echo "no" >&6; }
5286 fi
5287
5288
5289   test -n "$ac_ct_DUMPBIN" && break
5290 done
5291
5292   if test "x$ac_ct_DUMPBIN" = x; then
5293     DUMPBIN=":"
5294   else
5295     case $cross_compiling:$ac_tool_warned in
5296 yes:)
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5298 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5299 ac_tool_warned=yes ;;
5300 esac
5301     DUMPBIN=$ac_ct_DUMPBIN
5302   fi
5303 fi
5304
5305     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5306     *COFF*)
5307       DUMPBIN="$DUMPBIN -symbols"
5308       ;;
5309     *)
5310       DUMPBIN=:
5311       ;;
5312     esac
5313   fi
5314
5315   if test "$DUMPBIN" != ":"; then
5316     NM="$DUMPBIN"
5317   fi
5318 fi
5319 test -z "$NM" && NM=nm
5320
5321
5322
5323
5324
5325
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5327 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5328 if ${lt_cv_nm_interface+:} false; then :
5329   $as_echo_n "(cached) " >&6
5330 else
5331   lt_cv_nm_interface="BSD nm"
5332   echo "int some_variable = 0;" > conftest.$ac_ext
5333   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5334   (eval "$ac_compile" 2>conftest.err)
5335   cat conftest.err >&5
5336   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5337   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5338   cat conftest.err >&5
5339   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5340   cat conftest.out >&5
5341   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5342     lt_cv_nm_interface="MS dumpbin"
5343   fi
5344   rm -f conftest*
5345 fi
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5347 $as_echo "$lt_cv_nm_interface" >&6; }
5348
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5350 $as_echo_n "checking whether ln -s works... " >&6; }
5351 LN_S=$as_ln_s
5352 if test "$LN_S" = "ln -s"; then
5353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5354 $as_echo "yes" >&6; }
5355 else
5356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5357 $as_echo "no, using $LN_S" >&6; }
5358 fi
5359
5360 # find the maximum length of command line arguments
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5362 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5363 if ${lt_cv_sys_max_cmd_len+:} false; then :
5364   $as_echo_n "(cached) " >&6
5365 else
5366     i=0
5367   teststring="ABCD"
5368
5369   case $build_os in
5370   msdosdjgpp*)
5371     # On DJGPP, this test can blow up pretty badly due to problems in libc
5372     # (any single argument exceeding 2000 bytes causes a buffer overrun
5373     # during glob expansion).  Even if it were fixed, the result of this
5374     # check would be larger than it should be.
5375     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5376     ;;
5377
5378   gnu*)
5379     # Under GNU Hurd, this test is not required because there is
5380     # no limit to the length of command line arguments.
5381     # Libtool will interpret -1 as no limit whatsoever
5382     lt_cv_sys_max_cmd_len=-1;
5383     ;;
5384
5385   cygwin* | mingw* | cegcc*)
5386     # On Win9x/ME, this test blows up -- it succeeds, but takes
5387     # about 5 minutes as the teststring grows exponentially.
5388     # Worse, since 9x/ME are not pre-emptively multitasking,
5389     # you end up with a "frozen" computer, even though with patience
5390     # the test eventually succeeds (with a max line length of 256k).
5391     # Instead, let's just punt: use the minimum linelength reported by
5392     # all of the supported platforms: 8192 (on NT/2K/XP).
5393     lt_cv_sys_max_cmd_len=8192;
5394     ;;
5395
5396   mint*)
5397     # On MiNT this can take a long time and run out of memory.
5398     lt_cv_sys_max_cmd_len=8192;
5399     ;;
5400
5401   amigaos*)
5402     # On AmigaOS with pdksh, this test takes hours, literally.
5403     # So we just punt and use a minimum line length of 8192.
5404     lt_cv_sys_max_cmd_len=8192;
5405     ;;
5406
5407   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5408     # This has been around since 386BSD, at least.  Likely further.
5409     if test -x /sbin/sysctl; then
5410       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5411     elif test -x /usr/sbin/sysctl; then
5412       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5413     else
5414       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5415     fi
5416     # And add a safety zone
5417     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5418     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5419     ;;
5420
5421   interix*)
5422     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5423     lt_cv_sys_max_cmd_len=196608
5424     ;;
5425
5426   os2*)
5427     # The test takes a long time on OS/2.
5428     lt_cv_sys_max_cmd_len=8192
5429     ;;
5430
5431   osf*)
5432     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5433     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5434     # nice to cause kernel panics so lets avoid the loop below.
5435     # First set a reasonable default.
5436     lt_cv_sys_max_cmd_len=16384
5437     #
5438     if test -x /sbin/sysconfig; then
5439       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5440         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5441       esac
5442     fi
5443     ;;
5444   sco3.2v5*)
5445     lt_cv_sys_max_cmd_len=102400
5446     ;;
5447   sysv5* | sco5v6* | sysv4.2uw2*)
5448     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5449     if test -n "$kargmax"; then
5450       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5451     else
5452       lt_cv_sys_max_cmd_len=32768
5453     fi
5454     ;;
5455   *)
5456     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5457     if test -n "$lt_cv_sys_max_cmd_len"; then
5458       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5459       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5460     else
5461       # Make teststring a little bigger before we do anything with it.
5462       # a 1K string should be a reasonable start.
5463       for i in 1 2 3 4 5 6 7 8 ; do
5464         teststring=$teststring$teststring
5465       done
5466       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5467       # If test is not a shell built-in, we'll probably end up computing a
5468       # maximum length that is only half of the actual maximum length, but
5469       # we can't tell.
5470       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5471                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5472               test $i != 17 # 1/2 MB should be enough
5473       do
5474         i=`expr $i + 1`
5475         teststring=$teststring$teststring
5476       done
5477       # Only check the string length outside the loop.
5478       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5479       teststring=
5480       # Add a significant safety factor because C++ compilers can tack on
5481       # massive amounts of additional arguments before passing them to the
5482       # linker.  It appears as though 1/2 is a usable value.
5483       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5484     fi
5485     ;;
5486   esac
5487
5488 fi
5489
5490 if test -n $lt_cv_sys_max_cmd_len ; then
5491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5492 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5493 else
5494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5495 $as_echo "none" >&6; }
5496 fi
5497 max_cmd_len=$lt_cv_sys_max_cmd_len
5498
5499
5500
5501
5502
5503
5504 : ${CP="cp -f"}
5505 : ${MV="mv -f"}
5506 : ${RM="rm -f"}
5507
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5509 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5510 # Try some XSI features
5511 xsi_shell=no
5512 ( _lt_dummy="a/b/c"
5513   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5514       = c,a/b,b/c, \
5515     && eval 'test $(( 1 + 1 )) -eq 2 \
5516     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5517   && xsi_shell=yes
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5519 $as_echo "$xsi_shell" >&6; }
5520
5521
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5523 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5524 lt_shell_append=no
5525 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5526     >/dev/null 2>&1 \
5527   && lt_shell_append=yes
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5529 $as_echo "$lt_shell_append" >&6; }
5530
5531
5532 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5533   lt_unset=unset
5534 else
5535   lt_unset=false
5536 fi
5537
5538
5539
5540
5541
5542 # test EBCDIC or ASCII
5543 case `echo X|tr X '\101'` in
5544  A) # ASCII based system
5545     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5546   lt_SP2NL='tr \040 \012'
5547   lt_NL2SP='tr \015\012 \040\040'
5548   ;;
5549  *) # EBCDIC based system
5550   lt_SP2NL='tr \100 \n'
5551   lt_NL2SP='tr \r\n \100\100'
5552   ;;
5553 esac
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5564 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5565 if ${lt_cv_to_host_file_cmd+:} false; then :
5566   $as_echo_n "(cached) " >&6
5567 else
5568   case $host in
5569   *-*-mingw* )
5570     case $build in
5571       *-*-mingw* ) # actually msys
5572         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5573         ;;
5574       *-*-cygwin* )
5575         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5576         ;;
5577       * ) # otherwise, assume *nix
5578         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5579         ;;
5580     esac
5581     ;;
5582   *-*-cygwin* )
5583     case $build in
5584       *-*-mingw* ) # actually msys
5585         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5586         ;;
5587       *-*-cygwin* )
5588         lt_cv_to_host_file_cmd=func_convert_file_noop
5589         ;;
5590       * ) # otherwise, assume *nix
5591         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5592         ;;
5593     esac
5594     ;;
5595   * ) # unhandled hosts (and "normal" native builds)
5596     lt_cv_to_host_file_cmd=func_convert_file_noop
5597     ;;
5598 esac
5599
5600 fi
5601
5602 to_host_file_cmd=$lt_cv_to_host_file_cmd
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5604 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5605
5606
5607
5608
5609
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5611 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5612 if ${lt_cv_to_tool_file_cmd+:} false; then :
5613   $as_echo_n "(cached) " >&6
5614 else
5615   #assume ordinary cross tools, or native build.
5616 lt_cv_to_tool_file_cmd=func_convert_file_noop
5617 case $host in
5618   *-*-mingw* )
5619     case $build in
5620       *-*-mingw* ) # actually msys
5621         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5622         ;;
5623     esac
5624     ;;
5625 esac
5626
5627 fi
5628
5629 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5631 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5632
5633
5634
5635
5636
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5638 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5639 if ${lt_cv_ld_reload_flag+:} false; then :
5640   $as_echo_n "(cached) " >&6
5641 else
5642   lt_cv_ld_reload_flag='-r'
5643 fi
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5645 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5646 reload_flag=$lt_cv_ld_reload_flag
5647 case $reload_flag in
5648 "" | " "*) ;;
5649 *) reload_flag=" $reload_flag" ;;
5650 esac
5651 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5652 case $host_os in
5653   cygwin* | mingw* | pw32* | cegcc*)
5654     if test "$GCC" != yes; then
5655       reload_cmds=false
5656     fi
5657     ;;
5658   darwin*)
5659     if test "$GCC" = yes; then
5660       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5661     else
5662       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5663     fi
5664     ;;
5665 esac
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675 if test -n "$ac_tool_prefix"; then
5676   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5677 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5679 $as_echo_n "checking for $ac_word... " >&6; }
5680 if ${ac_cv_prog_OBJDUMP+:} false; then :
5681   $as_echo_n "(cached) " >&6
5682 else
5683   if test -n "$OBJDUMP"; then
5684   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5685 else
5686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5687 for as_dir in $PATH
5688 do
5689   IFS=$as_save_IFS
5690   test -z "$as_dir" && as_dir=.
5691     for ac_exec_ext in '' $ac_executable_extensions; do
5692   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5693     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5694     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5695     break 2
5696   fi
5697 done
5698   done
5699 IFS=$as_save_IFS
5700
5701 fi
5702 fi
5703 OBJDUMP=$ac_cv_prog_OBJDUMP
5704 if test -n "$OBJDUMP"; then
5705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5706 $as_echo "$OBJDUMP" >&6; }
5707 else
5708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5709 $as_echo "no" >&6; }
5710 fi
5711
5712
5713 fi
5714 if test -z "$ac_cv_prog_OBJDUMP"; then
5715   ac_ct_OBJDUMP=$OBJDUMP
5716   # Extract the first word of "objdump", so it can be a program name with args.
5717 set dummy objdump; ac_word=$2
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5719 $as_echo_n "checking for $ac_word... " >&6; }
5720 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5721   $as_echo_n "(cached) " >&6
5722 else
5723   if test -n "$ac_ct_OBJDUMP"; then
5724   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5725 else
5726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5727 for as_dir in $PATH
5728 do
5729   IFS=$as_save_IFS
5730   test -z "$as_dir" && as_dir=.
5731     for ac_exec_ext in '' $ac_executable_extensions; do
5732   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5733     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5734     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5735     break 2
5736   fi
5737 done
5738   done
5739 IFS=$as_save_IFS
5740
5741 fi
5742 fi
5743 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5744 if test -n "$ac_ct_OBJDUMP"; then
5745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5746 $as_echo "$ac_ct_OBJDUMP" >&6; }
5747 else
5748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5749 $as_echo "no" >&6; }
5750 fi
5751
5752   if test "x$ac_ct_OBJDUMP" = x; then
5753     OBJDUMP="false"
5754   else
5755     case $cross_compiling:$ac_tool_warned in
5756 yes:)
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5758 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5759 ac_tool_warned=yes ;;
5760 esac
5761     OBJDUMP=$ac_ct_OBJDUMP
5762   fi
5763 else
5764   OBJDUMP="$ac_cv_prog_OBJDUMP"
5765 fi
5766
5767 test -z "$OBJDUMP" && OBJDUMP=objdump
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5778 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5779 if ${lt_cv_deplibs_check_method+:} false; then :
5780   $as_echo_n "(cached) " >&6
5781 else
5782   lt_cv_file_magic_cmd='$MAGIC_CMD'
5783 lt_cv_file_magic_test_file=
5784 lt_cv_deplibs_check_method='unknown'
5785 # Need to set the preceding variable on all platforms that support
5786 # interlibrary dependencies.
5787 # 'none' -- dependencies not supported.
5788 # `unknown' -- same as none, but documents that we really don't know.
5789 # 'pass_all' -- all dependencies passed with no checks.
5790 # 'test_compile' -- check by making test program.
5791 # 'file_magic [[regex]]' -- check by looking for files in library path
5792 # which responds to the $file_magic_cmd with a given extended regex.
5793 # If you have `file' or equivalent on your system and you're not sure
5794 # whether `pass_all' will *always* work, you probably want this one.
5795
5796 case $host_os in
5797 aix[4-9]*)
5798   lt_cv_deplibs_check_method=pass_all
5799   ;;
5800
5801 beos*)
5802   lt_cv_deplibs_check_method=pass_all
5803   ;;
5804
5805 bsdi[45]*)
5806   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5807   lt_cv_file_magic_cmd='/usr/bin/file -L'
5808   lt_cv_file_magic_test_file=/shlib/libc.so
5809   ;;
5810
5811 cygwin*)
5812   # func_win32_libid is a shell function defined in ltmain.sh
5813   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5814   lt_cv_file_magic_cmd='func_win32_libid'
5815   ;;
5816
5817 mingw* | pw32*)
5818   # Base MSYS/MinGW do not provide the 'file' command needed by
5819   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5820   # unless we find 'file', for example because we are cross-compiling.
5821   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5822   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5823     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5824     lt_cv_file_magic_cmd='func_win32_libid'
5825   else
5826     # Keep this pattern in sync with the one in func_win32_libid.
5827     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5828     lt_cv_file_magic_cmd='$OBJDUMP -f'
5829   fi
5830   ;;
5831
5832 cegcc*)
5833   # use the weaker test based on 'objdump'. See mingw*.
5834   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5835   lt_cv_file_magic_cmd='$OBJDUMP -f'
5836   ;;
5837
5838 darwin* | rhapsody*)
5839   lt_cv_deplibs_check_method=pass_all
5840   ;;
5841
5842 freebsd* | dragonfly*)
5843   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5844     case $host_cpu in
5845     i*86 )
5846       # Not sure whether the presence of OpenBSD here was a mistake.
5847       # Let's accept both of them until this is cleared up.
5848       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5849       lt_cv_file_magic_cmd=/usr/bin/file
5850       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5851       ;;
5852     esac
5853   else
5854     lt_cv_deplibs_check_method=pass_all
5855   fi
5856   ;;
5857
5858 gnu*)
5859   lt_cv_deplibs_check_method=pass_all
5860   ;;
5861
5862 haiku*)
5863   lt_cv_deplibs_check_method=pass_all
5864   ;;
5865
5866 hpux10.20* | hpux11*)
5867   lt_cv_file_magic_cmd=/usr/bin/file
5868   case $host_cpu in
5869   ia64*)
5870     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5871     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5872     ;;
5873   hppa*64*)
5874     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]'
5875     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5876     ;;
5877   *)
5878     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5879     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5880     ;;
5881   esac
5882   ;;
5883
5884 interix[3-9]*)
5885   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5886   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5887   ;;
5888
5889 irix5* | irix6* | nonstopux*)
5890   case $LD in
5891   *-32|*"-32 ") libmagic=32-bit;;
5892   *-n32|*"-n32 ") libmagic=N32;;
5893   *-64|*"-64 ") libmagic=64-bit;;
5894   *) libmagic=never-match;;
5895   esac
5896   lt_cv_deplibs_check_method=pass_all
5897   ;;
5898
5899 # This must be glibc/ELF.
5900 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5901   lt_cv_deplibs_check_method=pass_all
5902   ;;
5903
5904 netbsd* | netbsdelf*-gnu)
5905   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5906     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5907   else
5908     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5909   fi
5910   ;;
5911
5912 newos6*)
5913   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5914   lt_cv_file_magic_cmd=/usr/bin/file
5915   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5916   ;;
5917
5918 *nto* | *qnx*)
5919   lt_cv_deplibs_check_method=pass_all
5920   ;;
5921
5922 openbsd*)
5923   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5924     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5925   else
5926     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5927   fi
5928   ;;
5929
5930 osf3* | osf4* | osf5*)
5931   lt_cv_deplibs_check_method=pass_all
5932   ;;
5933
5934 rdos*)
5935   lt_cv_deplibs_check_method=pass_all
5936   ;;
5937
5938 solaris*)
5939   lt_cv_deplibs_check_method=pass_all
5940   ;;
5941
5942 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5943   lt_cv_deplibs_check_method=pass_all
5944   ;;
5945
5946 sysv4 | sysv4.3*)
5947   case $host_vendor in
5948   motorola)
5949     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]'
5950     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5951     ;;
5952   ncr)
5953     lt_cv_deplibs_check_method=pass_all
5954     ;;
5955   sequent)
5956     lt_cv_file_magic_cmd='/bin/file'
5957     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5958     ;;
5959   sni)
5960     lt_cv_file_magic_cmd='/bin/file'
5961     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5962     lt_cv_file_magic_test_file=/lib/libc.so
5963     ;;
5964   siemens)
5965     lt_cv_deplibs_check_method=pass_all
5966     ;;
5967   pc)
5968     lt_cv_deplibs_check_method=pass_all
5969     ;;
5970   esac
5971   ;;
5972
5973 tpf*)
5974   lt_cv_deplibs_check_method=pass_all
5975   ;;
5976 esac
5977
5978 fi
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5980 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5981
5982 file_magic_glob=
5983 want_nocaseglob=no
5984 if test "$build" = "$host"; then
5985   case $host_os in
5986   mingw* | pw32*)
5987     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5988       want_nocaseglob=yes
5989     else
5990       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5991     fi
5992     ;;
5993   esac
5994 fi
5995
5996 file_magic_cmd=$lt_cv_file_magic_cmd
5997 deplibs_check_method=$lt_cv_deplibs_check_method
5998 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021 if test -n "$ac_tool_prefix"; then
6022   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6023 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6025 $as_echo_n "checking for $ac_word... " >&6; }
6026 if ${ac_cv_prog_DLLTOOL+:} false; then :
6027   $as_echo_n "(cached) " >&6
6028 else
6029   if test -n "$DLLTOOL"; then
6030   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6031 else
6032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6033 for as_dir in $PATH
6034 do
6035   IFS=$as_save_IFS
6036   test -z "$as_dir" && as_dir=.
6037     for ac_exec_ext in '' $ac_executable_extensions; do
6038   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6039     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6040     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6041     break 2
6042   fi
6043 done
6044   done
6045 IFS=$as_save_IFS
6046
6047 fi
6048 fi
6049 DLLTOOL=$ac_cv_prog_DLLTOOL
6050 if test -n "$DLLTOOL"; then
6051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6052 $as_echo "$DLLTOOL" >&6; }
6053 else
6054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6055 $as_echo "no" >&6; }
6056 fi
6057
6058
6059 fi
6060 if test -z "$ac_cv_prog_DLLTOOL"; then
6061   ac_ct_DLLTOOL=$DLLTOOL
6062   # Extract the first word of "dlltool", so it can be a program name with args.
6063 set dummy dlltool; ac_word=$2
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6065 $as_echo_n "checking for $ac_word... " >&6; }
6066 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6067   $as_echo_n "(cached) " >&6
6068 else
6069   if test -n "$ac_ct_DLLTOOL"; then
6070   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6071 else
6072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6073 for as_dir in $PATH
6074 do
6075   IFS=$as_save_IFS
6076   test -z "$as_dir" && as_dir=.
6077     for ac_exec_ext in '' $ac_executable_extensions; do
6078   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6079     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6080     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6081     break 2
6082   fi
6083 done
6084   done
6085 IFS=$as_save_IFS
6086
6087 fi
6088 fi
6089 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6090 if test -n "$ac_ct_DLLTOOL"; then
6091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6092 $as_echo "$ac_ct_DLLTOOL" >&6; }
6093 else
6094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6095 $as_echo "no" >&6; }
6096 fi
6097
6098   if test "x$ac_ct_DLLTOOL" = x; then
6099     DLLTOOL="false"
6100   else
6101     case $cross_compiling:$ac_tool_warned in
6102 yes:)
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6104 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6105 ac_tool_warned=yes ;;
6106 esac
6107     DLLTOOL=$ac_ct_DLLTOOL
6108   fi
6109 else
6110   DLLTOOL="$ac_cv_prog_DLLTOOL"
6111 fi
6112
6113 test -z "$DLLTOOL" && DLLTOOL=dlltool
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6125 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6126 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6127   $as_echo_n "(cached) " >&6
6128 else
6129   lt_cv_sharedlib_from_linklib_cmd='unknown'
6130
6131 case $host_os in
6132 cygwin* | mingw* | pw32* | cegcc*)
6133   # two different shell functions defined in ltmain.sh
6134   # decide which to use based on capabilities of $DLLTOOL
6135   case `$DLLTOOL --help 2>&1` in
6136   *--identify-strict*)
6137     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6138     ;;
6139   *)
6140     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6141     ;;
6142   esac
6143   ;;
6144 *)
6145   # fallback: assume linklib IS sharedlib
6146   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6147   ;;
6148 esac
6149
6150 fi
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6152 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6153 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6154 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6155
6156
6157
6158
6159
6160
6161
6162 if test -n "$ac_tool_prefix"; then
6163   for ac_prog in ar
6164   do
6165     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6166 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6168 $as_echo_n "checking for $ac_word... " >&6; }
6169 if ${ac_cv_prog_AR+:} false; then :
6170   $as_echo_n "(cached) " >&6
6171 else
6172   if test -n "$AR"; then
6173   ac_cv_prog_AR="$AR" # Let the user override the test.
6174 else
6175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6176 for as_dir in $PATH
6177 do
6178   IFS=$as_save_IFS
6179   test -z "$as_dir" && as_dir=.
6180     for ac_exec_ext in '' $ac_executable_extensions; do
6181   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6182     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6183     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6184     break 2
6185   fi
6186 done
6187   done
6188 IFS=$as_save_IFS
6189
6190 fi
6191 fi
6192 AR=$ac_cv_prog_AR
6193 if test -n "$AR"; then
6194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6195 $as_echo "$AR" >&6; }
6196 else
6197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6198 $as_echo "no" >&6; }
6199 fi
6200
6201
6202     test -n "$AR" && break
6203   done
6204 fi
6205 if test -z "$AR"; then
6206   ac_ct_AR=$AR
6207   for ac_prog in ar
6208 do
6209   # Extract the first word of "$ac_prog", so it can be a program name with args.
6210 set dummy $ac_prog; ac_word=$2
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6212 $as_echo_n "checking for $ac_word... " >&6; }
6213 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6214   $as_echo_n "(cached) " >&6
6215 else
6216   if test -n "$ac_ct_AR"; then
6217   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6218 else
6219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6220 for as_dir in $PATH
6221 do
6222   IFS=$as_save_IFS
6223   test -z "$as_dir" && as_dir=.
6224     for ac_exec_ext in '' $ac_executable_extensions; do
6225   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6226     ac_cv_prog_ac_ct_AR="$ac_prog"
6227     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6228     break 2
6229   fi
6230 done
6231   done
6232 IFS=$as_save_IFS
6233
6234 fi
6235 fi
6236 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6237 if test -n "$ac_ct_AR"; then
6238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6239 $as_echo "$ac_ct_AR" >&6; }
6240 else
6241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6242 $as_echo "no" >&6; }
6243 fi
6244
6245
6246   test -n "$ac_ct_AR" && break
6247 done
6248
6249   if test "x$ac_ct_AR" = x; then
6250     AR="false"
6251   else
6252     case $cross_compiling:$ac_tool_warned in
6253 yes:)
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6255 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6256 ac_tool_warned=yes ;;
6257 esac
6258     AR=$ac_ct_AR
6259   fi
6260 fi
6261
6262 : ${AR=ar}
6263 : ${AR_FLAGS=cru}
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6276 $as_echo_n "checking for archiver @FILE support... " >&6; }
6277 if ${lt_cv_ar_at_file+:} false; then :
6278   $as_echo_n "(cached) " >&6
6279 else
6280   lt_cv_ar_at_file=no
6281    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6282 /* end confdefs.h.  */
6283
6284 int
6285 main ()
6286 {
6287
6288   ;
6289   return 0;
6290 }
6291 _ACEOF
6292 if ac_fn_c_try_compile "$LINENO"; then :
6293   echo conftest.$ac_objext > conftest.lst
6294       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6295       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6296   (eval $lt_ar_try) 2>&5
6297   ac_status=$?
6298   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6299   test $ac_status = 0; }
6300       if test "$ac_status" -eq 0; then
6301         # Ensure the archiver fails upon bogus file names.
6302         rm -f conftest.$ac_objext libconftest.a
6303         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6304   (eval $lt_ar_try) 2>&5
6305   ac_status=$?
6306   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6307   test $ac_status = 0; }
6308         if test "$ac_status" -ne 0; then
6309           lt_cv_ar_at_file=@
6310         fi
6311       fi
6312       rm -f conftest.* libconftest.a
6313
6314 fi
6315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6316
6317 fi
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6319 $as_echo "$lt_cv_ar_at_file" >&6; }
6320
6321 if test "x$lt_cv_ar_at_file" = xno; then
6322   archiver_list_spec=
6323 else
6324   archiver_list_spec=$lt_cv_ar_at_file
6325 fi
6326
6327
6328
6329
6330
6331
6332
6333 if test -n "$ac_tool_prefix"; then
6334   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6335 set dummy ${ac_tool_prefix}strip; ac_word=$2
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6337 $as_echo_n "checking for $ac_word... " >&6; }
6338 if ${ac_cv_prog_STRIP+:} false; then :
6339   $as_echo_n "(cached) " >&6
6340 else
6341   if test -n "$STRIP"; then
6342   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6343 else
6344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6345 for as_dir in $PATH
6346 do
6347   IFS=$as_save_IFS
6348   test -z "$as_dir" && as_dir=.
6349     for ac_exec_ext in '' $ac_executable_extensions; do
6350   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6351     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6352     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6353     break 2
6354   fi
6355 done
6356   done
6357 IFS=$as_save_IFS
6358
6359 fi
6360 fi
6361 STRIP=$ac_cv_prog_STRIP
6362 if test -n "$STRIP"; then
6363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6364 $as_echo "$STRIP" >&6; }
6365 else
6366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6367 $as_echo "no" >&6; }
6368 fi
6369
6370
6371 fi
6372 if test -z "$ac_cv_prog_STRIP"; then
6373   ac_ct_STRIP=$STRIP
6374   # Extract the first word of "strip", so it can be a program name with args.
6375 set dummy strip; ac_word=$2
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6377 $as_echo_n "checking for $ac_word... " >&6; }
6378 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6379   $as_echo_n "(cached) " >&6
6380 else
6381   if test -n "$ac_ct_STRIP"; then
6382   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6383 else
6384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6385 for as_dir in $PATH
6386 do
6387   IFS=$as_save_IFS
6388   test -z "$as_dir" && as_dir=.
6389     for ac_exec_ext in '' $ac_executable_extensions; do
6390   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6391     ac_cv_prog_ac_ct_STRIP="strip"
6392     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6393     break 2
6394   fi
6395 done
6396   done
6397 IFS=$as_save_IFS
6398
6399 fi
6400 fi
6401 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6402 if test -n "$ac_ct_STRIP"; then
6403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6404 $as_echo "$ac_ct_STRIP" >&6; }
6405 else
6406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6407 $as_echo "no" >&6; }
6408 fi
6409
6410   if test "x$ac_ct_STRIP" = x; then
6411     STRIP=":"
6412   else
6413     case $cross_compiling:$ac_tool_warned in
6414 yes:)
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6416 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6417 ac_tool_warned=yes ;;
6418 esac
6419     STRIP=$ac_ct_STRIP
6420   fi
6421 else
6422   STRIP="$ac_cv_prog_STRIP"
6423 fi
6424
6425 test -z "$STRIP" && STRIP=:
6426
6427
6428
6429
6430
6431
6432 if test -n "$ac_tool_prefix"; then
6433   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6434 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6436 $as_echo_n "checking for $ac_word... " >&6; }
6437 if ${ac_cv_prog_RANLIB+:} false; then :
6438   $as_echo_n "(cached) " >&6
6439 else
6440   if test -n "$RANLIB"; then
6441   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6442 else
6443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6444 for as_dir in $PATH
6445 do
6446   IFS=$as_save_IFS
6447   test -z "$as_dir" && as_dir=.
6448     for ac_exec_ext in '' $ac_executable_extensions; do
6449   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6450     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6451     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6452     break 2
6453   fi
6454 done
6455   done
6456 IFS=$as_save_IFS
6457
6458 fi
6459 fi
6460 RANLIB=$ac_cv_prog_RANLIB
6461 if test -n "$RANLIB"; then
6462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6463 $as_echo "$RANLIB" >&6; }
6464 else
6465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6466 $as_echo "no" >&6; }
6467 fi
6468
6469
6470 fi
6471 if test -z "$ac_cv_prog_RANLIB"; then
6472   ac_ct_RANLIB=$RANLIB
6473   # Extract the first word of "ranlib", so it can be a program name with args.
6474 set dummy ranlib; ac_word=$2
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6476 $as_echo_n "checking for $ac_word... " >&6; }
6477 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6478   $as_echo_n "(cached) " >&6
6479 else
6480   if test -n "$ac_ct_RANLIB"; then
6481   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6482 else
6483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6484 for as_dir in $PATH
6485 do
6486   IFS=$as_save_IFS
6487   test -z "$as_dir" && as_dir=.
6488     for ac_exec_ext in '' $ac_executable_extensions; do
6489   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6490     ac_cv_prog_ac_ct_RANLIB="ranlib"
6491     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6492     break 2
6493   fi
6494 done
6495   done
6496 IFS=$as_save_IFS
6497
6498 fi
6499 fi
6500 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6501 if test -n "$ac_ct_RANLIB"; then
6502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6503 $as_echo "$ac_ct_RANLIB" >&6; }
6504 else
6505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6506 $as_echo "no" >&6; }
6507 fi
6508
6509   if test "x$ac_ct_RANLIB" = x; then
6510     RANLIB=":"
6511   else
6512     case $cross_compiling:$ac_tool_warned in
6513 yes:)
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6515 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6516 ac_tool_warned=yes ;;
6517 esac
6518     RANLIB=$ac_ct_RANLIB
6519   fi
6520 else
6521   RANLIB="$ac_cv_prog_RANLIB"
6522 fi
6523
6524 test -z "$RANLIB" && RANLIB=:
6525
6526
6527
6528
6529
6530
6531 # Determine commands to create old-style static archives.
6532 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6533 old_postinstall_cmds='chmod 644 $oldlib'
6534 old_postuninstall_cmds=
6535
6536 if test -n "$RANLIB"; then
6537   case $host_os in
6538   openbsd*)
6539     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6540     ;;
6541   *)
6542     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6543     ;;
6544   esac
6545   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6546 fi
6547
6548 case $host_os in
6549   darwin*)
6550     lock_old_archive_extraction=yes ;;
6551   *)
6552     lock_old_archive_extraction=no ;;
6553 esac
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593 # If no C compiler was specified, use CC.
6594 LTCC=${LTCC-"$CC"}
6595
6596 # If no C compiler flags were specified, use CFLAGS.
6597 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6598
6599 # Allow CC to be a program name with arguments.
6600 compiler=$CC
6601
6602
6603 # Check for command to grab the raw symbol name followed by C symbol from nm.
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6605 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6606 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6607   $as_echo_n "(cached) " >&6
6608 else
6609
6610 # These are sane defaults that work on at least a few old systems.
6611 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6612
6613 # Character class describing NM global symbol codes.
6614 symcode='[BCDEGRST]'
6615
6616 # Regexp to match symbols that can be accessed directly from C.
6617 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6618
6619 # Define system-specific variables.
6620 case $host_os in
6621 aix*)
6622   symcode='[BCDT]'
6623   ;;
6624 cygwin* | mingw* | pw32* | cegcc*)
6625   symcode='[ABCDGISTW]'
6626   ;;
6627 hpux*)
6628   if test "$host_cpu" = ia64; then
6629     symcode='[ABCDEGRST]'
6630   fi
6631   ;;
6632 irix* | nonstopux*)
6633   symcode='[BCDEGRST]'
6634   ;;
6635 osf*)
6636   symcode='[BCDEGQRST]'
6637   ;;
6638 solaris*)
6639   symcode='[BDRT]'
6640   ;;
6641 sco3.2v5*)
6642   symcode='[DT]'
6643   ;;
6644 sysv4.2uw2*)
6645   symcode='[DT]'
6646   ;;
6647 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6648   symcode='[ABDT]'
6649   ;;
6650 sysv4)
6651   symcode='[DFNSTU]'
6652   ;;
6653 esac
6654
6655 # If we're using GNU nm, then use its standard symbol codes.
6656 case `$NM -V 2>&1` in
6657 *GNU* | *'with BFD'*)
6658   symcode='[ABCDGIRSTW]' ;;
6659 esac
6660
6661 # Transform an extracted symbol line into a proper C declaration.
6662 # Some systems (esp. on ia64) link data and code symbols differently,
6663 # so use this general approach.
6664 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6665
6666 # Transform an extracted symbol line into symbol name and symbol address
6667 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6668 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'"
6669
6670 # Handle CRLF in mingw tool chain
6671 opt_cr=
6672 case $build_os in
6673 mingw*)
6674   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6675   ;;
6676 esac
6677
6678 # Try without a prefix underscore, then with it.
6679 for ac_symprfx in "" "_"; do
6680
6681   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6682   symxfrm="\\1 $ac_symprfx\\2 \\2"
6683
6684   # Write the raw and C identifiers.
6685   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6686     # Fake it for dumpbin and say T for any non-static function
6687     # and D for any global variable.
6688     # Also find C++ and __fastcall symbols from MSVC++,
6689     # which start with @ or ?.
6690     lt_cv_sys_global_symbol_pipe="$AWK '"\
6691 "     {last_section=section; section=\$ 3};"\
6692 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6693 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6694 "     \$ 0!~/External *\|/{next};"\
6695 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6696 "     {if(hide[section]) next};"\
6697 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6698 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6699 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6700 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6701 "     ' prfx=^$ac_symprfx"
6702   else
6703     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6704   fi
6705   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6706
6707   # Check to see that the pipe works correctly.
6708   pipe_works=no
6709
6710   rm -f conftest*
6711   cat > conftest.$ac_ext <<_LT_EOF
6712 #ifdef __cplusplus
6713 extern "C" {
6714 #endif
6715 char nm_test_var;
6716 void nm_test_func(void);
6717 void nm_test_func(void){}
6718 #ifdef __cplusplus
6719 }
6720 #endif
6721 int main(){nm_test_var='a';nm_test_func();return(0);}
6722 _LT_EOF
6723
6724   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6725   (eval $ac_compile) 2>&5
6726   ac_status=$?
6727   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6728   test $ac_status = 0; }; then
6729     # Now try to grab the symbols.
6730     nlist=conftest.nm
6731     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6732   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6733   ac_status=$?
6734   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6735   test $ac_status = 0; } && test -s "$nlist"; then
6736       # Try sorting and uniquifying the output.
6737       if sort "$nlist" | uniq > "$nlist"T; then
6738         mv -f "$nlist"T "$nlist"
6739       else
6740         rm -f "$nlist"T
6741       fi
6742
6743       # Make sure that we snagged all the symbols we need.
6744       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6745         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6746           cat <<_LT_EOF > conftest.$ac_ext
6747 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6748 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6749 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6750    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6751 # define LT_DLSYM_CONST
6752 #elif defined(__osf__)
6753 /* This system does not cope well with relocations in const data.  */
6754 # define LT_DLSYM_CONST
6755 #else
6756 # define LT_DLSYM_CONST const
6757 #endif
6758
6759 #ifdef __cplusplus
6760 extern "C" {
6761 #endif
6762
6763 _LT_EOF
6764           # Now generate the symbol file.
6765           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6766
6767           cat <<_LT_EOF >> conftest.$ac_ext
6768
6769 /* The mapping between symbol names and symbols.  */
6770 LT_DLSYM_CONST struct {
6771   const char *name;
6772   void       *address;
6773 }
6774 lt__PROGRAM__LTX_preloaded_symbols[] =
6775 {
6776   { "@PROGRAM@", (void *) 0 },
6777 _LT_EOF
6778           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6779           cat <<\_LT_EOF >> conftest.$ac_ext
6780   {0, (void *) 0}
6781 };
6782
6783 /* This works around a problem in FreeBSD linker */
6784 #ifdef FREEBSD_WORKAROUND
6785 static const void *lt_preloaded_setup() {
6786   return lt__PROGRAM__LTX_preloaded_symbols;
6787 }
6788 #endif
6789
6790 #ifdef __cplusplus
6791 }
6792 #endif
6793 _LT_EOF
6794           # Now try linking the two files.
6795           mv conftest.$ac_objext conftstm.$ac_objext
6796           lt_globsym_save_LIBS=$LIBS
6797           lt_globsym_save_CFLAGS=$CFLAGS
6798           LIBS="conftstm.$ac_objext"
6799           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6800           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6801   (eval $ac_link) 2>&5
6802   ac_status=$?
6803   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6804   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6805             pipe_works=yes
6806           fi
6807           LIBS=$lt_globsym_save_LIBS
6808           CFLAGS=$lt_globsym_save_CFLAGS
6809         else
6810           echo "cannot find nm_test_func in $nlist" >&5
6811         fi
6812       else
6813         echo "cannot find nm_test_var in $nlist" >&5
6814       fi
6815     else
6816       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6817     fi
6818   else
6819     echo "$progname: failed program was:" >&5
6820     cat conftest.$ac_ext >&5
6821   fi
6822   rm -rf conftest* conftst*
6823
6824   # Do not use the global_symbol_pipe unless it works.
6825   if test "$pipe_works" = yes; then
6826     break
6827   else
6828     lt_cv_sys_global_symbol_pipe=
6829   fi
6830 done
6831
6832 fi
6833
6834 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6835   lt_cv_sys_global_symbol_to_cdecl=
6836 fi
6837 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6839 $as_echo "failed" >&6; }
6840 else
6841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6842 $as_echo "ok" >&6; }
6843 fi
6844
6845 # Response file support.
6846 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6847   nm_file_list_spec='@'
6848 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6849   nm_file_list_spec='@'
6850 fi
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6879 $as_echo_n "checking for sysroot... " >&6; }
6880
6881 # Check whether --with-sysroot was given.
6882 if test "${with_sysroot+set}" = set; then :
6883   withval=$with_sysroot;
6884 else
6885   with_sysroot=no
6886 fi
6887
6888
6889 lt_sysroot=
6890 case ${with_sysroot} in #(
6891  yes)
6892    if test "$GCC" = yes; then
6893      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6894    fi
6895    ;; #(
6896  /*)
6897    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6898    ;; #(
6899  no|'')
6900    ;; #(
6901  *)
6902    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6903 $as_echo "${with_sysroot}" >&6; }
6904    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6905    ;;
6906 esac
6907
6908  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6909 $as_echo "${lt_sysroot:-no}" >&6; }
6910
6911
6912
6913
6914
6915 # Check whether --enable-libtool-lock was given.
6916 if test "${enable_libtool_lock+set}" = set; then :
6917   enableval=$enable_libtool_lock;
6918 fi
6919
6920 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6921
6922 # Some flags need to be propagated to the compiler or linker for good
6923 # libtool support.
6924 case $host in
6925 ia64-*-hpux*)
6926   # Find out which ABI we are using.
6927   echo 'int i;' > conftest.$ac_ext
6928   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6929   (eval $ac_compile) 2>&5
6930   ac_status=$?
6931   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6932   test $ac_status = 0; }; then
6933     case `/usr/bin/file conftest.$ac_objext` in
6934       *ELF-32*)
6935         HPUX_IA64_MODE="32"
6936         ;;
6937       *ELF-64*)
6938         HPUX_IA64_MODE="64"
6939         ;;
6940     esac
6941   fi
6942   rm -rf conftest*
6943   ;;
6944 *-*-irix6*)
6945   # Find out which ABI we are using.
6946   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6947   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6948   (eval $ac_compile) 2>&5
6949   ac_status=$?
6950   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6951   test $ac_status = 0; }; then
6952     if test "$lt_cv_prog_gnu_ld" = yes; then
6953       case `/usr/bin/file conftest.$ac_objext` in
6954         *32-bit*)
6955           LD="${LD-ld} -melf32bsmip"
6956           ;;
6957         *N32*)
6958           LD="${LD-ld} -melf32bmipn32"
6959           ;;
6960         *64-bit*)
6961           LD="${LD-ld} -melf64bmip"
6962         ;;
6963       esac
6964     else
6965       case `/usr/bin/file conftest.$ac_objext` in
6966         *32-bit*)
6967           LD="${LD-ld} -32"
6968           ;;
6969         *N32*)
6970           LD="${LD-ld} -n32"
6971           ;;
6972         *64-bit*)
6973           LD="${LD-ld} -64"
6974           ;;
6975       esac
6976     fi
6977   fi
6978   rm -rf conftest*
6979   ;;
6980
6981 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6982 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6983   # Find out which ABI we are using.
6984   echo 'int i;' > conftest.$ac_ext
6985   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6986   (eval $ac_compile) 2>&5
6987   ac_status=$?
6988   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6989   test $ac_status = 0; }; then
6990     case `/usr/bin/file conftest.o` in
6991       *32-bit*)
6992         case $host in
6993           x86_64-*kfreebsd*-gnu)
6994             LD="${LD-ld} -m elf_i386_fbsd"
6995             ;;
6996           x86_64-*linux*)
6997             LD="${LD-ld} -m elf_i386"
6998             ;;
6999           ppc64-*linux*|powerpc64-*linux*)
7000             LD="${LD-ld} -m elf32ppclinux"
7001             ;;
7002           s390x-*linux*)
7003             LD="${LD-ld} -m elf_s390"
7004             ;;
7005           sparc64-*linux*)
7006             LD="${LD-ld} -m elf32_sparc"
7007             ;;
7008         esac
7009         ;;
7010       *64-bit*)
7011         case $host in
7012           x86_64-*kfreebsd*-gnu)
7013             LD="${LD-ld} -m elf_x86_64_fbsd"
7014             ;;
7015           x86_64-*linux*)
7016             LD="${LD-ld} -m elf_x86_64"
7017             ;;
7018           ppc*-*linux*|powerpc*-*linux*)
7019             LD="${LD-ld} -m elf64ppc"
7020             ;;
7021           s390*-*linux*|s390*-*tpf*)
7022             LD="${LD-ld} -m elf64_s390"
7023             ;;
7024           sparc*-*linux*)
7025             LD="${LD-ld} -m elf64_sparc"
7026             ;;
7027         esac
7028         ;;
7029     esac
7030   fi
7031   rm -rf conftest*
7032   ;;
7033
7034 *-*-sco3.2v5*)
7035   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7036   SAVE_CFLAGS="$CFLAGS"
7037   CFLAGS="$CFLAGS -belf"
7038   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7039 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7040 if ${lt_cv_cc_needs_belf+:} false; then :
7041   $as_echo_n "(cached) " >&6
7042 else
7043   ac_ext=c
7044 ac_cpp='$CPP $CPPFLAGS'
7045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7047 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7048
7049      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7050 /* end confdefs.h.  */
7051
7052 int
7053 main ()
7054 {
7055
7056   ;
7057   return 0;
7058 }
7059 _ACEOF
7060 if ac_fn_c_try_link "$LINENO"; then :
7061   lt_cv_cc_needs_belf=yes
7062 else
7063   lt_cv_cc_needs_belf=no
7064 fi
7065 rm -f core conftest.err conftest.$ac_objext \
7066     conftest$ac_exeext conftest.$ac_ext
7067      ac_ext=c
7068 ac_cpp='$CPP $CPPFLAGS'
7069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7072
7073 fi
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7075 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7076   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7077     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7078     CFLAGS="$SAVE_CFLAGS"
7079   fi
7080   ;;
7081 *-*solaris*)
7082   # Find out which ABI we are using.
7083   echo 'int i;' > conftest.$ac_ext
7084   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7085   (eval $ac_compile) 2>&5
7086   ac_status=$?
7087   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7088   test $ac_status = 0; }; then
7089     case `/usr/bin/file conftest.o` in
7090     *64-bit*)
7091       case $lt_cv_prog_gnu_ld in
7092       yes*)
7093         case $host in
7094         i?86-*-solaris*)
7095           LD="${LD-ld} -m elf_x86_64"
7096           ;;
7097         sparc*-*-solaris*)
7098           LD="${LD-ld} -m elf64_sparc"
7099           ;;
7100         esac
7101         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7102         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7103           LD="${LD-ld}_sol2"
7104         fi
7105         ;;
7106       *)
7107         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7108           LD="${LD-ld} -64"
7109         fi
7110         ;;
7111       esac
7112       ;;
7113     esac
7114   fi
7115   rm -rf conftest*
7116   ;;
7117 esac
7118
7119 need_locks="$enable_libtool_lock"
7120
7121 if test -n "$ac_tool_prefix"; then
7122   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7123 set dummy ${ac_tool_prefix}mt; ac_word=$2
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7125 $as_echo_n "checking for $ac_word... " >&6; }
7126 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7127   $as_echo_n "(cached) " >&6
7128 else
7129   if test -n "$MANIFEST_TOOL"; then
7130   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7131 else
7132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7133 for as_dir in $PATH
7134 do
7135   IFS=$as_save_IFS
7136   test -z "$as_dir" && as_dir=.
7137     for ac_exec_ext in '' $ac_executable_extensions; do
7138   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7139     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7140     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7141     break 2
7142   fi
7143 done
7144   done
7145 IFS=$as_save_IFS
7146
7147 fi
7148 fi
7149 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7150 if test -n "$MANIFEST_TOOL"; then
7151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7152 $as_echo "$MANIFEST_TOOL" >&6; }
7153 else
7154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7155 $as_echo "no" >&6; }
7156 fi
7157
7158
7159 fi
7160 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7161   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7162   # Extract the first word of "mt", so it can be a program name with args.
7163 set dummy mt; ac_word=$2
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7165 $as_echo_n "checking for $ac_word... " >&6; }
7166 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7167   $as_echo_n "(cached) " >&6
7168 else
7169   if test -n "$ac_ct_MANIFEST_TOOL"; then
7170   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7171 else
7172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7173 for as_dir in $PATH
7174 do
7175   IFS=$as_save_IFS
7176   test -z "$as_dir" && as_dir=.
7177     for ac_exec_ext in '' $ac_executable_extensions; do
7178   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7179     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7180     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7181     break 2
7182   fi
7183 done
7184   done
7185 IFS=$as_save_IFS
7186
7187 fi
7188 fi
7189 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7190 if test -n "$ac_ct_MANIFEST_TOOL"; then
7191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7192 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7193 else
7194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7195 $as_echo "no" >&6; }
7196 fi
7197
7198   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7199     MANIFEST_TOOL=":"
7200   else
7201     case $cross_compiling:$ac_tool_warned in
7202 yes:)
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7204 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7205 ac_tool_warned=yes ;;
7206 esac
7207     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7208   fi
7209 else
7210   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7211 fi
7212
7213 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7215 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7216 if ${lt_cv_path_mainfest_tool+:} false; then :
7217   $as_echo_n "(cached) " >&6
7218 else
7219   lt_cv_path_mainfest_tool=no
7220   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7221   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7222   cat conftest.err >&5
7223   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7224     lt_cv_path_mainfest_tool=yes
7225   fi
7226   rm -f conftest*
7227 fi
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7229 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7230 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7231   MANIFEST_TOOL=:
7232 fi
7233
7234
7235
7236
7237
7238
7239   case $host_os in
7240     rhapsody* | darwin*)
7241     if test -n "$ac_tool_prefix"; then
7242   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7243 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7245 $as_echo_n "checking for $ac_word... " >&6; }
7246 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7247   $as_echo_n "(cached) " >&6
7248 else
7249   if test -n "$DSYMUTIL"; then
7250   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7251 else
7252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7253 for as_dir in $PATH
7254 do
7255   IFS=$as_save_IFS
7256   test -z "$as_dir" && as_dir=.
7257     for ac_exec_ext in '' $ac_executable_extensions; do
7258   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7259     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7260     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7261     break 2
7262   fi
7263 done
7264   done
7265 IFS=$as_save_IFS
7266
7267 fi
7268 fi
7269 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7270 if test -n "$DSYMUTIL"; then
7271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7272 $as_echo "$DSYMUTIL" >&6; }
7273 else
7274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7275 $as_echo "no" >&6; }
7276 fi
7277
7278
7279 fi
7280 if test -z "$ac_cv_prog_DSYMUTIL"; then
7281   ac_ct_DSYMUTIL=$DSYMUTIL
7282   # Extract the first word of "dsymutil", so it can be a program name with args.
7283 set dummy dsymutil; ac_word=$2
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7285 $as_echo_n "checking for $ac_word... " >&6; }
7286 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7287   $as_echo_n "(cached) " >&6
7288 else
7289   if test -n "$ac_ct_DSYMUTIL"; then
7290   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7291 else
7292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7293 for as_dir in $PATH
7294 do
7295   IFS=$as_save_IFS
7296   test -z "$as_dir" && as_dir=.
7297     for ac_exec_ext in '' $ac_executable_extensions; do
7298   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7299     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7300     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7301     break 2
7302   fi
7303 done
7304   done
7305 IFS=$as_save_IFS
7306
7307 fi
7308 fi
7309 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7310 if test -n "$ac_ct_DSYMUTIL"; then
7311   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7312 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7313 else
7314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7315 $as_echo "no" >&6; }
7316 fi
7317
7318   if test "x$ac_ct_DSYMUTIL" = x; then
7319     DSYMUTIL=":"
7320   else
7321     case $cross_compiling:$ac_tool_warned in
7322 yes:)
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7324 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7325 ac_tool_warned=yes ;;
7326 esac
7327     DSYMUTIL=$ac_ct_DSYMUTIL
7328   fi
7329 else
7330   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7331 fi
7332
7333     if test -n "$ac_tool_prefix"; then
7334   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7335 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7337 $as_echo_n "checking for $ac_word... " >&6; }
7338 if ${ac_cv_prog_NMEDIT+:} false; then :
7339   $as_echo_n "(cached) " >&6
7340 else
7341   if test -n "$NMEDIT"; then
7342   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7343 else
7344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7345 for as_dir in $PATH
7346 do
7347   IFS=$as_save_IFS
7348   test -z "$as_dir" && as_dir=.
7349     for ac_exec_ext in '' $ac_executable_extensions; do
7350   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7351     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7352     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7353     break 2
7354   fi
7355 done
7356   done
7357 IFS=$as_save_IFS
7358
7359 fi
7360 fi
7361 NMEDIT=$ac_cv_prog_NMEDIT
7362 if test -n "$NMEDIT"; then
7363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7364 $as_echo "$NMEDIT" >&6; }
7365 else
7366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7367 $as_echo "no" >&6; }
7368 fi
7369
7370
7371 fi
7372 if test -z "$ac_cv_prog_NMEDIT"; then
7373   ac_ct_NMEDIT=$NMEDIT
7374   # Extract the first word of "nmedit", so it can be a program name with args.
7375 set dummy nmedit; ac_word=$2
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7377 $as_echo_n "checking for $ac_word... " >&6; }
7378 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7379   $as_echo_n "(cached) " >&6
7380 else
7381   if test -n "$ac_ct_NMEDIT"; then
7382   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7383 else
7384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7385 for as_dir in $PATH
7386 do
7387   IFS=$as_save_IFS
7388   test -z "$as_dir" && as_dir=.
7389     for ac_exec_ext in '' $ac_executable_extensions; do
7390   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7391     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7392     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7393     break 2
7394   fi
7395 done
7396   done
7397 IFS=$as_save_IFS
7398
7399 fi
7400 fi
7401 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7402 if test -n "$ac_ct_NMEDIT"; then
7403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7404 $as_echo "$ac_ct_NMEDIT" >&6; }
7405 else
7406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7407 $as_echo "no" >&6; }
7408 fi
7409
7410   if test "x$ac_ct_NMEDIT" = x; then
7411     NMEDIT=":"
7412   else
7413     case $cross_compiling:$ac_tool_warned in
7414 yes:)
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7416 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7417 ac_tool_warned=yes ;;
7418 esac
7419     NMEDIT=$ac_ct_NMEDIT
7420   fi
7421 else
7422   NMEDIT="$ac_cv_prog_NMEDIT"
7423 fi
7424
7425     if test -n "$ac_tool_prefix"; then
7426   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7427 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7429 $as_echo_n "checking for $ac_word... " >&6; }
7430 if ${ac_cv_prog_LIPO+:} false; then :
7431   $as_echo_n "(cached) " >&6
7432 else
7433   if test -n "$LIPO"; then
7434   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7435 else
7436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7437 for as_dir in $PATH
7438 do
7439   IFS=$as_save_IFS
7440   test -z "$as_dir" && as_dir=.
7441     for ac_exec_ext in '' $ac_executable_extensions; do
7442   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7443     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7444     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7445     break 2
7446   fi
7447 done
7448   done
7449 IFS=$as_save_IFS
7450
7451 fi
7452 fi
7453 LIPO=$ac_cv_prog_LIPO
7454 if test -n "$LIPO"; then
7455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7456 $as_echo "$LIPO" >&6; }
7457 else
7458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7459 $as_echo "no" >&6; }
7460 fi
7461
7462
7463 fi
7464 if test -z "$ac_cv_prog_LIPO"; then
7465   ac_ct_LIPO=$LIPO
7466   # Extract the first word of "lipo", so it can be a program name with args.
7467 set dummy lipo; ac_word=$2
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7469 $as_echo_n "checking for $ac_word... " >&6; }
7470 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7471   $as_echo_n "(cached) " >&6
7472 else
7473   if test -n "$ac_ct_LIPO"; then
7474   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7475 else
7476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7477 for as_dir in $PATH
7478 do
7479   IFS=$as_save_IFS
7480   test -z "$as_dir" && as_dir=.
7481     for ac_exec_ext in '' $ac_executable_extensions; do
7482   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7483     ac_cv_prog_ac_ct_LIPO="lipo"
7484     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7485     break 2
7486   fi
7487 done
7488   done
7489 IFS=$as_save_IFS
7490
7491 fi
7492 fi
7493 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7494 if test -n "$ac_ct_LIPO"; then
7495   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7496 $as_echo "$ac_ct_LIPO" >&6; }
7497 else
7498   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7499 $as_echo "no" >&6; }
7500 fi
7501
7502   if test "x$ac_ct_LIPO" = x; then
7503     LIPO=":"
7504   else
7505     case $cross_compiling:$ac_tool_warned in
7506 yes:)
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7508 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7509 ac_tool_warned=yes ;;
7510 esac
7511     LIPO=$ac_ct_LIPO
7512   fi
7513 else
7514   LIPO="$ac_cv_prog_LIPO"
7515 fi
7516
7517     if test -n "$ac_tool_prefix"; then
7518   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7519 set dummy ${ac_tool_prefix}otool; ac_word=$2
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7521 $as_echo_n "checking for $ac_word... " >&6; }
7522 if ${ac_cv_prog_OTOOL+:} false; then :
7523   $as_echo_n "(cached) " >&6
7524 else
7525   if test -n "$OTOOL"; then
7526   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7527 else
7528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7529 for as_dir in $PATH
7530 do
7531   IFS=$as_save_IFS
7532   test -z "$as_dir" && as_dir=.
7533     for ac_exec_ext in '' $ac_executable_extensions; do
7534   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7535     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7536     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7537     break 2
7538   fi
7539 done
7540   done
7541 IFS=$as_save_IFS
7542
7543 fi
7544 fi
7545 OTOOL=$ac_cv_prog_OTOOL
7546 if test -n "$OTOOL"; then
7547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7548 $as_echo "$OTOOL" >&6; }
7549 else
7550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7551 $as_echo "no" >&6; }
7552 fi
7553
7554
7555 fi
7556 if test -z "$ac_cv_prog_OTOOL"; then
7557   ac_ct_OTOOL=$OTOOL
7558   # Extract the first word of "otool", so it can be a program name with args.
7559 set dummy otool; ac_word=$2
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7561 $as_echo_n "checking for $ac_word... " >&6; }
7562 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7563   $as_echo_n "(cached) " >&6
7564 else
7565   if test -n "$ac_ct_OTOOL"; then
7566   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7567 else
7568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7569 for as_dir in $PATH
7570 do
7571   IFS=$as_save_IFS
7572   test -z "$as_dir" && as_dir=.
7573     for ac_exec_ext in '' $ac_executable_extensions; do
7574   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7575     ac_cv_prog_ac_ct_OTOOL="otool"
7576     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7577     break 2
7578   fi
7579 done
7580   done
7581 IFS=$as_save_IFS
7582
7583 fi
7584 fi
7585 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7586 if test -n "$ac_ct_OTOOL"; then
7587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7588 $as_echo "$ac_ct_OTOOL" >&6; }
7589 else
7590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7591 $as_echo "no" >&6; }
7592 fi
7593
7594   if test "x$ac_ct_OTOOL" = x; then
7595     OTOOL=":"
7596   else
7597     case $cross_compiling:$ac_tool_warned in
7598 yes:)
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7600 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7601 ac_tool_warned=yes ;;
7602 esac
7603     OTOOL=$ac_ct_OTOOL
7604   fi
7605 else
7606   OTOOL="$ac_cv_prog_OTOOL"
7607 fi
7608
7609     if test -n "$ac_tool_prefix"; then
7610   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7611 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7613 $as_echo_n "checking for $ac_word... " >&6; }
7614 if ${ac_cv_prog_OTOOL64+:} false; then :
7615   $as_echo_n "(cached) " >&6
7616 else
7617   if test -n "$OTOOL64"; then
7618   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7619 else
7620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7621 for as_dir in $PATH
7622 do
7623   IFS=$as_save_IFS
7624   test -z "$as_dir" && as_dir=.
7625     for ac_exec_ext in '' $ac_executable_extensions; do
7626   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7627     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7628     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7629     break 2
7630   fi
7631 done
7632   done
7633 IFS=$as_save_IFS
7634
7635 fi
7636 fi
7637 OTOOL64=$ac_cv_prog_OTOOL64
7638 if test -n "$OTOOL64"; then
7639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7640 $as_echo "$OTOOL64" >&6; }
7641 else
7642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7643 $as_echo "no" >&6; }
7644 fi
7645
7646
7647 fi
7648 if test -z "$ac_cv_prog_OTOOL64"; then
7649   ac_ct_OTOOL64=$OTOOL64
7650   # Extract the first word of "otool64", so it can be a program name with args.
7651 set dummy otool64; ac_word=$2
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7653 $as_echo_n "checking for $ac_word... " >&6; }
7654 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7655   $as_echo_n "(cached) " >&6
7656 else
7657   if test -n "$ac_ct_OTOOL64"; then
7658   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7659 else
7660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7661 for as_dir in $PATH
7662 do
7663   IFS=$as_save_IFS
7664   test -z "$as_dir" && as_dir=.
7665     for ac_exec_ext in '' $ac_executable_extensions; do
7666   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7667     ac_cv_prog_ac_ct_OTOOL64="otool64"
7668     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7669     break 2
7670   fi
7671 done
7672   done
7673 IFS=$as_save_IFS
7674
7675 fi
7676 fi
7677 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7678 if test -n "$ac_ct_OTOOL64"; then
7679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7680 $as_echo "$ac_ct_OTOOL64" >&6; }
7681 else
7682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7683 $as_echo "no" >&6; }
7684 fi
7685
7686   if test "x$ac_ct_OTOOL64" = x; then
7687     OTOOL64=":"
7688   else
7689     case $cross_compiling:$ac_tool_warned in
7690 yes:)
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7692 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7693 ac_tool_warned=yes ;;
7694 esac
7695     OTOOL64=$ac_ct_OTOOL64
7696   fi
7697 else
7698   OTOOL64="$ac_cv_prog_OTOOL64"
7699 fi
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7728 $as_echo_n "checking for -single_module linker flag... " >&6; }
7729 if ${lt_cv_apple_cc_single_mod+:} false; then :
7730   $as_echo_n "(cached) " >&6
7731 else
7732   lt_cv_apple_cc_single_mod=no
7733       if test -z "${LT_MULTI_MODULE}"; then
7734         # By default we will add the -single_module flag. You can override
7735         # by either setting the environment variable LT_MULTI_MODULE
7736         # non-empty at configure time, or by adding -multi_module to the
7737         # link flags.
7738         rm -rf libconftest.dylib*
7739         echo "int foo(void){return 1;}" > conftest.c
7740         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7741 -dynamiclib -Wl,-single_module conftest.c" >&5
7742         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7743           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7744         _lt_result=$?
7745         # If there is a non-empty error log, and "single_module"
7746         # appears in it, assume the flag caused a linker warning
7747         if test -s conftest.err && $GREP single_module conftest.err; then
7748           cat conftest.err >&5
7749         # Otherwise, if the output was created with a 0 exit code from
7750         # the compiler, it worked.
7751         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7752           lt_cv_apple_cc_single_mod=yes
7753         else
7754           cat conftest.err >&5
7755         fi
7756         rm -rf libconftest.dylib*
7757         rm -f conftest.*
7758       fi
7759 fi
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7761 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7762
7763     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7764 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7765 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7766   $as_echo_n "(cached) " >&6
7767 else
7768   lt_cv_ld_exported_symbols_list=no
7769       save_LDFLAGS=$LDFLAGS
7770       echo "_main" > conftest.sym
7771       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7772       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7773 /* end confdefs.h.  */
7774
7775 int
7776 main ()
7777 {
7778
7779   ;
7780   return 0;
7781 }
7782 _ACEOF
7783 if ac_fn_c_try_link "$LINENO"; then :
7784   lt_cv_ld_exported_symbols_list=yes
7785 else
7786   lt_cv_ld_exported_symbols_list=no
7787 fi
7788 rm -f core conftest.err conftest.$ac_objext \
7789     conftest$ac_exeext conftest.$ac_ext
7790         LDFLAGS="$save_LDFLAGS"
7791
7792 fi
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7794 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7795
7796     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7797 $as_echo_n "checking for -force_load linker flag... " >&6; }
7798 if ${lt_cv_ld_force_load+:} false; then :
7799   $as_echo_n "(cached) " >&6
7800 else
7801   lt_cv_ld_force_load=no
7802       cat > conftest.c << _LT_EOF
7803 int forced_loaded() { return 2;}
7804 _LT_EOF
7805       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7806       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7807       echo "$AR cru libconftest.a conftest.o" >&5
7808       $AR cru libconftest.a conftest.o 2>&5
7809       echo "$RANLIB libconftest.a" >&5
7810       $RANLIB libconftest.a 2>&5
7811       cat > conftest.c << _LT_EOF
7812 int main() { return 0;}
7813 _LT_EOF
7814       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7815       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7816       _lt_result=$?
7817       if test -s conftest.err && $GREP force_load conftest.err; then
7818         cat conftest.err >&5
7819       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7820         lt_cv_ld_force_load=yes
7821       else
7822         cat conftest.err >&5
7823       fi
7824         rm -f conftest.err libconftest.a conftest conftest.c
7825         rm -rf conftest.dSYM
7826
7827 fi
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7829 $as_echo "$lt_cv_ld_force_load" >&6; }
7830     case $host_os in
7831     rhapsody* | darwin1.[012])
7832       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7833     darwin1.*)
7834       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7835     darwin*) # darwin 5.x on
7836       # if running on 10.5 or later, the deployment target defaults
7837       # to the OS version, if on x86, and 10.4, the deployment
7838       # target defaults to 10.4. Don't you love it?
7839       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7840         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7841           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7842         10.[012]*)
7843           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7844         10.*)
7845           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7846       esac
7847     ;;
7848   esac
7849     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7850       _lt_dar_single_mod='$single_module'
7851     fi
7852     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7853       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7854     else
7855       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7856     fi
7857     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7858       _lt_dsymutil='~$DSYMUTIL $lib || :'
7859     else
7860       _lt_dsymutil=
7861     fi
7862     ;;
7863   esac
7864
7865 for ac_header in dlfcn.h
7866 do :
7867   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7868 "
7869 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7870   cat >>confdefs.h <<_ACEOF
7871 #define HAVE_DLFCN_H 1
7872 _ACEOF
7873
7874 fi
7875
7876 done
7877
7878
7879
7880
7881
7882 # Set options
7883
7884
7885
7886         enable_dlopen=no
7887
7888
7889   enable_win32_dll=no
7890
7891
7892             # Check whether --enable-shared was given.
7893 if test "${enable_shared+set}" = set; then :
7894   enableval=$enable_shared; p=${PACKAGE-default}
7895     case $enableval in
7896     yes) enable_shared=yes ;;
7897     no) enable_shared=no ;;
7898     *)
7899       enable_shared=no
7900       # Look at the argument we got.  We use all the common list separators.
7901       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7902       for pkg in $enableval; do
7903         IFS="$lt_save_ifs"
7904         if test "X$pkg" = "X$p"; then
7905           enable_shared=yes
7906         fi
7907       done
7908       IFS="$lt_save_ifs"
7909       ;;
7910     esac
7911 else
7912   enable_shared=yes
7913 fi
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923   # Check whether --enable-static was given.
7924 if test "${enable_static+set}" = set; then :
7925   enableval=$enable_static; p=${PACKAGE-default}
7926     case $enableval in
7927     yes) enable_static=yes ;;
7928     no) enable_static=no ;;
7929     *)
7930      enable_static=no
7931       # Look at the argument we got.  We use all the common list separators.
7932       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7933       for pkg in $enableval; do
7934         IFS="$lt_save_ifs"
7935         if test "X$pkg" = "X$p"; then
7936           enable_static=yes
7937         fi
7938       done
7939       IFS="$lt_save_ifs"
7940       ;;
7941     esac
7942 else
7943   enable_static=yes
7944 fi
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955 # Check whether --with-pic was given.
7956 if test "${with_pic+set}" = set; then :
7957   withval=$with_pic; lt_p=${PACKAGE-default}
7958     case $withval in
7959     yes|no) pic_mode=$withval ;;
7960     *)
7961       pic_mode=default
7962       # Look at the argument we got.  We use all the common list separators.
7963       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7964       for lt_pkg in $withval; do
7965         IFS="$lt_save_ifs"
7966         if test "X$lt_pkg" = "X$lt_p"; then
7967           pic_mode=yes
7968         fi
7969       done
7970       IFS="$lt_save_ifs"
7971       ;;
7972     esac
7973 else
7974   pic_mode=default
7975 fi
7976
7977
7978 test -z "$pic_mode" && pic_mode=default
7979
7980
7981
7982
7983
7984
7985
7986   # Check whether --enable-fast-install was given.
7987 if test "${enable_fast_install+set}" = set; then :
7988   enableval=$enable_fast_install; p=${PACKAGE-default}
7989     case $enableval in
7990     yes) enable_fast_install=yes ;;
7991     no) enable_fast_install=no ;;
7992     *)
7993       enable_fast_install=no
7994       # Look at the argument we got.  We use all the common list separators.
7995       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7996       for pkg in $enableval; do
7997         IFS="$lt_save_ifs"
7998         if test "X$pkg" = "X$p"; then
7999           enable_fast_install=yes
8000         fi
8001       done
8002       IFS="$lt_save_ifs"
8003       ;;
8004     esac
8005 else
8006   enable_fast_install=yes
8007 fi
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019 # This can be used to rebuild libtool when needed
8020 LIBTOOL_DEPS="$ltmain"
8021
8022 # Always use our own libtool.
8023 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054 test -z "$LN_S" && LN_S="ln -s"
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069 if test -n "${ZSH_VERSION+set}" ; then
8070    setopt NO_GLOB_SUBST
8071 fi
8072
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8074 $as_echo_n "checking for objdir... " >&6; }
8075 if ${lt_cv_objdir+:} false; then :
8076   $as_echo_n "(cached) " >&6
8077 else
8078   rm -f .libs 2>/dev/null
8079 mkdir .libs 2>/dev/null
8080 if test -d .libs; then
8081   lt_cv_objdir=.libs
8082 else
8083   # MS-DOS does not allow filenames that begin with a dot.
8084   lt_cv_objdir=_libs
8085 fi
8086 rmdir .libs 2>/dev/null
8087 fi
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8089 $as_echo "$lt_cv_objdir" >&6; }
8090 objdir=$lt_cv_objdir
8091
8092
8093
8094
8095
8096 cat >>confdefs.h <<_ACEOF
8097 #define LT_OBJDIR "$lt_cv_objdir/"
8098 _ACEOF
8099
8100
8101
8102
8103 case $host_os in
8104 aix3*)
8105   # AIX sometimes has problems with the GCC collect2 program.  For some
8106   # reason, if we set the COLLECT_NAMES environment variable, the problems
8107   # vanish in a puff of smoke.
8108   if test "X${COLLECT_NAMES+set}" != Xset; then
8109     COLLECT_NAMES=
8110     export COLLECT_NAMES
8111   fi
8112   ;;
8113 esac
8114
8115 # Global variables:
8116 ofile=libtool
8117 can_build_shared=yes
8118
8119 # All known linkers require a `.a' archive for static linking (except MSVC,
8120 # which needs '.lib').
8121 libext=a
8122
8123 with_gnu_ld="$lt_cv_prog_gnu_ld"
8124
8125 old_CC="$CC"
8126 old_CFLAGS="$CFLAGS"
8127
8128 # Set sane defaults for various variables
8129 test -z "$CC" && CC=cc
8130 test -z "$LTCC" && LTCC=$CC
8131 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8132 test -z "$LD" && LD=ld
8133 test -z "$ac_objext" && ac_objext=o
8134
8135 for cc_temp in $compiler""; do
8136   case $cc_temp in
8137     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8138     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8139     \-*) ;;
8140     *) break;;
8141   esac
8142 done
8143 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8144
8145
8146 # Only perform the check for file, if the check method requires it
8147 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8148 case $deplibs_check_method in
8149 file_magic*)
8150   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8151     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8152 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8153 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8154   $as_echo_n "(cached) " >&6
8155 else
8156   case $MAGIC_CMD in
8157 [\\/*] |  ?:[\\/]*)
8158   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8159   ;;
8160 *)
8161   lt_save_MAGIC_CMD="$MAGIC_CMD"
8162   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8163   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8164   for ac_dir in $ac_dummy; do
8165     IFS="$lt_save_ifs"
8166     test -z "$ac_dir" && ac_dir=.
8167     if test -f $ac_dir/${ac_tool_prefix}file; then
8168       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8169       if test -n "$file_magic_test_file"; then
8170         case $deplibs_check_method in
8171         "file_magic "*)
8172           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8173           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8174           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8175             $EGREP "$file_magic_regex" > /dev/null; then
8176             :
8177           else
8178             cat <<_LT_EOF 1>&2
8179
8180 *** Warning: the command libtool uses to detect shared libraries,
8181 *** $file_magic_cmd, produces output that libtool cannot recognize.
8182 *** The result is that libtool may fail to recognize shared libraries
8183 *** as such.  This will affect the creation of libtool libraries that
8184 *** depend on shared libraries, but programs linked with such libtool
8185 *** libraries will work regardless of this problem.  Nevertheless, you
8186 *** may want to report the problem to your system manager and/or to
8187 *** bug-libtool@gnu.org
8188
8189 _LT_EOF
8190           fi ;;
8191         esac
8192       fi
8193       break
8194     fi
8195   done
8196   IFS="$lt_save_ifs"
8197   MAGIC_CMD="$lt_save_MAGIC_CMD"
8198   ;;
8199 esac
8200 fi
8201
8202 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8203 if test -n "$MAGIC_CMD"; then
8204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8205 $as_echo "$MAGIC_CMD" >&6; }
8206 else
8207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8208 $as_echo "no" >&6; }
8209 fi
8210
8211
8212
8213
8214
8215 if test -z "$lt_cv_path_MAGIC_CMD"; then
8216   if test -n "$ac_tool_prefix"; then
8217     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8218 $as_echo_n "checking for file... " >&6; }
8219 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8220   $as_echo_n "(cached) " >&6
8221 else
8222   case $MAGIC_CMD in
8223 [\\/*] |  ?:[\\/]*)
8224   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8225   ;;
8226 *)
8227   lt_save_MAGIC_CMD="$MAGIC_CMD"
8228   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8229   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8230   for ac_dir in $ac_dummy; do
8231     IFS="$lt_save_ifs"
8232     test -z "$ac_dir" && ac_dir=.
8233     if test -f $ac_dir/file; then
8234       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8235       if test -n "$file_magic_test_file"; then
8236         case $deplibs_check_method in
8237         "file_magic "*)
8238           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8239           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8240           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8241             $EGREP "$file_magic_regex" > /dev/null; then
8242             :
8243           else
8244             cat <<_LT_EOF 1>&2
8245
8246 *** Warning: the command libtool uses to detect shared libraries,
8247 *** $file_magic_cmd, produces output that libtool cannot recognize.
8248 *** The result is that libtool may fail to recognize shared libraries
8249 *** as such.  This will affect the creation of libtool libraries that
8250 *** depend on shared libraries, but programs linked with such libtool
8251 *** libraries will work regardless of this problem.  Nevertheless, you
8252 *** may want to report the problem to your system manager and/or to
8253 *** bug-libtool@gnu.org
8254
8255 _LT_EOF
8256           fi ;;
8257         esac
8258       fi
8259       break
8260     fi
8261   done
8262   IFS="$lt_save_ifs"
8263   MAGIC_CMD="$lt_save_MAGIC_CMD"
8264   ;;
8265 esac
8266 fi
8267
8268 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8269 if test -n "$MAGIC_CMD"; then
8270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8271 $as_echo "$MAGIC_CMD" >&6; }
8272 else
8273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8274 $as_echo "no" >&6; }
8275 fi
8276
8277
8278   else
8279     MAGIC_CMD=:
8280   fi
8281 fi
8282
8283   fi
8284   ;;
8285 esac
8286
8287 # Use C for the default configuration in the libtool script
8288
8289 lt_save_CC="$CC"
8290 ac_ext=c
8291 ac_cpp='$CPP $CPPFLAGS'
8292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8295
8296
8297 # Source file extension for C test sources.
8298 ac_ext=c
8299
8300 # Object file extension for compiled C test sources.
8301 objext=o
8302 objext=$objext
8303
8304 # Code to be used in simple compile tests
8305 lt_simple_compile_test_code="int some_variable = 0;"
8306
8307 # Code to be used in simple link tests
8308 lt_simple_link_test_code='int main(){return(0);}'
8309
8310
8311
8312
8313
8314
8315
8316 # If no C compiler was specified, use CC.
8317 LTCC=${LTCC-"$CC"}
8318
8319 # If no C compiler flags were specified, use CFLAGS.
8320 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8321
8322 # Allow CC to be a program name with arguments.
8323 compiler=$CC
8324
8325 # Save the default compiler, since it gets overwritten when the other
8326 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8327 compiler_DEFAULT=$CC
8328
8329 # save warnings/boilerplate of simple test code
8330 ac_outfile=conftest.$ac_objext
8331 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8332 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8333 _lt_compiler_boilerplate=`cat conftest.err`
8334 $RM conftest*
8335
8336 ac_outfile=conftest.$ac_objext
8337 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8338 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8339 _lt_linker_boilerplate=`cat conftest.err`
8340 $RM -r conftest*
8341
8342
8343 ## CAVEAT EMPTOR:
8344 ## There is no encapsulation within the following macros, do not change
8345 ## the running order or otherwise move them around unless you know exactly
8346 ## what you are doing...
8347 if test -n "$compiler"; then
8348
8349 lt_prog_compiler_no_builtin_flag=
8350
8351 if test "$GCC" = yes; then
8352   case $cc_basename in
8353   nvcc*)
8354     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8355   *)
8356     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8357   esac
8358
8359   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8360 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8361 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8362   $as_echo_n "(cached) " >&6
8363 else
8364   lt_cv_prog_compiler_rtti_exceptions=no
8365    ac_outfile=conftest.$ac_objext
8366    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8367    lt_compiler_flag="-fno-rtti -fno-exceptions"
8368    # Insert the option either (1) after the last *FLAGS variable, or
8369    # (2) before a word containing "conftest.", or (3) at the end.
8370    # Note that $ac_compile itself does not contain backslashes and begins
8371    # with a dollar sign (not a hyphen), so the echo should work correctly.
8372    # The option is referenced via a variable to avoid confusing sed.
8373    lt_compile=`echo "$ac_compile" | $SED \
8374    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8375    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8376    -e 's:$: $lt_compiler_flag:'`
8377    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8378    (eval "$lt_compile" 2>conftest.err)
8379    ac_status=$?
8380    cat conftest.err >&5
8381    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382    if (exit $ac_status) && test -s "$ac_outfile"; then
8383      # The compiler can only warn and ignore the option if not recognized
8384      # So say no if there are warnings other than the usual output.
8385      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8386      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8387      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8388        lt_cv_prog_compiler_rtti_exceptions=yes
8389      fi
8390    fi
8391    $RM conftest*
8392
8393 fi
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8395 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8396
8397 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8398     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8399 else
8400     :
8401 fi
8402
8403 fi
8404
8405
8406
8407
8408
8409
8410   lt_prog_compiler_wl=
8411 lt_prog_compiler_pic=
8412 lt_prog_compiler_static=
8413
8414
8415   if test "$GCC" = yes; then
8416     lt_prog_compiler_wl='-Wl,'
8417     lt_prog_compiler_static='-static'
8418
8419     case $host_os in
8420       aix*)
8421       # All AIX code is PIC.
8422       if test "$host_cpu" = ia64; then
8423         # AIX 5 now supports IA64 processor
8424         lt_prog_compiler_static='-Bstatic'
8425       fi
8426       ;;
8427
8428     amigaos*)
8429       case $host_cpu in
8430       powerpc)
8431             # see comment about AmigaOS4 .so support
8432             lt_prog_compiler_pic='-fPIC'
8433         ;;
8434       m68k)
8435             # FIXME: we need at least 68020 code to build shared libraries, but
8436             # adding the `-m68020' flag to GCC prevents building anything better,
8437             # like `-m68040'.
8438             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8439         ;;
8440       esac
8441       ;;
8442
8443     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8444       # PIC is the default for these OSes.
8445       ;;
8446
8447     mingw* | cygwin* | pw32* | os2* | cegcc*)
8448       # This hack is so that the source file can tell whether it is being
8449       # built for inclusion in a dll (and should export symbols for example).
8450       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8451       # (--disable-auto-import) libraries
8452       lt_prog_compiler_pic='-DDLL_EXPORT'
8453       ;;
8454
8455     darwin* | rhapsody*)
8456       # PIC is the default on this platform
8457       # Common symbols not allowed in MH_DYLIB files
8458       lt_prog_compiler_pic='-fno-common'
8459       ;;
8460
8461     haiku*)
8462       # PIC is the default for Haiku.
8463       # The "-static" flag exists, but is broken.
8464       lt_prog_compiler_static=
8465       ;;
8466
8467     hpux*)
8468       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8469       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8470       # sets the default TLS model and affects inlining.
8471       case $host_cpu in
8472       hppa*64*)
8473         # +Z the default
8474         ;;
8475       *)
8476         lt_prog_compiler_pic='-fPIC'
8477         ;;
8478       esac
8479       ;;
8480
8481     interix[3-9]*)
8482       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8483       # Instead, we relocate shared libraries at runtime.
8484       ;;
8485
8486     msdosdjgpp*)
8487       # Just because we use GCC doesn't mean we suddenly get shared libraries
8488       # on systems that don't support them.
8489       lt_prog_compiler_can_build_shared=no
8490       enable_shared=no
8491       ;;
8492
8493     *nto* | *qnx*)
8494       # QNX uses GNU C++, but need to define -shared option too, otherwise
8495       # it will coredump.
8496       lt_prog_compiler_pic='-fPIC -shared'
8497       ;;
8498
8499     sysv4*MP*)
8500       if test -d /usr/nec; then
8501         lt_prog_compiler_pic=-Kconform_pic
8502       fi
8503       ;;
8504
8505     *)
8506       lt_prog_compiler_pic='-fPIC'
8507       ;;
8508     esac
8509
8510     case $cc_basename in
8511     nvcc*) # Cuda Compiler Driver 2.2
8512       lt_prog_compiler_wl='-Xlinker '
8513       if test -n "$lt_prog_compiler_pic"; then
8514         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8515       fi
8516       ;;
8517     esac
8518   else
8519     # PORTME Check for flag to pass linker flags through the system compiler.
8520     case $host_os in
8521     aix*)
8522       lt_prog_compiler_wl='-Wl,'
8523       if test "$host_cpu" = ia64; then
8524         # AIX 5 now supports IA64 processor
8525         lt_prog_compiler_static='-Bstatic'
8526       else
8527         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8528       fi
8529       ;;
8530
8531     mingw* | cygwin* | pw32* | os2* | cegcc*)
8532       # This hack is so that the source file can tell whether it is being
8533       # built for inclusion in a dll (and should export symbols for example).
8534       lt_prog_compiler_pic='-DDLL_EXPORT'
8535       ;;
8536
8537     hpux9* | hpux10* | hpux11*)
8538       lt_prog_compiler_wl='-Wl,'
8539       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8540       # not for PA HP-UX.
8541       case $host_cpu in
8542       hppa*64*|ia64*)
8543         # +Z the default
8544         ;;
8545       *)
8546         lt_prog_compiler_pic='+Z'
8547         ;;
8548       esac
8549       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8550       lt_prog_compiler_static='${wl}-a ${wl}archive'
8551       ;;
8552
8553     irix5* | irix6* | nonstopux*)
8554       lt_prog_compiler_wl='-Wl,'
8555       # PIC (with -KPIC) is the default.
8556       lt_prog_compiler_static='-non_shared'
8557       ;;
8558
8559     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8560       case $cc_basename in
8561       # old Intel for x86_64 which still supported -KPIC.
8562       ecc*)
8563         lt_prog_compiler_wl='-Wl,'
8564         lt_prog_compiler_pic='-KPIC'
8565         lt_prog_compiler_static='-static'
8566         ;;
8567       # icc used to be incompatible with GCC.
8568       # ICC 10 doesn't accept -KPIC any more.
8569       icc* | ifort*)
8570         lt_prog_compiler_wl='-Wl,'
8571         lt_prog_compiler_pic='-fPIC'
8572         lt_prog_compiler_static='-static'
8573         ;;
8574       # Lahey Fortran 8.1.
8575       lf95*)
8576         lt_prog_compiler_wl='-Wl,'
8577         lt_prog_compiler_pic='--shared'
8578         lt_prog_compiler_static='--static'
8579         ;;
8580       nagfor*)
8581         # NAG Fortran compiler
8582         lt_prog_compiler_wl='-Wl,-Wl,,'
8583         lt_prog_compiler_pic='-PIC'
8584         lt_prog_compiler_static='-Bstatic'
8585         ;;
8586       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8587         # Portland Group compilers (*not* the Pentium gcc compiler,
8588         # which looks to be a dead project)
8589         lt_prog_compiler_wl='-Wl,'
8590         lt_prog_compiler_pic='-fpic'
8591         lt_prog_compiler_static='-Bstatic'
8592         ;;
8593       ccc*)
8594         lt_prog_compiler_wl='-Wl,'
8595         # All Alpha code is PIC.
8596         lt_prog_compiler_static='-non_shared'
8597         ;;
8598       xl* | bgxl* | bgf* | mpixl*)
8599         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8600         lt_prog_compiler_wl='-Wl,'
8601         lt_prog_compiler_pic='-qpic'
8602         lt_prog_compiler_static='-qstaticlink'
8603         ;;
8604       *)
8605         case `$CC -V 2>&1 | sed 5q` in
8606         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8607           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8608           lt_prog_compiler_pic='-KPIC'
8609           lt_prog_compiler_static='-Bstatic'
8610           lt_prog_compiler_wl=''
8611           ;;
8612         *Sun\ F* | *Sun*Fortran*)
8613           lt_prog_compiler_pic='-KPIC'
8614           lt_prog_compiler_static='-Bstatic'
8615           lt_prog_compiler_wl='-Qoption ld '
8616           ;;
8617         *Sun\ C*)
8618           # Sun C 5.9
8619           lt_prog_compiler_pic='-KPIC'
8620           lt_prog_compiler_static='-Bstatic'
8621           lt_prog_compiler_wl='-Wl,'
8622           ;;
8623         *Intel*\ [CF]*Compiler*)
8624           lt_prog_compiler_wl='-Wl,'
8625           lt_prog_compiler_pic='-fPIC'
8626           lt_prog_compiler_static='-static'
8627           ;;
8628         *Portland\ Group*)
8629           lt_prog_compiler_wl='-Wl,'
8630           lt_prog_compiler_pic='-fpic'
8631           lt_prog_compiler_static='-Bstatic'
8632           ;;
8633         esac
8634         ;;
8635       esac
8636       ;;
8637
8638     newsos6)
8639       lt_prog_compiler_pic='-KPIC'
8640       lt_prog_compiler_static='-Bstatic'
8641       ;;
8642
8643     *nto* | *qnx*)
8644       # QNX uses GNU C++, but need to define -shared option too, otherwise
8645       # it will coredump.
8646       lt_prog_compiler_pic='-fPIC -shared'
8647       ;;
8648
8649     osf3* | osf4* | osf5*)
8650       lt_prog_compiler_wl='-Wl,'
8651       # All OSF/1 code is PIC.
8652       lt_prog_compiler_static='-non_shared'
8653       ;;
8654
8655     rdos*)
8656       lt_prog_compiler_static='-non_shared'
8657       ;;
8658
8659     solaris*)
8660       lt_prog_compiler_pic='-KPIC'
8661       lt_prog_compiler_static='-Bstatic'
8662       case $cc_basename in
8663       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8664         lt_prog_compiler_wl='-Qoption ld ';;
8665       *)
8666         lt_prog_compiler_wl='-Wl,';;
8667       esac
8668       ;;
8669
8670     sunos4*)
8671       lt_prog_compiler_wl='-Qoption ld '
8672       lt_prog_compiler_pic='-PIC'
8673       lt_prog_compiler_static='-Bstatic'
8674       ;;
8675
8676     sysv4 | sysv4.2uw2* | sysv4.3*)
8677       lt_prog_compiler_wl='-Wl,'
8678       lt_prog_compiler_pic='-KPIC'
8679       lt_prog_compiler_static='-Bstatic'
8680       ;;
8681
8682     sysv4*MP*)
8683       if test -d /usr/nec ;then
8684         lt_prog_compiler_pic='-Kconform_pic'
8685         lt_prog_compiler_static='-Bstatic'
8686       fi
8687       ;;
8688
8689     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8690       lt_prog_compiler_wl='-Wl,'
8691       lt_prog_compiler_pic='-KPIC'
8692       lt_prog_compiler_static='-Bstatic'
8693       ;;
8694
8695     unicos*)
8696       lt_prog_compiler_wl='-Wl,'
8697       lt_prog_compiler_can_build_shared=no
8698       ;;
8699
8700     uts4*)
8701       lt_prog_compiler_pic='-pic'
8702       lt_prog_compiler_static='-Bstatic'
8703       ;;
8704
8705     *)
8706       lt_prog_compiler_can_build_shared=no
8707       ;;
8708     esac
8709   fi
8710
8711 case $host_os in
8712   # For platforms which do not support PIC, -DPIC is meaningless:
8713   *djgpp*)
8714     lt_prog_compiler_pic=
8715     ;;
8716   *)
8717     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8718     ;;
8719 esac
8720
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8722 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8723 if ${lt_cv_prog_compiler_pic+:} false; then :
8724   $as_echo_n "(cached) " >&6
8725 else
8726   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8727 fi
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8729 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8730 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8731
8732 #
8733 # Check to make sure the PIC flag actually works.
8734 #
8735 if test -n "$lt_prog_compiler_pic"; then
8736   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8737 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8738 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8739   $as_echo_n "(cached) " >&6
8740 else
8741   lt_cv_prog_compiler_pic_works=no
8742    ac_outfile=conftest.$ac_objext
8743    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8744    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8745    # Insert the option either (1) after the last *FLAGS variable, or
8746    # (2) before a word containing "conftest.", or (3) at the end.
8747    # Note that $ac_compile itself does not contain backslashes and begins
8748    # with a dollar sign (not a hyphen), so the echo should work correctly.
8749    # The option is referenced via a variable to avoid confusing sed.
8750    lt_compile=`echo "$ac_compile" | $SED \
8751    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8752    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8753    -e 's:$: $lt_compiler_flag:'`
8754    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8755    (eval "$lt_compile" 2>conftest.err)
8756    ac_status=$?
8757    cat conftest.err >&5
8758    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759    if (exit $ac_status) && test -s "$ac_outfile"; then
8760      # The compiler can only warn and ignore the option if not recognized
8761      # So say no if there are warnings other than the usual output.
8762      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8763      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8764      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8765        lt_cv_prog_compiler_pic_works=yes
8766      fi
8767    fi
8768    $RM conftest*
8769
8770 fi
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8772 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8773
8774 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8775     case $lt_prog_compiler_pic in
8776      "" | " "*) ;;
8777      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8778      esac
8779 else
8780     lt_prog_compiler_pic=
8781      lt_prog_compiler_can_build_shared=no
8782 fi
8783
8784 fi
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796 #
8797 # Check to make sure the static flag actually works.
8798 #
8799 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8801 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8802 if ${lt_cv_prog_compiler_static_works+:} false; then :
8803   $as_echo_n "(cached) " >&6
8804 else
8805   lt_cv_prog_compiler_static_works=no
8806    save_LDFLAGS="$LDFLAGS"
8807    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8808    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8809    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8810      # The linker can only warn and ignore the option if not recognized
8811      # So say no if there are warnings
8812      if test -s conftest.err; then
8813        # Append any errors to the config.log.
8814        cat conftest.err 1>&5
8815        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8816        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8817        if diff conftest.exp conftest.er2 >/dev/null; then
8818          lt_cv_prog_compiler_static_works=yes
8819        fi
8820      else
8821        lt_cv_prog_compiler_static_works=yes
8822      fi
8823    fi
8824    $RM -r conftest*
8825    LDFLAGS="$save_LDFLAGS"
8826
8827 fi
8828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8829 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8830
8831 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8832     :
8833 else
8834     lt_prog_compiler_static=
8835 fi
8836
8837
8838
8839
8840
8841
8842
8843   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8844 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8845 if ${lt_cv_prog_compiler_c_o+:} false; then :
8846   $as_echo_n "(cached) " >&6
8847 else
8848   lt_cv_prog_compiler_c_o=no
8849    $RM -r conftest 2>/dev/null
8850    mkdir conftest
8851    cd conftest
8852    mkdir out
8853    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8854
8855    lt_compiler_flag="-o out/conftest2.$ac_objext"
8856    # Insert the option either (1) after the last *FLAGS variable, or
8857    # (2) before a word containing "conftest.", or (3) at the end.
8858    # Note that $ac_compile itself does not contain backslashes and begins
8859    # with a dollar sign (not a hyphen), so the echo should work correctly.
8860    lt_compile=`echo "$ac_compile" | $SED \
8861    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8862    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8863    -e 's:$: $lt_compiler_flag:'`
8864    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8865    (eval "$lt_compile" 2>out/conftest.err)
8866    ac_status=$?
8867    cat out/conftest.err >&5
8868    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8869    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8870    then
8871      # The compiler can only warn and ignore the option if not recognized
8872      # So say no if there are warnings
8873      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8874      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8875      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8876        lt_cv_prog_compiler_c_o=yes
8877      fi
8878    fi
8879    chmod u+w . 2>&5
8880    $RM conftest*
8881    # SGI C++ compiler will create directory out/ii_files/ for
8882    # template instantiation
8883    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8884    $RM out/* && rmdir out
8885    cd ..
8886    $RM -r conftest
8887    $RM conftest*
8888
8889 fi
8890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8891 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8892
8893
8894
8895
8896
8897
8898   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8899 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8900 if ${lt_cv_prog_compiler_c_o+:} false; then :
8901   $as_echo_n "(cached) " >&6
8902 else
8903   lt_cv_prog_compiler_c_o=no
8904    $RM -r conftest 2>/dev/null
8905    mkdir conftest
8906    cd conftest
8907    mkdir out
8908    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8909
8910    lt_compiler_flag="-o out/conftest2.$ac_objext"
8911    # Insert the option either (1) after the last *FLAGS variable, or
8912    # (2) before a word containing "conftest.", or (3) at the end.
8913    # Note that $ac_compile itself does not contain backslashes and begins
8914    # with a dollar sign (not a hyphen), so the echo should work correctly.
8915    lt_compile=`echo "$ac_compile" | $SED \
8916    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8917    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8918    -e 's:$: $lt_compiler_flag:'`
8919    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8920    (eval "$lt_compile" 2>out/conftest.err)
8921    ac_status=$?
8922    cat out/conftest.err >&5
8923    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8924    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8925    then
8926      # The compiler can only warn and ignore the option if not recognized
8927      # So say no if there are warnings
8928      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8929      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8930      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8931        lt_cv_prog_compiler_c_o=yes
8932      fi
8933    fi
8934    chmod u+w . 2>&5
8935    $RM conftest*
8936    # SGI C++ compiler will create directory out/ii_files/ for
8937    # template instantiation
8938    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8939    $RM out/* && rmdir out
8940    cd ..
8941    $RM -r conftest
8942    $RM conftest*
8943
8944 fi
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8946 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8947
8948
8949
8950
8951 hard_links="nottested"
8952 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8953   # do not overwrite the value of need_locks provided by the user
8954   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8955 $as_echo_n "checking if we can lock with hard links... " >&6; }
8956   hard_links=yes
8957   $RM conftest*
8958   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8959   touch conftest.a
8960   ln conftest.a conftest.b 2>&5 || hard_links=no
8961   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8963 $as_echo "$hard_links" >&6; }
8964   if test "$hard_links" = no; then
8965     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8966 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8967     need_locks=warn
8968   fi
8969 else
8970   need_locks=no
8971 fi
8972
8973
8974
8975
8976
8977
8978   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8979 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8980
8981   runpath_var=
8982   allow_undefined_flag=
8983   always_export_symbols=no
8984   archive_cmds=
8985   archive_expsym_cmds=
8986   compiler_needs_object=no
8987   enable_shared_with_static_runtimes=no
8988   export_dynamic_flag_spec=
8989   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8990   hardcode_automatic=no
8991   hardcode_direct=no
8992   hardcode_direct_absolute=no
8993   hardcode_libdir_flag_spec=
8994   hardcode_libdir_separator=
8995   hardcode_minus_L=no
8996   hardcode_shlibpath_var=unsupported
8997   inherit_rpath=no
8998   link_all_deplibs=unknown
8999   module_cmds=
9000   module_expsym_cmds=
9001   old_archive_from_new_cmds=
9002   old_archive_from_expsyms_cmds=
9003   thread_safe_flag_spec=
9004   whole_archive_flag_spec=
9005   # include_expsyms should be a list of space-separated symbols to be *always*
9006   # included in the symbol list
9007   include_expsyms=
9008   # exclude_expsyms can be an extended regexp of symbols to exclude
9009   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9010   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9011   # as well as any symbol that contains `d'.
9012   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9013   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9014   # platforms (ab)use it in PIC code, but their linkers get confused if
9015   # the symbol is explicitly referenced.  Since portable code cannot
9016   # rely on this symbol name, it's probably fine to never include it in
9017   # preloaded symbol tables.
9018   # Exclude shared library initialization/finalization symbols.
9019   extract_expsyms_cmds=
9020
9021   case $host_os in
9022   cygwin* | mingw* | pw32* | cegcc*)
9023     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9024     # When not using gcc, we currently assume that we are using
9025     # Microsoft Visual C++.
9026     if test "$GCC" != yes; then
9027       with_gnu_ld=no
9028     fi
9029     ;;
9030   interix*)
9031     # we just hope/assume this is gcc and not c89 (= MSVC++)
9032     with_gnu_ld=yes
9033     ;;
9034   openbsd*)
9035     with_gnu_ld=no
9036     ;;
9037   linux* | k*bsd*-gnu | gnu*)
9038     link_all_deplibs=no
9039     ;;
9040   esac
9041
9042   ld_shlibs=yes
9043
9044   # On some targets, GNU ld is compatible enough with the native linker
9045   # that we're better off using the native interface for both.
9046   lt_use_gnu_ld_interface=no
9047   if test "$with_gnu_ld" = yes; then
9048     case $host_os in
9049       aix*)
9050         # The AIX port of GNU ld has always aspired to compatibility
9051         # with the native linker.  However, as the warning in the GNU ld
9052         # block says, versions before 2.19.5* couldn't really create working
9053         # shared libraries, regardless of the interface used.
9054         case `$LD -v 2>&1` in
9055           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9056           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9057           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9058           *)
9059             lt_use_gnu_ld_interface=yes
9060             ;;
9061         esac
9062         ;;
9063       *)
9064         lt_use_gnu_ld_interface=yes
9065         ;;
9066     esac
9067   fi
9068
9069   if test "$lt_use_gnu_ld_interface" = yes; then
9070     # If archive_cmds runs LD, not CC, wlarc should be empty
9071     wlarc='${wl}'
9072
9073     # Set some defaults for GNU ld with shared library support. These
9074     # are reset later if shared libraries are not supported. Putting them
9075     # here allows them to be overridden if necessary.
9076     runpath_var=LD_RUN_PATH
9077     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9078     export_dynamic_flag_spec='${wl}--export-dynamic'
9079     # ancient GNU ld didn't support --whole-archive et. al.
9080     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9081       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9082     else
9083       whole_archive_flag_spec=
9084     fi
9085     supports_anon_versioning=no
9086     case `$LD -v 2>&1` in
9087       *GNU\ gold*) supports_anon_versioning=yes ;;
9088       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9089       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9090       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9091       *\ 2.11.*) ;; # other 2.11 versions
9092       *) supports_anon_versioning=yes ;;
9093     esac
9094
9095     # See if GNU ld supports shared libraries.
9096     case $host_os in
9097     aix[3-9]*)
9098       # On AIX/PPC, the GNU linker is very broken
9099       if test "$host_cpu" != ia64; then
9100         ld_shlibs=no
9101         cat <<_LT_EOF 1>&2
9102
9103 *** Warning: the GNU linker, at least up to release 2.19, is reported
9104 *** to be unable to reliably create shared libraries on AIX.
9105 *** Therefore, libtool is disabling shared libraries support.  If you
9106 *** really care for shared libraries, you may want to install binutils
9107 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9108 *** You will then need to restart the configuration process.
9109
9110 _LT_EOF
9111       fi
9112       ;;
9113
9114     amigaos*)
9115       case $host_cpu in
9116       powerpc)
9117             # see comment about AmigaOS4 .so support
9118             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9119             archive_expsym_cmds=''
9120         ;;
9121       m68k)
9122             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)'
9123             hardcode_libdir_flag_spec='-L$libdir'
9124             hardcode_minus_L=yes
9125         ;;
9126       esac
9127       ;;
9128
9129     beos*)
9130       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9131         allow_undefined_flag=unsupported
9132         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9133         # support --undefined.  This deserves some investigation.  FIXME
9134         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9135       else
9136         ld_shlibs=no
9137       fi
9138       ;;
9139
9140     cygwin* | mingw* | pw32* | cegcc*)
9141       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9142       # as there is no search path for DLLs.
9143       hardcode_libdir_flag_spec='-L$libdir'
9144       export_dynamic_flag_spec='${wl}--export-all-symbols'
9145       allow_undefined_flag=unsupported
9146       always_export_symbols=no
9147       enable_shared_with_static_runtimes=yes
9148       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'
9149       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9150
9151       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9152         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9153         # If the export-symbols file already is a .def file (1st line
9154         # is EXPORTS), use it as is; otherwise, prepend...
9155         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9156           cp $export_symbols $output_objdir/$soname.def;
9157         else
9158           echo EXPORTS > $output_objdir/$soname.def;
9159           cat $export_symbols >> $output_objdir/$soname.def;
9160         fi~
9161         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9162       else
9163         ld_shlibs=no
9164       fi
9165       ;;
9166
9167     haiku*)
9168       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9169       link_all_deplibs=yes
9170       ;;
9171
9172     interix[3-9]*)
9173       hardcode_direct=no
9174       hardcode_shlibpath_var=no
9175       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9176       export_dynamic_flag_spec='${wl}-E'
9177       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9178       # Instead, shared libraries are loaded at an image base (0x10000000 by
9179       # default) and relocated if they conflict, which is a slow very memory
9180       # consuming and fragmenting process.  To avoid this, we pick a random,
9181       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9182       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9183       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9184       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'
9185       ;;
9186
9187     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9188       tmp_diet=no
9189       if test "$host_os" = linux-dietlibc; then
9190         case $cc_basename in
9191           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9192         esac
9193       fi
9194       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9195          && test "$tmp_diet" = no
9196       then
9197         tmp_addflag=' $pic_flag'
9198         tmp_sharedflag='-shared'
9199         case $cc_basename,$host_cpu in
9200         pgcc*)                          # Portland Group C compiler
9201           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'
9202           tmp_addflag=' $pic_flag'
9203           ;;
9204         pgf77* | pgf90* | pgf95* | pgfortran*)
9205                                         # Portland Group f77 and f90 compilers
9206           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'
9207           tmp_addflag=' $pic_flag -Mnomain' ;;
9208         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9209           tmp_addflag=' -i_dynamic' ;;
9210         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9211           tmp_addflag=' -i_dynamic -nofor_main' ;;
9212         ifc* | ifort*)                  # Intel Fortran compiler
9213           tmp_addflag=' -nofor_main' ;;
9214         lf95*)                          # Lahey Fortran 8.1
9215           whole_archive_flag_spec=
9216           tmp_sharedflag='--shared' ;;
9217         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9218           tmp_sharedflag='-qmkshrobj'
9219           tmp_addflag= ;;
9220         nvcc*)  # Cuda Compiler Driver 2.2
9221           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'
9222           compiler_needs_object=yes
9223           ;;
9224         esac
9225         case `$CC -V 2>&1 | sed 5q` in
9226         *Sun\ C*)                       # Sun C 5.9
9227           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'
9228           compiler_needs_object=yes
9229           tmp_sharedflag='-G' ;;
9230         *Sun\ F*)                       # Sun Fortran 8.3
9231           tmp_sharedflag='-G' ;;
9232         esac
9233         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9234
9235         if test "x$supports_anon_versioning" = xyes; then
9236           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9237             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9238             echo "local: *; };" >> $output_objdir/$libname.ver~
9239             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9240         fi
9241
9242         case $cc_basename in
9243         xlf* | bgf* | bgxlf* | mpixlf*)
9244           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9245           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9246           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9247           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9248           if test "x$supports_anon_versioning" = xyes; then
9249             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9250               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9251               echo "local: *; };" >> $output_objdir/$libname.ver~
9252               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9253           fi
9254           ;;
9255         esac
9256       else
9257         ld_shlibs=no
9258       fi
9259       ;;
9260
9261     netbsd* | netbsdelf*-gnu)
9262       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9263         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9264         wlarc=
9265       else
9266         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9267         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9268       fi
9269       ;;
9270
9271     solaris*)
9272       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9273         ld_shlibs=no
9274         cat <<_LT_EOF 1>&2
9275
9276 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9277 *** create shared libraries on Solaris systems.  Therefore, libtool
9278 *** is disabling shared libraries support.  We urge you to upgrade GNU
9279 *** binutils to release 2.9.1 or newer.  Another option is to modify
9280 *** your PATH or compiler configuration so that the native linker is
9281 *** used, and then restart.
9282
9283 _LT_EOF
9284       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9285         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9286         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9287       else
9288         ld_shlibs=no
9289       fi
9290       ;;
9291
9292     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9293       case `$LD -v 2>&1` in
9294         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9295         ld_shlibs=no
9296         cat <<_LT_EOF 1>&2
9297
9298 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9299 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9300 *** is disabling shared libraries support.  We urge you to upgrade GNU
9301 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9302 *** your PATH or compiler configuration so that the native linker is
9303 *** used, and then restart.
9304
9305 _LT_EOF
9306         ;;
9307         *)
9308           # For security reasons, it is highly recommended that you always
9309           # use absolute paths for naming shared libraries, and exclude the
9310           # DT_RUNPATH tag from executables and libraries.  But doing so
9311           # requires that you compile everything twice, which is a pain.
9312           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9313             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9314             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9315             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9316           else
9317             ld_shlibs=no
9318           fi
9319         ;;
9320       esac
9321       ;;
9322
9323     sunos4*)
9324       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9325       wlarc=
9326       hardcode_direct=yes
9327       hardcode_shlibpath_var=no
9328       ;;
9329
9330     *)
9331       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9332         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9333         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9334       else
9335         ld_shlibs=no
9336       fi
9337       ;;
9338     esac
9339
9340     if test "$ld_shlibs" = no; then
9341       runpath_var=
9342       hardcode_libdir_flag_spec=
9343       export_dynamic_flag_spec=
9344       whole_archive_flag_spec=
9345     fi
9346   else
9347     # PORTME fill in a description of your system's linker (not GNU ld)
9348     case $host_os in
9349     aix3*)
9350       allow_undefined_flag=unsupported
9351       always_export_symbols=yes
9352       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'
9353       # Note: this linker hardcodes the directories in LIBPATH if there
9354       # are no directories specified by -L.
9355       hardcode_minus_L=yes
9356       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9357         # Neither direct hardcoding nor static linking is supported with a
9358         # broken collect2.
9359         hardcode_direct=unsupported
9360       fi
9361       ;;
9362
9363     aix[4-9]*)
9364       if test "$host_cpu" = ia64; then
9365         # On IA64, the linker does run time linking by default, so we don't
9366         # have to do anything special.
9367         aix_use_runtimelinking=no
9368         exp_sym_flag='-Bexport'
9369         no_entry_flag=""
9370       else
9371         # If we're using GNU nm, then we don't want the "-C" option.
9372         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9373         # Also, AIX nm treats weak defined symbols like other global
9374         # defined symbols, whereas GNU nm marks them as "W".
9375         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9376           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'
9377         else
9378           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'
9379         fi
9380         aix_use_runtimelinking=no
9381
9382         # Test if we are trying to use run time linking or normal
9383         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9384         # need to do runtime linking.
9385         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9386           for ld_flag in $LDFLAGS; do
9387           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9388             aix_use_runtimelinking=yes
9389             break
9390           fi
9391           done
9392           ;;
9393         esac
9394
9395         exp_sym_flag='-bexport'
9396         no_entry_flag='-bnoentry'
9397       fi
9398
9399       # When large executables or shared objects are built, AIX ld can
9400       # have problems creating the table of contents.  If linking a library
9401       # or program results in "error TOC overflow" add -mminimal-toc to
9402       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9403       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9404
9405       archive_cmds=''
9406       hardcode_direct=yes
9407       hardcode_direct_absolute=yes
9408       hardcode_libdir_separator=':'
9409       link_all_deplibs=yes
9410       file_list_spec='${wl}-f,'
9411
9412       if test "$GCC" = yes; then
9413         case $host_os in aix4.[012]|aix4.[012].*)
9414         # We only want to do this on AIX 4.2 and lower, the check
9415         # below for broken collect2 doesn't work under 4.3+
9416           collect2name=`${CC} -print-prog-name=collect2`
9417           if test -f "$collect2name" &&
9418            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9419           then
9420           # We have reworked collect2
9421           :
9422           else
9423           # We have old collect2
9424           hardcode_direct=unsupported
9425           # It fails to find uninstalled libraries when the uninstalled
9426           # path is not listed in the libpath.  Setting hardcode_minus_L
9427           # to unsupported forces relinking
9428           hardcode_minus_L=yes
9429           hardcode_libdir_flag_spec='-L$libdir'
9430           hardcode_libdir_separator=
9431           fi
9432           ;;
9433         esac
9434         shared_flag='-shared'
9435         if test "$aix_use_runtimelinking" = yes; then
9436           shared_flag="$shared_flag "'${wl}-G'
9437         fi
9438         link_all_deplibs=no
9439       else
9440         # not using gcc
9441         if test "$host_cpu" = ia64; then
9442         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9443         # chokes on -Wl,-G. The following line is correct:
9444           shared_flag='-G'
9445         else
9446           if test "$aix_use_runtimelinking" = yes; then
9447             shared_flag='${wl}-G'
9448           else
9449             shared_flag='${wl}-bM:SRE'
9450           fi
9451         fi
9452       fi
9453
9454       export_dynamic_flag_spec='${wl}-bexpall'
9455       # It seems that -bexpall does not export symbols beginning with
9456       # underscore (_), so it is better to generate a list of symbols to export.
9457       always_export_symbols=yes
9458       if test "$aix_use_runtimelinking" = yes; then
9459         # Warning - without using the other runtime loading flags (-brtl),
9460         # -berok will link without error, but may produce a broken library.
9461         allow_undefined_flag='-berok'
9462         # Determine the default libpath from the value encoded in an
9463         # empty executable.
9464         if test "${lt_cv_aix_libpath+set}" = set; then
9465   aix_libpath=$lt_cv_aix_libpath
9466 else
9467   if ${lt_cv_aix_libpath_+:} false; then :
9468   $as_echo_n "(cached) " >&6
9469 else
9470   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9471 /* end confdefs.h.  */
9472
9473 int
9474 main ()
9475 {
9476
9477   ;
9478   return 0;
9479 }
9480 _ACEOF
9481 if ac_fn_c_try_link "$LINENO"; then :
9482
9483   lt_aix_libpath_sed='
9484       /Import File Strings/,/^$/ {
9485           /^0/ {
9486               s/^0  *\([^ ]*\) *$/\1/
9487               p
9488           }
9489       }'
9490   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9491   # Check for a 64-bit object if we didn't find anything.
9492   if test -z "$lt_cv_aix_libpath_"; then
9493     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9494   fi
9495 fi
9496 rm -f core conftest.err conftest.$ac_objext \
9497     conftest$ac_exeext conftest.$ac_ext
9498   if test -z "$lt_cv_aix_libpath_"; then
9499     lt_cv_aix_libpath_="/usr/lib:/lib"
9500   fi
9501
9502 fi
9503
9504   aix_libpath=$lt_cv_aix_libpath_
9505 fi
9506
9507         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9508         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"
9509       else
9510         if test "$host_cpu" = ia64; then
9511           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9512           allow_undefined_flag="-z nodefs"
9513           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"
9514         else
9515          # Determine the default libpath from the value encoded in an
9516          # empty executable.
9517          if test "${lt_cv_aix_libpath+set}" = set; then
9518   aix_libpath=$lt_cv_aix_libpath
9519 else
9520   if ${lt_cv_aix_libpath_+:} false; then :
9521   $as_echo_n "(cached) " >&6
9522 else
9523   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9524 /* end confdefs.h.  */
9525
9526 int
9527 main ()
9528 {
9529
9530   ;
9531   return 0;
9532 }
9533 _ACEOF
9534 if ac_fn_c_try_link "$LINENO"; then :
9535
9536   lt_aix_libpath_sed='
9537       /Import File Strings/,/^$/ {
9538           /^0/ {
9539               s/^0  *\([^ ]*\) *$/\1/
9540               p
9541           }
9542       }'
9543   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9544   # Check for a 64-bit object if we didn't find anything.
9545   if test -z "$lt_cv_aix_libpath_"; then
9546     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9547   fi
9548 fi
9549 rm -f core conftest.err conftest.$ac_objext \
9550     conftest$ac_exeext conftest.$ac_ext
9551   if test -z "$lt_cv_aix_libpath_"; then
9552     lt_cv_aix_libpath_="/usr/lib:/lib"
9553   fi
9554
9555 fi
9556
9557   aix_libpath=$lt_cv_aix_libpath_
9558 fi
9559
9560          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9561           # Warning - without using the other run time loading flags,
9562           # -berok will link without error, but may produce a broken library.
9563           no_undefined_flag=' ${wl}-bernotok'
9564           allow_undefined_flag=' ${wl}-berok'
9565           if test "$with_gnu_ld" = yes; then
9566             # We only use this code for GNU lds that support --whole-archive.
9567             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9568           else
9569             # Exported symbols can be pulled into shared objects from archives
9570             whole_archive_flag_spec='$convenience'
9571           fi
9572           archive_cmds_need_lc=yes
9573           # This is similar to how AIX traditionally builds its shared libraries.
9574           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'
9575         fi
9576       fi
9577       ;;
9578
9579     amigaos*)
9580       case $host_cpu in
9581       powerpc)
9582             # see comment about AmigaOS4 .so support
9583             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9584             archive_expsym_cmds=''
9585         ;;
9586       m68k)
9587             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)'
9588             hardcode_libdir_flag_spec='-L$libdir'
9589             hardcode_minus_L=yes
9590         ;;
9591       esac
9592       ;;
9593
9594     bsdi[45]*)
9595       export_dynamic_flag_spec=-rdynamic
9596       ;;
9597
9598     cygwin* | mingw* | pw32* | cegcc*)
9599       # When not using gcc, we currently assume that we are using
9600       # Microsoft Visual C++.
9601       # hardcode_libdir_flag_spec is actually meaningless, as there is
9602       # no search path for DLLs.
9603       case $cc_basename in
9604       cl*)
9605         # Native MSVC
9606         hardcode_libdir_flag_spec=' '
9607         allow_undefined_flag=unsupported
9608         always_export_symbols=yes
9609         file_list_spec='@'
9610         # Tell ltmain to make .lib files, not .a files.
9611         libext=lib
9612         # Tell ltmain to make .dll files, not .so files.
9613         shrext_cmds=".dll"
9614         # FIXME: Setting linknames here is a bad hack.
9615         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9616         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9617             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9618           else
9619             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9620           fi~
9621           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9622           linknames='
9623         # The linker will not automatically build a static lib if we build a DLL.
9624         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9625         enable_shared_with_static_runtimes=yes
9626         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9627         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9628         # Don't use ranlib
9629         old_postinstall_cmds='chmod 644 $oldlib'
9630         postlink_cmds='lt_outputfile="@OUTPUT@"~
9631           lt_tool_outputfile="@TOOL_OUTPUT@"~
9632           case $lt_outputfile in
9633             *.exe|*.EXE) ;;
9634             *)
9635               lt_outputfile="$lt_outputfile.exe"
9636               lt_tool_outputfile="$lt_tool_outputfile.exe"
9637               ;;
9638           esac~
9639           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9640             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9641             $RM "$lt_outputfile.manifest";
9642           fi'
9643         ;;
9644       *)
9645         # Assume MSVC wrapper
9646         hardcode_libdir_flag_spec=' '
9647         allow_undefined_flag=unsupported
9648         # Tell ltmain to make .lib files, not .a files.
9649         libext=lib
9650         # Tell ltmain to make .dll files, not .so files.
9651         shrext_cmds=".dll"
9652         # FIXME: Setting linknames here is a bad hack.
9653         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9654         # The linker will automatically build a .lib file if we build a DLL.
9655         old_archive_from_new_cmds='true'
9656         # FIXME: Should let the user specify the lib program.
9657         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9658         enable_shared_with_static_runtimes=yes
9659         ;;
9660       esac
9661       ;;
9662
9663     darwin* | rhapsody*)
9664
9665
9666   archive_cmds_need_lc=no
9667   hardcode_direct=no
9668   hardcode_automatic=yes
9669   hardcode_shlibpath_var=unsupported
9670   if test "$lt_cv_ld_force_load" = "yes"; then
9671     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\"`'
9672
9673   else
9674     whole_archive_flag_spec=''
9675   fi
9676   link_all_deplibs=yes
9677   allow_undefined_flag="$_lt_dar_allow_undefined"
9678   case $cc_basename in
9679      ifort*) _lt_dar_can_shared=yes ;;
9680      *) _lt_dar_can_shared=$GCC ;;
9681   esac
9682   if test "$_lt_dar_can_shared" = "yes"; then
9683     output_verbose_link_cmd=func_echo_all
9684     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9685     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9686     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}"
9687     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}"
9688
9689   else
9690   ld_shlibs=no
9691   fi
9692
9693       ;;
9694
9695     dgux*)
9696       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9697       hardcode_libdir_flag_spec='-L$libdir'
9698       hardcode_shlibpath_var=no
9699       ;;
9700
9701     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9702     # support.  Future versions do this automatically, but an explicit c++rt0.o
9703     # does not break anything, and helps significantly (at the cost of a little
9704     # extra space).
9705     freebsd2.2*)
9706       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9707       hardcode_libdir_flag_spec='-R$libdir'
9708       hardcode_direct=yes
9709       hardcode_shlibpath_var=no
9710       ;;
9711
9712     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9713     freebsd2.*)
9714       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9715       hardcode_direct=yes
9716       hardcode_minus_L=yes
9717       hardcode_shlibpath_var=no
9718       ;;
9719
9720     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9721     freebsd* | dragonfly*)
9722       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9723       hardcode_libdir_flag_spec='-R$libdir'
9724       hardcode_direct=yes
9725       hardcode_shlibpath_var=no
9726       ;;
9727
9728     hpux9*)
9729       if test "$GCC" = yes; then
9730         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'
9731       else
9732         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'
9733       fi
9734       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9735       hardcode_libdir_separator=:
9736       hardcode_direct=yes
9737
9738       # hardcode_minus_L: Not really in the search PATH,
9739       # but as the default location of the library.
9740       hardcode_minus_L=yes
9741       export_dynamic_flag_spec='${wl}-E'
9742       ;;
9743
9744     hpux10*)
9745       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9746         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9747       else
9748         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9749       fi
9750       if test "$with_gnu_ld" = no; then
9751         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9752         hardcode_libdir_separator=:
9753         hardcode_direct=yes
9754         hardcode_direct_absolute=yes
9755         export_dynamic_flag_spec='${wl}-E'
9756         # hardcode_minus_L: Not really in the search PATH,
9757         # but as the default location of the library.
9758         hardcode_minus_L=yes
9759       fi
9760       ;;
9761
9762     hpux11*)
9763       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9764         case $host_cpu in
9765         hppa*64*)
9766           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9767           ;;
9768         ia64*)
9769           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9770           ;;
9771         *)
9772           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9773           ;;
9774         esac
9775       else
9776         case $host_cpu in
9777         hppa*64*)
9778           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9779           ;;
9780         ia64*)
9781           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9782           ;;
9783         *)
9784
9785           # Older versions of the 11.00 compiler do not understand -b yet
9786           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9787           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9788 $as_echo_n "checking if $CC understands -b... " >&6; }
9789 if ${lt_cv_prog_compiler__b+:} false; then :
9790   $as_echo_n "(cached) " >&6
9791 else
9792   lt_cv_prog_compiler__b=no
9793    save_LDFLAGS="$LDFLAGS"
9794    LDFLAGS="$LDFLAGS -b"
9795    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9796    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9797      # The linker can only warn and ignore the option if not recognized
9798      # So say no if there are warnings
9799      if test -s conftest.err; then
9800        # Append any errors to the config.log.
9801        cat conftest.err 1>&5
9802        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9803        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9804        if diff conftest.exp conftest.er2 >/dev/null; then
9805          lt_cv_prog_compiler__b=yes
9806        fi
9807      else
9808        lt_cv_prog_compiler__b=yes
9809      fi
9810    fi
9811    $RM -r conftest*
9812    LDFLAGS="$save_LDFLAGS"
9813
9814 fi
9815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9816 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9817
9818 if test x"$lt_cv_prog_compiler__b" = xyes; then
9819     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9820 else
9821     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9822 fi
9823
9824           ;;
9825         esac
9826       fi
9827       if test "$with_gnu_ld" = no; then
9828         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9829         hardcode_libdir_separator=:
9830
9831         case $host_cpu in
9832         hppa*64*|ia64*)
9833           hardcode_direct=no
9834           hardcode_shlibpath_var=no
9835           ;;
9836         *)
9837           hardcode_direct=yes
9838           hardcode_direct_absolute=yes
9839           export_dynamic_flag_spec='${wl}-E'
9840
9841           # hardcode_minus_L: Not really in the search PATH,
9842           # but as the default location of the library.
9843           hardcode_minus_L=yes
9844           ;;
9845         esac
9846       fi
9847       ;;
9848
9849     irix5* | irix6* | nonstopux*)
9850       if test "$GCC" = yes; then
9851         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'
9852         # Try to use the -exported_symbol ld option, if it does not
9853         # work, assume that -exports_file does not work either and
9854         # implicitly export all symbols.
9855         # This should be the same for all languages, so no per-tag cache variable.
9856         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9857 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9858 if ${lt_cv_irix_exported_symbol+:} false; then :
9859   $as_echo_n "(cached) " >&6
9860 else
9861   save_LDFLAGS="$LDFLAGS"
9862            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9863            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9864 /* end confdefs.h.  */
9865 int foo (void) { return 0; }
9866 _ACEOF
9867 if ac_fn_c_try_link "$LINENO"; then :
9868   lt_cv_irix_exported_symbol=yes
9869 else
9870   lt_cv_irix_exported_symbol=no
9871 fi
9872 rm -f core conftest.err conftest.$ac_objext \
9873     conftest$ac_exeext conftest.$ac_ext
9874            LDFLAGS="$save_LDFLAGS"
9875 fi
9876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9877 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9878         if test "$lt_cv_irix_exported_symbol" = yes; then
9879           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'
9880         fi
9881       else
9882         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'
9883         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'
9884       fi
9885       archive_cmds_need_lc='no'
9886       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9887       hardcode_libdir_separator=:
9888       inherit_rpath=yes
9889       link_all_deplibs=yes
9890       ;;
9891
9892     netbsd* | netbsdelf*-gnu)
9893       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9894         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9895       else
9896         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9897       fi
9898       hardcode_libdir_flag_spec='-R$libdir'
9899       hardcode_direct=yes
9900       hardcode_shlibpath_var=no
9901       ;;
9902
9903     newsos6)
9904       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9905       hardcode_direct=yes
9906       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9907       hardcode_libdir_separator=:
9908       hardcode_shlibpath_var=no
9909       ;;
9910
9911     *nto* | *qnx*)
9912       ;;
9913
9914     openbsd*)
9915       if test -f /usr/libexec/ld.so; then
9916         hardcode_direct=yes
9917         hardcode_shlibpath_var=no
9918         hardcode_direct_absolute=yes
9919         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9920           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9921           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9922           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9923           export_dynamic_flag_spec='${wl}-E'
9924         else
9925           case $host_os in
9926            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9927              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9928              hardcode_libdir_flag_spec='-R$libdir'
9929              ;;
9930            *)
9931              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9932              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9933              ;;
9934           esac
9935         fi
9936       else
9937         ld_shlibs=no
9938       fi
9939       ;;
9940
9941     os2*)
9942       hardcode_libdir_flag_spec='-L$libdir'
9943       hardcode_minus_L=yes
9944       allow_undefined_flag=unsupported
9945       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'
9946       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9947       ;;
9948
9949     osf3*)
9950       if test "$GCC" = yes; then
9951         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9952         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'
9953       else
9954         allow_undefined_flag=' -expect_unresolved \*'
9955         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'
9956       fi
9957       archive_cmds_need_lc='no'
9958       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9959       hardcode_libdir_separator=:
9960       ;;
9961
9962     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9963       if test "$GCC" = yes; then
9964         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9965         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'
9966         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9967       else
9968         allow_undefined_flag=' -expect_unresolved \*'
9969         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'
9970         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~
9971         $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'
9972
9973         # Both c and cxx compiler support -rpath directly
9974         hardcode_libdir_flag_spec='-rpath $libdir'
9975       fi
9976       archive_cmds_need_lc='no'
9977       hardcode_libdir_separator=:
9978       ;;
9979
9980     solaris*)
9981       no_undefined_flag=' -z defs'
9982       if test "$GCC" = yes; then
9983         wlarc='${wl}'
9984         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9985         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9986           $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'
9987       else
9988         case `$CC -V 2>&1` in
9989         *"Compilers 5.0"*)
9990           wlarc=''
9991           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9992           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9993           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9994           ;;
9995         *)
9996           wlarc='${wl}'
9997           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9998           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9999           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10000           ;;
10001         esac
10002       fi
10003       hardcode_libdir_flag_spec='-R$libdir'
10004       hardcode_shlibpath_var=no
10005       case $host_os in
10006       solaris2.[0-5] | solaris2.[0-5].*) ;;
10007       *)
10008         # The compiler driver will combine and reorder linker options,
10009         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10010         # but is careful enough not to reorder.
10011         # Supported since Solaris 2.6 (maybe 2.5.1?)
10012         if test "$GCC" = yes; then
10013           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10014         else
10015           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10016         fi
10017         ;;
10018       esac
10019       link_all_deplibs=yes
10020       ;;
10021
10022     sunos4*)
10023       if test "x$host_vendor" = xsequent; then
10024         # Use $CC to link under sequent, because it throws in some extra .o
10025         # files that make .init and .fini sections work.
10026         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10027       else
10028         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10029       fi
10030       hardcode_libdir_flag_spec='-L$libdir'
10031       hardcode_direct=yes
10032       hardcode_minus_L=yes
10033       hardcode_shlibpath_var=no
10034       ;;
10035
10036     sysv4)
10037       case $host_vendor in
10038         sni)
10039           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10040           hardcode_direct=yes # is this really true???
10041         ;;
10042         siemens)
10043           ## LD is ld it makes a PLAMLIB
10044           ## CC just makes a GrossModule.
10045           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10046           reload_cmds='$CC -r -o $output$reload_objs'
10047           hardcode_direct=no
10048         ;;
10049         motorola)
10050           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10051           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10052         ;;
10053       esac
10054       runpath_var='LD_RUN_PATH'
10055       hardcode_shlibpath_var=no
10056       ;;
10057
10058     sysv4.3*)
10059       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10060       hardcode_shlibpath_var=no
10061       export_dynamic_flag_spec='-Bexport'
10062       ;;
10063
10064     sysv4*MP*)
10065       if test -d /usr/nec; then
10066         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10067         hardcode_shlibpath_var=no
10068         runpath_var=LD_RUN_PATH
10069         hardcode_runpath_var=yes
10070         ld_shlibs=yes
10071       fi
10072       ;;
10073
10074     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10075       no_undefined_flag='${wl}-z,text'
10076       archive_cmds_need_lc=no
10077       hardcode_shlibpath_var=no
10078       runpath_var='LD_RUN_PATH'
10079
10080       if test "$GCC" = yes; then
10081         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10082         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10083       else
10084         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10085         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10086       fi
10087       ;;
10088
10089     sysv5* | sco3.2v5* | sco5v6*)
10090       # Note: We can NOT use -z defs as we might desire, because we do not
10091       # link with -lc, and that would cause any symbols used from libc to
10092       # always be unresolved, which means just about no library would
10093       # ever link correctly.  If we're not using GNU ld we use -z text
10094       # though, which does catch some bad symbols but isn't as heavy-handed
10095       # as -z defs.
10096       no_undefined_flag='${wl}-z,text'
10097       allow_undefined_flag='${wl}-z,nodefs'
10098       archive_cmds_need_lc=no
10099       hardcode_shlibpath_var=no
10100       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10101       hardcode_libdir_separator=':'
10102       link_all_deplibs=yes
10103       export_dynamic_flag_spec='${wl}-Bexport'
10104       runpath_var='LD_RUN_PATH'
10105
10106       if test "$GCC" = yes; then
10107         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10108         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10109       else
10110         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10111         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10112       fi
10113       ;;
10114
10115     uts4*)
10116       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10117       hardcode_libdir_flag_spec='-L$libdir'
10118       hardcode_shlibpath_var=no
10119       ;;
10120
10121     *)
10122       ld_shlibs=no
10123       ;;
10124     esac
10125
10126     if test x$host_vendor = xsni; then
10127       case $host in
10128       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10129         export_dynamic_flag_spec='${wl}-Blargedynsym'
10130         ;;
10131       esac
10132     fi
10133   fi
10134
10135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10136 $as_echo "$ld_shlibs" >&6; }
10137 test "$ld_shlibs" = no && can_build_shared=no
10138
10139 with_gnu_ld=$with_gnu_ld
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155 #
10156 # Do we need to explicitly link libc?
10157 #
10158 case "x$archive_cmds_need_lc" in
10159 x|xyes)
10160   # Assume -lc should be added
10161   archive_cmds_need_lc=yes
10162
10163   if test "$enable_shared" = yes && test "$GCC" = yes; then
10164     case $archive_cmds in
10165     *'~'*)
10166       # FIXME: we may have to deal with multi-command sequences.
10167       ;;
10168     '$CC '*)
10169       # Test whether the compiler implicitly links with -lc since on some
10170       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10171       # to ld, don't add -lc before -lgcc.
10172       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10173 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10174 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10175   $as_echo_n "(cached) " >&6
10176 else
10177   $RM conftest*
10178         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10179
10180         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10181   (eval $ac_compile) 2>&5
10182   ac_status=$?
10183   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10184   test $ac_status = 0; } 2>conftest.err; then
10185           soname=conftest
10186           lib=conftest
10187           libobjs=conftest.$ac_objext
10188           deplibs=
10189           wl=$lt_prog_compiler_wl
10190           pic_flag=$lt_prog_compiler_pic
10191           compiler_flags=-v
10192           linker_flags=-v
10193           verstring=
10194           output_objdir=.
10195           libname=conftest
10196           lt_save_allow_undefined_flag=$allow_undefined_flag
10197           allow_undefined_flag=
10198           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10199   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10200   ac_status=$?
10201   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10202   test $ac_status = 0; }
10203           then
10204             lt_cv_archive_cmds_need_lc=no
10205           else
10206             lt_cv_archive_cmds_need_lc=yes
10207           fi
10208           allow_undefined_flag=$lt_save_allow_undefined_flag
10209         else
10210           cat conftest.err 1>&5
10211         fi
10212         $RM conftest*
10213
10214 fi
10215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10216 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10217       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10218       ;;
10219     esac
10220   fi
10221   ;;
10222 esac
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10376 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10377
10378 if test "$GCC" = yes; then
10379   case $host_os in
10380     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10381     *) lt_awk_arg="/^libraries:/" ;;
10382   esac
10383   case $host_os in
10384     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10385     *) lt_sed_strip_eq="s,=/,/,g" ;;
10386   esac
10387   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10388   case $lt_search_path_spec in
10389   *\;*)
10390     # if the path contains ";" then we assume it to be the separator
10391     # otherwise default to the standard path separator (i.e. ":") - it is
10392     # assumed that no part of a normal pathname contains ";" but that should
10393     # okay in the real world where ";" in dirpaths is itself problematic.
10394     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10395     ;;
10396   *)
10397     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10398     ;;
10399   esac
10400   # Ok, now we have the path, separated by spaces, we can step through it
10401   # and add multilib dir if necessary.
10402   lt_tmp_lt_search_path_spec=
10403   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10404   for lt_sys_path in $lt_search_path_spec; do
10405     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10406       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10407     else
10408       test -d "$lt_sys_path" && \
10409         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10410     fi
10411   done
10412   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10413 BEGIN {RS=" "; FS="/|\n";} {
10414   lt_foo="";
10415   lt_count=0;
10416   for (lt_i = NF; lt_i > 0; lt_i--) {
10417     if ($lt_i != "" && $lt_i != ".") {
10418       if ($lt_i == "..") {
10419         lt_count++;
10420       } else {
10421         if (lt_count == 0) {
10422           lt_foo="/" $lt_i lt_foo;
10423         } else {
10424           lt_count--;
10425         }
10426       }
10427     }
10428   }
10429   if (lt_foo != "") { lt_freq[lt_foo]++; }
10430   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10431 }'`
10432   # AWK program above erroneously prepends '/' to C:/dos/paths
10433   # for these hosts.
10434   case $host_os in
10435     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10436       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10437   esac
10438   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10439 else
10440   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10441 fi
10442 library_names_spec=
10443 libname_spec='lib$name'
10444 soname_spec=
10445 shrext_cmds=".so"
10446 postinstall_cmds=
10447 postuninstall_cmds=
10448 finish_cmds=
10449 finish_eval=
10450 shlibpath_var=
10451 shlibpath_overrides_runpath=unknown
10452 version_type=none
10453 dynamic_linker="$host_os ld.so"
10454 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10455 need_lib_prefix=unknown
10456 hardcode_into_libs=no
10457
10458 # when you set need_version to no, make sure it does not cause -set_version
10459 # flags to be left without arguments
10460 need_version=unknown
10461
10462 case $host_os in
10463 aix3*)
10464   version_type=linux # correct to gnu/linux during the next big refactor
10465   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10466   shlibpath_var=LIBPATH
10467
10468   # AIX 3 has no versioning support, so we append a major version to the name.
10469   soname_spec='${libname}${release}${shared_ext}$major'
10470   ;;
10471
10472 aix[4-9]*)
10473   version_type=linux # correct to gnu/linux during the next big refactor
10474   need_lib_prefix=no
10475   need_version=no
10476   hardcode_into_libs=yes
10477   if test "$host_cpu" = ia64; then
10478     # AIX 5 supports IA64
10479     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10480     shlibpath_var=LD_LIBRARY_PATH
10481   else
10482     # With GCC up to 2.95.x, collect2 would create an import file
10483     # for dependence libraries.  The import file would start with
10484     # the line `#! .'.  This would cause the generated library to
10485     # depend on `.', always an invalid library.  This was fixed in
10486     # development snapshots of GCC prior to 3.0.
10487     case $host_os in
10488       aix4 | aix4.[01] | aix4.[01].*)
10489       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10490            echo ' yes '
10491            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10492         :
10493       else
10494         can_build_shared=no
10495       fi
10496       ;;
10497     esac
10498     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10499     # soname into executable. Probably we can add versioning support to
10500     # collect2, so additional links can be useful in future.
10501     if test "$aix_use_runtimelinking" = yes; then
10502       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10503       # instead of lib<name>.a to let people know that these are not
10504       # typical AIX shared libraries.
10505       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10506     else
10507       # We preserve .a as extension for shared libraries through AIX4.2
10508       # and later when we are not doing run time linking.
10509       library_names_spec='${libname}${release}.a $libname.a'
10510       soname_spec='${libname}${release}${shared_ext}$major'
10511     fi
10512     shlibpath_var=LIBPATH
10513   fi
10514   ;;
10515
10516 amigaos*)
10517   case $host_cpu in
10518   powerpc)
10519     # Since July 2007 AmigaOS4 officially supports .so libraries.
10520     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10521     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10522     ;;
10523   m68k)
10524     library_names_spec='$libname.ixlibrary $libname.a'
10525     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10526     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'
10527     ;;
10528   esac
10529   ;;
10530
10531 beos*)
10532   library_names_spec='${libname}${shared_ext}'
10533   dynamic_linker="$host_os ld.so"
10534   shlibpath_var=LIBRARY_PATH
10535   ;;
10536
10537 bsdi[45]*)
10538   version_type=linux # correct to gnu/linux during the next big refactor
10539   need_version=no
10540   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10541   soname_spec='${libname}${release}${shared_ext}$major'
10542   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10543   shlibpath_var=LD_LIBRARY_PATH
10544   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10545   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10546   # the default ld.so.conf also contains /usr/contrib/lib and
10547   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10548   # libtool to hard-code these into programs
10549   ;;
10550
10551 cygwin* | mingw* | pw32* | cegcc*)
10552   version_type=windows
10553   shrext_cmds=".dll"
10554   need_version=no
10555   need_lib_prefix=no
10556
10557   case $GCC,$cc_basename in
10558   yes,*)
10559     # gcc
10560     library_names_spec='$libname.dll.a'
10561     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10562     postinstall_cmds='base_file=`basename \${file}`~
10563       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10564       dldir=$destdir/`dirname \$dlpath`~
10565       test -d \$dldir || mkdir -p \$dldir~
10566       $install_prog $dir/$dlname \$dldir/$dlname~
10567       chmod a+x \$dldir/$dlname~
10568       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10569         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10570       fi'
10571     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10572       dlpath=$dir/\$dldll~
10573        $RM \$dlpath'
10574     shlibpath_overrides_runpath=yes
10575
10576     case $host_os in
10577     cygwin*)
10578       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10579       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10580
10581       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10582       ;;
10583     mingw* | cegcc*)
10584       # MinGW DLLs use traditional 'lib' prefix
10585       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10586       ;;
10587     pw32*)
10588       # pw32 DLLs use 'pw' prefix rather than 'lib'
10589       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10590       ;;
10591     esac
10592     dynamic_linker='Win32 ld.exe'
10593     ;;
10594
10595   *,cl*)
10596     # Native MSVC
10597     libname_spec='$name'
10598     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10599     library_names_spec='${libname}.dll.lib'
10600
10601     case $build_os in
10602     mingw*)
10603       sys_lib_search_path_spec=
10604       lt_save_ifs=$IFS
10605       IFS=';'
10606       for lt_path in $LIB
10607       do
10608         IFS=$lt_save_ifs
10609         # Let DOS variable expansion print the short 8.3 style file name.
10610         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10611         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10612       done
10613       IFS=$lt_save_ifs
10614       # Convert to MSYS style.
10615       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10616       ;;
10617     cygwin*)
10618       # Convert to unix form, then to dos form, then back to unix form
10619       # but this time dos style (no spaces!) so that the unix form looks
10620       # like /cygdrive/c/PROGRA~1:/cygdr...
10621       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10622       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10623       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10624       ;;
10625     *)
10626       sys_lib_search_path_spec="$LIB"
10627       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10628         # It is most probably a Windows format PATH.
10629         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10630       else
10631         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10632       fi
10633       # FIXME: find the short name or the path components, as spaces are
10634       # common. (e.g. "Program Files" -> "PROGRA~1")
10635       ;;
10636     esac
10637
10638     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10639     postinstall_cmds='base_file=`basename \${file}`~
10640       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10641       dldir=$destdir/`dirname \$dlpath`~
10642       test -d \$dldir || mkdir -p \$dldir~
10643       $install_prog $dir/$dlname \$dldir/$dlname'
10644     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10645       dlpath=$dir/\$dldll~
10646        $RM \$dlpath'
10647     shlibpath_overrides_runpath=yes
10648     dynamic_linker='Win32 link.exe'
10649     ;;
10650
10651   *)
10652     # Assume MSVC wrapper
10653     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10654     dynamic_linker='Win32 ld.exe'
10655     ;;
10656   esac
10657   # FIXME: first we should search . and the directory the executable is in
10658   shlibpath_var=PATH
10659   ;;
10660
10661 darwin* | rhapsody*)
10662   dynamic_linker="$host_os dyld"
10663   version_type=darwin
10664   need_lib_prefix=no
10665   need_version=no
10666   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10667   soname_spec='${libname}${release}${major}$shared_ext'
10668   shlibpath_overrides_runpath=yes
10669   shlibpath_var=DYLD_LIBRARY_PATH
10670   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10671
10672   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10673   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10674   ;;
10675
10676 dgux*)
10677   version_type=linux # correct to gnu/linux during the next big refactor
10678   need_lib_prefix=no
10679   need_version=no
10680   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10681   soname_spec='${libname}${release}${shared_ext}$major'
10682   shlibpath_var=LD_LIBRARY_PATH
10683   ;;
10684
10685 freebsd* | dragonfly*)
10686   # DragonFly does not have aout.  When/if they implement a new
10687   # versioning mechanism, adjust this.
10688   if test -x /usr/bin/objformat; then
10689     objformat=`/usr/bin/objformat`
10690   else
10691     case $host_os in
10692     freebsd[23].*) objformat=aout ;;
10693     *) objformat=elf ;;
10694     esac
10695   fi
10696   version_type=freebsd-$objformat
10697   case $version_type in
10698     freebsd-elf*)
10699       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10700       need_version=no
10701       need_lib_prefix=no
10702       ;;
10703     freebsd-*)
10704       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10705       need_version=yes
10706       ;;
10707   esac
10708   shlibpath_var=LD_LIBRARY_PATH
10709   case $host_os in
10710   freebsd2.*)
10711     shlibpath_overrides_runpath=yes
10712     ;;
10713   freebsd3.[01]* | freebsdelf3.[01]*)
10714     shlibpath_overrides_runpath=yes
10715     hardcode_into_libs=yes
10716     ;;
10717   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10718   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10719     shlibpath_overrides_runpath=no
10720     hardcode_into_libs=yes
10721     ;;
10722   *) # from 4.6 on, and DragonFly
10723     shlibpath_overrides_runpath=yes
10724     hardcode_into_libs=yes
10725     ;;
10726   esac
10727   ;;
10728
10729 gnu*)
10730   version_type=linux # correct to gnu/linux during the next big refactor
10731   need_lib_prefix=no
10732   need_version=no
10733   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10734   soname_spec='${libname}${release}${shared_ext}$major'
10735   shlibpath_var=LD_LIBRARY_PATH
10736   shlibpath_overrides_runpath=no
10737   hardcode_into_libs=yes
10738   ;;
10739
10740 haiku*)
10741   version_type=linux # correct to gnu/linux during the next big refactor
10742   need_lib_prefix=no
10743   need_version=no
10744   dynamic_linker="$host_os runtime_loader"
10745   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10746   soname_spec='${libname}${release}${shared_ext}$major'
10747   shlibpath_var=LIBRARY_PATH
10748   shlibpath_overrides_runpath=yes
10749   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10750   hardcode_into_libs=yes
10751   ;;
10752
10753 hpux9* | hpux10* | hpux11*)
10754   # Give a soname corresponding to the major version so that dld.sl refuses to
10755   # link against other versions.
10756   version_type=sunos
10757   need_lib_prefix=no
10758   need_version=no
10759   case $host_cpu in
10760   ia64*)
10761     shrext_cmds='.so'
10762     hardcode_into_libs=yes
10763     dynamic_linker="$host_os dld.so"
10764     shlibpath_var=LD_LIBRARY_PATH
10765     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10766     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10767     soname_spec='${libname}${release}${shared_ext}$major'
10768     if test "X$HPUX_IA64_MODE" = X32; then
10769       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10770     else
10771       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10772     fi
10773     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10774     ;;
10775   hppa*64*)
10776     shrext_cmds='.sl'
10777     hardcode_into_libs=yes
10778     dynamic_linker="$host_os dld.sl"
10779     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10780     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10781     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10782     soname_spec='${libname}${release}${shared_ext}$major'
10783     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10784     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10785     ;;
10786   *)
10787     shrext_cmds='.sl'
10788     dynamic_linker="$host_os dld.sl"
10789     shlibpath_var=SHLIB_PATH
10790     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10791     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10792     soname_spec='${libname}${release}${shared_ext}$major'
10793     ;;
10794   esac
10795   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10796   postinstall_cmds='chmod 555 $lib'
10797   # or fails outright, so override atomically:
10798   install_override_mode=555
10799   ;;
10800
10801 interix[3-9]*)
10802   version_type=linux # correct to gnu/linux during the next big refactor
10803   need_lib_prefix=no
10804   need_version=no
10805   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10806   soname_spec='${libname}${release}${shared_ext}$major'
10807   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10808   shlibpath_var=LD_LIBRARY_PATH
10809   shlibpath_overrides_runpath=no
10810   hardcode_into_libs=yes
10811   ;;
10812
10813 irix5* | irix6* | nonstopux*)
10814   case $host_os in
10815     nonstopux*) version_type=nonstopux ;;
10816     *)
10817         if test "$lt_cv_prog_gnu_ld" = yes; then
10818                 version_type=linux # correct to gnu/linux during the next big refactor
10819         else
10820                 version_type=irix
10821         fi ;;
10822   esac
10823   need_lib_prefix=no
10824   need_version=no
10825   soname_spec='${libname}${release}${shared_ext}$major'
10826   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10827   case $host_os in
10828   irix5* | nonstopux*)
10829     libsuff= shlibsuff=
10830     ;;
10831   *)
10832     case $LD in # libtool.m4 will add one of these switches to LD
10833     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10834       libsuff= shlibsuff= libmagic=32-bit;;
10835     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10836       libsuff=32 shlibsuff=N32 libmagic=N32;;
10837     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10838       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10839     *) libsuff= shlibsuff= libmagic=never-match;;
10840     esac
10841     ;;
10842   esac
10843   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10844   shlibpath_overrides_runpath=no
10845   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10846   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10847   hardcode_into_libs=yes
10848   ;;
10849
10850 # No shared lib support for Linux oldld, aout, or coff.
10851 linux*oldld* | linux*aout* | linux*coff*)
10852   dynamic_linker=no
10853   ;;
10854
10855 # This must be glibc/ELF.
10856 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10857   version_type=linux # correct to gnu/linux during the next big refactor
10858   need_lib_prefix=no
10859   need_version=no
10860   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10861   soname_spec='${libname}${release}${shared_ext}$major'
10862   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10863   shlibpath_var=LD_LIBRARY_PATH
10864   shlibpath_overrides_runpath=no
10865
10866   # Some binutils ld are patched to set DT_RUNPATH
10867   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10868   $as_echo_n "(cached) " >&6
10869 else
10870   lt_cv_shlibpath_overrides_runpath=no
10871     save_LDFLAGS=$LDFLAGS
10872     save_libdir=$libdir
10873     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10874          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10875     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10876 /* end confdefs.h.  */
10877
10878 int
10879 main ()
10880 {
10881
10882   ;
10883   return 0;
10884 }
10885 _ACEOF
10886 if ac_fn_c_try_link "$LINENO"; then :
10887   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10888   lt_cv_shlibpath_overrides_runpath=yes
10889 fi
10890 fi
10891 rm -f core conftest.err conftest.$ac_objext \
10892     conftest$ac_exeext conftest.$ac_ext
10893     LDFLAGS=$save_LDFLAGS
10894     libdir=$save_libdir
10895
10896 fi
10897
10898   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10899
10900   # This implies no fast_install, which is unacceptable.
10901   # Some rework will be needed to allow for fast_install
10902   # before this can be enabled.
10903   hardcode_into_libs=yes
10904
10905   # Append ld.so.conf contents to the search path
10906   if test -f /etc/ld.so.conf; then
10907     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' ' '`
10908     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10909   fi
10910
10911   # We used to test for /lib/ld.so.1 and disable shared libraries on
10912   # powerpc, because MkLinux only supported shared libraries with the
10913   # GNU dynamic linker.  Since this was broken with cross compilers,
10914   # most powerpc-linux boxes support dynamic linking these days and
10915   # people can always --disable-shared, the test was removed, and we
10916   # assume the GNU/Linux dynamic linker is in use.
10917   dynamic_linker='GNU/Linux ld.so'
10918   ;;
10919
10920 netbsdelf*-gnu)
10921   version_type=linux
10922   need_lib_prefix=no
10923   need_version=no
10924   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10925   soname_spec='${libname}${release}${shared_ext}$major'
10926   shlibpath_var=LD_LIBRARY_PATH
10927   shlibpath_overrides_runpath=no
10928   hardcode_into_libs=yes
10929   dynamic_linker='NetBSD ld.elf_so'
10930   ;;
10931
10932 netbsd*)
10933   version_type=sunos
10934   need_lib_prefix=no
10935   need_version=no
10936   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10937     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10938     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10939     dynamic_linker='NetBSD (a.out) ld.so'
10940   else
10941     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10942     soname_spec='${libname}${release}${shared_ext}$major'
10943     dynamic_linker='NetBSD ld.elf_so'
10944   fi
10945   shlibpath_var=LD_LIBRARY_PATH
10946   shlibpath_overrides_runpath=yes
10947   hardcode_into_libs=yes
10948   ;;
10949
10950 newsos6)
10951   version_type=linux # correct to gnu/linux during the next big refactor
10952   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10953   shlibpath_var=LD_LIBRARY_PATH
10954   shlibpath_overrides_runpath=yes
10955   ;;
10956
10957 *nto* | *qnx*)
10958   version_type=qnx
10959   need_lib_prefix=no
10960   need_version=no
10961   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10962   soname_spec='${libname}${release}${shared_ext}$major'
10963   shlibpath_var=LD_LIBRARY_PATH
10964   shlibpath_overrides_runpath=no
10965   hardcode_into_libs=yes
10966   dynamic_linker='ldqnx.so'
10967   ;;
10968
10969 openbsd*)
10970   version_type=sunos
10971   sys_lib_dlsearch_path_spec="/usr/lib"
10972   need_lib_prefix=no
10973   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10974   case $host_os in
10975     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10976     *)                          need_version=no  ;;
10977   esac
10978   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10979   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10980   shlibpath_var=LD_LIBRARY_PATH
10981   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10982     case $host_os in
10983       openbsd2.[89] | openbsd2.[89].*)
10984         shlibpath_overrides_runpath=no
10985         ;;
10986       *)
10987         shlibpath_overrides_runpath=yes
10988         ;;
10989       esac
10990   else
10991     shlibpath_overrides_runpath=yes
10992   fi
10993   ;;
10994
10995 os2*)
10996   libname_spec='$name'
10997   shrext_cmds=".dll"
10998   need_lib_prefix=no
10999   library_names_spec='$libname${shared_ext} $libname.a'
11000   dynamic_linker='OS/2 ld.exe'
11001   shlibpath_var=LIBPATH
11002   ;;
11003
11004 osf3* | osf4* | osf5*)
11005   version_type=osf
11006   need_lib_prefix=no
11007   need_version=no
11008   soname_spec='${libname}${release}${shared_ext}$major'
11009   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11010   shlibpath_var=LD_LIBRARY_PATH
11011   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11012   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11013   ;;
11014
11015 rdos*)
11016   dynamic_linker=no
11017   ;;
11018
11019 solaris*)
11020   version_type=linux # correct to gnu/linux during the next big refactor
11021   need_lib_prefix=no
11022   need_version=no
11023   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11024   soname_spec='${libname}${release}${shared_ext}$major'
11025   shlibpath_var=LD_LIBRARY_PATH
11026   shlibpath_overrides_runpath=yes
11027   hardcode_into_libs=yes
11028   # ldd complains unless libraries are executable
11029   postinstall_cmds='chmod +x $lib'
11030   ;;
11031
11032 sunos4*)
11033   version_type=sunos
11034   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11035   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11036   shlibpath_var=LD_LIBRARY_PATH
11037   shlibpath_overrides_runpath=yes
11038   if test "$with_gnu_ld" = yes; then
11039     need_lib_prefix=no
11040   fi
11041   need_version=yes
11042   ;;
11043
11044 sysv4 | sysv4.3*)
11045   version_type=linux # correct to gnu/linux during the next big refactor
11046   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11047   soname_spec='${libname}${release}${shared_ext}$major'
11048   shlibpath_var=LD_LIBRARY_PATH
11049   case $host_vendor in
11050     sni)
11051       shlibpath_overrides_runpath=no
11052       need_lib_prefix=no
11053       runpath_var=LD_RUN_PATH
11054       ;;
11055     siemens)
11056       need_lib_prefix=no
11057       ;;
11058     motorola)
11059       need_lib_prefix=no
11060       need_version=no
11061       shlibpath_overrides_runpath=no
11062       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11063       ;;
11064   esac
11065   ;;
11066
11067 sysv4*MP*)
11068   if test -d /usr/nec ;then
11069     version_type=linux # correct to gnu/linux during the next big refactor
11070     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11071     soname_spec='$libname${shared_ext}.$major'
11072     shlibpath_var=LD_LIBRARY_PATH
11073   fi
11074   ;;
11075
11076 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11077   version_type=freebsd-elf
11078   need_lib_prefix=no
11079   need_version=no
11080   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11081   soname_spec='${libname}${release}${shared_ext}$major'
11082   shlibpath_var=LD_LIBRARY_PATH
11083   shlibpath_overrides_runpath=yes
11084   hardcode_into_libs=yes
11085   if test "$with_gnu_ld" = yes; then
11086     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11087   else
11088     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11089     case $host_os in
11090       sco3.2v5*)
11091         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11092         ;;
11093     esac
11094   fi
11095   sys_lib_dlsearch_path_spec='/usr/lib'
11096   ;;
11097
11098 tpf*)
11099   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11100   version_type=linux # correct to gnu/linux during the next big refactor
11101   need_lib_prefix=no
11102   need_version=no
11103   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11104   shlibpath_var=LD_LIBRARY_PATH
11105   shlibpath_overrides_runpath=no
11106   hardcode_into_libs=yes
11107   ;;
11108
11109 uts4*)
11110   version_type=linux # correct to gnu/linux during the next big refactor
11111   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11112   soname_spec='${libname}${release}${shared_ext}$major'
11113   shlibpath_var=LD_LIBRARY_PATH
11114   ;;
11115
11116 *)
11117   dynamic_linker=no
11118   ;;
11119 esac
11120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11121 $as_echo "$dynamic_linker" >&6; }
11122 test "$dynamic_linker" = no && can_build_shared=no
11123
11124 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11125 if test "$GCC" = yes; then
11126   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11127 fi
11128
11129 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11130   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11131 fi
11132 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11133   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11134 fi
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11228 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11229 hardcode_action=
11230 if test -n "$hardcode_libdir_flag_spec" ||
11231    test -n "$runpath_var" ||
11232    test "X$hardcode_automatic" = "Xyes" ; then
11233
11234   # We can hardcode non-existent directories.
11235   if test "$hardcode_direct" != no &&
11236      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11237      # have to relink, otherwise we might link with an installed library
11238      # when we should be linking with a yet-to-be-installed one
11239      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11240      test "$hardcode_minus_L" != no; then
11241     # Linking always hardcodes the temporary library directory.
11242     hardcode_action=relink
11243   else
11244     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11245     hardcode_action=immediate
11246   fi
11247 else
11248   # We cannot hardcode anything, or else we can only hardcode existing
11249   # directories.
11250   hardcode_action=unsupported
11251 fi
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11253 $as_echo "$hardcode_action" >&6; }
11254
11255 if test "$hardcode_action" = relink ||
11256    test "$inherit_rpath" = yes; then
11257   # Fast installation is not supported
11258   enable_fast_install=no
11259 elif test "$shlibpath_overrides_runpath" = yes ||
11260      test "$enable_shared" = no; then
11261   # Fast installation is not necessary
11262   enable_fast_install=needless
11263 fi
11264
11265
11266
11267
11268
11269
11270   if test "x$enable_dlopen" != xyes; then
11271   enable_dlopen=unknown
11272   enable_dlopen_self=unknown
11273   enable_dlopen_self_static=unknown
11274 else
11275   lt_cv_dlopen=no
11276   lt_cv_dlopen_libs=
11277
11278   case $host_os in
11279   beos*)
11280     lt_cv_dlopen="load_add_on"
11281     lt_cv_dlopen_libs=
11282     lt_cv_dlopen_self=yes
11283     ;;
11284
11285   mingw* | pw32* | cegcc*)
11286     lt_cv_dlopen="LoadLibrary"
11287     lt_cv_dlopen_libs=
11288     ;;
11289
11290   cygwin*)
11291     lt_cv_dlopen="dlopen"
11292     lt_cv_dlopen_libs=
11293     ;;
11294
11295   darwin*)
11296   # if libdl is installed we need to link against it
11297     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11298 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11299 if ${ac_cv_lib_dl_dlopen+:} false; then :
11300   $as_echo_n "(cached) " >&6
11301 else
11302   ac_check_lib_save_LIBS=$LIBS
11303 LIBS="-ldl  $LIBS"
11304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11305 /* end confdefs.h.  */
11306
11307 /* Override any GCC internal prototype to avoid an error.
11308    Use char because int might match the return type of a GCC
11309    builtin and then its argument prototype would still apply.  */
11310 #ifdef __cplusplus
11311 extern "C"
11312 #endif
11313 char dlopen ();
11314 int
11315 main ()
11316 {
11317 return dlopen ();
11318   ;
11319   return 0;
11320 }
11321 _ACEOF
11322 if ac_fn_c_try_link "$LINENO"; then :
11323   ac_cv_lib_dl_dlopen=yes
11324 else
11325   ac_cv_lib_dl_dlopen=no
11326 fi
11327 rm -f core conftest.err conftest.$ac_objext \
11328     conftest$ac_exeext conftest.$ac_ext
11329 LIBS=$ac_check_lib_save_LIBS
11330 fi
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11332 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11333 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11334   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11335 else
11336
11337     lt_cv_dlopen="dyld"
11338     lt_cv_dlopen_libs=
11339     lt_cv_dlopen_self=yes
11340
11341 fi
11342
11343     ;;
11344
11345   *)
11346     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11347 if test "x$ac_cv_func_shl_load" = xyes; then :
11348   lt_cv_dlopen="shl_load"
11349 else
11350   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11351 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11352 if ${ac_cv_lib_dld_shl_load+:} false; then :
11353   $as_echo_n "(cached) " >&6
11354 else
11355   ac_check_lib_save_LIBS=$LIBS
11356 LIBS="-ldld  $LIBS"
11357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11358 /* end confdefs.h.  */
11359
11360 /* Override any GCC internal prototype to avoid an error.
11361    Use char because int might match the return type of a GCC
11362    builtin and then its argument prototype would still apply.  */
11363 #ifdef __cplusplus
11364 extern "C"
11365 #endif
11366 char shl_load ();
11367 int
11368 main ()
11369 {
11370 return shl_load ();
11371   ;
11372   return 0;
11373 }
11374 _ACEOF
11375 if ac_fn_c_try_link "$LINENO"; then :
11376   ac_cv_lib_dld_shl_load=yes
11377 else
11378   ac_cv_lib_dld_shl_load=no
11379 fi
11380 rm -f core conftest.err conftest.$ac_objext \
11381     conftest$ac_exeext conftest.$ac_ext
11382 LIBS=$ac_check_lib_save_LIBS
11383 fi
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11385 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11386 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11387   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11388 else
11389   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11390 if test "x$ac_cv_func_dlopen" = xyes; then :
11391   lt_cv_dlopen="dlopen"
11392 else
11393   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11394 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11395 if ${ac_cv_lib_dl_dlopen+:} false; then :
11396   $as_echo_n "(cached) " >&6
11397 else
11398   ac_check_lib_save_LIBS=$LIBS
11399 LIBS="-ldl  $LIBS"
11400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11401 /* end confdefs.h.  */
11402
11403 /* Override any GCC internal prototype to avoid an error.
11404    Use char because int might match the return type of a GCC
11405    builtin and then its argument prototype would still apply.  */
11406 #ifdef __cplusplus
11407 extern "C"
11408 #endif
11409 char dlopen ();
11410 int
11411 main ()
11412 {
11413 return dlopen ();
11414   ;
11415   return 0;
11416 }
11417 _ACEOF
11418 if ac_fn_c_try_link "$LINENO"; then :
11419   ac_cv_lib_dl_dlopen=yes
11420 else
11421   ac_cv_lib_dl_dlopen=no
11422 fi
11423 rm -f core conftest.err conftest.$ac_objext \
11424     conftest$ac_exeext conftest.$ac_ext
11425 LIBS=$ac_check_lib_save_LIBS
11426 fi
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11428 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11429 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11430   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11431 else
11432   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11433 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11434 if ${ac_cv_lib_svld_dlopen+:} false; then :
11435   $as_echo_n "(cached) " >&6
11436 else
11437   ac_check_lib_save_LIBS=$LIBS
11438 LIBS="-lsvld  $LIBS"
11439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11440 /* end confdefs.h.  */
11441
11442 /* Override any GCC internal prototype to avoid an error.
11443    Use char because int might match the return type of a GCC
11444    builtin and then its argument prototype would still apply.  */
11445 #ifdef __cplusplus
11446 extern "C"
11447 #endif
11448 char dlopen ();
11449 int
11450 main ()
11451 {
11452 return dlopen ();
11453   ;
11454   return 0;
11455 }
11456 _ACEOF
11457 if ac_fn_c_try_link "$LINENO"; then :
11458   ac_cv_lib_svld_dlopen=yes
11459 else
11460   ac_cv_lib_svld_dlopen=no
11461 fi
11462 rm -f core conftest.err conftest.$ac_objext \
11463     conftest$ac_exeext conftest.$ac_ext
11464 LIBS=$ac_check_lib_save_LIBS
11465 fi
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11467 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11468 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11469   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11470 else
11471   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11472 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11473 if ${ac_cv_lib_dld_dld_link+:} false; then :
11474   $as_echo_n "(cached) " >&6
11475 else
11476   ac_check_lib_save_LIBS=$LIBS
11477 LIBS="-ldld  $LIBS"
11478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11479 /* end confdefs.h.  */
11480
11481 /* Override any GCC internal prototype to avoid an error.
11482    Use char because int might match the return type of a GCC
11483    builtin and then its argument prototype would still apply.  */
11484 #ifdef __cplusplus
11485 extern "C"
11486 #endif
11487 char dld_link ();
11488 int
11489 main ()
11490 {
11491 return dld_link ();
11492   ;
11493   return 0;
11494 }
11495 _ACEOF
11496 if ac_fn_c_try_link "$LINENO"; then :
11497   ac_cv_lib_dld_dld_link=yes
11498 else
11499   ac_cv_lib_dld_dld_link=no
11500 fi
11501 rm -f core conftest.err conftest.$ac_objext \
11502     conftest$ac_exeext conftest.$ac_ext
11503 LIBS=$ac_check_lib_save_LIBS
11504 fi
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11506 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11507 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11508   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11509 fi
11510
11511
11512 fi
11513
11514
11515 fi
11516
11517
11518 fi
11519
11520
11521 fi
11522
11523
11524 fi
11525
11526     ;;
11527   esac
11528
11529   if test "x$lt_cv_dlopen" != xno; then
11530     enable_dlopen=yes
11531   else
11532     enable_dlopen=no
11533   fi
11534
11535   case $lt_cv_dlopen in
11536   dlopen)
11537     save_CPPFLAGS="$CPPFLAGS"
11538     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11539
11540     save_LDFLAGS="$LDFLAGS"
11541     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11542
11543     save_LIBS="$LIBS"
11544     LIBS="$lt_cv_dlopen_libs $LIBS"
11545
11546     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11547 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11548 if ${lt_cv_dlopen_self+:} false; then :
11549   $as_echo_n "(cached) " >&6
11550 else
11551           if test "$cross_compiling" = yes; then :
11552   lt_cv_dlopen_self=cross
11553 else
11554   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11555   lt_status=$lt_dlunknown
11556   cat > conftest.$ac_ext <<_LT_EOF
11557 #line $LINENO "configure"
11558 #include "confdefs.h"
11559
11560 #if HAVE_DLFCN_H
11561 #include <dlfcn.h>
11562 #endif
11563
11564 #include <stdio.h>
11565
11566 #ifdef RTLD_GLOBAL
11567 #  define LT_DLGLOBAL           RTLD_GLOBAL
11568 #else
11569 #  ifdef DL_GLOBAL
11570 #    define LT_DLGLOBAL         DL_GLOBAL
11571 #  else
11572 #    define LT_DLGLOBAL         0
11573 #  endif
11574 #endif
11575
11576 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11577    find out it does not work in some platform. */
11578 #ifndef LT_DLLAZY_OR_NOW
11579 #  ifdef RTLD_LAZY
11580 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11581 #  else
11582 #    ifdef DL_LAZY
11583 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11584 #    else
11585 #      ifdef RTLD_NOW
11586 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11587 #      else
11588 #        ifdef DL_NOW
11589 #          define LT_DLLAZY_OR_NOW      DL_NOW
11590 #        else
11591 #          define LT_DLLAZY_OR_NOW      0
11592 #        endif
11593 #      endif
11594 #    endif
11595 #  endif
11596 #endif
11597
11598 /* When -fvisbility=hidden is used, assume the code has been annotated
11599    correspondingly for the symbols needed.  */
11600 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11601 int fnord () __attribute__((visibility("default")));
11602 #endif
11603
11604 int fnord () { return 42; }
11605 int main ()
11606 {
11607   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11608   int status = $lt_dlunknown;
11609
11610   if (self)
11611     {
11612       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11613       else
11614         {
11615           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11616           else puts (dlerror ());
11617         }
11618       /* dlclose (self); */
11619     }
11620   else
11621     puts (dlerror ());
11622
11623   return status;
11624 }
11625 _LT_EOF
11626   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11627   (eval $ac_link) 2>&5
11628   ac_status=$?
11629   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11630   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11631     (./conftest; exit; ) >&5 2>/dev/null
11632     lt_status=$?
11633     case x$lt_status in
11634       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11635       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11636       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11637     esac
11638   else :
11639     # compilation failed
11640     lt_cv_dlopen_self=no
11641   fi
11642 fi
11643 rm -fr conftest*
11644
11645
11646 fi
11647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11648 $as_echo "$lt_cv_dlopen_self" >&6; }
11649
11650     if test "x$lt_cv_dlopen_self" = xyes; then
11651       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11652       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11653 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11654 if ${lt_cv_dlopen_self_static+:} false; then :
11655   $as_echo_n "(cached) " >&6
11656 else
11657           if test "$cross_compiling" = yes; then :
11658   lt_cv_dlopen_self_static=cross
11659 else
11660   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11661   lt_status=$lt_dlunknown
11662   cat > conftest.$ac_ext <<_LT_EOF
11663 #line $LINENO "configure"
11664 #include "confdefs.h"
11665
11666 #if HAVE_DLFCN_H
11667 #include <dlfcn.h>
11668 #endif
11669
11670 #include <stdio.h>
11671
11672 #ifdef RTLD_GLOBAL
11673 #  define LT_DLGLOBAL           RTLD_GLOBAL
11674 #else
11675 #  ifdef DL_GLOBAL
11676 #    define LT_DLGLOBAL         DL_GLOBAL
11677 #  else
11678 #    define LT_DLGLOBAL         0
11679 #  endif
11680 #endif
11681
11682 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11683    find out it does not work in some platform. */
11684 #ifndef LT_DLLAZY_OR_NOW
11685 #  ifdef RTLD_LAZY
11686 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11687 #  else
11688 #    ifdef DL_LAZY
11689 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11690 #    else
11691 #      ifdef RTLD_NOW
11692 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11693 #      else
11694 #        ifdef DL_NOW
11695 #          define LT_DLLAZY_OR_NOW      DL_NOW
11696 #        else
11697 #          define LT_DLLAZY_OR_NOW      0
11698 #        endif
11699 #      endif
11700 #    endif
11701 #  endif
11702 #endif
11703
11704 /* When -fvisbility=hidden is used, assume the code has been annotated
11705    correspondingly for the symbols needed.  */
11706 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11707 int fnord () __attribute__((visibility("default")));
11708 #endif
11709
11710 int fnord () { return 42; }
11711 int main ()
11712 {
11713   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11714   int status = $lt_dlunknown;
11715
11716   if (self)
11717     {
11718       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11719       else
11720         {
11721           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11722           else puts (dlerror ());
11723         }
11724       /* dlclose (self); */
11725     }
11726   else
11727     puts (dlerror ());
11728
11729   return status;
11730 }
11731 _LT_EOF
11732   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11733   (eval $ac_link) 2>&5
11734   ac_status=$?
11735   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11736   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11737     (./conftest; exit; ) >&5 2>/dev/null
11738     lt_status=$?
11739     case x$lt_status in
11740       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11741       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11742       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11743     esac
11744   else :
11745     # compilation failed
11746     lt_cv_dlopen_self_static=no
11747   fi
11748 fi
11749 rm -fr conftest*
11750
11751
11752 fi
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11754 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11755     fi
11756
11757     CPPFLAGS="$save_CPPFLAGS"
11758     LDFLAGS="$save_LDFLAGS"
11759     LIBS="$save_LIBS"
11760     ;;
11761   esac
11762
11763   case $lt_cv_dlopen_self in
11764   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11765   *) enable_dlopen_self=unknown ;;
11766   esac
11767
11768   case $lt_cv_dlopen_self_static in
11769   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11770   *) enable_dlopen_self_static=unknown ;;
11771   esac
11772 fi
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790 striplib=
11791 old_striplib=
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11793 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11794 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11795   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11796   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11798 $as_echo "yes" >&6; }
11799 else
11800 # FIXME - insert some real tests, host_os isn't really good enough
11801   case $host_os in
11802   darwin*)
11803     if test -n "$STRIP" ; then
11804       striplib="$STRIP -x"
11805       old_striplib="$STRIP -S"
11806       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11807 $as_echo "yes" >&6; }
11808     else
11809       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11810 $as_echo "no" >&6; }
11811     fi
11812     ;;
11813   *)
11814     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11815 $as_echo "no" >&6; }
11816     ;;
11817   esac
11818 fi
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831   # Report which library types will actually be built
11832   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11833 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11835 $as_echo "$can_build_shared" >&6; }
11836
11837   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11838 $as_echo_n "checking whether to build shared libraries... " >&6; }
11839   test "$can_build_shared" = "no" && enable_shared=no
11840
11841   # On AIX, shared libraries and static libraries use the same namespace, and
11842   # are all built from PIC.
11843   case $host_os in
11844   aix3*)
11845     test "$enable_shared" = yes && enable_static=no
11846     if test -n "$RANLIB"; then
11847       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11848       postinstall_cmds='$RANLIB $lib'
11849     fi
11850     ;;
11851
11852   aix[4-9]*)
11853     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11854       test "$enable_shared" = yes && enable_static=no
11855     fi
11856     ;;
11857   esac
11858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11859 $as_echo "$enable_shared" >&6; }
11860
11861   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11862 $as_echo_n "checking whether to build static libraries... " >&6; }
11863   # Make sure either enable_shared or enable_static is yes.
11864   test "$enable_shared" = yes || enable_static=yes
11865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11866 $as_echo "$enable_static" >&6; }
11867
11868
11869
11870
11871 fi
11872 ac_ext=c
11873 ac_cpp='$CPP $CPPFLAGS'
11874 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11875 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11876 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11877
11878 CC="$lt_save_CC"
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894         ac_config_commands="$ac_config_commands libtool"
11895
11896
11897
11898
11899 # Only expand once:
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11912         if test -n "$ac_tool_prefix"; then
11913   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11914 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11916 $as_echo_n "checking for $ac_word... " >&6; }
11917 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11918   $as_echo_n "(cached) " >&6
11919 else
11920   case $PKG_CONFIG in
11921   [\\/]* | ?:[\\/]*)
11922   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11923   ;;
11924   *)
11925   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11926 for as_dir in $PATH
11927 do
11928   IFS=$as_save_IFS
11929   test -z "$as_dir" && as_dir=.
11930     for ac_exec_ext in '' $ac_executable_extensions; do
11931   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11932     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11933     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11934     break 2
11935   fi
11936 done
11937   done
11938 IFS=$as_save_IFS
11939
11940   ;;
11941 esac
11942 fi
11943 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11944 if test -n "$PKG_CONFIG"; then
11945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11946 $as_echo "$PKG_CONFIG" >&6; }
11947 else
11948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11949 $as_echo "no" >&6; }
11950 fi
11951
11952
11953 fi
11954 if test -z "$ac_cv_path_PKG_CONFIG"; then
11955   ac_pt_PKG_CONFIG=$PKG_CONFIG
11956   # Extract the first word of "pkg-config", so it can be a program name with args.
11957 set dummy pkg-config; ac_word=$2
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11959 $as_echo_n "checking for $ac_word... " >&6; }
11960 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11961   $as_echo_n "(cached) " >&6
11962 else
11963   case $ac_pt_PKG_CONFIG in
11964   [\\/]* | ?:[\\/]*)
11965   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11966   ;;
11967   *)
11968   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11969 for as_dir in $PATH
11970 do
11971   IFS=$as_save_IFS
11972   test -z "$as_dir" && as_dir=.
11973     for ac_exec_ext in '' $ac_executable_extensions; do
11974   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11975     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11976     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11977     break 2
11978   fi
11979 done
11980   done
11981 IFS=$as_save_IFS
11982
11983   ;;
11984 esac
11985 fi
11986 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11987 if test -n "$ac_pt_PKG_CONFIG"; then
11988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11989 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11990 else
11991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11992 $as_echo "no" >&6; }
11993 fi
11994
11995   if test "x$ac_pt_PKG_CONFIG" = x; then
11996     PKG_CONFIG=""
11997   else
11998     case $cross_compiling:$ac_tool_warned in
11999 yes:)
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12001 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12002 ac_tool_warned=yes ;;
12003 esac
12004     PKG_CONFIG=$ac_pt_PKG_CONFIG
12005   fi
12006 else
12007   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12008 fi
12009
12010 fi
12011 if test -n "$PKG_CONFIG"; then
12012         _pkg_min_version=0.9.0
12013         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12014 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12015         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12016                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12017 $as_echo "yes" >&6; }
12018         else
12019                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12020 $as_echo "no" >&6; }
12021                 PKG_CONFIG=""
12022         fi
12023 fi
12024
12025 pkg_failed=no
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTest" >&5
12027 $as_echo_n "checking for GTest... " >&6; }
12028
12029 if test -n "$GTest_CFLAGS"; then
12030     pkg_cv_GTest_CFLAGS="$GTest_CFLAGS"
12031  elif test -n "$PKG_CONFIG"; then
12032     if test -n "$PKG_CONFIG" && \
12033     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.16\""; } >&5
12034   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.16") 2>&5
12035   ac_status=$?
12036   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12037   test $ac_status = 0; }; then
12038   pkg_cv_GTest_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.16" 2>/dev/null`
12039                       test "x$?" != "x0" && pkg_failed=yes
12040 else
12041   pkg_failed=yes
12042 fi
12043  else
12044     pkg_failed=untried
12045 fi
12046 if test -n "$GTest_LIBS"; then
12047     pkg_cv_GTest_LIBS="$GTest_LIBS"
12048  elif test -n "$PKG_CONFIG"; then
12049     if test -n "$PKG_CONFIG" && \
12050     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.16\""; } >&5
12051   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.16") 2>&5
12052   ac_status=$?
12053   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12054   test $ac_status = 0; }; then
12055   pkg_cv_GTest_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.16" 2>/dev/null`
12056                       test "x$?" != "x0" && pkg_failed=yes
12057 else
12058   pkg_failed=yes
12059 fi
12060  else
12061     pkg_failed=untried
12062 fi
12063
12064
12065
12066 if test $pkg_failed = yes; then
12067         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12068 $as_echo "no" >&6; }
12069
12070 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12071         _pkg_short_errors_supported=yes
12072 else
12073         _pkg_short_errors_supported=no
12074 fi
12075         if test $_pkg_short_errors_supported = yes; then
12076                 GTest_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.16" 2>&1`
12077         else
12078                 GTest_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.16" 2>&1`
12079         fi
12080         # Put the nasty error message in config.log where it belongs
12081         echo "$GTest_PKG_ERRORS" >&5
12082
12083         gtest=no
12084 elif test $pkg_failed = untried; then
12085         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12086 $as_echo "no" >&6; }
12087         gtest=no
12088 else
12089         GTest_CFLAGS=$pkg_cv_GTest_CFLAGS
12090         GTest_LIBS=$pkg_cv_GTest_LIBS
12091         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12092 $as_echo "yes" >&6; }
12093         gtest=yes
12094 fi
12095  if test x$gtest = xyes; then
12096   HAVE_GTEST_TRUE=
12097   HAVE_GTEST_FALSE='#'
12098 else
12099   HAVE_GTEST_TRUE='#'
12100   HAVE_GTEST_FALSE=
12101 fi
12102
12103
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking operating system" >&5
12105 $as_echo_n "checking operating system... " >&6; }
12106 case "$target_os" in
12107      mingw*|cygwin*)
12108         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Win32" >&5
12109 $as_echo "Win32" >&6; }
12110         UUID=uuid
12111         ;;
12112      darwin*)
12113         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin" >&5
12114 $as_echo "Darwin" >&6; }
12115         UUID=
12116         ;;
12117      *)
12118         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_os" >&5
12119 $as_echo "$target_os" >&6; }
12120         UUID=uuid
12121         ;;
12122 esac
12123
12124
12125 pkg_failed=no
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGUPNP" >&5
12127 $as_echo_n "checking for LIBGUPNP... " >&6; }
12128
12129 if test -n "$LIBGUPNP_CFLAGS"; then
12130     pkg_cv_LIBGUPNP_CFLAGS="$LIBGUPNP_CFLAGS"
12131  elif test -n "$PKG_CONFIG"; then
12132     if test -n "$PKG_CONFIG" && \
12133     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.24.0 \\
12134                             gio-2.0 \\
12135                             gmodule-2.0 \\
12136                             gssdp-1.0 >= 0.11.2 \\
12137                             libsoup-2.4 >= 2.28.2 \\
12138                             libxml-2.0 \\
12139                             \$UUID\""; } >&5
12140   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.24.0 \
12141                             gio-2.0 \
12142                             gmodule-2.0 \
12143                             gssdp-1.0 >= 0.11.2 \
12144                             libsoup-2.4 >= 2.28.2 \
12145                             libxml-2.0 \
12146                             $UUID") 2>&5
12147   ac_status=$?
12148   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12149   test $ac_status = 0; }; then
12150   pkg_cv_LIBGUPNP_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.24.0 \
12151                             gio-2.0 \
12152                             gmodule-2.0 \
12153                             gssdp-1.0 >= 0.11.2 \
12154                             libsoup-2.4 >= 2.28.2 \
12155                             libxml-2.0 \
12156                             $UUID" 2>/dev/null`
12157                       test "x$?" != "x0" && pkg_failed=yes
12158 else
12159   pkg_failed=yes
12160 fi
12161  else
12162     pkg_failed=untried
12163 fi
12164 if test -n "$LIBGUPNP_LIBS"; then
12165     pkg_cv_LIBGUPNP_LIBS="$LIBGUPNP_LIBS"
12166  elif test -n "$PKG_CONFIG"; then
12167     if test -n "$PKG_CONFIG" && \
12168     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.24.0 \\
12169                             gio-2.0 \\
12170                             gmodule-2.0 \\
12171                             gssdp-1.0 >= 0.11.2 \\
12172                             libsoup-2.4 >= 2.28.2 \\
12173                             libxml-2.0 \\
12174                             \$UUID\""; } >&5
12175   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.24.0 \
12176                             gio-2.0 \
12177                             gmodule-2.0 \
12178                             gssdp-1.0 >= 0.11.2 \
12179                             libsoup-2.4 >= 2.28.2 \
12180                             libxml-2.0 \
12181                             $UUID") 2>&5
12182   ac_status=$?
12183   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12184   test $ac_status = 0; }; then
12185   pkg_cv_LIBGUPNP_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.24.0 \
12186                             gio-2.0 \
12187                             gmodule-2.0 \
12188                             gssdp-1.0 >= 0.11.2 \
12189                             libsoup-2.4 >= 2.28.2 \
12190                             libxml-2.0 \
12191                             $UUID" 2>/dev/null`
12192                       test "x$?" != "x0" && pkg_failed=yes
12193 else
12194   pkg_failed=yes
12195 fi
12196  else
12197     pkg_failed=untried
12198 fi
12199
12200
12201
12202 if test $pkg_failed = yes; then
12203         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12204 $as_echo "no" >&6; }
12205
12206 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12207         _pkg_short_errors_supported=yes
12208 else
12209         _pkg_short_errors_supported=no
12210 fi
12211         if test $_pkg_short_errors_supported = yes; then
12212                 LIBGUPNP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.24.0 \
12213                             gio-2.0 \
12214                             gmodule-2.0 \
12215                             gssdp-1.0 >= 0.11.2 \
12216                             libsoup-2.4 >= 2.28.2 \
12217                             libxml-2.0 \
12218                             $UUID" 2>&1`
12219         else
12220                 LIBGUPNP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.24.0 \
12221                             gio-2.0 \
12222                             gmodule-2.0 \
12223                             gssdp-1.0 >= 0.11.2 \
12224                             libsoup-2.4 >= 2.28.2 \
12225                             libxml-2.0 \
12226                             $UUID" 2>&1`
12227         fi
12228         # Put the nasty error message in config.log where it belongs
12229         echo "$LIBGUPNP_PKG_ERRORS" >&5
12230
12231         as_fn_error $? "Package requirements (glib-2.0 >= 2.24.0 \
12232                             gio-2.0 \
12233                             gmodule-2.0 \
12234                             gssdp-1.0 >= 0.11.2 \
12235                             libsoup-2.4 >= 2.28.2 \
12236                             libxml-2.0 \
12237                             $UUID) were not met:
12238
12239 $LIBGUPNP_PKG_ERRORS
12240
12241 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12242 installed software in a non-standard prefix.
12243
12244 Alternatively, you may set the environment variables LIBGUPNP_CFLAGS
12245 and LIBGUPNP_LIBS to avoid the need to call pkg-config.
12246 See the pkg-config man page for more details." "$LINENO" 5
12247 elif test $pkg_failed = untried; then
12248         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12249 $as_echo "no" >&6; }
12250         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12251 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12252 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
12253 is in your PATH or set the PKG_CONFIG environment variable to the full
12254 path to pkg-config.
12255
12256 Alternatively, you may set the environment variables LIBGUPNP_CFLAGS
12257 and LIBGUPNP_LIBS to avoid the need to call pkg-config.
12258 See the pkg-config man page for more details.
12259
12260 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12261 See \`config.log' for more details" "$LINENO" 5; }
12262 else
12263         LIBGUPNP_CFLAGS=$pkg_cv_LIBGUPNP_CFLAGS
12264         LIBGUPNP_LIBS=$pkg_cv_LIBGUPNP_LIBS
12265         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12266 $as_echo "yes" >&6; }
12267
12268 fi
12269
12270
12271 pkg_failed=no
12272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTHREAD" >&5
12273 $as_echo_n "checking for GTHREAD... " >&6; }
12274
12275 if test -n "$GTHREAD_CFLAGS"; then
12276     pkg_cv_GTHREAD_CFLAGS="$GTHREAD_CFLAGS"
12277  elif test -n "$PKG_CONFIG"; then
12278     if test -n "$PKG_CONFIG" && \
12279     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gthread-2.0\""; } >&5
12280   ($PKG_CONFIG --exists --print-errors "gthread-2.0") 2>&5
12281   ac_status=$?
12282   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12283   test $ac_status = 0; }; then
12284   pkg_cv_GTHREAD_CFLAGS=`$PKG_CONFIG --cflags "gthread-2.0" 2>/dev/null`
12285                       test "x$?" != "x0" && pkg_failed=yes
12286 else
12287   pkg_failed=yes
12288 fi
12289  else
12290     pkg_failed=untried
12291 fi
12292 if test -n "$GTHREAD_LIBS"; then
12293     pkg_cv_GTHREAD_LIBS="$GTHREAD_LIBS"
12294  elif test -n "$PKG_CONFIG"; then
12295     if test -n "$PKG_CONFIG" && \
12296     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gthread-2.0\""; } >&5
12297   ($PKG_CONFIG --exists --print-errors "gthread-2.0") 2>&5
12298   ac_status=$?
12299   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12300   test $ac_status = 0; }; then
12301   pkg_cv_GTHREAD_LIBS=`$PKG_CONFIG --libs "gthread-2.0" 2>/dev/null`
12302                       test "x$?" != "x0" && pkg_failed=yes
12303 else
12304   pkg_failed=yes
12305 fi
12306  else
12307     pkg_failed=untried
12308 fi
12309
12310
12311
12312 if test $pkg_failed = yes; then
12313         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12314 $as_echo "no" >&6; }
12315
12316 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12317         _pkg_short_errors_supported=yes
12318 else
12319         _pkg_short_errors_supported=no
12320 fi
12321         if test $_pkg_short_errors_supported = yes; then
12322                 GTHREAD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gthread-2.0" 2>&1`
12323         else
12324                 GTHREAD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gthread-2.0" 2>&1`
12325         fi
12326         # Put the nasty error message in config.log where it belongs
12327         echo "$GTHREAD_PKG_ERRORS" >&5
12328
12329         as_fn_error $? "Package requirements (gthread-2.0) were not met:
12330
12331 $GTHREAD_PKG_ERRORS
12332
12333 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12334 installed software in a non-standard prefix.
12335
12336 Alternatively, you may set the environment variables GTHREAD_CFLAGS
12337 and GTHREAD_LIBS to avoid the need to call pkg-config.
12338 See the pkg-config man page for more details." "$LINENO" 5
12339 elif test $pkg_failed = untried; then
12340         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12341 $as_echo "no" >&6; }
12342         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12343 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12344 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
12345 is in your PATH or set the PKG_CONFIG environment variable to the full
12346 path to pkg-config.
12347
12348 Alternatively, you may set the environment variables GTHREAD_CFLAGS
12349 and GTHREAD_LIBS to avoid the need to call pkg-config.
12350 See the pkg-config man page for more details.
12351
12352 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12353 See \`config.log' for more details" "$LINENO" 5; }
12354 else
12355         GTHREAD_CFLAGS=$pkg_cv_GTHREAD_CFLAGS
12356         GTHREAD_LIBS=$pkg_cv_GTHREAD_LIBS
12357         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12358 $as_echo "yes" >&6; }
12359
12360 fi
12361
12362
12363 # Check whether --with-context_manager was given.
12364 if test "${with_context_manager+set}" = set; then :
12365   withval=$with_context_manager;
12366 else
12367   with_context_manager="none"
12368 fi
12369
12370
12371 if test "x$with_context_manager" = "xnone"; then
12372         case "$target_os" in
12373         linux*)
12374                 with_context_manager="linux"
12375                 ;;
12376         *)
12377                 with_context_manager="unix"
12378                 ;;
12379         esac
12380 fi
12381
12382 for ac_header in sys/socket.h linux/rtnetlink.h
12383 do :
12384   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12385 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " #ifdef HAVE_SYS_SOCKET_H
12386                   #include <sys/socket.h>
12387                   #endif
12388
12389 "
12390 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12391   cat >>confdefs.h <<_ACEOF
12392 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12393 _ACEOF
12394   HAVE_NETLINK=yes
12395 else
12396    HAVE_NETLINK=no
12397 fi
12398
12399 done
12400
12401  if test "x$HAVE_NETLINK" = "xyes"; then
12402   HAVE_NETLINK_TRUE=
12403   HAVE_NETLINK_FALSE='#'
12404 else
12405   HAVE_NETLINK_TRUE='#'
12406   HAVE_NETLINK_FALSE=
12407 fi
12408
12409
12410
12411 for ac_header in linux/wireless.h
12412 do :
12413   ac_fn_c_check_header_compile "$LINENO" "linux/wireless.h" "ac_cv_header_linux_wireless_h" " #ifdef HAVE_SYS_SOCKET_H
12414                   #include <sys/socket.h>
12415                   #endif
12416
12417 "
12418 if test "x$ac_cv_header_linux_wireless_h" = xyes; then :
12419   cat >>confdefs.h <<_ACEOF
12420 #define HAVE_LINUX_WIRELESS_H 1
12421 _ACEOF
12422
12423 fi
12424
12425 done
12426
12427
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Context Manager backend to use" >&5
12429 $as_echo_n "checking Context Manager backend to use... " >&6; }
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_context_manager}" >&5
12431 $as_echo "${with_context_manager}" >&6; }
12432
12433  if test "x$with_context_manager" = "xnetwork-manager"; then
12434   USE_NETWORK_MANAGER_TRUE=
12435   USE_NETWORK_MANAGER_FALSE='#'
12436 else
12437   USE_NETWORK_MANAGER_TRUE='#'
12438   USE_NETWORK_MANAGER_FALSE=
12439 fi
12440
12441 if test "x$with_context_manager" = "xnetwork-manager"; then :
12442
12443 pkg_failed=no
12444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GIO" >&5
12445 $as_echo_n "checking for GIO... " >&6; }
12446
12447 if test -n "$GIO_CFLAGS"; then
12448     pkg_cv_GIO_CFLAGS="$GIO_CFLAGS"
12449  elif test -n "$PKG_CONFIG"; then
12450     if test -n "$PKG_CONFIG" && \
12451     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= 2.26\""; } >&5
12452   ($PKG_CONFIG --exists --print-errors "gio-2.0 >= 2.26") 2>&5
12453   ac_status=$?
12454   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12455   test $ac_status = 0; }; then
12456   pkg_cv_GIO_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 >= 2.26" 2>/dev/null`
12457                       test "x$?" != "x0" && pkg_failed=yes
12458 else
12459   pkg_failed=yes
12460 fi
12461  else
12462     pkg_failed=untried
12463 fi
12464 if test -n "$GIO_LIBS"; then
12465     pkg_cv_GIO_LIBS="$GIO_LIBS"
12466  elif test -n "$PKG_CONFIG"; then
12467     if test -n "$PKG_CONFIG" && \
12468     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= 2.26\""; } >&5
12469   ($PKG_CONFIG --exists --print-errors "gio-2.0 >= 2.26") 2>&5
12470   ac_status=$?
12471   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12472   test $ac_status = 0; }; then
12473   pkg_cv_GIO_LIBS=`$PKG_CONFIG --libs "gio-2.0 >= 2.26" 2>/dev/null`
12474                       test "x$?" != "x0" && pkg_failed=yes
12475 else
12476   pkg_failed=yes
12477 fi
12478  else
12479     pkg_failed=untried
12480 fi
12481
12482
12483
12484 if test $pkg_failed = yes; then
12485         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12486 $as_echo "no" >&6; }
12487
12488 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12489         _pkg_short_errors_supported=yes
12490 else
12491         _pkg_short_errors_supported=no
12492 fi
12493         if test $_pkg_short_errors_supported = yes; then
12494                 GIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gio-2.0 >= 2.26" 2>&1`
12495         else
12496                 GIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gio-2.0 >= 2.26" 2>&1`
12497         fi
12498         # Put the nasty error message in config.log where it belongs
12499         echo "$GIO_PKG_ERRORS" >&5
12500
12501         as_fn_error $? "Package requirements (gio-2.0 >= 2.26) were not met:
12502
12503 $GIO_PKG_ERRORS
12504
12505 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12506 installed software in a non-standard prefix.
12507
12508 Alternatively, you may set the environment variables GIO_CFLAGS
12509 and GIO_LIBS to avoid the need to call pkg-config.
12510 See the pkg-config man page for more details." "$LINENO" 5
12511 elif test $pkg_failed = untried; then
12512         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12513 $as_echo "no" >&6; }
12514         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12515 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12516 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
12517 is in your PATH or set the PKG_CONFIG environment variable to the full
12518 path to pkg-config.
12519
12520 Alternatively, you may set the environment variables GIO_CFLAGS
12521 and GIO_LIBS to avoid the need to call pkg-config.
12522 See the pkg-config man page for more details.
12523
12524 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12525 See \`config.log' for more details" "$LINENO" 5; }
12526 else
12527         GIO_CFLAGS=$pkg_cv_GIO_CFLAGS
12528         GIO_LIBS=$pkg_cv_GIO_LIBS
12529         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12530 $as_echo "yes" >&6; }
12531
12532 fi
12533 fi
12534
12535  if test "x$with_context_manager" = "xconnman"; then
12536   USE_CONNMAN_TRUE=
12537   USE_CONNMAN_FALSE='#'
12538 else
12539   USE_CONNMAN_TRUE='#'
12540   USE_CONNMAN_FALSE=
12541 fi
12542
12543
12544 if test "x$with_context_manager" = "xconnman"; then
12545
12546 pkg_failed=no
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CONNMAN" >&5
12548 $as_echo_n "checking for CONNMAN... " >&6; }
12549
12550 if test -n "$CONNMAN_CFLAGS"; then
12551     pkg_cv_CONNMAN_CFLAGS="$CONNMAN_CFLAGS"
12552  elif test -n "$PKG_CONFIG"; then
12553     if test -n "$PKG_CONFIG" && \
12554     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.28 connman >= 0.80\""; } >&5
12555   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.28 connman >= 0.80") 2>&5
12556   ac_status=$?
12557   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12558   test $ac_status = 0; }; then
12559   pkg_cv_CONNMAN_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.28 connman >= 0.80" 2>/dev/null`
12560                       test "x$?" != "x0" && pkg_failed=yes
12561 else
12562   pkg_failed=yes
12563 fi
12564  else
12565     pkg_failed=untried
12566 fi
12567 if test -n "$CONNMAN_LIBS"; then
12568     pkg_cv_CONNMAN_LIBS="$CONNMAN_LIBS"
12569  elif test -n "$PKG_CONFIG"; then
12570     if test -n "$PKG_CONFIG" && \
12571     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.28 connman >= 0.80\""; } >&5
12572   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.28 connman >= 0.80") 2>&5
12573   ac_status=$?
12574   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12575   test $ac_status = 0; }; then
12576   pkg_cv_CONNMAN_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.28 connman >= 0.80" 2>/dev/null`
12577                       test "x$?" != "x0" && pkg_failed=yes
12578 else
12579   pkg_failed=yes
12580 fi
12581  else
12582     pkg_failed=untried
12583 fi
12584
12585
12586
12587 if test $pkg_failed = yes; then
12588         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12589 $as_echo "no" >&6; }
12590
12591 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12592         _pkg_short_errors_supported=yes
12593 else
12594         _pkg_short_errors_supported=no
12595 fi
12596         if test $_pkg_short_errors_supported = yes; then
12597                 CONNMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.28 connman >= 0.80" 2>&1`
12598         else
12599                 CONNMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.28 connman >= 0.80" 2>&1`
12600         fi
12601         # Put the nasty error message in config.log where it belongs
12602         echo "$CONNMAN_PKG_ERRORS" >&5
12603
12604         as_fn_error $? "Package requirements (glib-2.0 >= 2.28 connman >= 0.80) were not met:
12605
12606 $CONNMAN_PKG_ERRORS
12607
12608 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12609 installed software in a non-standard prefix.
12610
12611 Alternatively, you may set the environment variables CONNMAN_CFLAGS
12612 and CONNMAN_LIBS to avoid the need to call pkg-config.
12613 See the pkg-config man page for more details." "$LINENO" 5
12614 elif test $pkg_failed = untried; then
12615         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12616 $as_echo "no" >&6; }
12617         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12618 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12619 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
12620 is in your PATH or set the PKG_CONFIG environment variable to the full
12621 path to pkg-config.
12622
12623 Alternatively, you may set the environment variables CONNMAN_CFLAGS
12624 and CONNMAN_LIBS to avoid the need to call pkg-config.
12625 See the pkg-config man page for more details.
12626
12627 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12628 See \`config.log' for more details" "$LINENO" 5; }
12629 else
12630         CONNMAN_CFLAGS=$pkg_cv_CONNMAN_CFLAGS
12631         CONNMAN_LIBS=$pkg_cv_CONNMAN_LIBS
12632         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12633 $as_echo "yes" >&6; }
12634
12635 fi
12636 fi
12637
12638 USE_NETLINK=no
12639 if test "x$with_context_manager" = "xlinux"; then :
12640   if test "x$HAVE_NETLINK" = "xno"; then :
12641   { $as_echo "$as_me:${as_lineno-$LINENO}: No rtnetlink found, falling back to static context manager" >&5
12642 $as_echo "$as_me: No rtnetlink found, falling back to static context manager" >&6;}
12643 else
12644   USE_NETLINK=yes
12645 fi
12646
12647 fi
12648
12649  if test "x$USE_NETLINK" = "xyes"; then
12650   USE_NETLINK_TRUE=
12651   USE_NETLINK_FALSE='#'
12652 else
12653   USE_NETLINK_TRUE='#'
12654   USE_NETLINK_FALSE=
12655 fi
12656
12657
12658
12659 # glib-genmarshal
12660 GLIB_GENMARSHAL=`pkg-config --variable=glib_genmarshal glib-2.0`
12661
12662
12663 # Debugging
12664 # Check whether --enable-debug was given.
12665 if test "${enable_debug+set}" = set; then :
12666   enableval=$enable_debug;
12667 else
12668   enable_debug=no
12669 fi
12670
12671 if test "x$enable_debug" = "xyes"; then
12672         CFLAGS="$CFLAGS -g -Wall -Werror"
12673 fi
12674
12675
12676
12677
12678                 # Check whether --enable-introspection was given.
12679 if test "${enable_introspection+set}" = set; then :
12680   enableval=$enable_introspection;
12681 else
12682   enable_introspection=auto
12683 fi
12684
12685
12686     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-introspection" >&5
12687 $as_echo_n "checking for gobject-introspection... " >&6; }
12688
12689         case $enable_introspection in #(
12690   no) :
12691             found_introspection="no (disabled, use --enable-introspection to enable)"
12692      ;; #(
12693       yes) :
12694             if test -n "$PKG_CONFIG" && \
12695     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0\""; } >&5
12696   ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0") 2>&5
12697   ac_status=$?
12698   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12699   test $ac_status = 0; }; then
12700   :
12701 else
12702   as_fn_error $? "gobject-introspection-1.0 is not installed" "$LINENO" 5
12703 fi
12704         if test -n "$PKG_CONFIG" && \
12705     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 0.6.4\""; } >&5
12706   ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 0.6.4") 2>&5
12707   ac_status=$?
12708   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12709   test $ac_status = 0; }; then
12710   found_introspection=yes
12711 else
12712   as_fn_error $? "You need to have gobject-introspection >= 0.6.4 installed to build gupnp" "$LINENO" 5
12713 fi
12714      ;; #(
12715       auto) :
12716             if test -n "$PKG_CONFIG" && \
12717     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 0.6.4\""; } >&5
12718   ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 0.6.4") 2>&5
12719   ac_status=$?
12720   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12721   test $ac_status = 0; }; then
12722   found_introspection=yes
12723 else
12724   found_introspection=no
12725 fi
12726      ;; #(
12727   *) :
12728                 as_fn_error $? "invalid argument passed to --enable-introspection, should be one of [no/auto/yes]" "$LINENO" 5
12729      ;;
12730 esac
12731     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_introspection" >&5
12732 $as_echo "$found_introspection" >&6; }
12733
12734     INTROSPECTION_SCANNER=
12735     INTROSPECTION_COMPILER=
12736     INTROSPECTION_GENERATE=
12737     INTROSPECTION_GIRDIR=
12738     INTROSPECTION_TYPELIBDIR=
12739     if test "x$found_introspection" = "xyes"; then
12740        INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
12741        INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
12742        INTROSPECTION_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0`
12743        INTROSPECTION_GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0`
12744        INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)"
12745        INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0`
12746        INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0`
12747        INTROSPECTION_MAKEFILE=`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection
12748     fi
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758      if test "x$found_introspection" = "xyes"; then
12759   HAVE_INTROSPECTION_TRUE=
12760   HAVE_INTROSPECTION_FALSE='#'
12761 else
12762   HAVE_INTROSPECTION_TRUE='#'
12763   HAVE_INTROSPECTION_FALSE=
12764 fi
12765
12766
12767
12768
12769 # Gtk-doc
12770
12771
12772
12773     # Extract the first word of "gtkdoc-check", so it can be a program name with args.
12774 set dummy gtkdoc-check; ac_word=$2
12775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12776 $as_echo_n "checking for $ac_word... " >&6; }
12777 if ${ac_cv_path_GTKDOC_CHECK+:} false; then :
12778   $as_echo_n "(cached) " >&6
12779 else
12780   case $GTKDOC_CHECK in
12781   [\\/]* | ?:[\\/]*)
12782   ac_cv_path_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test with a path.
12783   ;;
12784   *)
12785   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12786 for as_dir in $PATH
12787 do
12788   IFS=$as_save_IFS
12789   test -z "$as_dir" && as_dir=.
12790     for ac_exec_ext in '' $ac_executable_extensions; do
12791   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12792     ac_cv_path_GTKDOC_CHECK="$as_dir/$ac_word$ac_exec_ext"
12793     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12794     break 2
12795   fi
12796 done
12797   done
12798 IFS=$as_save_IFS
12799
12800   ;;
12801 esac
12802 fi
12803 GTKDOC_CHECK=$ac_cv_path_GTKDOC_CHECK
12804 if test -n "$GTKDOC_CHECK"; then
12805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
12806 $as_echo "$GTKDOC_CHECK" >&6; }
12807 else
12808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12809 $as_echo "no" >&6; }
12810 fi
12811
12812
12813   for ac_prog in gtkdoc-rebase
12814 do
12815   # Extract the first word of "$ac_prog", so it can be a program name with args.
12816 set dummy $ac_prog; ac_word=$2
12817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12818 $as_echo_n "checking for $ac_word... " >&6; }
12819 if ${ac_cv_path_GTKDOC_REBASE+:} false; then :
12820   $as_echo_n "(cached) " >&6
12821 else
12822   case $GTKDOC_REBASE in
12823   [\\/]* | ?:[\\/]*)
12824   ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path.
12825   ;;
12826   *)
12827   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12828 for as_dir in $PATH
12829 do
12830   IFS=$as_save_IFS
12831   test -z "$as_dir" && as_dir=.
12832     for ac_exec_ext in '' $ac_executable_extensions; do
12833   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12834     ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext"
12835     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12836     break 2
12837   fi
12838 done
12839   done
12840 IFS=$as_save_IFS
12841
12842   ;;
12843 esac
12844 fi
12845 GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE
12846 if test -n "$GTKDOC_REBASE"; then
12847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5
12848 $as_echo "$GTKDOC_REBASE" >&6; }
12849 else
12850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12851 $as_echo "no" >&6; }
12852 fi
12853
12854
12855   test -n "$GTKDOC_REBASE" && break
12856 done
12857 test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true"
12858
12859   # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args.
12860 set dummy gtkdoc-mkpdf; ac_word=$2
12861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12862 $as_echo_n "checking for $ac_word... " >&6; }
12863 if ${ac_cv_path_GTKDOC_MKPDF+:} false; then :
12864   $as_echo_n "(cached) " >&6
12865 else
12866   case $GTKDOC_MKPDF in
12867   [\\/]* | ?:[\\/]*)
12868   ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path.
12869   ;;
12870   *)
12871   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12872 for as_dir in $PATH
12873 do
12874   IFS=$as_save_IFS
12875   test -z "$as_dir" && as_dir=.
12876     for ac_exec_ext in '' $ac_executable_extensions; do
12877   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12878     ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext"
12879     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12880     break 2
12881   fi
12882 done
12883   done
12884 IFS=$as_save_IFS
12885
12886   ;;
12887 esac
12888 fi
12889 GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF
12890 if test -n "$GTKDOC_MKPDF"; then
12891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5
12892 $as_echo "$GTKDOC_MKPDF" >&6; }
12893 else
12894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12895 $as_echo "no" >&6; }
12896 fi
12897
12898
12899
12900
12901 # Check whether --with-html-dir was given.
12902 if test "${with_html_dir+set}" = set; then :
12903   withval=$with_html_dir;
12904 else
12905   with_html_dir='${datadir}/gtk-doc/html'
12906 fi
12907
12908   HTML_DIR="$with_html_dir"
12909
12910
12911     # Check whether --enable-gtk-doc was given.
12912 if test "${enable_gtk_doc+set}" = set; then :
12913   enableval=$enable_gtk_doc;
12914 else
12915   enable_gtk_doc=no
12916 fi
12917
12918
12919   if test x$enable_gtk_doc = xyes; then
12920     if test -n "$PKG_CONFIG" && \
12921     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-doc >= 1.0\""; } >&5
12922   ($PKG_CONFIG --exists --print-errors "gtk-doc >= 1.0") 2>&5
12923   ac_status=$?
12924   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12925   test $ac_status = 0; }; then
12926   :
12927 else
12928   as_fn_error $? "You need to have gtk-doc >= 1.0 installed to build $PACKAGE_NAME" "$LINENO" 5
12929 fi
12930         if test "x$PACKAGE_NAME" != "xglib"; then
12931
12932 pkg_failed=no
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTKDOC_DEPS" >&5
12934 $as_echo_n "checking for GTKDOC_DEPS... " >&6; }
12935
12936 if test -n "$GTKDOC_DEPS_CFLAGS"; then
12937     pkg_cv_GTKDOC_DEPS_CFLAGS="$GTKDOC_DEPS_CFLAGS"
12938  elif test -n "$PKG_CONFIG"; then
12939     if test -n "$PKG_CONFIG" && \
12940     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0\""; } >&5
12941   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0") 2>&5
12942   ac_status=$?
12943   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12944   test $ac_status = 0; }; then
12945   pkg_cv_GTKDOC_DEPS_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>/dev/null`
12946                       test "x$?" != "x0" && pkg_failed=yes
12947 else
12948   pkg_failed=yes
12949 fi
12950  else
12951     pkg_failed=untried
12952 fi
12953 if test -n "$GTKDOC_DEPS_LIBS"; then
12954     pkg_cv_GTKDOC_DEPS_LIBS="$GTKDOC_DEPS_LIBS"
12955  elif test -n "$PKG_CONFIG"; then
12956     if test -n "$PKG_CONFIG" && \
12957     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0\""; } >&5
12958   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0") 2>&5
12959   ac_status=$?
12960   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12961   test $ac_status = 0; }; then
12962   pkg_cv_GTKDOC_DEPS_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>/dev/null`
12963                       test "x$?" != "x0" && pkg_failed=yes
12964 else
12965   pkg_failed=yes
12966 fi
12967  else
12968     pkg_failed=untried
12969 fi
12970
12971
12972
12973 if test $pkg_failed = yes; then
12974         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12975 $as_echo "no" >&6; }
12976
12977 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12978         _pkg_short_errors_supported=yes
12979 else
12980         _pkg_short_errors_supported=no
12981 fi
12982         if test $_pkg_short_errors_supported = yes; then
12983                 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>&1`
12984         else
12985                 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>&1`
12986         fi
12987         # Put the nasty error message in config.log where it belongs
12988         echo "$GTKDOC_DEPS_PKG_ERRORS" >&5
12989
12990         as_fn_error $? "Package requirements (glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0) were not met:
12991
12992 $GTKDOC_DEPS_PKG_ERRORS
12993
12994 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12995 installed software in a non-standard prefix.
12996
12997 Alternatively, you may set the environment variables GTKDOC_DEPS_CFLAGS
12998 and GTKDOC_DEPS_LIBS to avoid the need to call pkg-config.
12999 See the pkg-config man page for more details." "$LINENO" 5
13000 elif test $pkg_failed = untried; then
13001         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13002 $as_echo "no" >&6; }
13003         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13004 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13005 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
13006 is in your PATH or set the PKG_CONFIG environment variable to the full
13007 path to pkg-config.
13008
13009 Alternatively, you may set the environment variables GTKDOC_DEPS_CFLAGS
13010 and GTKDOC_DEPS_LIBS to avoid the need to call pkg-config.
13011 See the pkg-config man page for more details.
13012
13013 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13014 See \`config.log' for more details" "$LINENO" 5; }
13015 else
13016         GTKDOC_DEPS_CFLAGS=$pkg_cv_GTKDOC_DEPS_CFLAGS
13017         GTKDOC_DEPS_LIBS=$pkg_cv_GTKDOC_DEPS_LIBS
13018         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13019 $as_echo "yes" >&6; }
13020
13021 fi
13022     fi
13023   fi
13024
13025   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
13026 $as_echo_n "checking whether to build gtk-doc documentation... " >&6; }
13027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
13028 $as_echo "$enable_gtk_doc" >&6; }
13029
13030     # Check whether --enable-gtk-doc-html was given.
13031 if test "${enable_gtk_doc_html+set}" = set; then :
13032   enableval=$enable_gtk_doc_html;
13033 else
13034   enable_gtk_doc_html=yes
13035 fi
13036
13037     # Check whether --enable-gtk-doc-pdf was given.
13038 if test "${enable_gtk_doc_pdf+set}" = set; then :
13039   enableval=$enable_gtk_doc_pdf;
13040 else
13041   enable_gtk_doc_pdf=no
13042 fi
13043
13044
13045   if test -z "$GTKDOC_MKPDF"; then
13046     enable_gtk_doc_pdf=no
13047   fi
13048
13049
13050    if test x$enable_gtk_doc = xyes; then
13051   ENABLE_GTK_DOC_TRUE=
13052   ENABLE_GTK_DOC_FALSE='#'
13053 else
13054   ENABLE_GTK_DOC_TRUE='#'
13055   ENABLE_GTK_DOC_FALSE=
13056 fi
13057
13058    if test x$enable_gtk_doc_html = xyes; then
13059   GTK_DOC_BUILD_HTML_TRUE=
13060   GTK_DOC_BUILD_HTML_FALSE='#'
13061 else
13062   GTK_DOC_BUILD_HTML_TRUE='#'
13063   GTK_DOC_BUILD_HTML_FALSE=
13064 fi
13065
13066    if test x$enable_gtk_doc_pdf = xyes; then
13067   GTK_DOC_BUILD_PDF_TRUE=
13068   GTK_DOC_BUILD_PDF_FALSE='#'
13069 else
13070   GTK_DOC_BUILD_PDF_TRUE='#'
13071   GTK_DOC_BUILD_PDF_FALSE=
13072 fi
13073
13074    if test -n "$LIBTOOL"; then
13075   GTK_DOC_USE_LIBTOOL_TRUE=
13076   GTK_DOC_USE_LIBTOOL_FALSE='#'
13077 else
13078   GTK_DOC_USE_LIBTOOL_TRUE='#'
13079   GTK_DOC_USE_LIBTOOL_FALSE=
13080 fi
13081
13082    if test -n "$GTKDOC_REBASE"; then
13083   GTK_DOC_USE_REBASE_TRUE=
13084   GTK_DOC_USE_REBASE_FALSE='#'
13085 else
13086   GTK_DOC_USE_REBASE_TRUE='#'
13087   GTK_DOC_USE_REBASE_FALSE=
13088 fi
13089
13090
13091
13092 ac_config_files="$ac_config_files Makefile libgupnp/Makefile examples/Makefile tools/Makefile tests/Makefile tests/gtest/Makefile doc/Makefile doc/version.xml gupnp-1.0.pc gupnp-1.0-uninstalled.pc"
13093
13094 cat >confcache <<\_ACEOF
13095 # This file is a shell script that caches the results of configure
13096 # tests run on this system so they can be shared between configure
13097 # scripts and configure runs, see configure's option --config-cache.
13098 # It is not useful on other systems.  If it contains results you don't
13099 # want to keep, you may remove or edit it.
13100 #
13101 # config.status only pays attention to the cache file if you give it
13102 # the --recheck option to rerun configure.
13103 #
13104 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13105 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13106 # following values.
13107
13108 _ACEOF
13109
13110 # The following way of writing the cache mishandles newlines in values,
13111 # but we know of no workaround that is simple, portable, and efficient.
13112 # So, we kill variables containing newlines.
13113 # Ultrix sh set writes to stderr and can't be redirected directly,
13114 # and sets the high bit in the cache file unless we assign to the vars.
13115 (
13116   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13117     eval ac_val=\$$ac_var
13118     case $ac_val in #(
13119     *${as_nl}*)
13120       case $ac_var in #(
13121       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13122 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13123       esac
13124       case $ac_var in #(
13125       _ | IFS | as_nl) ;; #(
13126       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13127       *) { eval $ac_var=; unset $ac_var;} ;;
13128       esac ;;
13129     esac
13130   done
13131
13132   (set) 2>&1 |
13133     case $as_nl`(ac_space=' '; set) 2>&1` in #(
13134     *${as_nl}ac_space=\ *)
13135       # `set' does not quote correctly, so add quotes: double-quote
13136       # substitution turns \\\\ into \\, and sed turns \\ into \.
13137       sed -n \
13138         "s/'/'\\\\''/g;
13139           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13140       ;; #(
13141     *)
13142       # `set' quotes correctly as required by POSIX, so do not add quotes.
13143       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13144       ;;
13145     esac |
13146     sort
13147 ) |
13148   sed '
13149      /^ac_cv_env_/b end
13150      t clear
13151      :clear
13152      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13153      t end
13154      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13155      :end' >>confcache
13156 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13157   if test -w "$cache_file"; then
13158     if test "x$cache_file" != "x/dev/null"; then
13159       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13160 $as_echo "$as_me: updating cache $cache_file" >&6;}
13161       if test ! -f "$cache_file" || test -h "$cache_file"; then
13162         cat confcache >"$cache_file"
13163       else
13164         case $cache_file in #(
13165         */* | ?:*)
13166           mv -f confcache "$cache_file"$$ &&
13167           mv -f "$cache_file"$$ "$cache_file" ;; #(
13168         *)
13169           mv -f confcache "$cache_file" ;;
13170         esac
13171       fi
13172     fi
13173   else
13174     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13175 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13176   fi
13177 fi
13178 rm -f confcache
13179
13180 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13181 # Let make expand exec_prefix.
13182 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13183
13184 DEFS=-DHAVE_CONFIG_H
13185
13186 ac_libobjs=
13187 ac_ltlibobjs=
13188 U=
13189 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13190   # 1. Remove the extension, and $U if already installed.
13191   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13192   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13193   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13194   #    will be set to the directory where LIBOBJS objects are built.
13195   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13196   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13197 done
13198 LIBOBJS=$ac_libobjs
13199
13200 LTLIBOBJS=$ac_ltlibobjs
13201
13202
13203  if test -n "$EXEEXT"; then
13204   am__EXEEXT_TRUE=
13205   am__EXEEXT_FALSE='#'
13206 else
13207   am__EXEEXT_TRUE='#'
13208   am__EXEEXT_FALSE=
13209 fi
13210
13211 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13212   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
13213 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13214 fi
13215 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13216   as_fn_error $? "conditional \"AMDEP\" was never defined.
13217 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13218 fi
13219 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13220   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13221 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13222 fi
13223 if test -z "${HAVE_GTEST_TRUE}" && test -z "${HAVE_GTEST_FALSE}"; then
13224   as_fn_error $? "conditional \"HAVE_GTEST\" was never defined.
13225 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13226 fi
13227 if test -z "${HAVE_NETLINK_TRUE}" && test -z "${HAVE_NETLINK_FALSE}"; then
13228   as_fn_error $? "conditional \"HAVE_NETLINK\" was never defined.
13229 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13230 fi
13231 if test -z "${USE_NETWORK_MANAGER_TRUE}" && test -z "${USE_NETWORK_MANAGER_FALSE}"; then
13232   as_fn_error $? "conditional \"USE_NETWORK_MANAGER\" was never defined.
13233 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13234 fi
13235 if test -z "${USE_CONNMAN_TRUE}" && test -z "${USE_CONNMAN_FALSE}"; then
13236   as_fn_error $? "conditional \"USE_CONNMAN\" was never defined.
13237 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13238 fi
13239 if test -z "${USE_NETLINK_TRUE}" && test -z "${USE_NETLINK_FALSE}"; then
13240   as_fn_error $? "conditional \"USE_NETLINK\" was never defined.
13241 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13242 fi
13243 if test -z "${HAVE_INTROSPECTION_TRUE}" && test -z "${HAVE_INTROSPECTION_FALSE}"; then
13244   as_fn_error $? "conditional \"HAVE_INTROSPECTION\" was never defined.
13245 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13246 fi
13247 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
13248   as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
13249 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13250 fi
13251 if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then
13252   as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined.
13253 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13254 fi
13255 if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then
13256   as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined.
13257 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13258 fi
13259 if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
13260   as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
13261 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13262 fi
13263 if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then
13264   as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined.
13265 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13266 fi
13267
13268 : "${CONFIG_STATUS=./config.status}"
13269 ac_write_fail=0
13270 ac_clean_files_save=$ac_clean_files
13271 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13272 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13273 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13274 as_write_fail=0
13275 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13276 #! $SHELL
13277 # Generated by $as_me.
13278 # Run this file to recreate the current configuration.
13279 # Compiler output produced by configure, useful for debugging
13280 # configure, is in config.log if it exists.
13281
13282 debug=false
13283 ac_cs_recheck=false
13284 ac_cs_silent=false
13285
13286 SHELL=\${CONFIG_SHELL-$SHELL}
13287 export SHELL
13288 _ASEOF
13289 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13290 ## -------------------- ##
13291 ## M4sh Initialization. ##
13292 ## -------------------- ##
13293
13294 # Be more Bourne compatible
13295 DUALCASE=1; export DUALCASE # for MKS sh
13296 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13297   emulate sh
13298   NULLCMD=:
13299   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13300   # is contrary to our usage.  Disable this feature.
13301   alias -g '${1+"$@"}'='"$@"'
13302   setopt NO_GLOB_SUBST
13303 else
13304   case `(set -o) 2>/dev/null` in #(
13305   *posix*) :
13306     set -o posix ;; #(
13307   *) :
13308      ;;
13309 esac
13310 fi
13311
13312
13313 as_nl='
13314 '
13315 export as_nl
13316 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13317 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13318 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13319 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13320 # Prefer a ksh shell builtin over an external printf program on Solaris,
13321 # but without wasting forks for bash or zsh.
13322 if test -z "$BASH_VERSION$ZSH_VERSION" \
13323     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13324   as_echo='print -r --'
13325   as_echo_n='print -rn --'
13326 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13327   as_echo='printf %s\n'
13328   as_echo_n='printf %s'
13329 else
13330   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13331     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13332     as_echo_n='/usr/ucb/echo -n'
13333   else
13334     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13335     as_echo_n_body='eval
13336       arg=$1;
13337       case $arg in #(
13338       *"$as_nl"*)
13339         expr "X$arg" : "X\\(.*\\)$as_nl";
13340         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13341       esac;
13342       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13343     '
13344     export as_echo_n_body
13345     as_echo_n='sh -c $as_echo_n_body as_echo'
13346   fi
13347   export as_echo_body
13348   as_echo='sh -c $as_echo_body as_echo'
13349 fi
13350
13351 # The user is always right.
13352 if test "${PATH_SEPARATOR+set}" != set; then
13353   PATH_SEPARATOR=:
13354   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13355     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13356       PATH_SEPARATOR=';'
13357   }
13358 fi
13359
13360
13361 # IFS
13362 # We need space, tab and new line, in precisely that order.  Quoting is
13363 # there to prevent editors from complaining about space-tab.
13364 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13365 # splitting by setting IFS to empty value.)
13366 IFS=" ""        $as_nl"
13367
13368 # Find who we are.  Look in the path if we contain no directory separator.
13369 as_myself=
13370 case $0 in #((
13371   *[\\/]* ) as_myself=$0 ;;
13372   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13373 for as_dir in $PATH
13374 do
13375   IFS=$as_save_IFS
13376   test -z "$as_dir" && as_dir=.
13377     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13378   done
13379 IFS=$as_save_IFS
13380
13381      ;;
13382 esac
13383 # We did not find ourselves, most probably we were run as `sh COMMAND'
13384 # in which case we are not to be found in the path.
13385 if test "x$as_myself" = x; then
13386   as_myself=$0
13387 fi
13388 if test ! -f "$as_myself"; then
13389   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13390   exit 1
13391 fi
13392
13393 # Unset variables that we do not need and which cause bugs (e.g. in
13394 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13395 # suppresses any "Segmentation fault" message there.  '((' could
13396 # trigger a bug in pdksh 5.2.14.
13397 for as_var in BASH_ENV ENV MAIL MAILPATH
13398 do eval test x\${$as_var+set} = xset \
13399   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13400 done
13401 PS1='$ '
13402 PS2='> '
13403 PS4='+ '
13404
13405 # NLS nuisances.
13406 LC_ALL=C
13407 export LC_ALL
13408 LANGUAGE=C
13409 export LANGUAGE
13410
13411 # CDPATH.
13412 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13413
13414
13415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13416 # ----------------------------------------
13417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13419 # script with STATUS, using 1 if that was 0.
13420 as_fn_error ()
13421 {
13422   as_status=$1; test $as_status -eq 0 && as_status=1
13423   if test "$4"; then
13424     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13425     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13426   fi
13427   $as_echo "$as_me: error: $2" >&2
13428   as_fn_exit $as_status
13429 } # as_fn_error
13430
13431
13432 # as_fn_set_status STATUS
13433 # -----------------------
13434 # Set $? to STATUS, without forking.
13435 as_fn_set_status ()
13436 {
13437   return $1
13438 } # as_fn_set_status
13439
13440 # as_fn_exit STATUS
13441 # -----------------
13442 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13443 as_fn_exit ()
13444 {
13445   set +e
13446   as_fn_set_status $1
13447   exit $1
13448 } # as_fn_exit
13449
13450 # as_fn_unset VAR
13451 # ---------------
13452 # Portably unset VAR.
13453 as_fn_unset ()
13454 {
13455   { eval $1=; unset $1;}
13456 }
13457 as_unset=as_fn_unset
13458 # as_fn_append VAR VALUE
13459 # ----------------------
13460 # Append the text in VALUE to the end of the definition contained in VAR. Take
13461 # advantage of any shell optimizations that allow amortized linear growth over
13462 # repeated appends, instead of the typical quadratic growth present in naive
13463 # implementations.
13464 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13465   eval 'as_fn_append ()
13466   {
13467     eval $1+=\$2
13468   }'
13469 else
13470   as_fn_append ()
13471   {
13472     eval $1=\$$1\$2
13473   }
13474 fi # as_fn_append
13475
13476 # as_fn_arith ARG...
13477 # ------------------
13478 # Perform arithmetic evaluation on the ARGs, and store the result in the
13479 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13480 # must be portable across $(()) and expr.
13481 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13482   eval 'as_fn_arith ()
13483   {
13484     as_val=$(( $* ))
13485   }'
13486 else
13487   as_fn_arith ()
13488   {
13489     as_val=`expr "$@" || test $? -eq 1`
13490   }
13491 fi # as_fn_arith
13492
13493
13494 if expr a : '\(a\)' >/dev/null 2>&1 &&
13495    test "X`expr 00001 : '.*\(...\)'`" = X001; then
13496   as_expr=expr
13497 else
13498   as_expr=false
13499 fi
13500
13501 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13502   as_basename=basename
13503 else
13504   as_basename=false
13505 fi
13506
13507 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13508   as_dirname=dirname
13509 else
13510   as_dirname=false
13511 fi
13512
13513 as_me=`$as_basename -- "$0" ||
13514 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13515          X"$0" : 'X\(//\)$' \| \
13516          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13517 $as_echo X/"$0" |
13518     sed '/^.*\/\([^/][^/]*\)\/*$/{
13519             s//\1/
13520             q
13521           }
13522           /^X\/\(\/\/\)$/{
13523             s//\1/
13524             q
13525           }
13526           /^X\/\(\/\).*/{
13527             s//\1/
13528             q
13529           }
13530           s/.*/./; q'`
13531
13532 # Avoid depending upon Character Ranges.
13533 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13534 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13535 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13536 as_cr_digits='0123456789'
13537 as_cr_alnum=$as_cr_Letters$as_cr_digits
13538
13539 ECHO_C= ECHO_N= ECHO_T=
13540 case `echo -n x` in #(((((
13541 -n*)
13542   case `echo 'xy\c'` in
13543   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
13544   xy)  ECHO_C='\c';;
13545   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13546        ECHO_T=' ';;
13547   esac;;
13548 *)
13549   ECHO_N='-n';;
13550 esac
13551
13552 rm -f conf$$ conf$$.exe conf$$.file
13553 if test -d conf$$.dir; then
13554   rm -f conf$$.dir/conf$$.file
13555 else
13556   rm -f conf$$.dir
13557   mkdir conf$$.dir 2>/dev/null
13558 fi
13559 if (echo >conf$$.file) 2>/dev/null; then
13560   if ln -s conf$$.file conf$$ 2>/dev/null; then
13561     as_ln_s='ln -s'
13562     # ... but there are two gotchas:
13563     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13564     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13565     # In both cases, we have to default to `cp -p'.
13566     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13567       as_ln_s='cp -p'
13568   elif ln conf$$.file conf$$ 2>/dev/null; then
13569     as_ln_s=ln
13570   else
13571     as_ln_s='cp -p'
13572   fi
13573 else
13574   as_ln_s='cp -p'
13575 fi
13576 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13577 rmdir conf$$.dir 2>/dev/null
13578
13579
13580 # as_fn_mkdir_p
13581 # -------------
13582 # Create "$as_dir" as a directory, including parents if necessary.
13583 as_fn_mkdir_p ()
13584 {
13585
13586   case $as_dir in #(
13587   -*) as_dir=./$as_dir;;
13588   esac
13589   test -d "$as_dir" || eval $as_mkdir_p || {
13590     as_dirs=
13591     while :; do
13592       case $as_dir in #(
13593       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13594       *) as_qdir=$as_dir;;
13595       esac
13596       as_dirs="'$as_qdir' $as_dirs"
13597       as_dir=`$as_dirname -- "$as_dir" ||
13598 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13599          X"$as_dir" : 'X\(//\)[^/]' \| \
13600          X"$as_dir" : 'X\(//\)$' \| \
13601          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13602 $as_echo X"$as_dir" |
13603     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13604             s//\1/
13605             q
13606           }
13607           /^X\(\/\/\)[^/].*/{
13608             s//\1/
13609             q
13610           }
13611           /^X\(\/\/\)$/{
13612             s//\1/
13613             q
13614           }
13615           /^X\(\/\).*/{
13616             s//\1/
13617             q
13618           }
13619           s/.*/./; q'`
13620       test -d "$as_dir" && break
13621     done
13622     test -z "$as_dirs" || eval "mkdir $as_dirs"
13623   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13624
13625
13626 } # as_fn_mkdir_p
13627 if mkdir -p . 2>/dev/null; then
13628   as_mkdir_p='mkdir -p "$as_dir"'
13629 else
13630   test -d ./-p && rmdir ./-p
13631   as_mkdir_p=false
13632 fi
13633
13634 if test -x / >/dev/null 2>&1; then
13635   as_test_x='test -x'
13636 else
13637   if ls -dL / >/dev/null 2>&1; then
13638     as_ls_L_option=L
13639   else
13640     as_ls_L_option=
13641   fi
13642   as_test_x='
13643     eval sh -c '\''
13644       if test -d "$1"; then
13645         test -d "$1/.";
13646       else
13647         case $1 in #(
13648         -*)set "./$1";;
13649         esac;
13650         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13651         ???[sx]*):;;*)false;;esac;fi
13652     '\'' sh
13653   '
13654 fi
13655 as_executable_p=$as_test_x
13656
13657 # Sed expression to map a string onto a valid CPP name.
13658 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13659
13660 # Sed expression to map a string onto a valid variable name.
13661 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13662
13663
13664 exec 6>&1
13665 ## ----------------------------------- ##
13666 ## Main body of $CONFIG_STATUS script. ##
13667 ## ----------------------------------- ##
13668 _ASEOF
13669 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13670
13671 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13672 # Save the log message, to keep $0 and so on meaningful, and to
13673 # report actual input values of CONFIG_FILES etc. instead of their
13674 # values after options handling.
13675 ac_log="
13676 This file was extended by gupnp $as_me 0.18.0, which was
13677 generated by GNU Autoconf 2.68.  Invocation command line was
13678
13679   CONFIG_FILES    = $CONFIG_FILES
13680   CONFIG_HEADERS  = $CONFIG_HEADERS
13681   CONFIG_LINKS    = $CONFIG_LINKS
13682   CONFIG_COMMANDS = $CONFIG_COMMANDS
13683   $ $0 $@
13684
13685 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13686 "
13687
13688 _ACEOF
13689
13690 case $ac_config_files in *"
13691 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13692 esac
13693
13694 case $ac_config_headers in *"
13695 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13696 esac
13697
13698
13699 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13700 # Files that config.status was made for.
13701 config_files="$ac_config_files"
13702 config_headers="$ac_config_headers"
13703 config_commands="$ac_config_commands"
13704
13705 _ACEOF
13706
13707 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13708 ac_cs_usage="\
13709 \`$as_me' instantiates files and other configuration actions
13710 from templates according to the current configuration.  Unless the files
13711 and actions are specified as TAGs, all are instantiated by default.
13712
13713 Usage: $0 [OPTION]... [TAG]...
13714
13715   -h, --help       print this help, then exit
13716   -V, --version    print version number and configuration settings, then exit
13717       --config     print configuration, then exit
13718   -q, --quiet, --silent
13719                    do not print progress messages
13720   -d, --debug      don't remove temporary files
13721       --recheck    update $as_me by reconfiguring in the same conditions
13722       --file=FILE[:TEMPLATE]
13723                    instantiate the configuration file FILE
13724       --header=FILE[:TEMPLATE]
13725                    instantiate the configuration header FILE
13726
13727 Configuration files:
13728 $config_files
13729
13730 Configuration headers:
13731 $config_headers
13732
13733 Configuration commands:
13734 $config_commands
13735
13736 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=gupnp&component=gupnp>.
13737 gupnp home page: <http://www.gupnp.org/>."
13738
13739 _ACEOF
13740 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13741 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13742 ac_cs_version="\\
13743 gupnp config.status 0.18.0
13744 configured by $0, generated by GNU Autoconf 2.68,
13745   with options \\"\$ac_cs_config\\"
13746
13747 Copyright (C) 2010 Free Software Foundation, Inc.
13748 This config.status script is free software; the Free Software Foundation
13749 gives unlimited permission to copy, distribute and modify it."
13750
13751 ac_pwd='$ac_pwd'
13752 srcdir='$srcdir'
13753 INSTALL='$INSTALL'
13754 MKDIR_P='$MKDIR_P'
13755 AWK='$AWK'
13756 test -n "\$AWK" || AWK=awk
13757 _ACEOF
13758
13759 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13760 # The default lists apply if the user does not specify any file.
13761 ac_need_defaults=:
13762 while test $# != 0
13763 do
13764   case $1 in
13765   --*=?*)
13766     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13767     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13768     ac_shift=:
13769     ;;
13770   --*=)
13771     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13772     ac_optarg=
13773     ac_shift=:
13774     ;;
13775   *)
13776     ac_option=$1
13777     ac_optarg=$2
13778     ac_shift=shift
13779     ;;
13780   esac
13781
13782   case $ac_option in
13783   # Handling of the options.
13784   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13785     ac_cs_recheck=: ;;
13786   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13787     $as_echo "$ac_cs_version"; exit ;;
13788   --config | --confi | --conf | --con | --co | --c )
13789     $as_echo "$ac_cs_config"; exit ;;
13790   --debug | --debu | --deb | --de | --d | -d )
13791     debug=: ;;
13792   --file | --fil | --fi | --f )
13793     $ac_shift
13794     case $ac_optarg in
13795     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13796     '') as_fn_error $? "missing file argument" ;;
13797     esac
13798     as_fn_append CONFIG_FILES " '$ac_optarg'"
13799     ac_need_defaults=false;;
13800   --header | --heade | --head | --hea )
13801     $ac_shift
13802     case $ac_optarg in
13803     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13804     esac
13805     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13806     ac_need_defaults=false;;
13807   --he | --h)
13808     # Conflict between --help and --header
13809     as_fn_error $? "ambiguous option: \`$1'
13810 Try \`$0 --help' for more information.";;
13811   --help | --hel | -h )
13812     $as_echo "$ac_cs_usage"; exit ;;
13813   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13814   | -silent | --silent | --silen | --sile | --sil | --si | --s)
13815     ac_cs_silent=: ;;
13816
13817   # This is an error.
13818   -*) as_fn_error $? "unrecognized option: \`$1'
13819 Try \`$0 --help' for more information." ;;
13820
13821   *) as_fn_append ac_config_targets " $1"
13822      ac_need_defaults=false ;;
13823
13824   esac
13825   shift
13826 done
13827
13828 ac_configure_extra_args=
13829
13830 if $ac_cs_silent; then
13831   exec 6>/dev/null
13832   ac_configure_extra_args="$ac_configure_extra_args --silent"
13833 fi
13834
13835 _ACEOF
13836 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13837 if \$ac_cs_recheck; then
13838   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13839   shift
13840   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13841   CONFIG_SHELL='$SHELL'
13842   export CONFIG_SHELL
13843   exec "\$@"
13844 fi
13845
13846 _ACEOF
13847 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13848 exec 5>>config.log
13849 {
13850   echo
13851   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13852 ## Running $as_me. ##
13853 _ASBOX
13854   $as_echo "$ac_log"
13855 } >&5
13856
13857 _ACEOF
13858 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13859 #
13860 # INIT-COMMANDS
13861 #
13862 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13863
13864
13865 # The HP-UX ksh and POSIX shell print the target directory to stdout
13866 # if CDPATH is set.
13867 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13868
13869 sed_quote_subst='$sed_quote_subst'
13870 double_quote_subst='$double_quote_subst'
13871 delay_variable_subst='$delay_variable_subst'
13872 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13873 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13874 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13875 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13876 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13877 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13878 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13879 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13880 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13881 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13882 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13883 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13884 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13885 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13886 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13887 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13888 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13889 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13890 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13891 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13892 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13893 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13894 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13895 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13896 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13897 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13898 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13899 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13900 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13901 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13902 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13903 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13904 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13905 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13906 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13907 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13908 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13909 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13910 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13911 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13912 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13913 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13914 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13915 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13916 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13917 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13918 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13919 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13920 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13921 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13922 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13923 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13924 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13925 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13926 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13927 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13928 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"`'
13929 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13930 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13931 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13932 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13933 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13934 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13935 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13936 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13937 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13938 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13939 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13940 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13941 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13942 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13943 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13944 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13945 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13946 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13947 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13948 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13949 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13950 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13951 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13952 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13953 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13954 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13955 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13956 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13957 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13958 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13959 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13960 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13961 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13962 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13963 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13964 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13965 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13966 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13967 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13968 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13969 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13970 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13971 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13972 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13973 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13974 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13975 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13976 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13977 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13978 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13979 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13980 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13981 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13982 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13983 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13984 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13985 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13986 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13987 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13988 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13989 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13990 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13991 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13992 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13993 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13994 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13995 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13996 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13997 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13998 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13999 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14000 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14001 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14002
14003 LTCC='$LTCC'
14004 LTCFLAGS='$LTCFLAGS'
14005 compiler='$compiler_DEFAULT'
14006
14007 # A function that is used when there is no print builtin or printf.
14008 func_fallback_echo ()
14009 {
14010   eval 'cat <<_LTECHO_EOF
14011 \$1
14012 _LTECHO_EOF'
14013 }
14014
14015 # Quote evaled strings.
14016 for var in SHELL \
14017 ECHO \
14018 PATH_SEPARATOR \
14019 SED \
14020 GREP \
14021 EGREP \
14022 FGREP \
14023 LD \
14024 NM \
14025 LN_S \
14026 lt_SP2NL \
14027 lt_NL2SP \
14028 reload_flag \
14029 OBJDUMP \
14030 deplibs_check_method \
14031 file_magic_cmd \
14032 file_magic_glob \
14033 want_nocaseglob \
14034 DLLTOOL \
14035 sharedlib_from_linklib_cmd \
14036 AR \
14037 AR_FLAGS \
14038 archiver_list_spec \
14039 STRIP \
14040 RANLIB \
14041 CC \
14042 CFLAGS \
14043 compiler \
14044 lt_cv_sys_global_symbol_pipe \
14045 lt_cv_sys_global_symbol_to_cdecl \
14046 lt_cv_sys_global_symbol_to_c_name_address \
14047 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14048 nm_file_list_spec \
14049 lt_prog_compiler_no_builtin_flag \
14050 lt_prog_compiler_pic \
14051 lt_prog_compiler_wl \
14052 lt_prog_compiler_static \
14053 lt_cv_prog_compiler_c_o \
14054 need_locks \
14055 MANIFEST_TOOL \
14056 DSYMUTIL \
14057 NMEDIT \
14058 LIPO \
14059 OTOOL \
14060 OTOOL64 \
14061 shrext_cmds \
14062 export_dynamic_flag_spec \
14063 whole_archive_flag_spec \
14064 compiler_needs_object \
14065 with_gnu_ld \
14066 allow_undefined_flag \
14067 no_undefined_flag \
14068 hardcode_libdir_flag_spec \
14069 hardcode_libdir_separator \
14070 exclude_expsyms \
14071 include_expsyms \
14072 file_list_spec \
14073 variables_saved_for_relink \
14074 libname_spec \
14075 library_names_spec \
14076 soname_spec \
14077 install_override_mode \
14078 finish_eval \
14079 old_striplib \
14080 striplib; do
14081     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14082     *[\\\\\\\`\\"\\\$]*)
14083       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14084       ;;
14085     *)
14086       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14087       ;;
14088     esac
14089 done
14090
14091 # Double-quote double-evaled strings.
14092 for var in reload_cmds \
14093 old_postinstall_cmds \
14094 old_postuninstall_cmds \
14095 old_archive_cmds \
14096 extract_expsyms_cmds \
14097 old_archive_from_new_cmds \
14098 old_archive_from_expsyms_cmds \
14099 archive_cmds \
14100 archive_expsym_cmds \
14101 module_cmds \
14102 module_expsym_cmds \
14103 export_symbols_cmds \
14104 prelink_cmds \
14105 postlink_cmds \
14106 postinstall_cmds \
14107 postuninstall_cmds \
14108 finish_cmds \
14109 sys_lib_search_path_spec \
14110 sys_lib_dlsearch_path_spec; do
14111     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14112     *[\\\\\\\`\\"\\\$]*)
14113       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14114       ;;
14115     *)
14116       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14117       ;;
14118     esac
14119 done
14120
14121 ac_aux_dir='$ac_aux_dir'
14122 xsi_shell='$xsi_shell'
14123 lt_shell_append='$lt_shell_append'
14124
14125 # See if we are running on zsh, and set the options which allow our
14126 # commands through without removal of \ escapes INIT.
14127 if test -n "\${ZSH_VERSION+set}" ; then
14128    setopt NO_GLOB_SUBST
14129 fi
14130
14131
14132     PACKAGE='$PACKAGE'
14133     VERSION='$VERSION'
14134     TIMESTAMP='$TIMESTAMP'
14135     RM='$RM'
14136     ofile='$ofile'
14137
14138
14139
14140
14141 _ACEOF
14142
14143 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14144
14145 # Handling of arguments.
14146 for ac_config_target in $ac_config_targets
14147 do
14148   case $ac_config_target in
14149     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14150     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14151     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14152     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14153     "libgupnp/Makefile") CONFIG_FILES="$CONFIG_FILES libgupnp/Makefile" ;;
14154     "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
14155     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
14156     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
14157     "tests/gtest/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gtest/Makefile" ;;
14158     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14159     "doc/version.xml") CONFIG_FILES="$CONFIG_FILES doc/version.xml" ;;
14160     "gupnp-1.0.pc") CONFIG_FILES="$CONFIG_FILES gupnp-1.0.pc" ;;
14161     "gupnp-1.0-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES gupnp-1.0-uninstalled.pc" ;;
14162
14163   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14164   esac
14165 done
14166
14167
14168 # If the user did not use the arguments to specify the items to instantiate,
14169 # then the envvar interface is used.  Set only those that are not.
14170 # We use the long form for the default assignment because of an extremely
14171 # bizarre bug on SunOS 4.1.3.
14172 if $ac_need_defaults; then
14173   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14174   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14175   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14176 fi
14177
14178 # Have a temporary directory for convenience.  Make it in the build tree
14179 # simply because there is no reason against having it here, and in addition,
14180 # creating and moving files from /tmp can sometimes cause problems.
14181 # Hook for its removal unless debugging.
14182 # Note that there is a small window in which the directory will not be cleaned:
14183 # after its creation but before its name has been assigned to `$tmp'.
14184 $debug ||
14185 {
14186   tmp= ac_tmp=
14187   trap 'exit_status=$?
14188   : "${ac_tmp:=$tmp}"
14189   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14190 ' 0
14191   trap 'as_fn_exit 1' 1 2 13 15
14192 }
14193 # Create a (secure) tmp directory for tmp files.
14194
14195 {
14196   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14197   test -d "$tmp"
14198 }  ||
14199 {
14200   tmp=./conf$$-$RANDOM
14201   (umask 077 && mkdir "$tmp")
14202 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14203 ac_tmp=$tmp
14204
14205 # Set up the scripts for CONFIG_FILES section.
14206 # No need to generate them if there are no CONFIG_FILES.
14207 # This happens for instance with `./config.status config.h'.
14208 if test -n "$CONFIG_FILES"; then
14209
14210
14211 ac_cr=`echo X | tr X '\015'`
14212 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14213 # But we know of no other shell where ac_cr would be empty at this
14214 # point, so we can use a bashism as a fallback.
14215 if test "x$ac_cr" = x; then
14216   eval ac_cr=\$\'\\r\'
14217 fi
14218 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14219 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14220   ac_cs_awk_cr='\\r'
14221 else
14222   ac_cs_awk_cr=$ac_cr
14223 fi
14224
14225 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14226 _ACEOF
14227
14228
14229 {
14230   echo "cat >conf$$subs.awk <<_ACEOF" &&
14231   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14232   echo "_ACEOF"
14233 } >conf$$subs.sh ||
14234   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14235 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14236 ac_delim='%!_!# '
14237 for ac_last_try in false false false false false :; do
14238   . ./conf$$subs.sh ||
14239     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14240
14241   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14242   if test $ac_delim_n = $ac_delim_num; then
14243     break
14244   elif $ac_last_try; then
14245     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14246   else
14247     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14248   fi
14249 done
14250 rm -f conf$$subs.sh
14251
14252 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14253 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14254 _ACEOF
14255 sed -n '
14256 h
14257 s/^/S["/; s/!.*/"]=/
14258 p
14259 g
14260 s/^[^!]*!//
14261 :repl
14262 t repl
14263 s/'"$ac_delim"'$//
14264 t delim
14265 :nl
14266 h
14267 s/\(.\{148\}\)..*/\1/
14268 t more1
14269 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14270 p
14271 n
14272 b repl
14273 :more1
14274 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14275 p
14276 g
14277 s/.\{148\}//
14278 t nl
14279 :delim
14280 h
14281 s/\(.\{148\}\)..*/\1/
14282 t more2
14283 s/["\\]/\\&/g; s/^/"/; s/$/"/
14284 p
14285 b
14286 :more2
14287 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14288 p
14289 g
14290 s/.\{148\}//
14291 t delim
14292 ' <conf$$subs.awk | sed '
14293 /^[^""]/{
14294   N
14295   s/\n//
14296 }
14297 ' >>$CONFIG_STATUS || ac_write_fail=1
14298 rm -f conf$$subs.awk
14299 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14300 _ACAWK
14301 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14302   for (key in S) S_is_set[key] = 1
14303   FS = "\a"
14304
14305 }
14306 {
14307   line = $ 0
14308   nfields = split(line, field, "@")
14309   substed = 0
14310   len = length(field[1])
14311   for (i = 2; i < nfields; i++) {
14312     key = field[i]
14313     keylen = length(key)
14314     if (S_is_set[key]) {
14315       value = S[key]
14316       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14317       len += length(value) + length(field[++i])
14318       substed = 1
14319     } else
14320       len += 1 + keylen
14321   }
14322
14323   print line
14324 }
14325
14326 _ACAWK
14327 _ACEOF
14328 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14329 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14330   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14331 else
14332   cat
14333 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14334   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14335 _ACEOF
14336
14337 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14338 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14339 # trailing colons and then remove the whole line if VPATH becomes empty
14340 # (actually we leave an empty line to preserve line numbers).
14341 if test "x$srcdir" = x.; then
14342   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
14343 h
14344 s///
14345 s/^/:/
14346 s/[      ]*$/:/
14347 s/:\$(srcdir):/:/g
14348 s/:\${srcdir}:/:/g
14349 s/:@srcdir@:/:/g
14350 s/^:*//
14351 s/:*$//
14352 x
14353 s/\(=[   ]*\).*/\1/
14354 G
14355 s/\n//
14356 s/^[^=]*=[       ]*$//
14357 }'
14358 fi
14359
14360 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14361 fi # test -n "$CONFIG_FILES"
14362
14363 # Set up the scripts for CONFIG_HEADERS section.
14364 # No need to generate them if there are no CONFIG_HEADERS.
14365 # This happens for instance with `./config.status Makefile'.
14366 if test -n "$CONFIG_HEADERS"; then
14367 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14368 BEGIN {
14369 _ACEOF
14370
14371 # Transform confdefs.h into an awk script `defines.awk', embedded as
14372 # here-document in config.status, that substitutes the proper values into
14373 # config.h.in to produce config.h.
14374
14375 # Create a delimiter string that does not exist in confdefs.h, to ease
14376 # handling of long lines.
14377 ac_delim='%!_!# '
14378 for ac_last_try in false false :; do
14379   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14380   if test -z "$ac_tt"; then
14381     break
14382   elif $ac_last_try; then
14383     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14384   else
14385     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14386   fi
14387 done
14388
14389 # For the awk script, D is an array of macro values keyed by name,
14390 # likewise P contains macro parameters if any.  Preserve backslash
14391 # newline sequences.
14392
14393 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14394 sed -n '
14395 s/.\{148\}/&'"$ac_delim"'/g
14396 t rset
14397 :rset
14398 s/^[     ]*#[    ]*define[       ][      ]*/ /
14399 t def
14400 d
14401 :def
14402 s/\\$//
14403 t bsnl
14404 s/["\\]/\\&/g
14405 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14406 D["\1"]=" \3"/p
14407 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
14408 d
14409 :bsnl
14410 s/["\\]/\\&/g
14411 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14412 D["\1"]=" \3\\\\\\n"\\/p
14413 t cont
14414 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14415 t cont
14416 d
14417 :cont
14418 n
14419 s/.\{148\}/&'"$ac_delim"'/g
14420 t clear
14421 :clear
14422 s/\\$//
14423 t bsnlc
14424 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14425 d
14426 :bsnlc
14427 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14428 b cont
14429 ' <confdefs.h | sed '
14430 s/'"$ac_delim"'/"\\\
14431 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14432
14433 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14434   for (key in D) D_is_set[key] = 1
14435   FS = "\a"
14436 }
14437 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14438   line = \$ 0
14439   split(line, arg, " ")
14440   if (arg[1] == "#") {
14441     defundef = arg[2]
14442     mac1 = arg[3]
14443   } else {
14444     defundef = substr(arg[1], 2)
14445     mac1 = arg[2]
14446   }
14447   split(mac1, mac2, "(") #)
14448   macro = mac2[1]
14449   prefix = substr(line, 1, index(line, defundef) - 1)
14450   if (D_is_set[macro]) {
14451     # Preserve the white space surrounding the "#".
14452     print prefix "define", macro P[macro] D[macro]
14453     next
14454   } else {
14455     # Replace #undef with comments.  This is necessary, for example,
14456     # in the case of _POSIX_SOURCE, which is predefined and required
14457     # on some systems where configure will not decide to define it.
14458     if (defundef == "undef") {
14459       print "/*", prefix defundef, macro, "*/"
14460       next
14461     }
14462   }
14463 }
14464 { print }
14465 _ACAWK
14466 _ACEOF
14467 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14468   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14469 fi # test -n "$CONFIG_HEADERS"
14470
14471
14472 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14473 shift
14474 for ac_tag
14475 do
14476   case $ac_tag in
14477   :[FHLC]) ac_mode=$ac_tag; continue;;
14478   esac
14479   case $ac_mode$ac_tag in
14480   :[FHL]*:*);;
14481   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14482   :[FH]-) ac_tag=-:-;;
14483   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14484   esac
14485   ac_save_IFS=$IFS
14486   IFS=:
14487   set x $ac_tag
14488   IFS=$ac_save_IFS
14489   shift
14490   ac_file=$1
14491   shift
14492
14493   case $ac_mode in
14494   :L) ac_source=$1;;
14495   :[FH])
14496     ac_file_inputs=
14497     for ac_f
14498     do
14499       case $ac_f in
14500       -) ac_f="$ac_tmp/stdin";;
14501       *) # Look for the file first in the build tree, then in the source tree
14502          # (if the path is not absolute).  The absolute path cannot be DOS-style,
14503          # because $ac_f cannot contain `:'.
14504          test -f "$ac_f" ||
14505            case $ac_f in
14506            [\\/$]*) false;;
14507            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14508            esac ||
14509            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14510       esac
14511       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14512       as_fn_append ac_file_inputs " '$ac_f'"
14513     done
14514
14515     # Let's still pretend it is `configure' which instantiates (i.e., don't
14516     # use $as_me), people would be surprised to read:
14517     #    /* config.h.  Generated by config.status.  */
14518     configure_input='Generated from '`
14519           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14520         `' by configure.'
14521     if test x"$ac_file" != x-; then
14522       configure_input="$ac_file.  $configure_input"
14523       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14524 $as_echo "$as_me: creating $ac_file" >&6;}
14525     fi
14526     # Neutralize special characters interpreted by sed in replacement strings.
14527     case $configure_input in #(
14528     *\&* | *\|* | *\\* )
14529        ac_sed_conf_input=`$as_echo "$configure_input" |
14530        sed 's/[\\\\&|]/\\\\&/g'`;; #(
14531     *) ac_sed_conf_input=$configure_input;;
14532     esac
14533
14534     case $ac_tag in
14535     *:-:* | *:-) cat >"$ac_tmp/stdin" \
14536       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14537     esac
14538     ;;
14539   esac
14540
14541   ac_dir=`$as_dirname -- "$ac_file" ||
14542 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14543          X"$ac_file" : 'X\(//\)[^/]' \| \
14544          X"$ac_file" : 'X\(//\)$' \| \
14545          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14546 $as_echo X"$ac_file" |
14547     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14548             s//\1/
14549             q
14550           }
14551           /^X\(\/\/\)[^/].*/{
14552             s//\1/
14553             q
14554           }
14555           /^X\(\/\/\)$/{
14556             s//\1/
14557             q
14558           }
14559           /^X\(\/\).*/{
14560             s//\1/
14561             q
14562           }
14563           s/.*/./; q'`
14564   as_dir="$ac_dir"; as_fn_mkdir_p
14565   ac_builddir=.
14566
14567 case "$ac_dir" in
14568 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14569 *)
14570   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14571   # A ".." for each directory in $ac_dir_suffix.
14572   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14573   case $ac_top_builddir_sub in
14574   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14575   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14576   esac ;;
14577 esac
14578 ac_abs_top_builddir=$ac_pwd
14579 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14580 # for backward compatibility:
14581 ac_top_builddir=$ac_top_build_prefix
14582
14583 case $srcdir in
14584   .)  # We are building in place.
14585     ac_srcdir=.
14586     ac_top_srcdir=$ac_top_builddir_sub
14587     ac_abs_top_srcdir=$ac_pwd ;;
14588   [\\/]* | ?:[\\/]* )  # Absolute name.
14589     ac_srcdir=$srcdir$ac_dir_suffix;
14590     ac_top_srcdir=$srcdir
14591     ac_abs_top_srcdir=$srcdir ;;
14592   *) # Relative name.
14593     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14594     ac_top_srcdir=$ac_top_build_prefix$srcdir
14595     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14596 esac
14597 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14598
14599
14600   case $ac_mode in
14601   :F)
14602   #
14603   # CONFIG_FILE
14604   #
14605
14606   case $INSTALL in
14607   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14608   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14609   esac
14610   ac_MKDIR_P=$MKDIR_P
14611   case $MKDIR_P in
14612   [\\/$]* | ?:[\\/]* ) ;;
14613   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14614   esac
14615 _ACEOF
14616
14617 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14618 # If the template does not know about datarootdir, expand it.
14619 # FIXME: This hack should be removed a few years after 2.60.
14620 ac_datarootdir_hack=; ac_datarootdir_seen=
14621 ac_sed_dataroot='
14622 /datarootdir/ {
14623   p
14624   q
14625 }
14626 /@datadir@/p
14627 /@docdir@/p
14628 /@infodir@/p
14629 /@localedir@/p
14630 /@mandir@/p'
14631 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14632 *datarootdir*) ac_datarootdir_seen=yes;;
14633 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14634   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14635 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14636 _ACEOF
14637 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14638   ac_datarootdir_hack='
14639   s&@datadir@&$datadir&g
14640   s&@docdir@&$docdir&g
14641   s&@infodir@&$infodir&g
14642   s&@localedir@&$localedir&g
14643   s&@mandir@&$mandir&g
14644   s&\\\${datarootdir}&$datarootdir&g' ;;
14645 esac
14646 _ACEOF
14647
14648 # Neutralize VPATH when `$srcdir' = `.'.
14649 # Shell code in configure.ac might set extrasub.
14650 # FIXME: do we really want to maintain this feature?
14651 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14652 ac_sed_extra="$ac_vpsub
14653 $extrasub
14654 _ACEOF
14655 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14656 :t
14657 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14658 s|@configure_input@|$ac_sed_conf_input|;t t
14659 s&@top_builddir@&$ac_top_builddir_sub&;t t
14660 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14661 s&@srcdir@&$ac_srcdir&;t t
14662 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14663 s&@top_srcdir@&$ac_top_srcdir&;t t
14664 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14665 s&@builddir@&$ac_builddir&;t t
14666 s&@abs_builddir@&$ac_abs_builddir&;t t
14667 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14668 s&@INSTALL@&$ac_INSTALL&;t t
14669 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14670 $ac_datarootdir_hack
14671 "
14672 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14673   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14674
14675 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14676   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14677   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
14678       "$ac_tmp/out"`; test -z "$ac_out"; } &&
14679   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14680 which seems to be undefined.  Please make sure it is defined" >&5
14681 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14682 which seems to be undefined.  Please make sure it is defined" >&2;}
14683
14684   rm -f "$ac_tmp/stdin"
14685   case $ac_file in
14686   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14687   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14688   esac \
14689   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14690  ;;
14691   :H)
14692   #
14693   # CONFIG_HEADER
14694   #
14695   if test x"$ac_file" != x-; then
14696     {
14697       $as_echo "/* $configure_input  */" \
14698       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14699     } >"$ac_tmp/config.h" \
14700       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14701     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14702       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14703 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14704     else
14705       rm -f "$ac_file"
14706       mv "$ac_tmp/config.h" "$ac_file" \
14707         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14708     fi
14709   else
14710     $as_echo "/* $configure_input  */" \
14711       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14712       || as_fn_error $? "could not create -" "$LINENO" 5
14713   fi
14714 # Compute "$ac_file"'s index in $config_headers.
14715 _am_arg="$ac_file"
14716 _am_stamp_count=1
14717 for _am_header in $config_headers :; do
14718   case $_am_header in
14719     $_am_arg | $_am_arg:* )
14720       break ;;
14721     * )
14722       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14723   esac
14724 done
14725 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14726 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14727          X"$_am_arg" : 'X\(//\)[^/]' \| \
14728          X"$_am_arg" : 'X\(//\)$' \| \
14729          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14730 $as_echo X"$_am_arg" |
14731     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14732             s//\1/
14733             q
14734           }
14735           /^X\(\/\/\)[^/].*/{
14736             s//\1/
14737             q
14738           }
14739           /^X\(\/\/\)$/{
14740             s//\1/
14741             q
14742           }
14743           /^X\(\/\).*/{
14744             s//\1/
14745             q
14746           }
14747           s/.*/./; q'`/stamp-h$_am_stamp_count
14748  ;;
14749
14750   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14751 $as_echo "$as_me: executing $ac_file commands" >&6;}
14752  ;;
14753   esac
14754
14755
14756   case $ac_file$ac_mode in
14757     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14758   # Autoconf 2.62 quotes --file arguments for eval, but not when files
14759   # are listed without --file.  Let's play safe and only enable the eval
14760   # if we detect the quoting.
14761   case $CONFIG_FILES in
14762   *\'*) eval set x "$CONFIG_FILES" ;;
14763   *)   set x $CONFIG_FILES ;;
14764   esac
14765   shift
14766   for mf
14767   do
14768     # Strip MF so we end up with the name of the file.
14769     mf=`echo "$mf" | sed -e 's/:.*$//'`
14770     # Check whether this is an Automake generated Makefile or not.
14771     # We used to match only the files named `Makefile.in', but
14772     # some people rename them; so instead we look at the file content.
14773     # Grep'ing the first line is not enough: some people post-process
14774     # each Makefile.in and add a new line on top of each file to say so.
14775     # Grep'ing the whole file is not good either: AIX grep has a line
14776     # limit of 2048, but all sed's we know have understand at least 4000.
14777     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14778       dirpart=`$as_dirname -- "$mf" ||
14779 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14780          X"$mf" : 'X\(//\)[^/]' \| \
14781          X"$mf" : 'X\(//\)$' \| \
14782          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14783 $as_echo X"$mf" |
14784     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14785             s//\1/
14786             q
14787           }
14788           /^X\(\/\/\)[^/].*/{
14789             s//\1/
14790             q
14791           }
14792           /^X\(\/\/\)$/{
14793             s//\1/
14794             q
14795           }
14796           /^X\(\/\).*/{
14797             s//\1/
14798             q
14799           }
14800           s/.*/./; q'`
14801     else
14802       continue
14803     fi
14804     # Extract the definition of DEPDIR, am__include, and am__quote
14805     # from the Makefile without running `make'.
14806     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14807     test -z "$DEPDIR" && continue
14808     am__include=`sed -n 's/^am__include = //p' < "$mf"`
14809     test -z "am__include" && continue
14810     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14811     # When using ansi2knr, U may be empty or an underscore; expand it
14812     U=`sed -n 's/^U = //p' < "$mf"`
14813     # Find all dependency output files, they are included files with
14814     # $(DEPDIR) in their names.  We invoke sed twice because it is the
14815     # simplest approach to changing $(DEPDIR) to its actual value in the
14816     # expansion.
14817     for file in `sed -n "
14818       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14819          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14820       # Make sure the directory exists.
14821       test -f "$dirpart/$file" && continue
14822       fdir=`$as_dirname -- "$file" ||
14823 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14824          X"$file" : 'X\(//\)[^/]' \| \
14825          X"$file" : 'X\(//\)$' \| \
14826          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14827 $as_echo X"$file" |
14828     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14829             s//\1/
14830             q
14831           }
14832           /^X\(\/\/\)[^/].*/{
14833             s//\1/
14834             q
14835           }
14836           /^X\(\/\/\)$/{
14837             s//\1/
14838             q
14839           }
14840           /^X\(\/\).*/{
14841             s//\1/
14842             q
14843           }
14844           s/.*/./; q'`
14845       as_dir=$dirpart/$fdir; as_fn_mkdir_p
14846       # echo "creating $dirpart/$file"
14847       echo '# dummy' > "$dirpart/$file"
14848     done
14849   done
14850 }
14851  ;;
14852     "libtool":C)
14853
14854     # See if we are running on zsh, and set the options which allow our
14855     # commands through without removal of \ escapes.
14856     if test -n "${ZSH_VERSION+set}" ; then
14857       setopt NO_GLOB_SUBST
14858     fi
14859
14860     cfgfile="${ofile}T"
14861     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14862     $RM "$cfgfile"
14863
14864     cat <<_LT_EOF >> "$cfgfile"
14865 #! $SHELL
14866
14867 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14868 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14869 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14870 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14871 #
14872 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14873 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14874 #                 Foundation, Inc.
14875 #   Written by Gordon Matzigkeit, 1996
14876 #
14877 #   This file is part of GNU Libtool.
14878 #
14879 # GNU Libtool is free software; you can redistribute it and/or
14880 # modify it under the terms of the GNU General Public License as
14881 # published by the Free Software Foundation; either version 2 of
14882 # the License, or (at your option) any later version.
14883 #
14884 # As a special exception to the GNU General Public License,
14885 # if you distribute this file as part of a program or library that
14886 # is built using GNU Libtool, you may include this file under the
14887 # same distribution terms that you use for the rest of that program.
14888 #
14889 # GNU Libtool is distributed in the hope that it will be useful,
14890 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14891 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14892 # GNU General Public License for more details.
14893 #
14894 # You should have received a copy of the GNU General Public License
14895 # along with GNU Libtool; see the file COPYING.  If not, a copy
14896 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14897 # obtained by writing to the Free Software Foundation, Inc.,
14898 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14899
14900
14901 # The names of the tagged configurations supported by this script.
14902 available_tags=""
14903
14904 # ### BEGIN LIBTOOL CONFIG
14905
14906 # Which release of libtool.m4 was used?
14907 macro_version=$macro_version
14908 macro_revision=$macro_revision
14909
14910 # Whether or not to build shared libraries.
14911 build_libtool_libs=$enable_shared
14912
14913 # Whether or not to build static libraries.
14914 build_old_libs=$enable_static
14915
14916 # What type of objects to build.
14917 pic_mode=$pic_mode
14918
14919 # Whether or not to optimize for fast installation.
14920 fast_install=$enable_fast_install
14921
14922 # Shell to use when invoking shell scripts.
14923 SHELL=$lt_SHELL
14924
14925 # An echo program that protects backslashes.
14926 ECHO=$lt_ECHO
14927
14928 # The PATH separator for the build system.
14929 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14930
14931 # The host system.
14932 host_alias=$host_alias
14933 host=$host
14934 host_os=$host_os
14935
14936 # The build system.
14937 build_alias=$build_alias
14938 build=$build
14939 build_os=$build_os
14940
14941 # A sed program that does not truncate output.
14942 SED=$lt_SED
14943
14944 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14945 Xsed="\$SED -e 1s/^X//"
14946
14947 # A grep program that handles long lines.
14948 GREP=$lt_GREP
14949
14950 # An ERE matcher.
14951 EGREP=$lt_EGREP
14952
14953 # A literal string matcher.
14954 FGREP=$lt_FGREP
14955
14956 # A BSD- or MS-compatible name lister.
14957 NM=$lt_NM
14958
14959 # Whether we need soft or hard links.
14960 LN_S=$lt_LN_S
14961
14962 # What is the maximum length of a command?
14963 max_cmd_len=$max_cmd_len
14964
14965 # Object file suffix (normally "o").
14966 objext=$ac_objext
14967
14968 # Executable file suffix (normally "").
14969 exeext=$exeext
14970
14971 # whether the shell understands "unset".
14972 lt_unset=$lt_unset
14973
14974 # turn spaces into newlines.
14975 SP2NL=$lt_lt_SP2NL
14976
14977 # turn newlines into spaces.
14978 NL2SP=$lt_lt_NL2SP
14979
14980 # convert \$build file names to \$host format.
14981 to_host_file_cmd=$lt_cv_to_host_file_cmd
14982
14983 # convert \$build files to toolchain format.
14984 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14985
14986 # An object symbol dumper.
14987 OBJDUMP=$lt_OBJDUMP
14988
14989 # Method to check whether dependent libraries are shared objects.
14990 deplibs_check_method=$lt_deplibs_check_method
14991
14992 # Command to use when deplibs_check_method = "file_magic".
14993 file_magic_cmd=$lt_file_magic_cmd
14994
14995 # How to find potential files when deplibs_check_method = "file_magic".
14996 file_magic_glob=$lt_file_magic_glob
14997
14998 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14999 want_nocaseglob=$lt_want_nocaseglob
15000
15001 # DLL creation program.
15002 DLLTOOL=$lt_DLLTOOL
15003
15004 # Command to associate shared and link libraries.
15005 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15006
15007 # The archiver.
15008 AR=$lt_AR
15009
15010 # Flags to create an archive.
15011 AR_FLAGS=$lt_AR_FLAGS
15012
15013 # How to feed a file listing to the archiver.
15014 archiver_list_spec=$lt_archiver_list_spec
15015
15016 # A symbol stripping program.
15017 STRIP=$lt_STRIP
15018
15019 # Commands used to install an old-style archive.
15020 RANLIB=$lt_RANLIB
15021 old_postinstall_cmds=$lt_old_postinstall_cmds
15022 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15023
15024 # Whether to use a lock for old archive extraction.
15025 lock_old_archive_extraction=$lock_old_archive_extraction
15026
15027 # A C compiler.
15028 LTCC=$lt_CC
15029
15030 # LTCC compiler flags.
15031 LTCFLAGS=$lt_CFLAGS
15032
15033 # Take the output of nm and produce a listing of raw symbols and C names.
15034 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15035
15036 # Transform the output of nm in a proper C declaration.
15037 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15038
15039 # Transform the output of nm in a C name address pair.
15040 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15041
15042 # Transform the output of nm in a C name address pair when lib prefix is needed.
15043 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15044
15045 # Specify filename containing input files for \$NM.
15046 nm_file_list_spec=$lt_nm_file_list_spec
15047
15048 # The root where to search for dependent libraries,and in which our libraries should be installed.
15049 lt_sysroot=$lt_sysroot
15050
15051 # The name of the directory that contains temporary libtool files.
15052 objdir=$objdir
15053
15054 # Used to examine libraries when file_magic_cmd begins with "file".
15055 MAGIC_CMD=$MAGIC_CMD
15056
15057 # Must we lock files when doing compilation?
15058 need_locks=$lt_need_locks
15059
15060 # Manifest tool.
15061 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15062
15063 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15064 DSYMUTIL=$lt_DSYMUTIL
15065
15066 # Tool to change global to local symbols on Mac OS X.
15067 NMEDIT=$lt_NMEDIT
15068
15069 # Tool to manipulate fat objects and archives on Mac OS X.
15070 LIPO=$lt_LIPO
15071
15072 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15073 OTOOL=$lt_OTOOL
15074
15075 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15076 OTOOL64=$lt_OTOOL64
15077
15078 # Old archive suffix (normally "a").
15079 libext=$libext
15080
15081 # Shared library suffix (normally ".so").
15082 shrext_cmds=$lt_shrext_cmds
15083
15084 # The commands to extract the exported symbol list from a shared archive.
15085 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15086
15087 # Variables whose values should be saved in libtool wrapper scripts and
15088 # restored at link time.
15089 variables_saved_for_relink=$lt_variables_saved_for_relink
15090
15091 # Do we need the "lib" prefix for modules?
15092 need_lib_prefix=$need_lib_prefix
15093
15094 # Do we need a version for libraries?
15095 need_version=$need_version
15096
15097 # Library versioning type.
15098 version_type=$version_type
15099
15100 # Shared library runtime path variable.
15101 runpath_var=$runpath_var
15102
15103 # Shared library path variable.
15104 shlibpath_var=$shlibpath_var
15105
15106 # Is shlibpath searched before the hard-coded library search path?
15107 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15108
15109 # Format of library name prefix.
15110 libname_spec=$lt_libname_spec
15111
15112 # List of archive names.  First name is the real one, the rest are links.
15113 # The last name is the one that the linker finds with -lNAME
15114 library_names_spec=$lt_library_names_spec
15115
15116 # The coded name of the library, if different from the real name.
15117 soname_spec=$lt_soname_spec
15118
15119 # Permission mode override for installation of shared libraries.
15120 install_override_mode=$lt_install_override_mode
15121
15122 # Command to use after installation of a shared archive.
15123 postinstall_cmds=$lt_postinstall_cmds
15124
15125 # Command to use after uninstallation of a shared archive.
15126 postuninstall_cmds=$lt_postuninstall_cmds
15127
15128 # Commands used to finish a libtool library installation in a directory.
15129 finish_cmds=$lt_finish_cmds
15130
15131 # As "finish_cmds", except a single script fragment to be evaled but
15132 # not shown.
15133 finish_eval=$lt_finish_eval
15134
15135 # Whether we should hardcode library paths into libraries.
15136 hardcode_into_libs=$hardcode_into_libs
15137
15138 # Compile-time system search path for libraries.
15139 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15140
15141 # Run-time system search path for libraries.
15142 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15143
15144 # Whether dlopen is supported.
15145 dlopen_support=$enable_dlopen
15146
15147 # Whether dlopen of programs is supported.
15148 dlopen_self=$enable_dlopen_self
15149
15150 # Whether dlopen of statically linked programs is supported.
15151 dlopen_self_static=$enable_dlopen_self_static
15152
15153 # Commands to strip libraries.
15154 old_striplib=$lt_old_striplib
15155 striplib=$lt_striplib
15156
15157
15158 # The linker used to build libraries.
15159 LD=$lt_LD
15160
15161 # How to create reloadable object files.
15162 reload_flag=$lt_reload_flag
15163 reload_cmds=$lt_reload_cmds
15164
15165 # Commands used to build an old-style archive.
15166 old_archive_cmds=$lt_old_archive_cmds
15167
15168 # A language specific compiler.
15169 CC=$lt_compiler
15170
15171 # Is the compiler the GNU compiler?
15172 with_gcc=$GCC
15173
15174 # Compiler flag to turn off builtin functions.
15175 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15176
15177 # Additional compiler flags for building library objects.
15178 pic_flag=$lt_lt_prog_compiler_pic
15179
15180 # How to pass a linker flag through the compiler.
15181 wl=$lt_lt_prog_compiler_wl
15182
15183 # Compiler flag to prevent dynamic linking.
15184 link_static_flag=$lt_lt_prog_compiler_static
15185
15186 # Does compiler simultaneously support -c and -o options?
15187 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15188
15189 # Whether or not to add -lc for building shared libraries.
15190 build_libtool_need_lc=$archive_cmds_need_lc
15191
15192 # Whether or not to disallow shared libs when runtime libs are static.
15193 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15194
15195 # Compiler flag to allow reflexive dlopens.
15196 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15197
15198 # Compiler flag to generate shared objects directly from archives.
15199 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15200
15201 # Whether the compiler copes with passing no objects directly.
15202 compiler_needs_object=$lt_compiler_needs_object
15203
15204 # Create an old-style archive from a shared archive.
15205 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15206
15207 # Create a temporary old-style archive to link instead of a shared archive.
15208 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15209
15210 # Commands used to build a shared archive.
15211 archive_cmds=$lt_archive_cmds
15212 archive_expsym_cmds=$lt_archive_expsym_cmds
15213
15214 # Commands used to build a loadable module if different from building
15215 # a shared archive.
15216 module_cmds=$lt_module_cmds
15217 module_expsym_cmds=$lt_module_expsym_cmds
15218
15219 # Whether we are building with GNU ld or not.
15220 with_gnu_ld=$lt_with_gnu_ld
15221
15222 # Flag that allows shared libraries with undefined symbols to be built.
15223 allow_undefined_flag=$lt_allow_undefined_flag
15224
15225 # Flag that enforces no undefined symbols.
15226 no_undefined_flag=$lt_no_undefined_flag
15227
15228 # Flag to hardcode \$libdir into a binary during linking.
15229 # This must work even if \$libdir does not exist
15230 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15231
15232 # Whether we need a single "-rpath" flag with a separated argument.
15233 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15234
15235 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15236 # DIR into the resulting binary.
15237 hardcode_direct=$hardcode_direct
15238
15239 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15240 # DIR into the resulting binary and the resulting library dependency is
15241 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15242 # library is relocated.
15243 hardcode_direct_absolute=$hardcode_direct_absolute
15244
15245 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15246 # into the resulting binary.
15247 hardcode_minus_L=$hardcode_minus_L
15248
15249 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15250 # into the resulting binary.
15251 hardcode_shlibpath_var=$hardcode_shlibpath_var
15252
15253 # Set to "yes" if building a shared library automatically hardcodes DIR
15254 # into the library and all subsequent libraries and executables linked
15255 # against it.
15256 hardcode_automatic=$hardcode_automatic
15257
15258 # Set to yes if linker adds runtime paths of dependent libraries
15259 # to runtime path list.
15260 inherit_rpath=$inherit_rpath
15261
15262 # Whether libtool must link a program against all its dependency libraries.
15263 link_all_deplibs=$link_all_deplibs
15264
15265 # Set to "yes" if exported symbols are required.
15266 always_export_symbols=$always_export_symbols
15267
15268 # The commands to list exported symbols.
15269 export_symbols_cmds=$lt_export_symbols_cmds
15270
15271 # Symbols that should not be listed in the preloaded symbols.
15272 exclude_expsyms=$lt_exclude_expsyms
15273
15274 # Symbols that must always be exported.
15275 include_expsyms=$lt_include_expsyms
15276
15277 # Commands necessary for linking programs (against libraries) with templates.
15278 prelink_cmds=$lt_prelink_cmds
15279
15280 # Commands necessary for finishing linking programs.
15281 postlink_cmds=$lt_postlink_cmds
15282
15283 # Specify filename containing input files.
15284 file_list_spec=$lt_file_list_spec
15285
15286 # How to hardcode a shared library path into an executable.
15287 hardcode_action=$hardcode_action
15288
15289 # ### END LIBTOOL CONFIG
15290
15291 _LT_EOF
15292
15293   case $host_os in
15294   aix3*)
15295     cat <<\_LT_EOF >> "$cfgfile"
15296 # AIX sometimes has problems with the GCC collect2 program.  For some
15297 # reason, if we set the COLLECT_NAMES environment variable, the problems
15298 # vanish in a puff of smoke.
15299 if test "X${COLLECT_NAMES+set}" != Xset; then
15300   COLLECT_NAMES=
15301   export COLLECT_NAMES
15302 fi
15303 _LT_EOF
15304     ;;
15305   esac
15306
15307
15308 ltmain="$ac_aux_dir/ltmain.sh"
15309
15310
15311   # We use sed instead of cat because bash on DJGPP gets confused if
15312   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15313   # text mode, it properly converts lines to CR/LF.  This bash problem
15314   # is reportedly fixed, but why not run on old versions too?
15315   sed '$q' "$ltmain" >> "$cfgfile" \
15316      || (rm -f "$cfgfile"; exit 1)
15317
15318   if test x"$xsi_shell" = xyes; then
15319   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
15320 func_dirname ()\
15321 {\
15322 \    case ${1} in\
15323 \      */*) func_dirname_result="${1%/*}${2}" ;;\
15324 \      *  ) func_dirname_result="${3}" ;;\
15325 \    esac\
15326 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
15327   && mv -f "$cfgfile.tmp" "$cfgfile" \
15328     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15329 test 0 -eq $? || _lt_function_replace_fail=:
15330
15331
15332   sed -e '/^func_basename ()$/,/^} # func_basename /c\
15333 func_basename ()\
15334 {\
15335 \    func_basename_result="${1##*/}"\
15336 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
15337   && mv -f "$cfgfile.tmp" "$cfgfile" \
15338     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15339 test 0 -eq $? || _lt_function_replace_fail=:
15340
15341
15342   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
15343 func_dirname_and_basename ()\
15344 {\
15345 \    case ${1} in\
15346 \      */*) func_dirname_result="${1%/*}${2}" ;;\
15347 \      *  ) func_dirname_result="${3}" ;;\
15348 \    esac\
15349 \    func_basename_result="${1##*/}"\
15350 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
15351   && mv -f "$cfgfile.tmp" "$cfgfile" \
15352     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15353 test 0 -eq $? || _lt_function_replace_fail=:
15354
15355
15356   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
15357 func_stripname ()\
15358 {\
15359 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
15360 \    # positional parameters, so assign one to ordinary parameter first.\
15361 \    func_stripname_result=${3}\
15362 \    func_stripname_result=${func_stripname_result#"${1}"}\
15363 \    func_stripname_result=${func_stripname_result%"${2}"}\
15364 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
15365   && mv -f "$cfgfile.tmp" "$cfgfile" \
15366     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15367 test 0 -eq $? || _lt_function_replace_fail=:
15368
15369
15370   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
15371 func_split_long_opt ()\
15372 {\
15373 \    func_split_long_opt_name=${1%%=*}\
15374 \    func_split_long_opt_arg=${1#*=}\
15375 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
15376   && mv -f "$cfgfile.tmp" "$cfgfile" \
15377     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15378 test 0 -eq $? || _lt_function_replace_fail=:
15379
15380
15381   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
15382 func_split_short_opt ()\
15383 {\
15384 \    func_split_short_opt_arg=${1#??}\
15385 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
15386 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
15387   && mv -f "$cfgfile.tmp" "$cfgfile" \
15388     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15389 test 0 -eq $? || _lt_function_replace_fail=:
15390
15391
15392   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
15393 func_lo2o ()\
15394 {\
15395 \    case ${1} in\
15396 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
15397 \      *)    func_lo2o_result=${1} ;;\
15398 \    esac\
15399 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
15400   && mv -f "$cfgfile.tmp" "$cfgfile" \
15401     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15402 test 0 -eq $? || _lt_function_replace_fail=:
15403
15404
15405   sed -e '/^func_xform ()$/,/^} # func_xform /c\
15406 func_xform ()\
15407 {\
15408     func_xform_result=${1%.*}.lo\
15409 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
15410   && mv -f "$cfgfile.tmp" "$cfgfile" \
15411     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15412 test 0 -eq $? || _lt_function_replace_fail=:
15413
15414
15415   sed -e '/^func_arith ()$/,/^} # func_arith /c\
15416 func_arith ()\
15417 {\
15418     func_arith_result=$(( $* ))\
15419 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
15420   && mv -f "$cfgfile.tmp" "$cfgfile" \
15421     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15422 test 0 -eq $? || _lt_function_replace_fail=:
15423
15424
15425   sed -e '/^func_len ()$/,/^} # func_len /c\
15426 func_len ()\
15427 {\
15428     func_len_result=${#1}\
15429 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
15430   && mv -f "$cfgfile.tmp" "$cfgfile" \
15431     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15432 test 0 -eq $? || _lt_function_replace_fail=:
15433
15434 fi
15435
15436 if test x"$lt_shell_append" = xyes; then
15437   sed -e '/^func_append ()$/,/^} # func_append /c\
15438 func_append ()\
15439 {\
15440     eval "${1}+=\\${2}"\
15441 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
15442   && mv -f "$cfgfile.tmp" "$cfgfile" \
15443     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15444 test 0 -eq $? || _lt_function_replace_fail=:
15445
15446
15447   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
15448 func_append_quoted ()\
15449 {\
15450 \    func_quote_for_eval "${2}"\
15451 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
15452 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
15453   && mv -f "$cfgfile.tmp" "$cfgfile" \
15454     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15455 test 0 -eq $? || _lt_function_replace_fail=:
15456
15457
15458   # Save a `func_append' function call where possible by direct use of '+='
15459   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
15460     && mv -f "$cfgfile.tmp" "$cfgfile" \
15461       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15462   test 0 -eq $? || _lt_function_replace_fail=:
15463 else
15464   # Save a `func_append' function call even when '+=' is not available
15465   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
15466     && mv -f "$cfgfile.tmp" "$cfgfile" \
15467       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15468   test 0 -eq $? || _lt_function_replace_fail=:
15469 fi
15470
15471 if test x"$_lt_function_replace_fail" = x":"; then
15472   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
15473 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
15474 fi
15475
15476
15477    mv -f "$cfgfile" "$ofile" ||
15478     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15479   chmod +x "$ofile"
15480
15481  ;;
15482
15483   esac
15484 done # for ac_tag
15485
15486
15487 as_fn_exit 0
15488 _ACEOF
15489 ac_clean_files=$ac_clean_files_save
15490
15491 test $ac_write_fail = 0 ||
15492   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15493
15494
15495 # configure is writing to config.log, and then calls config.status.
15496 # config.status does its own redirection, appending to config.log.
15497 # Unfortunately, on DOS this fails, as config.log is still kept open
15498 # by configure, so config.status won't be able to write to it; its
15499 # output is simply discarded.  So we exec the FD to /dev/null,
15500 # effectively closing config.log, so it can be properly (re)opened and
15501 # appended to by config.status.  When coming back to configure, we
15502 # need to make the FD available again.
15503 if test "$no_create" != yes; then
15504   ac_cs_success=:
15505   ac_config_status_args=
15506   test "$silent" = yes &&
15507     ac_config_status_args="$ac_config_status_args --quiet"
15508   exec 5>/dev/null
15509   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15510   exec 5>>config.log
15511   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15512   # would make configure fail if this is the last instruction.
15513   $ac_cs_success || as_fn_exit 1
15514 fi
15515 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15516   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15517 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15518 fi
15519