Update the GUPnP-AV.changes file.
[profile/ivi/GUPnP-AV.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for gupnp-av 0.11.2.
4 #
5 # Report bugs to <https://bugzilla.gnome.org/enter_bug.cgi?product=GUPnP>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
202
203   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207     PATH=/empty FPATH=/empty; export PATH FPATH
208     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210   if (eval "$as_required") 2>/dev/null; then :
211   as_have_required=yes
212 else
213   as_have_required=no
214 fi
215   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   as_found=:
225   case $as_dir in #(
226          /*)
227            for as_base in sh bash ksh sh5; do
228              # Try only shells that exist, to save several forks.
229              as_shell=$as_dir/$as_base
230              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   CONFIG_SHELL=$as_shell as_have_required=yes
233                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234   break 2
235 fi
236 fi
237            done;;
238        esac
239   as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243   CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248       if test "x$CONFIG_SHELL" != x; then :
249   export CONFIG_SHELL
250              # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258   *v*x* | *x*v* ) as_opts=-vx ;;
259   *v* ) as_opts=-v ;;
260   *x* ) as_opts=-x ;;
261   * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270     if test x$as_have_required = xno; then :
271   $as_echo "$0: This script requires a shell more modern than all"
272   $as_echo "$0: the shells that I found on your system."
273   if test x${ZSH_VERSION+set} = xset ; then
274     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276   else
277     $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: https://bugzilla.gnome.org/enter_bug.cgi?product=GUPnP
279 $0: about your system, including any error possibly output
280 $0: before this message. Then install a modern shell, or
281 $0: manually run the script under such a shell if you do
282 $0: have one."
283   fi
284   exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302   { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
309 as_fn_set_status ()
310 {
311   return $1
312 } # as_fn_set_status
313
314 # as_fn_exit STATUS
315 # -----------------
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 as_fn_exit ()
318 {
319   set +e
320   as_fn_set_status $1
321   exit $1
322 } # as_fn_exit
323
324 # as_fn_mkdir_p
325 # -------------
326 # Create "$as_dir" as a directory, including parents if necessary.
327 as_fn_mkdir_p ()
328 {
329
330   case $as_dir in #(
331   -*) as_dir=./$as_dir;;
332   esac
333   test -d "$as_dir" || eval $as_mkdir_p || {
334     as_dirs=
335     while :; do
336       case $as_dir in #(
337       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338       *) as_qdir=$as_dir;;
339       esac
340       as_dirs="'$as_qdir' $as_dirs"
341       as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343          X"$as_dir" : 'X\(//\)[^/]' \| \
344          X"$as_dir" : 'X\(//\)$' \| \
345          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 $as_echo X"$as_dir" |
347     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348             s//\1/
349             q
350           }
351           /^X\(\/\/\)[^/].*/{
352             s//\1/
353             q
354           }
355           /^X\(\/\/\)$/{
356             s//\1/
357             q
358           }
359           /^X\(\/\).*/{
360             s//\1/
361             q
362           }
363           s/.*/./; q'`
364       test -d "$as_dir" && break
365     done
366     test -z "$as_dirs" || eval "mkdir $as_dirs"
367   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370 } # as_fn_mkdir_p
371
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
376 {
377   test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
384 # implementations.
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386   eval 'as_fn_append ()
387   {
388     eval $1+=\$2
389   }'
390 else
391   as_fn_append ()
392   {
393     eval $1=\$$1\$2
394   }
395 fi # as_fn_append
396
397 # as_fn_arith ARG...
398 # ------------------
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403   eval 'as_fn_arith ()
404   {
405     as_val=$(( $* ))
406   }'
407 else
408   as_fn_arith ()
409   {
410     as_val=`expr "$@" || test $? -eq 1`
411   }
412 fi # as_fn_arith
413
414
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
420 as_fn_error ()
421 {
422   as_status=$1; test $as_status -eq 0 && as_status=1
423   if test "$4"; then
424     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426   fi
427   $as_echo "$as_me: error: $2" >&2
428   as_fn_exit $as_status
429 } # as_fn_error
430
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432    test "X`expr 00001 : '.*\(...\)'`" = X001; then
433   as_expr=expr
434 else
435   as_expr=false
436 fi
437
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439   as_basename=basename
440 else
441   as_basename=false
442 fi
443
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445   as_dirname=dirname
446 else
447   as_dirname=false
448 fi
449
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452          X"$0" : 'X\(//\)$' \| \
453          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 $as_echo X/"$0" |
455     sed '/^.*\/\([^/][^/]*\)\/*$/{
456             s//\1/
457             q
458           }
459           /^X\/\(\/\/\)$/{
460             s//\1/
461             q
462           }
463           /^X\/\(\/\).*/{
464             s//\1/
465             q
466           }
467           s/.*/./; q'`
468
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477   as_lineno_1=$LINENO as_lineno_1a=$LINENO
478   as_lineno_2=$LINENO as_lineno_2a=$LINENO
479   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
482   sed -n '
483     p
484     /[$]LINENO/=
485   ' <$as_myself |
486     sed '
487       s/[$]LINENO.*/&-/
488       t lineno
489       b
490       :lineno
491       N
492       :loop
493       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494       t loop
495       s/-\n.*//
496     ' >$as_me.lineno &&
497   chmod +x "$as_me.lineno" ||
498     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501   # already done that, so ensure we don't try to do so again and fall
502   # in an infinite loop.  This has already happened in practice.
503   _as_can_reexec=no; export _as_can_reexec
504   # Don't try to exec as it changes $[0], causing all sort of problems
505   # (the dirname of $[0] is not the place where we might find the
506   # original and so on.  Autoconf is especially sensitive to this).
507   . "./$as_me.lineno"
508   # Exit status is that of the last command.
509   exit
510 }
511
512 ECHO_C= ECHO_N= ECHO_T=
513 case `echo -n x` in #(((((
514 -n*)
515   case `echo 'xy\c'` in
516   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
517   xy)  ECHO_C='\c';;
518   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
519        ECHO_T=' ';;
520   esac;;
521 *)
522   ECHO_N='-n';;
523 esac
524
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527   rm -f conf$$.dir/conf$$.file
528 else
529   rm -f conf$$.dir
530   mkdir conf$$.dir 2>/dev/null
531 fi
532 if (echo >conf$$.file) 2>/dev/null; then
533   if ln -s conf$$.file conf$$ 2>/dev/null; then
534     as_ln_s='ln -s'
535     # ... but there are two gotchas:
536     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538     # In both cases, we have to default to `cp -pR'.
539     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540       as_ln_s='cp -pR'
541   elif ln conf$$.file conf$$ 2>/dev/null; then
542     as_ln_s=ln
543   else
544     as_ln_s='cp -pR'
545   fi
546 else
547   as_ln_s='cp -pR'
548 fi
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
551
552 if mkdir -p . 2>/dev/null; then
553   as_mkdir_p='mkdir -p "$as_dir"'
554 else
555   test -d ./-p && rmdir ./-p
556   as_mkdir_p=false
557 fi
558
559 as_test_x='test -x'
560 as_executable_p=as_fn_executable_p
561
562 # Sed expression to map a string onto a valid CPP name.
563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565 # Sed expression to map a string onto a valid variable name.
566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568 SHELL=${CONFIG_SHELL-/bin/sh}
569
570 as_awk_strverscmp='
571   # Use only awk features that work with 7th edition Unix awk (1978).
572   # My, what an old awk you have, Mr. Solaris!
573   END {
574     while (length(v1) && length(v2)) {
575       # Set d1 to be the next thing to compare from v1, and likewise for d2.
576       # Normally this is a single character, but if v1 and v2 contain digits,
577       # compare them as integers and fractions as strverscmp does.
578       if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
579         # Split v1 and v2 into their leading digit string components d1 and d2,
580         # and advance v1 and v2 past the leading digit strings.
581         for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
582         for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
583         d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
584         d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
585         if (d1 ~ /^0/) {
586           if (d2 ~ /^0/) {
587             # Compare two fractions.
588             while (d1 ~ /^0/ && d2 ~ /^0/) {
589               d1 = substr(d1, 2); len1--
590               d2 = substr(d2, 2); len2--
591             }
592             if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
593               # The two components differ in length, and the common prefix
594               # contains only leading zeros.  Consider the longer to be less.
595               d1 = -len1
596               d2 = -len2
597             } else {
598               # Otherwise, compare as strings.
599               d1 = "x" d1
600               d2 = "x" d2
601             }
602           } else {
603             # A fraction is less than an integer.
604             exit 1
605           }
606         } else {
607           if (d2 ~ /^0/) {
608             # An integer is greater than a fraction.
609             exit 2
610           } else {
611             # Compare two integers.
612             d1 += 0
613             d2 += 0
614           }
615         }
616       } else {
617         # The normal case, without worrying about digits.
618         d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
619         d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
620       }
621       if (d1 < d2) exit 1
622       if (d1 > d2) exit 2
623     }
624     # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
625     # which mishandles some comparisons of empty strings to integers.
626     if (length(v2)) exit 1
627     if (length(v1)) exit 2
628   }
629 '
630
631 test -n "$DJDIR" || exec 7<&0 </dev/null
632 exec 6>&1
633
634 # Name of the host.
635 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
636 # so uname gets run too.
637 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
638
639 #
640 # Initializations.
641 #
642 ac_default_prefix=/usr/local
643 ac_clean_files=
644 ac_config_libobj_dir=.
645 LIBOBJS=
646 cross_compiling=no
647 subdirs=
648 MFLAGS=
649 MAKEFLAGS=
650
651 # Identity of this package.
652 PACKAGE_NAME='gupnp-av'
653 PACKAGE_TARNAME='gupnp-av'
654 PACKAGE_VERSION='0.11.2'
655 PACKAGE_STRING='gupnp-av 0.11.2'
656 PACKAGE_BUGREPORT='https://bugzilla.gnome.org/enter_bug.cgi?product=GUPnP'
657 PACKAGE_URL='http://www.gupnp.org/'
658
659 ac_unique_file="libgupnp-av/gupnp-av.h"
660 ac_header_list=
661 # Factoring default headers for most tests.
662 ac_includes_default="\
663 #include <stdio.h>
664 #ifdef HAVE_SYS_TYPES_H
665 # include <sys/types.h>
666 #endif
667 #ifdef HAVE_SYS_STAT_H
668 # include <sys/stat.h>
669 #endif
670 #ifdef STDC_HEADERS
671 # include <stdlib.h>
672 # include <stddef.h>
673 #else
674 # ifdef HAVE_STDLIB_H
675 #  include <stdlib.h>
676 # endif
677 #endif
678 #ifdef HAVE_STRING_H
679 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
680 #  include <memory.h>
681 # endif
682 # include <string.h>
683 #endif
684 #ifdef HAVE_STRINGS_H
685 # include <strings.h>
686 #endif
687 #ifdef HAVE_INTTYPES_H
688 # include <inttypes.h>
689 #endif
690 #ifdef HAVE_STDINT_H
691 # include <stdint.h>
692 #endif
693 #ifdef HAVE_UNISTD_H
694 # include <unistd.h>
695 #endif"
696
697 ac_subst_vars='am__EXEEXT_FALSE
698 am__EXEEXT_TRUE
699 LTLIBOBJS
700 LIBOBJS
701 GTK_DOC_USE_REBASE_FALSE
702 GTK_DOC_USE_REBASE_TRUE
703 GTK_DOC_USE_LIBTOOL_FALSE
704 GTK_DOC_USE_LIBTOOL_TRUE
705 GTK_DOC_BUILD_PDF_FALSE
706 GTK_DOC_BUILD_PDF_TRUE
707 GTK_DOC_BUILD_HTML_FALSE
708 GTK_DOC_BUILD_HTML_TRUE
709 ENABLE_GTK_DOC_FALSE
710 ENABLE_GTK_DOC_TRUE
711 GTKDOC_DEPS_LIBS
712 GTKDOC_DEPS_CFLAGS
713 HTML_DIR
714 GTKDOC_MKPDF
715 GTKDOC_REBASE
716 GTKDOC_CHECK
717 HAVE_VAPIGEN_FALSE
718 HAVE_VAPIGEN_TRUE
719 VAPIGEN
720 HAVE_INTROSPECTION_FALSE
721 HAVE_INTROSPECTION_TRUE
722 INTROSPECTION_MAKEFILE
723 INTROSPECTION_LIBS
724 INTROSPECTION_CFLAGS
725 INTROSPECTION_TYPELIBDIR
726 INTROSPECTION_GIRDIR
727 INTROSPECTION_GENERATE
728 INTROSPECTION_COMPILER
729 INTROSPECTION_SCANNER
730 GLIB_GENMARSHAL
731 LIBGUPNP_LIBS
732 LIBGUPNP_CFLAGS
733 PKG_CONFIG_LIBDIR
734 PKG_CONFIG_PATH
735 PKG_CONFIG
736 OTOOL64
737 OTOOL
738 LIPO
739 NMEDIT
740 DSYMUTIL
741 MANIFEST_TOOL
742 RANLIB
743 ac_ct_AR
744 AR
745 LN_S
746 NM
747 ac_ct_DUMPBIN
748 DUMPBIN
749 LD
750 FGREP
751 SED
752 host_os
753 host_vendor
754 host_cpu
755 host
756 build_os
757 build_vendor
758 build_cpu
759 build
760 LIBTOOL
761 OBJDUMP
762 DLLTOOL
763 AS
764 EGREP
765 GREP
766 CPP
767 am__fastdepCC_FALSE
768 am__fastdepCC_TRUE
769 CCDEPMODE
770 am__nodep
771 AMDEPBACKSLASH
772 AMDEP_FALSE
773 AMDEP_TRUE
774 am__quote
775 am__include
776 DEPDIR
777 OBJEXT
778 EXEEXT
779 ac_ct_CC
780 CPPFLAGS
781 LDFLAGS
782 CFLAGS
783 CC
784 AM_BACKSLASH
785 AM_DEFAULT_VERBOSITY
786 AM_DEFAULT_V
787 AM_V
788 am__untar
789 am__tar
790 AMTAR
791 am__leading_dot
792 SET_MAKE
793 AWK
794 mkdir_p
795 MKDIR_P
796 INSTALL_STRIP_PROGRAM
797 STRIP
798 install_sh
799 MAKEINFO
800 AUTOHEADER
801 AUTOMAKE
802 AUTOCONF
803 ACLOCAL
804 VERSION
805 PACKAGE
806 CYGPATH_W
807 am__isrc
808 INSTALL_DATA
809 INSTALL_SCRIPT
810 INSTALL_PROGRAM
811 target_alias
812 host_alias
813 build_alias
814 LIBS
815 ECHO_T
816 ECHO_N
817 ECHO_C
818 DEFS
819 mandir
820 localedir
821 libdir
822 psdir
823 pdfdir
824 dvidir
825 htmldir
826 infodir
827 docdir
828 oldincludedir
829 includedir
830 localstatedir
831 sharedstatedir
832 sysconfdir
833 datadir
834 datarootdir
835 libexecdir
836 sbindir
837 bindir
838 program_transform_name
839 prefix
840 exec_prefix
841 PACKAGE_URL
842 PACKAGE_BUGREPORT
843 PACKAGE_STRING
844 PACKAGE_VERSION
845 PACKAGE_TARNAME
846 PACKAGE_NAME
847 PATH_SEPARATOR
848 SHELL'
849 ac_subst_files=''
850 ac_user_opts='
851 enable_option_checking
852 enable_silent_rules
853 enable_dependency_tracking
854 enable_shared
855 enable_static
856 with_pic
857 enable_fast_install
858 with_gnu_ld
859 with_sysroot
860 enable_libtool_lock
861 enable_debug
862 enable_introspection
863 with_html_dir
864 enable_gtk_doc
865 enable_gtk_doc_html
866 enable_gtk_doc_pdf
867 '
868       ac_precious_vars='build_alias
869 host_alias
870 target_alias
871 CC
872 CFLAGS
873 LDFLAGS
874 LIBS
875 CPPFLAGS
876 CPP
877 PKG_CONFIG
878 PKG_CONFIG_PATH
879 PKG_CONFIG_LIBDIR
880 LIBGUPNP_CFLAGS
881 LIBGUPNP_LIBS
882 GTKDOC_DEPS_CFLAGS
883 GTKDOC_DEPS_LIBS'
884
885
886 # Initialize some variables set by options.
887 ac_init_help=
888 ac_init_version=false
889 ac_unrecognized_opts=
890 ac_unrecognized_sep=
891 # The variables have the same names as the options, with
892 # dashes changed to underlines.
893 cache_file=/dev/null
894 exec_prefix=NONE
895 no_create=
896 no_recursion=
897 prefix=NONE
898 program_prefix=NONE
899 program_suffix=NONE
900 program_transform_name=s,x,x,
901 silent=
902 site=
903 srcdir=
904 verbose=
905 x_includes=NONE
906 x_libraries=NONE
907
908 # Installation directory options.
909 # These are left unexpanded so users can "make install exec_prefix=/foo"
910 # and all the variables that are supposed to be based on exec_prefix
911 # by default will actually change.
912 # Use braces instead of parens because sh, perl, etc. also accept them.
913 # (The list follows the same order as the GNU Coding Standards.)
914 bindir='${exec_prefix}/bin'
915 sbindir='${exec_prefix}/sbin'
916 libexecdir='${exec_prefix}/libexec'
917 datarootdir='${prefix}/share'
918 datadir='${datarootdir}'
919 sysconfdir='${prefix}/etc'
920 sharedstatedir='${prefix}/com'
921 localstatedir='${prefix}/var'
922 includedir='${prefix}/include'
923 oldincludedir='/usr/include'
924 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
925 infodir='${datarootdir}/info'
926 htmldir='${docdir}'
927 dvidir='${docdir}'
928 pdfdir='${docdir}'
929 psdir='${docdir}'
930 libdir='${exec_prefix}/lib'
931 localedir='${datarootdir}/locale'
932 mandir='${datarootdir}/man'
933
934 ac_prev=
935 ac_dashdash=
936 for ac_option
937 do
938   # If the previous option needs an argument, assign it.
939   if test -n "$ac_prev"; then
940     eval $ac_prev=\$ac_option
941     ac_prev=
942     continue
943   fi
944
945   case $ac_option in
946   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
947   *=)   ac_optarg= ;;
948   *)    ac_optarg=yes ;;
949   esac
950
951   # Accept the important Cygnus configure options, so we can diagnose typos.
952
953   case $ac_dashdash$ac_option in
954   --)
955     ac_dashdash=yes ;;
956
957   -bindir | --bindir | --bindi | --bind | --bin | --bi)
958     ac_prev=bindir ;;
959   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
960     bindir=$ac_optarg ;;
961
962   -build | --build | --buil | --bui | --bu)
963     ac_prev=build_alias ;;
964   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
965     build_alias=$ac_optarg ;;
966
967   -cache-file | --cache-file | --cache-fil | --cache-fi \
968   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
969     ac_prev=cache_file ;;
970   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
971   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
972     cache_file=$ac_optarg ;;
973
974   --config-cache | -C)
975     cache_file=config.cache ;;
976
977   -datadir | --datadir | --datadi | --datad)
978     ac_prev=datadir ;;
979   -datadir=* | --datadir=* | --datadi=* | --datad=*)
980     datadir=$ac_optarg ;;
981
982   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
983   | --dataroo | --dataro | --datar)
984     ac_prev=datarootdir ;;
985   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
986   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
987     datarootdir=$ac_optarg ;;
988
989   -disable-* | --disable-*)
990     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
991     # Reject names that are not valid shell variable names.
992     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
993       as_fn_error $? "invalid feature name: $ac_useropt"
994     ac_useropt_orig=$ac_useropt
995     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
996     case $ac_user_opts in
997       *"
998 "enable_$ac_useropt"
999 "*) ;;
1000       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1001          ac_unrecognized_sep=', ';;
1002     esac
1003     eval enable_$ac_useropt=no ;;
1004
1005   -docdir | --docdir | --docdi | --doc | --do)
1006     ac_prev=docdir ;;
1007   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1008     docdir=$ac_optarg ;;
1009
1010   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1011     ac_prev=dvidir ;;
1012   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1013     dvidir=$ac_optarg ;;
1014
1015   -enable-* | --enable-*)
1016     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1017     # Reject names that are not valid shell variable names.
1018     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1019       as_fn_error $? "invalid feature name: $ac_useropt"
1020     ac_useropt_orig=$ac_useropt
1021     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1022     case $ac_user_opts in
1023       *"
1024 "enable_$ac_useropt"
1025 "*) ;;
1026       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1027          ac_unrecognized_sep=', ';;
1028     esac
1029     eval enable_$ac_useropt=\$ac_optarg ;;
1030
1031   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1032   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1033   | --exec | --exe | --ex)
1034     ac_prev=exec_prefix ;;
1035   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1036   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1037   | --exec=* | --exe=* | --ex=*)
1038     exec_prefix=$ac_optarg ;;
1039
1040   -gas | --gas | --ga | --g)
1041     # Obsolete; use --with-gas.
1042     with_gas=yes ;;
1043
1044   -help | --help | --hel | --he | -h)
1045     ac_init_help=long ;;
1046   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1047     ac_init_help=recursive ;;
1048   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1049     ac_init_help=short ;;
1050
1051   -host | --host | --hos | --ho)
1052     ac_prev=host_alias ;;
1053   -host=* | --host=* | --hos=* | --ho=*)
1054     host_alias=$ac_optarg ;;
1055
1056   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1057     ac_prev=htmldir ;;
1058   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1059   | --ht=*)
1060     htmldir=$ac_optarg ;;
1061
1062   -includedir | --includedir | --includedi | --included | --include \
1063   | --includ | --inclu | --incl | --inc)
1064     ac_prev=includedir ;;
1065   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1066   | --includ=* | --inclu=* | --incl=* | --inc=*)
1067     includedir=$ac_optarg ;;
1068
1069   -infodir | --infodir | --infodi | --infod | --info | --inf)
1070     ac_prev=infodir ;;
1071   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1072     infodir=$ac_optarg ;;
1073
1074   -libdir | --libdir | --libdi | --libd)
1075     ac_prev=libdir ;;
1076   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1077     libdir=$ac_optarg ;;
1078
1079   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1080   | --libexe | --libex | --libe)
1081     ac_prev=libexecdir ;;
1082   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1083   | --libexe=* | --libex=* | --libe=*)
1084     libexecdir=$ac_optarg ;;
1085
1086   -localedir | --localedir | --localedi | --localed | --locale)
1087     ac_prev=localedir ;;
1088   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1089     localedir=$ac_optarg ;;
1090
1091   -localstatedir | --localstatedir | --localstatedi | --localstated \
1092   | --localstate | --localstat | --localsta | --localst | --locals)
1093     ac_prev=localstatedir ;;
1094   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1095   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1096     localstatedir=$ac_optarg ;;
1097
1098   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1099     ac_prev=mandir ;;
1100   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1101     mandir=$ac_optarg ;;
1102
1103   -nfp | --nfp | --nf)
1104     # Obsolete; use --without-fp.
1105     with_fp=no ;;
1106
1107   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1108   | --no-cr | --no-c | -n)
1109     no_create=yes ;;
1110
1111   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1112   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1113     no_recursion=yes ;;
1114
1115   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1116   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1117   | --oldin | --oldi | --old | --ol | --o)
1118     ac_prev=oldincludedir ;;
1119   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1120   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1121   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1122     oldincludedir=$ac_optarg ;;
1123
1124   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1125     ac_prev=prefix ;;
1126   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1127     prefix=$ac_optarg ;;
1128
1129   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1130   | --program-pre | --program-pr | --program-p)
1131     ac_prev=program_prefix ;;
1132   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1133   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1134     program_prefix=$ac_optarg ;;
1135
1136   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1137   | --program-suf | --program-su | --program-s)
1138     ac_prev=program_suffix ;;
1139   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1140   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1141     program_suffix=$ac_optarg ;;
1142
1143   -program-transform-name | --program-transform-name \
1144   | --program-transform-nam | --program-transform-na \
1145   | --program-transform-n | --program-transform- \
1146   | --program-transform | --program-transfor \
1147   | --program-transfo | --program-transf \
1148   | --program-trans | --program-tran \
1149   | --progr-tra | --program-tr | --program-t)
1150     ac_prev=program_transform_name ;;
1151   -program-transform-name=* | --program-transform-name=* \
1152   | --program-transform-nam=* | --program-transform-na=* \
1153   | --program-transform-n=* | --program-transform-=* \
1154   | --program-transform=* | --program-transfor=* \
1155   | --program-transfo=* | --program-transf=* \
1156   | --program-trans=* | --program-tran=* \
1157   | --progr-tra=* | --program-tr=* | --program-t=*)
1158     program_transform_name=$ac_optarg ;;
1159
1160   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1161     ac_prev=pdfdir ;;
1162   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1163     pdfdir=$ac_optarg ;;
1164
1165   -psdir | --psdir | --psdi | --psd | --ps)
1166     ac_prev=psdir ;;
1167   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1168     psdir=$ac_optarg ;;
1169
1170   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1171   | -silent | --silent | --silen | --sile | --sil)
1172     silent=yes ;;
1173
1174   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1175     ac_prev=sbindir ;;
1176   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1177   | --sbi=* | --sb=*)
1178     sbindir=$ac_optarg ;;
1179
1180   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1181   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1182   | --sharedst | --shareds | --shared | --share | --shar \
1183   | --sha | --sh)
1184     ac_prev=sharedstatedir ;;
1185   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1186   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1187   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1188   | --sha=* | --sh=*)
1189     sharedstatedir=$ac_optarg ;;
1190
1191   -site | --site | --sit)
1192     ac_prev=site ;;
1193   -site=* | --site=* | --sit=*)
1194     site=$ac_optarg ;;
1195
1196   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1197     ac_prev=srcdir ;;
1198   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1199     srcdir=$ac_optarg ;;
1200
1201   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1202   | --syscon | --sysco | --sysc | --sys | --sy)
1203     ac_prev=sysconfdir ;;
1204   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1205   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1206     sysconfdir=$ac_optarg ;;
1207
1208   -target | --target | --targe | --targ | --tar | --ta | --t)
1209     ac_prev=target_alias ;;
1210   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1211     target_alias=$ac_optarg ;;
1212
1213   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1214     verbose=yes ;;
1215
1216   -version | --version | --versio | --versi | --vers | -V)
1217     ac_init_version=: ;;
1218
1219   -with-* | --with-*)
1220     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1221     # Reject names that are not valid shell variable names.
1222     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1223       as_fn_error $? "invalid package name: $ac_useropt"
1224     ac_useropt_orig=$ac_useropt
1225     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1226     case $ac_user_opts in
1227       *"
1228 "with_$ac_useropt"
1229 "*) ;;
1230       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1231          ac_unrecognized_sep=', ';;
1232     esac
1233     eval with_$ac_useropt=\$ac_optarg ;;
1234
1235   -without-* | --without-*)
1236     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1237     # Reject names that are not valid shell variable names.
1238     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1239       as_fn_error $? "invalid package name: $ac_useropt"
1240     ac_useropt_orig=$ac_useropt
1241     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1242     case $ac_user_opts in
1243       *"
1244 "with_$ac_useropt"
1245 "*) ;;
1246       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1247          ac_unrecognized_sep=', ';;
1248     esac
1249     eval with_$ac_useropt=no ;;
1250
1251   --x)
1252     # Obsolete; use --with-x.
1253     with_x=yes ;;
1254
1255   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1256   | --x-incl | --x-inc | --x-in | --x-i)
1257     ac_prev=x_includes ;;
1258   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1259   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1260     x_includes=$ac_optarg ;;
1261
1262   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1263   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1264     ac_prev=x_libraries ;;
1265   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1266   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1267     x_libraries=$ac_optarg ;;
1268
1269   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1270 Try \`$0 --help' for more information"
1271     ;;
1272
1273   *=*)
1274     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1275     # Reject names that are not valid shell variable names.
1276     case $ac_envvar in #(
1277       '' | [0-9]* | *[!_$as_cr_alnum]* )
1278       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1279     esac
1280     eval $ac_envvar=\$ac_optarg
1281     export $ac_envvar ;;
1282
1283   *)
1284     # FIXME: should be removed in autoconf 3.0.
1285     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1286     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1287       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1288     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1289     ;;
1290
1291   esac
1292 done
1293
1294 if test -n "$ac_prev"; then
1295   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1296   as_fn_error $? "missing argument to $ac_option"
1297 fi
1298
1299 if test -n "$ac_unrecognized_opts"; then
1300   case $enable_option_checking in
1301     no) ;;
1302     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1303     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1304   esac
1305 fi
1306
1307 # Check all directory arguments for consistency.
1308 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1309                 datadir sysconfdir sharedstatedir localstatedir includedir \
1310                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1311                 libdir localedir mandir
1312 do
1313   eval ac_val=\$$ac_var
1314   # Remove trailing slashes.
1315   case $ac_val in
1316     */ )
1317       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1318       eval $ac_var=\$ac_val;;
1319   esac
1320   # Be sure to have absolute directory names.
1321   case $ac_val in
1322     [\\/$]* | ?:[\\/]* )  continue;;
1323     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1324   esac
1325   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1326 done
1327
1328 # There might be people who depend on the old broken behavior: `$host'
1329 # used to hold the argument of --host etc.
1330 # FIXME: To remove some day.
1331 build=$build_alias
1332 host=$host_alias
1333 target=$target_alias
1334
1335 # FIXME: To remove some day.
1336 if test "x$host_alias" != x; then
1337   if test "x$build_alias" = x; then
1338     cross_compiling=maybe
1339   elif test "x$build_alias" != "x$host_alias"; then
1340     cross_compiling=yes
1341   fi
1342 fi
1343
1344 ac_tool_prefix=
1345 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1346
1347 test "$silent" = yes && exec 6>/dev/null
1348
1349
1350 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1351 ac_ls_di=`ls -di .` &&
1352 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1353   as_fn_error $? "working directory cannot be determined"
1354 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1355   as_fn_error $? "pwd does not report name of working directory"
1356
1357
1358 # Find the source files, if location was not specified.
1359 if test -z "$srcdir"; then
1360   ac_srcdir_defaulted=yes
1361   # Try the directory containing this script, then the parent directory.
1362   ac_confdir=`$as_dirname -- "$as_myself" ||
1363 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1364          X"$as_myself" : 'X\(//\)[^/]' \| \
1365          X"$as_myself" : 'X\(//\)$' \| \
1366          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1367 $as_echo X"$as_myself" |
1368     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1369             s//\1/
1370             q
1371           }
1372           /^X\(\/\/\)[^/].*/{
1373             s//\1/
1374             q
1375           }
1376           /^X\(\/\/\)$/{
1377             s//\1/
1378             q
1379           }
1380           /^X\(\/\).*/{
1381             s//\1/
1382             q
1383           }
1384           s/.*/./; q'`
1385   srcdir=$ac_confdir
1386   if test ! -r "$srcdir/$ac_unique_file"; then
1387     srcdir=..
1388   fi
1389 else
1390   ac_srcdir_defaulted=no
1391 fi
1392 if test ! -r "$srcdir/$ac_unique_file"; then
1393   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1394   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1395 fi
1396 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1397 ac_abs_confdir=`(
1398         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1399         pwd)`
1400 # When building in place, set srcdir=.
1401 if test "$ac_abs_confdir" = "$ac_pwd"; then
1402   srcdir=.
1403 fi
1404 # Remove unnecessary trailing slashes from srcdir.
1405 # Double slashes in file names in object file debugging info
1406 # mess up M-x gdb in Emacs.
1407 case $srcdir in
1408 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1409 esac
1410 for ac_var in $ac_precious_vars; do
1411   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1412   eval ac_env_${ac_var}_value=\$${ac_var}
1413   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1414   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1415 done
1416
1417 #
1418 # Report the --help message.
1419 #
1420 if test "$ac_init_help" = "long"; then
1421   # Omit some internal or obsolete options to make the list less imposing.
1422   # This message is too long to be a string in the A/UX 3.1 sh.
1423   cat <<_ACEOF
1424 \`configure' configures gupnp-av 0.11.2 to adapt to many kinds of systems.
1425
1426 Usage: $0 [OPTION]... [VAR=VALUE]...
1427
1428 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1429 VAR=VALUE.  See below for descriptions of some of the useful variables.
1430
1431 Defaults for the options are specified in brackets.
1432
1433 Configuration:
1434   -h, --help              display this help and exit
1435       --help=short        display options specific to this package
1436       --help=recursive    display the short help of all the included packages
1437   -V, --version           display version information and exit
1438   -q, --quiet, --silent   do not print \`checking ...' messages
1439       --cache-file=FILE   cache test results in FILE [disabled]
1440   -C, --config-cache      alias for \`--cache-file=config.cache'
1441   -n, --no-create         do not create output files
1442       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1443
1444 Installation directories:
1445   --prefix=PREFIX         install architecture-independent files in PREFIX
1446                           [$ac_default_prefix]
1447   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1448                           [PREFIX]
1449
1450 By default, \`make install' will install all the files in
1451 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1452 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1453 for instance \`--prefix=\$HOME'.
1454
1455 For better control, use the options below.
1456
1457 Fine tuning of the installation directories:
1458   --bindir=DIR            user executables [EPREFIX/bin]
1459   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1460   --libexecdir=DIR        program executables [EPREFIX/libexec]
1461   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1462   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1463   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1464   --libdir=DIR            object code libraries [EPREFIX/lib]
1465   --includedir=DIR        C header files [PREFIX/include]
1466   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1467   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1468   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1469   --infodir=DIR           info documentation [DATAROOTDIR/info]
1470   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1471   --mandir=DIR            man documentation [DATAROOTDIR/man]
1472   --docdir=DIR            documentation root [DATAROOTDIR/doc/gupnp-av]
1473   --htmldir=DIR           html documentation [DOCDIR]
1474   --dvidir=DIR            dvi documentation [DOCDIR]
1475   --pdfdir=DIR            pdf documentation [DOCDIR]
1476   --psdir=DIR             ps documentation [DOCDIR]
1477 _ACEOF
1478
1479   cat <<\_ACEOF
1480
1481 Program names:
1482   --program-prefix=PREFIX            prepend PREFIX to installed program names
1483   --program-suffix=SUFFIX            append SUFFIX to installed program names
1484   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1485
1486 System types:
1487   --build=BUILD     configure for building on BUILD [guessed]
1488   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1489 _ACEOF
1490 fi
1491
1492 if test -n "$ac_init_help"; then
1493   case $ac_init_help in
1494      short | recursive ) echo "Configuration of gupnp-av 0.11.2:";;
1495    esac
1496   cat <<\_ACEOF
1497
1498 Optional Features:
1499   --disable-option-checking  ignore unrecognized --enable/--with options
1500   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1501   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1502   --enable-silent-rules          less verbose build output (undo: `make V=1')
1503   --disable-silent-rules         verbose build output (undo: `make V=0')
1504   --disable-dependency-tracking  speeds up one-time build
1505   --enable-dependency-tracking   do not reject slow dependency extractors
1506   --enable-shared[=PKGS]  build shared libraries [default=yes]
1507   --enable-static[=PKGS]  build static libraries [default=yes]
1508   --enable-fast-install[=PKGS]
1509                           optimize for fast installation [default=yes]
1510   --disable-libtool-lock  avoid locking (might break parallel builds)
1511   --enable-debug          enable debugging
1512   --enable-introspection=[no/auto/yes]
1513                           Enable introspection for this build
1514   --enable-gtk-doc        use gtk-doc to build documentation [[default=no]]
1515   --enable-gtk-doc-html   build documentation in html format [[default=yes]]
1516   --enable-gtk-doc-pdf    build documentation in pdf format [[default=no]]
1517
1518 Optional Packages:
1519   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1520   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1521   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1522                           both]
1523   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1524   --with-sysroot=DIR Search for dependent libraries within DIR
1525                         (or the compiler's sysroot if not specified).
1526   --with-html-dir=PATH    path to installed docs
1527
1528 Some influential environment variables:
1529   CC          C compiler command
1530   CFLAGS      C compiler flags
1531   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1532               nonstandard directory <lib dir>
1533   LIBS        libraries to pass to the linker, e.g. -l<library>
1534   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1535               you have headers in a nonstandard directory <include dir>
1536   CPP         C preprocessor
1537   PKG_CONFIG  path to pkg-config utility
1538   PKG_CONFIG_PATH
1539               directories to add to pkg-config's search path
1540   PKG_CONFIG_LIBDIR
1541               path overriding pkg-config's built-in search path
1542   LIBGUPNP_CFLAGS
1543               C compiler flags for LIBGUPNP, overriding pkg-config
1544   LIBGUPNP_LIBS
1545               linker flags for LIBGUPNP, overriding pkg-config
1546   GTKDOC_DEPS_CFLAGS
1547               C compiler flags for GTKDOC_DEPS, overriding pkg-config
1548   GTKDOC_DEPS_LIBS
1549               linker flags for GTKDOC_DEPS, overriding pkg-config
1550
1551 Use these variables to override the choices made by `configure' or to help
1552 it to find libraries and programs with nonstandard names/locations.
1553
1554 Report bugs to <https://bugzilla.gnome.org/enter_bug.cgi?product=GUPnP>.
1555 gupnp-av home page: <http://www.gupnp.org/>.
1556 _ACEOF
1557 ac_status=$?
1558 fi
1559
1560 if test "$ac_init_help" = "recursive"; then
1561   # If there are subdirs, report their specific --help.
1562   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1563     test -d "$ac_dir" ||
1564       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1565       continue
1566     ac_builddir=.
1567
1568 case "$ac_dir" in
1569 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1570 *)
1571   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1572   # A ".." for each directory in $ac_dir_suffix.
1573   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1574   case $ac_top_builddir_sub in
1575   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1576   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1577   esac ;;
1578 esac
1579 ac_abs_top_builddir=$ac_pwd
1580 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1581 # for backward compatibility:
1582 ac_top_builddir=$ac_top_build_prefix
1583
1584 case $srcdir in
1585   .)  # We are building in place.
1586     ac_srcdir=.
1587     ac_top_srcdir=$ac_top_builddir_sub
1588     ac_abs_top_srcdir=$ac_pwd ;;
1589   [\\/]* | ?:[\\/]* )  # Absolute name.
1590     ac_srcdir=$srcdir$ac_dir_suffix;
1591     ac_top_srcdir=$srcdir
1592     ac_abs_top_srcdir=$srcdir ;;
1593   *) # Relative name.
1594     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1595     ac_top_srcdir=$ac_top_build_prefix$srcdir
1596     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1597 esac
1598 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1599
1600     cd "$ac_dir" || { ac_status=$?; continue; }
1601     # Check for guested configure.
1602     if test -f "$ac_srcdir/configure.gnu"; then
1603       echo &&
1604       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1605     elif test -f "$ac_srcdir/configure"; then
1606       echo &&
1607       $SHELL "$ac_srcdir/configure" --help=recursive
1608     else
1609       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1610     fi || ac_status=$?
1611     cd "$ac_pwd" || { ac_status=$?; break; }
1612   done
1613 fi
1614
1615 test -n "$ac_init_help" && exit $ac_status
1616 if $ac_init_version; then
1617   cat <<\_ACEOF
1618 gupnp-av configure 0.11.2
1619 generated by GNU Autoconf 2.69
1620
1621 Copyright (C) 2012 Free Software Foundation, Inc.
1622 This configure script is free software; the Free Software Foundation
1623 gives unlimited permission to copy, distribute and modify it.
1624 _ACEOF
1625   exit
1626 fi
1627
1628 ## ------------------------ ##
1629 ## Autoconf initialization. ##
1630 ## ------------------------ ##
1631
1632 # ac_fn_c_try_compile LINENO
1633 # --------------------------
1634 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1635 ac_fn_c_try_compile ()
1636 {
1637   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1638   rm -f conftest.$ac_objext
1639   if { { ac_try="$ac_compile"
1640 case "(($ac_try" in
1641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1642   *) ac_try_echo=$ac_try;;
1643 esac
1644 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1645 $as_echo "$ac_try_echo"; } >&5
1646   (eval "$ac_compile") 2>conftest.err
1647   ac_status=$?
1648   if test -s conftest.err; then
1649     grep -v '^ *+' conftest.err >conftest.er1
1650     cat conftest.er1 >&5
1651     mv -f conftest.er1 conftest.err
1652   fi
1653   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1654   test $ac_status = 0; } && {
1655          test -z "$ac_c_werror_flag" ||
1656          test ! -s conftest.err
1657        } && test -s conftest.$ac_objext; then :
1658   ac_retval=0
1659 else
1660   $as_echo "$as_me: failed program was:" >&5
1661 sed 's/^/| /' conftest.$ac_ext >&5
1662
1663         ac_retval=1
1664 fi
1665   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1666   as_fn_set_status $ac_retval
1667
1668 } # ac_fn_c_try_compile
1669
1670 # ac_fn_c_try_cpp LINENO
1671 # ----------------------
1672 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1673 ac_fn_c_try_cpp ()
1674 {
1675   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1676   if { { ac_try="$ac_cpp conftest.$ac_ext"
1677 case "(($ac_try" in
1678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1679   *) ac_try_echo=$ac_try;;
1680 esac
1681 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1682 $as_echo "$ac_try_echo"; } >&5
1683   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1684   ac_status=$?
1685   if test -s conftest.err; then
1686     grep -v '^ *+' conftest.err >conftest.er1
1687     cat conftest.er1 >&5
1688     mv -f conftest.er1 conftest.err
1689   fi
1690   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1691   test $ac_status = 0; } > conftest.i && {
1692          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1693          test ! -s conftest.err
1694        }; then :
1695   ac_retval=0
1696 else
1697   $as_echo "$as_me: failed program was:" >&5
1698 sed 's/^/| /' conftest.$ac_ext >&5
1699
1700     ac_retval=1
1701 fi
1702   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1703   as_fn_set_status $ac_retval
1704
1705 } # ac_fn_c_try_cpp
1706
1707 # ac_fn_c_try_run LINENO
1708 # ----------------------
1709 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1710 # that executables *can* be run.
1711 ac_fn_c_try_run ()
1712 {
1713   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1714   if { { ac_try="$ac_link"
1715 case "(($ac_try" in
1716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1717   *) ac_try_echo=$ac_try;;
1718 esac
1719 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1720 $as_echo "$ac_try_echo"; } >&5
1721   (eval "$ac_link") 2>&5
1722   ac_status=$?
1723   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1724   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1725   { { case "(($ac_try" in
1726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1727   *) ac_try_echo=$ac_try;;
1728 esac
1729 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1730 $as_echo "$ac_try_echo"; } >&5
1731   (eval "$ac_try") 2>&5
1732   ac_status=$?
1733   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1734   test $ac_status = 0; }; }; then :
1735   ac_retval=0
1736 else
1737   $as_echo "$as_me: program exited with status $ac_status" >&5
1738        $as_echo "$as_me: failed program was:" >&5
1739 sed 's/^/| /' conftest.$ac_ext >&5
1740
1741        ac_retval=$ac_status
1742 fi
1743   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1744   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1745   as_fn_set_status $ac_retval
1746
1747 } # ac_fn_c_try_run
1748
1749 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1750 # -------------------------------------------------------
1751 # Tests whether HEADER exists and can be compiled using the include files in
1752 # INCLUDES, setting the cache variable VAR accordingly.
1753 ac_fn_c_check_header_compile ()
1754 {
1755   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1756   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1757 $as_echo_n "checking for $2... " >&6; }
1758 if eval \${$3+:} false; then :
1759   $as_echo_n "(cached) " >&6
1760 else
1761   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1762 /* end confdefs.h.  */
1763 $4
1764 #include <$2>
1765 _ACEOF
1766 if ac_fn_c_try_compile "$LINENO"; then :
1767   eval "$3=yes"
1768 else
1769   eval "$3=no"
1770 fi
1771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1772 fi
1773 eval ac_res=\$$3
1774                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1775 $as_echo "$ac_res" >&6; }
1776   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1777
1778 } # ac_fn_c_check_header_compile
1779
1780 # ac_fn_c_try_link LINENO
1781 # -----------------------
1782 # Try to link conftest.$ac_ext, and return whether this succeeded.
1783 ac_fn_c_try_link ()
1784 {
1785   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1786   rm -f conftest.$ac_objext conftest$ac_exeext
1787   if { { ac_try="$ac_link"
1788 case "(($ac_try" in
1789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1790   *) ac_try_echo=$ac_try;;
1791 esac
1792 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1793 $as_echo "$ac_try_echo"; } >&5
1794   (eval "$ac_link") 2>conftest.err
1795   ac_status=$?
1796   if test -s conftest.err; then
1797     grep -v '^ *+' conftest.err >conftest.er1
1798     cat conftest.er1 >&5
1799     mv -f conftest.er1 conftest.err
1800   fi
1801   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1802   test $ac_status = 0; } && {
1803          test -z "$ac_c_werror_flag" ||
1804          test ! -s conftest.err
1805        } && test -s conftest$ac_exeext && {
1806          test "$cross_compiling" = yes ||
1807          test -x conftest$ac_exeext
1808        }; then :
1809   ac_retval=0
1810 else
1811   $as_echo "$as_me: failed program was:" >&5
1812 sed 's/^/| /' conftest.$ac_ext >&5
1813
1814         ac_retval=1
1815 fi
1816   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1817   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1818   # interfere with the next link command; also delete a directory that is
1819   # left behind by Apple's compiler.  We do this before executing the actions.
1820   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1821   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1822   as_fn_set_status $ac_retval
1823
1824 } # ac_fn_c_try_link
1825
1826 # ac_fn_c_check_func LINENO FUNC VAR
1827 # ----------------------------------
1828 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1829 ac_fn_c_check_func ()
1830 {
1831   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1832   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1833 $as_echo_n "checking for $2... " >&6; }
1834 if eval \${$3+:} false; then :
1835   $as_echo_n "(cached) " >&6
1836 else
1837   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1838 /* end confdefs.h.  */
1839 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1840    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1841 #define $2 innocuous_$2
1842
1843 /* System header to define __stub macros and hopefully few prototypes,
1844     which can conflict with char $2 (); below.
1845     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1846     <limits.h> exists even on freestanding compilers.  */
1847
1848 #ifdef __STDC__
1849 # include <limits.h>
1850 #else
1851 # include <assert.h>
1852 #endif
1853
1854 #undef $2
1855
1856 /* Override any GCC internal prototype to avoid an error.
1857    Use char because int might match the return type of a GCC
1858    builtin and then its argument prototype would still apply.  */
1859 #ifdef __cplusplus
1860 extern "C"
1861 #endif
1862 char $2 ();
1863 /* The GNU C library defines this for functions which it implements
1864     to always fail with ENOSYS.  Some functions are actually named
1865     something starting with __ and the normal name is an alias.  */
1866 #if defined __stub_$2 || defined __stub___$2
1867 choke me
1868 #endif
1869
1870 int
1871 main ()
1872 {
1873 return $2 ();
1874   ;
1875   return 0;
1876 }
1877 _ACEOF
1878 if ac_fn_c_try_link "$LINENO"; then :
1879   eval "$3=yes"
1880 else
1881   eval "$3=no"
1882 fi
1883 rm -f core conftest.err conftest.$ac_objext \
1884     conftest$ac_exeext conftest.$ac_ext
1885 fi
1886 eval ac_res=\$$3
1887                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1888 $as_echo "$ac_res" >&6; }
1889   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1890
1891 } # ac_fn_c_check_func
1892 cat >config.log <<_ACEOF
1893 This file contains any messages produced by compilers while
1894 running configure, to aid debugging if configure makes a mistake.
1895
1896 It was created by gupnp-av $as_me 0.11.2, which was
1897 generated by GNU Autoconf 2.69.  Invocation command line was
1898
1899   $ $0 $@
1900
1901 _ACEOF
1902 exec 5>>config.log
1903 {
1904 cat <<_ASUNAME
1905 ## --------- ##
1906 ## Platform. ##
1907 ## --------- ##
1908
1909 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1910 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1911 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1912 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1913 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1914
1915 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1916 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1917
1918 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1919 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1920 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1921 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1922 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1923 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1924 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1925
1926 _ASUNAME
1927
1928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1929 for as_dir in $PATH
1930 do
1931   IFS=$as_save_IFS
1932   test -z "$as_dir" && as_dir=.
1933     $as_echo "PATH: $as_dir"
1934   done
1935 IFS=$as_save_IFS
1936
1937 } >&5
1938
1939 cat >&5 <<_ACEOF
1940
1941
1942 ## ----------- ##
1943 ## Core tests. ##
1944 ## ----------- ##
1945
1946 _ACEOF
1947
1948
1949 # Keep a trace of the command line.
1950 # Strip out --no-create and --no-recursion so they do not pile up.
1951 # Strip out --silent because we don't want to record it for future runs.
1952 # Also quote any args containing shell meta-characters.
1953 # Make two passes to allow for proper duplicate-argument suppression.
1954 ac_configure_args=
1955 ac_configure_args0=
1956 ac_configure_args1=
1957 ac_must_keep_next=false
1958 for ac_pass in 1 2
1959 do
1960   for ac_arg
1961   do
1962     case $ac_arg in
1963     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1964     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1965     | -silent | --silent | --silen | --sile | --sil)
1966       continue ;;
1967     *\'*)
1968       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1969     esac
1970     case $ac_pass in
1971     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1972     2)
1973       as_fn_append ac_configure_args1 " '$ac_arg'"
1974       if test $ac_must_keep_next = true; then
1975         ac_must_keep_next=false # Got value, back to normal.
1976       else
1977         case $ac_arg in
1978           *=* | --config-cache | -C | -disable-* | --disable-* \
1979           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1980           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1981           | -with-* | --with-* | -without-* | --without-* | --x)
1982             case "$ac_configure_args0 " in
1983               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1984             esac
1985             ;;
1986           -* ) ac_must_keep_next=true ;;
1987         esac
1988       fi
1989       as_fn_append ac_configure_args " '$ac_arg'"
1990       ;;
1991     esac
1992   done
1993 done
1994 { ac_configure_args0=; unset ac_configure_args0;}
1995 { ac_configure_args1=; unset ac_configure_args1;}
1996
1997 # When interrupted or exit'd, cleanup temporary files, and complete
1998 # config.log.  We remove comments because anyway the quotes in there
1999 # would cause problems or look ugly.
2000 # WARNING: Use '\'' to represent an apostrophe within the trap.
2001 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2002 trap 'exit_status=$?
2003   # Save into config.log some information that might help in debugging.
2004   {
2005     echo
2006
2007     $as_echo "## ---------------- ##
2008 ## Cache variables. ##
2009 ## ---------------- ##"
2010     echo
2011     # The following way of writing the cache mishandles newlines in values,
2012 (
2013   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2014     eval ac_val=\$$ac_var
2015     case $ac_val in #(
2016     *${as_nl}*)
2017       case $ac_var in #(
2018       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2019 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2020       esac
2021       case $ac_var in #(
2022       _ | IFS | as_nl) ;; #(
2023       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2024       *) { eval $ac_var=; unset $ac_var;} ;;
2025       esac ;;
2026     esac
2027   done
2028   (set) 2>&1 |
2029     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2030     *${as_nl}ac_space=\ *)
2031       sed -n \
2032         "s/'\''/'\''\\\\'\'''\''/g;
2033           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2034       ;; #(
2035     *)
2036       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2037       ;;
2038     esac |
2039     sort
2040 )
2041     echo
2042
2043     $as_echo "## ----------------- ##
2044 ## Output variables. ##
2045 ## ----------------- ##"
2046     echo
2047     for ac_var in $ac_subst_vars
2048     do
2049       eval ac_val=\$$ac_var
2050       case $ac_val in
2051       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2052       esac
2053       $as_echo "$ac_var='\''$ac_val'\''"
2054     done | sort
2055     echo
2056
2057     if test -n "$ac_subst_files"; then
2058       $as_echo "## ------------------- ##
2059 ## File substitutions. ##
2060 ## ------------------- ##"
2061       echo
2062       for ac_var in $ac_subst_files
2063       do
2064         eval ac_val=\$$ac_var
2065         case $ac_val in
2066         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2067         esac
2068         $as_echo "$ac_var='\''$ac_val'\''"
2069       done | sort
2070       echo
2071     fi
2072
2073     if test -s confdefs.h; then
2074       $as_echo "## ----------- ##
2075 ## confdefs.h. ##
2076 ## ----------- ##"
2077       echo
2078       cat confdefs.h
2079       echo
2080     fi
2081     test "$ac_signal" != 0 &&
2082       $as_echo "$as_me: caught signal $ac_signal"
2083     $as_echo "$as_me: exit $exit_status"
2084   } >&5
2085   rm -f core *.core core.conftest.* &&
2086     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2087     exit $exit_status
2088 ' 0
2089 for ac_signal in 1 2 13 15; do
2090   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2091 done
2092 ac_signal=0
2093
2094 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2095 rm -f -r conftest* confdefs.h
2096
2097 $as_echo "/* confdefs.h */" > confdefs.h
2098
2099 # Predefined preprocessor variables.
2100
2101 cat >>confdefs.h <<_ACEOF
2102 #define PACKAGE_NAME "$PACKAGE_NAME"
2103 _ACEOF
2104
2105 cat >>confdefs.h <<_ACEOF
2106 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2107 _ACEOF
2108
2109 cat >>confdefs.h <<_ACEOF
2110 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2111 _ACEOF
2112
2113 cat >>confdefs.h <<_ACEOF
2114 #define PACKAGE_STRING "$PACKAGE_STRING"
2115 _ACEOF
2116
2117 cat >>confdefs.h <<_ACEOF
2118 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2119 _ACEOF
2120
2121 cat >>confdefs.h <<_ACEOF
2122 #define PACKAGE_URL "$PACKAGE_URL"
2123 _ACEOF
2124
2125
2126 # Let the site file select an alternate cache file if it wants to.
2127 # Prefer an explicitly selected file to automatically selected ones.
2128 ac_site_file1=NONE
2129 ac_site_file2=NONE
2130 if test -n "$CONFIG_SITE"; then
2131   # We do not want a PATH search for config.site.
2132   case $CONFIG_SITE in #((
2133     -*)  ac_site_file1=./$CONFIG_SITE;;
2134     */*) ac_site_file1=$CONFIG_SITE;;
2135     *)   ac_site_file1=./$CONFIG_SITE;;
2136   esac
2137 elif test "x$prefix" != xNONE; then
2138   ac_site_file1=$prefix/share/config.site
2139   ac_site_file2=$prefix/etc/config.site
2140 else
2141   ac_site_file1=$ac_default_prefix/share/config.site
2142   ac_site_file2=$ac_default_prefix/etc/config.site
2143 fi
2144 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2145 do
2146   test "x$ac_site_file" = xNONE && continue
2147   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2148     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2149 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2150     sed 's/^/| /' "$ac_site_file" >&5
2151     . "$ac_site_file" \
2152       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2153 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2154 as_fn_error $? "failed to load site script $ac_site_file
2155 See \`config.log' for more details" "$LINENO" 5; }
2156   fi
2157 done
2158
2159 if test -r "$cache_file"; then
2160   # Some versions of bash will fail to source /dev/null (special files
2161   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2162   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2163     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2164 $as_echo "$as_me: loading cache $cache_file" >&6;}
2165     case $cache_file in
2166       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2167       *)                      . "./$cache_file";;
2168     esac
2169   fi
2170 else
2171   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2172 $as_echo "$as_me: creating cache $cache_file" >&6;}
2173   >$cache_file
2174 fi
2175
2176 as_fn_append ac_header_list " stdlib.h"
2177 as_fn_append ac_header_list " unistd.h"
2178 as_fn_append ac_header_list " sys/param.h"
2179 # Check that the precious variables saved in the cache have kept the same
2180 # value.
2181 ac_cache_corrupted=false
2182 for ac_var in $ac_precious_vars; do
2183   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2184   eval ac_new_set=\$ac_env_${ac_var}_set
2185   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2186   eval ac_new_val=\$ac_env_${ac_var}_value
2187   case $ac_old_set,$ac_new_set in
2188     set,)
2189       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2190 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2191       ac_cache_corrupted=: ;;
2192     ,set)
2193       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2194 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2195       ac_cache_corrupted=: ;;
2196     ,);;
2197     *)
2198       if test "x$ac_old_val" != "x$ac_new_val"; then
2199         # differences in whitespace do not lead to failure.
2200         ac_old_val_w=`echo x $ac_old_val`
2201         ac_new_val_w=`echo x $ac_new_val`
2202         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2203           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2204 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2205           ac_cache_corrupted=:
2206         else
2207           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2208 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2209           eval $ac_var=\$ac_old_val
2210         fi
2211         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2212 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2213         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2214 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2215       fi;;
2216   esac
2217   # Pass precious variables to config.status.
2218   if test "$ac_new_set" = set; then
2219     case $ac_new_val in
2220     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2221     *) ac_arg=$ac_var=$ac_new_val ;;
2222     esac
2223     case " $ac_configure_args " in
2224       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2225       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2226     esac
2227   fi
2228 done
2229 if $ac_cache_corrupted; then
2230   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2231 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2232   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2233 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2234   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2235 fi
2236 ## -------------------- ##
2237 ## Main body of script. ##
2238 ## -------------------- ##
2239
2240 ac_ext=c
2241 ac_cpp='$CPP $CPPFLAGS'
2242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2245
2246
2247
2248 ac_config_headers="$ac_config_headers config.h"
2249
2250
2251
2252 ac_aux_dir=
2253 for ac_dir in build-aux "$srcdir"/build-aux; do
2254   if test -f "$ac_dir/install-sh"; then
2255     ac_aux_dir=$ac_dir
2256     ac_install_sh="$ac_aux_dir/install-sh -c"
2257     break
2258   elif test -f "$ac_dir/install.sh"; then
2259     ac_aux_dir=$ac_dir
2260     ac_install_sh="$ac_aux_dir/install.sh -c"
2261     break
2262   elif test -f "$ac_dir/shtool"; then
2263     ac_aux_dir=$ac_dir
2264     ac_install_sh="$ac_aux_dir/shtool install -c"
2265     break
2266   fi
2267 done
2268 if test -z "$ac_aux_dir"; then
2269   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2270 fi
2271
2272 # These three variables are undocumented and unsupported,
2273 # and are intended to be withdrawn in a future Autoconf release.
2274 # They can cause serious problems if a builder's source tree is in a directory
2275 # whose full name contains unusual characters.
2276 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2277 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2278 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2279
2280
2281
2282 am__api_version='1.11'
2283
2284 # Find a good install program.  We prefer a C program (faster),
2285 # so one script is as good as another.  But avoid the broken or
2286 # incompatible versions:
2287 # SysV /etc/install, /usr/sbin/install
2288 # SunOS /usr/etc/install
2289 # IRIX /sbin/install
2290 # AIX /bin/install
2291 # AmigaOS /C/install, which installs bootblocks on floppy discs
2292 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2293 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2294 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2295 # OS/2's system install, which has a completely different semantic
2296 # ./install, which can be erroneously created by make from ./install.sh.
2297 # Reject install programs that cannot install multiple files.
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2299 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2300 if test -z "$INSTALL"; then
2301 if ${ac_cv_path_install+:} false; then :
2302   $as_echo_n "(cached) " >&6
2303 else
2304   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2305 for as_dir in $PATH
2306 do
2307   IFS=$as_save_IFS
2308   test -z "$as_dir" && as_dir=.
2309     # Account for people who put trailing slashes in PATH elements.
2310 case $as_dir/ in #((
2311   ./ | .// | /[cC]/* | \
2312   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2313   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2314   /usr/ucb/* ) ;;
2315   *)
2316     # OSF1 and SCO ODT 3.0 have their own names for install.
2317     # Don't use installbsd from OSF since it installs stuff as root
2318     # by default.
2319     for ac_prog in ginstall scoinst install; do
2320       for ac_exec_ext in '' $ac_executable_extensions; do
2321         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2322           if test $ac_prog = install &&
2323             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2324             # AIX install.  It has an incompatible calling convention.
2325             :
2326           elif test $ac_prog = install &&
2327             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2328             # program-specific install script used by HP pwplus--don't use.
2329             :
2330           else
2331             rm -rf conftest.one conftest.two conftest.dir
2332             echo one > conftest.one
2333             echo two > conftest.two
2334             mkdir conftest.dir
2335             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2336               test -s conftest.one && test -s conftest.two &&
2337               test -s conftest.dir/conftest.one &&
2338               test -s conftest.dir/conftest.two
2339             then
2340               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2341               break 3
2342             fi
2343           fi
2344         fi
2345       done
2346     done
2347     ;;
2348 esac
2349
2350   done
2351 IFS=$as_save_IFS
2352
2353 rm -rf conftest.one conftest.two conftest.dir
2354
2355 fi
2356   if test "${ac_cv_path_install+set}" = set; then
2357     INSTALL=$ac_cv_path_install
2358   else
2359     # As a last resort, use the slow shell script.  Don't cache a
2360     # value for INSTALL within a source directory, because that will
2361     # break other packages using the cache if that directory is
2362     # removed, or if the value is a relative name.
2363     INSTALL=$ac_install_sh
2364   fi
2365 fi
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2367 $as_echo "$INSTALL" >&6; }
2368
2369 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2370 # It thinks the first close brace ends the variable substitution.
2371 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2372
2373 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2374
2375 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2376
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2378 $as_echo_n "checking whether build environment is sane... " >&6; }
2379 # Just in case
2380 sleep 1
2381 echo timestamp > conftest.file
2382 # Reject unsafe characters in $srcdir or the absolute working directory
2383 # name.  Accept space and tab only in the latter.
2384 am_lf='
2385 '
2386 case `pwd` in
2387   *[\\\"\#\$\&\'\`$am_lf]*)
2388     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2389 esac
2390 case $srcdir in
2391   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2392     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2393 esac
2394
2395 # Do `set' in a subshell so we don't clobber the current shell's
2396 # arguments.  Must try -L first in case configure is actually a
2397 # symlink; some systems play weird games with the mod time of symlinks
2398 # (eg FreeBSD returns the mod time of the symlink's containing
2399 # directory).
2400 if (
2401    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2402    if test "$*" = "X"; then
2403       # -L didn't work.
2404       set X `ls -t "$srcdir/configure" conftest.file`
2405    fi
2406    rm -f conftest.file
2407    if test "$*" != "X $srcdir/configure conftest.file" \
2408       && test "$*" != "X conftest.file $srcdir/configure"; then
2409
2410       # If neither matched, then we have a broken ls.  This can happen
2411       # if, for instance, CONFIG_SHELL is bash and it inherits a
2412       # broken ls alias from the environment.  This has actually
2413       # happened.  Such a system could not be considered "sane".
2414       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2415 alias in your environment" "$LINENO" 5
2416    fi
2417
2418    test "$2" = conftest.file
2419    )
2420 then
2421    # Ok.
2422    :
2423 else
2424    as_fn_error $? "newly created file is older than distributed files!
2425 Check your system clock" "$LINENO" 5
2426 fi
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2428 $as_echo "yes" >&6; }
2429 test "$program_prefix" != NONE &&
2430   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2431 # Use a double $ so make ignores it.
2432 test "$program_suffix" != NONE &&
2433   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2434 # Double any \ or $.
2435 # By default was `s,x,x', remove it if useless.
2436 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2437 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2438
2439 # expand $ac_aux_dir to an absolute path
2440 am_aux_dir=`cd $ac_aux_dir && pwd`
2441
2442 if test x"${MISSING+set}" != xset; then
2443   case $am_aux_dir in
2444   *\ * | *\     *)
2445     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2446   *)
2447     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2448   esac
2449 fi
2450 # Use eval to expand $SHELL
2451 if eval "$MISSING --run true"; then
2452   am_missing_run="$MISSING --run "
2453 else
2454   am_missing_run=
2455   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2456 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2457 fi
2458
2459 if test x"${install_sh}" != xset; then
2460   case $am_aux_dir in
2461   *\ * | *\     *)
2462     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2463   *)
2464     install_sh="\${SHELL} $am_aux_dir/install-sh"
2465   esac
2466 fi
2467
2468 # Installed binaries are usually stripped using `strip' when the user
2469 # run `make install-strip'.  However `strip' might not be the right
2470 # tool to use in cross-compilation environments, therefore Automake
2471 # will honor the `STRIP' environment variable to overrule this program.
2472 if test "$cross_compiling" != no; then
2473   if test -n "$ac_tool_prefix"; then
2474   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2475 set dummy ${ac_tool_prefix}strip; ac_word=$2
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2477 $as_echo_n "checking for $ac_word... " >&6; }
2478 if ${ac_cv_prog_STRIP+:} false; then :
2479   $as_echo_n "(cached) " >&6
2480 else
2481   if test -n "$STRIP"; then
2482   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2483 else
2484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2485 for as_dir in $PATH
2486 do
2487   IFS=$as_save_IFS
2488   test -z "$as_dir" && as_dir=.
2489     for ac_exec_ext in '' $ac_executable_extensions; do
2490   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2491     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2492     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2493     break 2
2494   fi
2495 done
2496   done
2497 IFS=$as_save_IFS
2498
2499 fi
2500 fi
2501 STRIP=$ac_cv_prog_STRIP
2502 if test -n "$STRIP"; then
2503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2504 $as_echo "$STRIP" >&6; }
2505 else
2506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2507 $as_echo "no" >&6; }
2508 fi
2509
2510
2511 fi
2512 if test -z "$ac_cv_prog_STRIP"; then
2513   ac_ct_STRIP=$STRIP
2514   # Extract the first word of "strip", so it can be a program name with args.
2515 set dummy strip; ac_word=$2
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2517 $as_echo_n "checking for $ac_word... " >&6; }
2518 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2519   $as_echo_n "(cached) " >&6
2520 else
2521   if test -n "$ac_ct_STRIP"; then
2522   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2523 else
2524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2525 for as_dir in $PATH
2526 do
2527   IFS=$as_save_IFS
2528   test -z "$as_dir" && as_dir=.
2529     for ac_exec_ext in '' $ac_executable_extensions; do
2530   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2531     ac_cv_prog_ac_ct_STRIP="strip"
2532     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2533     break 2
2534   fi
2535 done
2536   done
2537 IFS=$as_save_IFS
2538
2539 fi
2540 fi
2541 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2542 if test -n "$ac_ct_STRIP"; then
2543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2544 $as_echo "$ac_ct_STRIP" >&6; }
2545 else
2546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2547 $as_echo "no" >&6; }
2548 fi
2549
2550   if test "x$ac_ct_STRIP" = x; then
2551     STRIP=":"
2552   else
2553     case $cross_compiling:$ac_tool_warned in
2554 yes:)
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2556 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2557 ac_tool_warned=yes ;;
2558 esac
2559     STRIP=$ac_ct_STRIP
2560   fi
2561 else
2562   STRIP="$ac_cv_prog_STRIP"
2563 fi
2564
2565 fi
2566 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2567
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2569 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2570 if test -z "$MKDIR_P"; then
2571   if ${ac_cv_path_mkdir+:} false; then :
2572   $as_echo_n "(cached) " >&6
2573 else
2574   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2575 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2576 do
2577   IFS=$as_save_IFS
2578   test -z "$as_dir" && as_dir=.
2579     for ac_prog in mkdir gmkdir; do
2580          for ac_exec_ext in '' $ac_executable_extensions; do
2581            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2582            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2583              'mkdir (GNU coreutils) '* | \
2584              'mkdir (coreutils) '* | \
2585              'mkdir (fileutils) '4.1*)
2586                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2587                break 3;;
2588            esac
2589          done
2590        done
2591   done
2592 IFS=$as_save_IFS
2593
2594 fi
2595
2596   test -d ./--version && rmdir ./--version
2597   if test "${ac_cv_path_mkdir+set}" = set; then
2598     MKDIR_P="$ac_cv_path_mkdir -p"
2599   else
2600     # As a last resort, use the slow shell script.  Don't cache a
2601     # value for MKDIR_P within a source directory, because that will
2602     # break other packages using the cache if that directory is
2603     # removed, or if the value is a relative name.
2604     MKDIR_P="$ac_install_sh -d"
2605   fi
2606 fi
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2608 $as_echo "$MKDIR_P" >&6; }
2609
2610 mkdir_p="$MKDIR_P"
2611 case $mkdir_p in
2612   [\\/$]* | ?:[\\/]*) ;;
2613   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2614 esac
2615
2616 for ac_prog in gawk mawk nawk awk
2617 do
2618   # Extract the first word of "$ac_prog", so it can be a program name with args.
2619 set dummy $ac_prog; ac_word=$2
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2621 $as_echo_n "checking for $ac_word... " >&6; }
2622 if ${ac_cv_prog_AWK+:} false; then :
2623   $as_echo_n "(cached) " >&6
2624 else
2625   if test -n "$AWK"; then
2626   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2627 else
2628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2629 for as_dir in $PATH
2630 do
2631   IFS=$as_save_IFS
2632   test -z "$as_dir" && as_dir=.
2633     for ac_exec_ext in '' $ac_executable_extensions; do
2634   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2635     ac_cv_prog_AWK="$ac_prog"
2636     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2637     break 2
2638   fi
2639 done
2640   done
2641 IFS=$as_save_IFS
2642
2643 fi
2644 fi
2645 AWK=$ac_cv_prog_AWK
2646 if test -n "$AWK"; then
2647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2648 $as_echo "$AWK" >&6; }
2649 else
2650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2651 $as_echo "no" >&6; }
2652 fi
2653
2654
2655   test -n "$AWK" && break
2656 done
2657
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2659 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2660 set x ${MAKE-make}
2661 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2662 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2663   $as_echo_n "(cached) " >&6
2664 else
2665   cat >conftest.make <<\_ACEOF
2666 SHELL = /bin/sh
2667 all:
2668         @echo '@@@%%%=$(MAKE)=@@@%%%'
2669 _ACEOF
2670 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2671 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2672   *@@@%%%=?*=@@@%%%*)
2673     eval ac_cv_prog_make_${ac_make}_set=yes;;
2674   *)
2675     eval ac_cv_prog_make_${ac_make}_set=no;;
2676 esac
2677 rm -f conftest.make
2678 fi
2679 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2681 $as_echo "yes" >&6; }
2682   SET_MAKE=
2683 else
2684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2685 $as_echo "no" >&6; }
2686   SET_MAKE="MAKE=${MAKE-make}"
2687 fi
2688
2689 rm -rf .tst 2>/dev/null
2690 mkdir .tst 2>/dev/null
2691 if test -d .tst; then
2692   am__leading_dot=.
2693 else
2694   am__leading_dot=_
2695 fi
2696 rmdir .tst 2>/dev/null
2697
2698 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2699   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2700   # is not polluted with repeated "-I."
2701   am__isrc=' -I$(srcdir)'
2702   # test to see if srcdir already configured
2703   if test -f $srcdir/config.status; then
2704     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2705   fi
2706 fi
2707
2708 # test whether we have cygpath
2709 if test -z "$CYGPATH_W"; then
2710   if (cygpath --version) >/dev/null 2>/dev/null; then
2711     CYGPATH_W='cygpath -w'
2712   else
2713     CYGPATH_W=echo
2714   fi
2715 fi
2716
2717
2718 # Define the identity of the package.
2719  PACKAGE='gupnp-av'
2720  VERSION='0.11.2'
2721
2722
2723 cat >>confdefs.h <<_ACEOF
2724 #define PACKAGE "$PACKAGE"
2725 _ACEOF
2726
2727
2728 cat >>confdefs.h <<_ACEOF
2729 #define VERSION "$VERSION"
2730 _ACEOF
2731
2732 # Some tools Automake needs.
2733
2734 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2735
2736
2737 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2738
2739
2740 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2741
2742
2743 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2744
2745
2746 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2747
2748 # We need awk for the "check" target.  The system "awk" is bad on
2749 # some platforms.
2750 # Always define AMTAR for backward compatibility.  Yes, it's still used
2751 # in the wild :-(  We should find a proper way to deprecate it ...
2752 AMTAR='$${TAR-tar}'
2753
2754
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
2756 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
2757 # Loop over all known methods to create a tar archive until one works.
2758 _am_tools='gnutar plaintar pax cpio none'
2759 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
2760 # Do not fold the above two line into one, because Tru64 sh and
2761 # Solaris sh will not grok spaces in the rhs of `-'.
2762 for _am_tool in $_am_tools
2763 do
2764   case $_am_tool in
2765   gnutar)
2766     for _am_tar in tar gnutar gtar;
2767     do
2768       { echo "$as_me:$LINENO: $_am_tar --version" >&5
2769    ($_am_tar --version) >&5 2>&5
2770    ac_status=$?
2771    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772    (exit $ac_status); } && break
2773     done
2774     am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
2775     am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
2776     am__untar="$_am_tar -xf -"
2777     ;;
2778   plaintar)
2779     # Must skip GNU tar: if it does not support --format= it doesn't create
2780     # ustar tarball either.
2781     (tar --version) >/dev/null 2>&1 && continue
2782     am__tar='tar chf - "$$tardir"'
2783     am__tar_='tar chf - "$tardir"'
2784     am__untar='tar xf -'
2785     ;;
2786   pax)
2787     am__tar='pax -L -x ustar -w "$$tardir"'
2788     am__tar_='pax -L -x ustar -w "$tardir"'
2789     am__untar='pax -r'
2790     ;;
2791   cpio)
2792     am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
2793     am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
2794     am__untar='cpio -i -H ustar -d'
2795     ;;
2796   none)
2797     am__tar=false
2798     am__tar_=false
2799     am__untar=false
2800     ;;
2801   esac
2802
2803   # If the value was cached, stop now.  We just wanted to have am__tar
2804   # and am__untar set.
2805   test -n "${am_cv_prog_tar_ustar}" && break
2806
2807   # tar/untar a dummy directory, and stop if the command works
2808   rm -rf conftest.dir
2809   mkdir conftest.dir
2810   echo GrepMe > conftest.dir/file
2811   { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
2812    (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
2813    ac_status=$?
2814    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2815    (exit $ac_status); }
2816   rm -rf conftest.dir
2817   if test -s conftest.tar; then
2818     { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
2819    ($am__untar <conftest.tar) >&5 2>&5
2820    ac_status=$?
2821    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2822    (exit $ac_status); }
2823     grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
2824   fi
2825 done
2826 rm -rf conftest.dir
2827
2828 if ${am_cv_prog_tar_ustar+:} false; then :
2829   $as_echo_n "(cached) " >&6
2830 else
2831   am_cv_prog_tar_ustar=$_am_tool
2832 fi
2833
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
2835 $as_echo "$am_cv_prog_tar_ustar" >&6; }
2836
2837
2838
2839
2840
2841
2842 # Check whether --enable-silent-rules was given.
2843 if test "${enable_silent_rules+set}" = set; then :
2844   enableval=$enable_silent_rules;
2845 fi
2846
2847 case $enable_silent_rules in
2848 yes) AM_DEFAULT_VERBOSITY=0;;
2849 no)  AM_DEFAULT_VERBOSITY=1;;
2850 *)   AM_DEFAULT_VERBOSITY=0;;
2851 esac
2852 am_make=${MAKE-make}
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2854 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2855 if ${am_cv_make_support_nested_variables+:} false; then :
2856   $as_echo_n "(cached) " >&6
2857 else
2858   if $as_echo 'TRUE=$(BAR$(V))
2859 BAR0=false
2860 BAR1=true
2861 V=1
2862 am__doit:
2863         @$(TRUE)
2864 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2865   am_cv_make_support_nested_variables=yes
2866 else
2867   am_cv_make_support_nested_variables=no
2868 fi
2869 fi
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2871 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2872 if test $am_cv_make_support_nested_variables = yes; then
2873     AM_V='$(V)'
2874   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2875 else
2876   AM_V=$AM_DEFAULT_VERBOSITY
2877   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2878 fi
2879 AM_BACKSLASH='\'
2880
2881
2882 # Check for programs
2883 ac_ext=c
2884 ac_cpp='$CPP $CPPFLAGS'
2885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2888 if test -n "$ac_tool_prefix"; then
2889   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2890 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2892 $as_echo_n "checking for $ac_word... " >&6; }
2893 if ${ac_cv_prog_CC+:} false; then :
2894   $as_echo_n "(cached) " >&6
2895 else
2896   if test -n "$CC"; then
2897   ac_cv_prog_CC="$CC" # Let the user override the test.
2898 else
2899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2900 for as_dir in $PATH
2901 do
2902   IFS=$as_save_IFS
2903   test -z "$as_dir" && as_dir=.
2904     for ac_exec_ext in '' $ac_executable_extensions; do
2905   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2906     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2907     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2908     break 2
2909   fi
2910 done
2911   done
2912 IFS=$as_save_IFS
2913
2914 fi
2915 fi
2916 CC=$ac_cv_prog_CC
2917 if test -n "$CC"; then
2918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2919 $as_echo "$CC" >&6; }
2920 else
2921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2922 $as_echo "no" >&6; }
2923 fi
2924
2925
2926 fi
2927 if test -z "$ac_cv_prog_CC"; then
2928   ac_ct_CC=$CC
2929   # Extract the first word of "gcc", so it can be a program name with args.
2930 set dummy gcc; ac_word=$2
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2932 $as_echo_n "checking for $ac_word... " >&6; }
2933 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2934   $as_echo_n "(cached) " >&6
2935 else
2936   if test -n "$ac_ct_CC"; then
2937   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2938 else
2939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2940 for as_dir in $PATH
2941 do
2942   IFS=$as_save_IFS
2943   test -z "$as_dir" && as_dir=.
2944     for ac_exec_ext in '' $ac_executable_extensions; do
2945   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2946     ac_cv_prog_ac_ct_CC="gcc"
2947     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2948     break 2
2949   fi
2950 done
2951   done
2952 IFS=$as_save_IFS
2953
2954 fi
2955 fi
2956 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2957 if test -n "$ac_ct_CC"; then
2958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2959 $as_echo "$ac_ct_CC" >&6; }
2960 else
2961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2962 $as_echo "no" >&6; }
2963 fi
2964
2965   if test "x$ac_ct_CC" = x; then
2966     CC=""
2967   else
2968     case $cross_compiling:$ac_tool_warned in
2969 yes:)
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2971 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2972 ac_tool_warned=yes ;;
2973 esac
2974     CC=$ac_ct_CC
2975   fi
2976 else
2977   CC="$ac_cv_prog_CC"
2978 fi
2979
2980 if test -z "$CC"; then
2981           if test -n "$ac_tool_prefix"; then
2982     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2983 set dummy ${ac_tool_prefix}cc; ac_word=$2
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2985 $as_echo_n "checking for $ac_word... " >&6; }
2986 if ${ac_cv_prog_CC+:} false; then :
2987   $as_echo_n "(cached) " >&6
2988 else
2989   if test -n "$CC"; then
2990   ac_cv_prog_CC="$CC" # Let the user override the test.
2991 else
2992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2993 for as_dir in $PATH
2994 do
2995   IFS=$as_save_IFS
2996   test -z "$as_dir" && as_dir=.
2997     for ac_exec_ext in '' $ac_executable_extensions; do
2998   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2999     ac_cv_prog_CC="${ac_tool_prefix}cc"
3000     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3001     break 2
3002   fi
3003 done
3004   done
3005 IFS=$as_save_IFS
3006
3007 fi
3008 fi
3009 CC=$ac_cv_prog_CC
3010 if test -n "$CC"; then
3011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3012 $as_echo "$CC" >&6; }
3013 else
3014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3015 $as_echo "no" >&6; }
3016 fi
3017
3018
3019   fi
3020 fi
3021 if test -z "$CC"; then
3022   # Extract the first word of "cc", so it can be a program name with args.
3023 set dummy cc; ac_word=$2
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3025 $as_echo_n "checking for $ac_word... " >&6; }
3026 if ${ac_cv_prog_CC+:} false; then :
3027   $as_echo_n "(cached) " >&6
3028 else
3029   if test -n "$CC"; then
3030   ac_cv_prog_CC="$CC" # Let the user override the test.
3031 else
3032   ac_prog_rejected=no
3033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3034 for as_dir in $PATH
3035 do
3036   IFS=$as_save_IFS
3037   test -z "$as_dir" && as_dir=.
3038     for ac_exec_ext in '' $ac_executable_extensions; do
3039   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3040     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3041        ac_prog_rejected=yes
3042        continue
3043      fi
3044     ac_cv_prog_CC="cc"
3045     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3046     break 2
3047   fi
3048 done
3049   done
3050 IFS=$as_save_IFS
3051
3052 if test $ac_prog_rejected = yes; then
3053   # We found a bogon in the path, so make sure we never use it.
3054   set dummy $ac_cv_prog_CC
3055   shift
3056   if test $# != 0; then
3057     # We chose a different compiler from the bogus one.
3058     # However, it has the same basename, so the bogon will be chosen
3059     # first if we set CC to just the basename; use the full file name.
3060     shift
3061     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3062   fi
3063 fi
3064 fi
3065 fi
3066 CC=$ac_cv_prog_CC
3067 if test -n "$CC"; then
3068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3069 $as_echo "$CC" >&6; }
3070 else
3071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3072 $as_echo "no" >&6; }
3073 fi
3074
3075
3076 fi
3077 if test -z "$CC"; then
3078   if test -n "$ac_tool_prefix"; then
3079   for ac_prog in cl.exe
3080   do
3081     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3082 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3084 $as_echo_n "checking for $ac_word... " >&6; }
3085 if ${ac_cv_prog_CC+:} false; then :
3086   $as_echo_n "(cached) " >&6
3087 else
3088   if test -n "$CC"; then
3089   ac_cv_prog_CC="$CC" # Let the user override the test.
3090 else
3091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3092 for as_dir in $PATH
3093 do
3094   IFS=$as_save_IFS
3095   test -z "$as_dir" && as_dir=.
3096     for ac_exec_ext in '' $ac_executable_extensions; do
3097   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3098     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3099     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3100     break 2
3101   fi
3102 done
3103   done
3104 IFS=$as_save_IFS
3105
3106 fi
3107 fi
3108 CC=$ac_cv_prog_CC
3109 if test -n "$CC"; then
3110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3111 $as_echo "$CC" >&6; }
3112 else
3113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3114 $as_echo "no" >&6; }
3115 fi
3116
3117
3118     test -n "$CC" && break
3119   done
3120 fi
3121 if test -z "$CC"; then
3122   ac_ct_CC=$CC
3123   for ac_prog in cl.exe
3124 do
3125   # Extract the first word of "$ac_prog", so it can be a program name with args.
3126 set dummy $ac_prog; ac_word=$2
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3128 $as_echo_n "checking for $ac_word... " >&6; }
3129 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3130   $as_echo_n "(cached) " >&6
3131 else
3132   if test -n "$ac_ct_CC"; then
3133   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3134 else
3135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3136 for as_dir in $PATH
3137 do
3138   IFS=$as_save_IFS
3139   test -z "$as_dir" && as_dir=.
3140     for ac_exec_ext in '' $ac_executable_extensions; do
3141   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3142     ac_cv_prog_ac_ct_CC="$ac_prog"
3143     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3144     break 2
3145   fi
3146 done
3147   done
3148 IFS=$as_save_IFS
3149
3150 fi
3151 fi
3152 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3153 if test -n "$ac_ct_CC"; then
3154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3155 $as_echo "$ac_ct_CC" >&6; }
3156 else
3157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3158 $as_echo "no" >&6; }
3159 fi
3160
3161
3162   test -n "$ac_ct_CC" && break
3163 done
3164
3165   if test "x$ac_ct_CC" = x; then
3166     CC=""
3167   else
3168     case $cross_compiling:$ac_tool_warned in
3169 yes:)
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3171 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3172 ac_tool_warned=yes ;;
3173 esac
3174     CC=$ac_ct_CC
3175   fi
3176 fi
3177
3178 fi
3179
3180
3181 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3182 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3183 as_fn_error $? "no acceptable C compiler found in \$PATH
3184 See \`config.log' for more details" "$LINENO" 5; }
3185
3186 # Provide some information about the compiler.
3187 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3188 set X $ac_compile
3189 ac_compiler=$2
3190 for ac_option in --version -v -V -qversion; do
3191   { { ac_try="$ac_compiler $ac_option >&5"
3192 case "(($ac_try" in
3193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3194   *) ac_try_echo=$ac_try;;
3195 esac
3196 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3197 $as_echo "$ac_try_echo"; } >&5
3198   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3199   ac_status=$?
3200   if test -s conftest.err; then
3201     sed '10a\
3202 ... rest of stderr output deleted ...
3203          10q' conftest.err >conftest.er1
3204     cat conftest.er1 >&5
3205   fi
3206   rm -f conftest.er1 conftest.err
3207   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3208   test $ac_status = 0; }
3209 done
3210
3211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3212 /* end confdefs.h.  */
3213
3214 int
3215 main ()
3216 {
3217
3218   ;
3219   return 0;
3220 }
3221 _ACEOF
3222 ac_clean_files_save=$ac_clean_files
3223 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3224 # Try to create an executable without -o first, disregard a.out.
3225 # It will help us diagnose broken compilers, and finding out an intuition
3226 # of exeext.
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3228 $as_echo_n "checking whether the C compiler works... " >&6; }
3229 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3230
3231 # The possible output files:
3232 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3233
3234 ac_rmfiles=
3235 for ac_file in $ac_files
3236 do
3237   case $ac_file in
3238     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3239     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3240   esac
3241 done
3242 rm -f $ac_rmfiles
3243
3244 if { { ac_try="$ac_link_default"
3245 case "(($ac_try" in
3246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3247   *) ac_try_echo=$ac_try;;
3248 esac
3249 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3250 $as_echo "$ac_try_echo"; } >&5
3251   (eval "$ac_link_default") 2>&5
3252   ac_status=$?
3253   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3254   test $ac_status = 0; }; then :
3255   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3256 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3257 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3258 # so that the user can short-circuit this test for compilers unknown to
3259 # Autoconf.
3260 for ac_file in $ac_files ''
3261 do
3262   test -f "$ac_file" || continue
3263   case $ac_file in
3264     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3265         ;;
3266     [ab].out )
3267         # We found the default executable, but exeext='' is most
3268         # certainly right.
3269         break;;
3270     *.* )
3271         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3272         then :; else
3273            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3274         fi
3275         # We set ac_cv_exeext here because the later test for it is not
3276         # safe: cross compilers may not add the suffix if given an `-o'
3277         # argument, so we may need to know it at that point already.
3278         # Even if this section looks crufty: it has the advantage of
3279         # actually working.
3280         break;;
3281     * )
3282         break;;
3283   esac
3284 done
3285 test "$ac_cv_exeext" = no && ac_cv_exeext=
3286
3287 else
3288   ac_file=''
3289 fi
3290 if test -z "$ac_file"; then :
3291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3292 $as_echo "no" >&6; }
3293 $as_echo "$as_me: failed program was:" >&5
3294 sed 's/^/| /' conftest.$ac_ext >&5
3295
3296 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3297 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3298 as_fn_error 77 "C compiler cannot create executables
3299 See \`config.log' for more details" "$LINENO" 5; }
3300 else
3301   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3302 $as_echo "yes" >&6; }
3303 fi
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3305 $as_echo_n "checking for C compiler default output file name... " >&6; }
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3307 $as_echo "$ac_file" >&6; }
3308 ac_exeext=$ac_cv_exeext
3309
3310 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3311 ac_clean_files=$ac_clean_files_save
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3313 $as_echo_n "checking for suffix of executables... " >&6; }
3314 if { { ac_try="$ac_link"
3315 case "(($ac_try" in
3316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3317   *) ac_try_echo=$ac_try;;
3318 esac
3319 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3320 $as_echo "$ac_try_echo"; } >&5
3321   (eval "$ac_link") 2>&5
3322   ac_status=$?
3323   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3324   test $ac_status = 0; }; then :
3325   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3326 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3327 # work properly (i.e., refer to `conftest.exe'), while it won't with
3328 # `rm'.
3329 for ac_file in conftest.exe conftest conftest.*; do
3330   test -f "$ac_file" || continue
3331   case $ac_file in
3332     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3333     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3334           break;;
3335     * ) break;;
3336   esac
3337 done
3338 else
3339   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3340 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3341 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3342 See \`config.log' for more details" "$LINENO" 5; }
3343 fi
3344 rm -f conftest conftest$ac_cv_exeext
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3346 $as_echo "$ac_cv_exeext" >&6; }
3347
3348 rm -f conftest.$ac_ext
3349 EXEEXT=$ac_cv_exeext
3350 ac_exeext=$EXEEXT
3351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3352 /* end confdefs.h.  */
3353 #include <stdio.h>
3354 int
3355 main ()
3356 {
3357 FILE *f = fopen ("conftest.out", "w");
3358  return ferror (f) || fclose (f) != 0;
3359
3360   ;
3361   return 0;
3362 }
3363 _ACEOF
3364 ac_clean_files="$ac_clean_files conftest.out"
3365 # Check that the compiler produces executables we can run.  If not, either
3366 # the compiler is broken, or we cross compile.
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3368 $as_echo_n "checking whether we are cross compiling... " >&6; }
3369 if test "$cross_compiling" != yes; then
3370   { { ac_try="$ac_link"
3371 case "(($ac_try" in
3372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3373   *) ac_try_echo=$ac_try;;
3374 esac
3375 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3376 $as_echo "$ac_try_echo"; } >&5
3377   (eval "$ac_link") 2>&5
3378   ac_status=$?
3379   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3380   test $ac_status = 0; }
3381   if { ac_try='./conftest$ac_cv_exeext'
3382   { { case "(($ac_try" in
3383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3384   *) ac_try_echo=$ac_try;;
3385 esac
3386 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3387 $as_echo "$ac_try_echo"; } >&5
3388   (eval "$ac_try") 2>&5
3389   ac_status=$?
3390   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3391   test $ac_status = 0; }; }; then
3392     cross_compiling=no
3393   else
3394     if test "$cross_compiling" = maybe; then
3395         cross_compiling=yes
3396     else
3397         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3398 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3399 as_fn_error $? "cannot run C compiled programs.
3400 If you meant to cross compile, use \`--host'.
3401 See \`config.log' for more details" "$LINENO" 5; }
3402     fi
3403   fi
3404 fi
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3406 $as_echo "$cross_compiling" >&6; }
3407
3408 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3409 ac_clean_files=$ac_clean_files_save
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3411 $as_echo_n "checking for suffix of object files... " >&6; }
3412 if ${ac_cv_objext+:} false; then :
3413   $as_echo_n "(cached) " >&6
3414 else
3415   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3416 /* end confdefs.h.  */
3417
3418 int
3419 main ()
3420 {
3421
3422   ;
3423   return 0;
3424 }
3425 _ACEOF
3426 rm -f conftest.o conftest.obj
3427 if { { ac_try="$ac_compile"
3428 case "(($ac_try" in
3429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3430   *) ac_try_echo=$ac_try;;
3431 esac
3432 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3433 $as_echo "$ac_try_echo"; } >&5
3434   (eval "$ac_compile") 2>&5
3435   ac_status=$?
3436   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3437   test $ac_status = 0; }; then :
3438   for ac_file in conftest.o conftest.obj 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 ) ;;
3442     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3443        break;;
3444   esac
3445 done
3446 else
3447   $as_echo "$as_me: failed program was:" >&5
3448 sed 's/^/| /' conftest.$ac_ext >&5
3449
3450 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3451 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3452 as_fn_error $? "cannot compute suffix of object files: cannot compile
3453 See \`config.log' for more details" "$LINENO" 5; }
3454 fi
3455 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3456 fi
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3458 $as_echo "$ac_cv_objext" >&6; }
3459 OBJEXT=$ac_cv_objext
3460 ac_objext=$OBJEXT
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3462 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3463 if ${ac_cv_c_compiler_gnu+:} false; then :
3464   $as_echo_n "(cached) " >&6
3465 else
3466   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3467 /* end confdefs.h.  */
3468
3469 int
3470 main ()
3471 {
3472 #ifndef __GNUC__
3473        choke me
3474 #endif
3475
3476   ;
3477   return 0;
3478 }
3479 _ACEOF
3480 if ac_fn_c_try_compile "$LINENO"; then :
3481   ac_compiler_gnu=yes
3482 else
3483   ac_compiler_gnu=no
3484 fi
3485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3486 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3487
3488 fi
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3490 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3491 if test $ac_compiler_gnu = yes; then
3492   GCC=yes
3493 else
3494   GCC=
3495 fi
3496 ac_test_CFLAGS=${CFLAGS+set}
3497 ac_save_CFLAGS=$CFLAGS
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3499 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3500 if ${ac_cv_prog_cc_g+:} false; then :
3501   $as_echo_n "(cached) " >&6
3502 else
3503   ac_save_c_werror_flag=$ac_c_werror_flag
3504    ac_c_werror_flag=yes
3505    ac_cv_prog_cc_g=no
3506    CFLAGS="-g"
3507    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3508 /* end confdefs.h.  */
3509
3510 int
3511 main ()
3512 {
3513
3514   ;
3515   return 0;
3516 }
3517 _ACEOF
3518 if ac_fn_c_try_compile "$LINENO"; then :
3519   ac_cv_prog_cc_g=yes
3520 else
3521   CFLAGS=""
3522       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3523 /* end confdefs.h.  */
3524
3525 int
3526 main ()
3527 {
3528
3529   ;
3530   return 0;
3531 }
3532 _ACEOF
3533 if ac_fn_c_try_compile "$LINENO"; then :
3534
3535 else
3536   ac_c_werror_flag=$ac_save_c_werror_flag
3537          CFLAGS="-g"
3538          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3539 /* end confdefs.h.  */
3540
3541 int
3542 main ()
3543 {
3544
3545   ;
3546   return 0;
3547 }
3548 _ACEOF
3549 if ac_fn_c_try_compile "$LINENO"; then :
3550   ac_cv_prog_cc_g=yes
3551 fi
3552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3553 fi
3554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3555 fi
3556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3557    ac_c_werror_flag=$ac_save_c_werror_flag
3558 fi
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3560 $as_echo "$ac_cv_prog_cc_g" >&6; }
3561 if test "$ac_test_CFLAGS" = set; then
3562   CFLAGS=$ac_save_CFLAGS
3563 elif test $ac_cv_prog_cc_g = yes; then
3564   if test "$GCC" = yes; then
3565     CFLAGS="-g -O2"
3566   else
3567     CFLAGS="-g"
3568   fi
3569 else
3570   if test "$GCC" = yes; then
3571     CFLAGS="-O2"
3572   else
3573     CFLAGS=
3574   fi
3575 fi
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3577 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3578 if ${ac_cv_prog_cc_c89+:} false; then :
3579   $as_echo_n "(cached) " >&6
3580 else
3581   ac_cv_prog_cc_c89=no
3582 ac_save_CC=$CC
3583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3584 /* end confdefs.h.  */
3585 #include <stdarg.h>
3586 #include <stdio.h>
3587 struct stat;
3588 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3589 struct buf { int x; };
3590 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3591 static char *e (p, i)
3592      char **p;
3593      int i;
3594 {
3595   return p[i];
3596 }
3597 static char *f (char * (*g) (char **, int), char **p, ...)
3598 {
3599   char *s;
3600   va_list v;
3601   va_start (v,p);
3602   s = g (p, va_arg (v,int));
3603   va_end (v);
3604   return s;
3605 }
3606
3607 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3608    function prototypes and stuff, but not '\xHH' hex character constants.
3609    These don't provoke an error unfortunately, instead are silently treated
3610    as 'x'.  The following induces an error, until -std is added to get
3611    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3612    array size at least.  It's necessary to write '\x00'==0 to get something
3613    that's true only with -std.  */
3614 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3615
3616 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3617    inside strings and character constants.  */
3618 #define FOO(x) 'x'
3619 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3620
3621 int test (int i, double x);
3622 struct s1 {int (*f) (int a);};
3623 struct s2 {int (*f) (double a);};
3624 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3625 int argc;
3626 char **argv;
3627 int
3628 main ()
3629 {
3630 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3631   ;
3632   return 0;
3633 }
3634 _ACEOF
3635 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3636         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3637 do
3638   CC="$ac_save_CC $ac_arg"
3639   if ac_fn_c_try_compile "$LINENO"; then :
3640   ac_cv_prog_cc_c89=$ac_arg
3641 fi
3642 rm -f core conftest.err conftest.$ac_objext
3643   test "x$ac_cv_prog_cc_c89" != "xno" && break
3644 done
3645 rm -f conftest.$ac_ext
3646 CC=$ac_save_CC
3647
3648 fi
3649 # AC_CACHE_VAL
3650 case "x$ac_cv_prog_cc_c89" in
3651   x)
3652     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3653 $as_echo "none needed" >&6; } ;;
3654   xno)
3655     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3656 $as_echo "unsupported" >&6; } ;;
3657   *)
3658     CC="$CC $ac_cv_prog_cc_c89"
3659     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3660 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3661 esac
3662 if test "x$ac_cv_prog_cc_c89" != xno; then :
3663
3664 fi
3665
3666 ac_ext=c
3667 ac_cpp='$CPP $CPPFLAGS'
3668 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3669 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3670 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3671 DEPDIR="${am__leading_dot}deps"
3672
3673 ac_config_commands="$ac_config_commands depfiles"
3674
3675
3676 am_make=${MAKE-make}
3677 cat > confinc << 'END'
3678 am__doit:
3679         @echo this is the am__doit target
3680 .PHONY: am__doit
3681 END
3682 # If we don't find an include directive, just comment out the code.
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3684 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3685 am__include="#"
3686 am__quote=
3687 _am_result=none
3688 # First try GNU make style include.
3689 echo "include confinc" > confmf
3690 # Ignore all kinds of additional output from `make'.
3691 case `$am_make -s -f confmf 2> /dev/null` in #(
3692 *the\ am__doit\ target*)
3693   am__include=include
3694   am__quote=
3695   _am_result=GNU
3696   ;;
3697 esac
3698 # Now try BSD make style include.
3699 if test "$am__include" = "#"; then
3700    echo '.include "confinc"' > confmf
3701    case `$am_make -s -f confmf 2> /dev/null` in #(
3702    *the\ am__doit\ target*)
3703      am__include=.include
3704      am__quote="\""
3705      _am_result=BSD
3706      ;;
3707    esac
3708 fi
3709
3710
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3712 $as_echo "$_am_result" >&6; }
3713 rm -f confinc confmf
3714
3715 # Check whether --enable-dependency-tracking was given.
3716 if test "${enable_dependency_tracking+set}" = set; then :
3717   enableval=$enable_dependency_tracking;
3718 fi
3719
3720 if test "x$enable_dependency_tracking" != xno; then
3721   am_depcomp="$ac_aux_dir/depcomp"
3722   AMDEPBACKSLASH='\'
3723   am__nodep='_no'
3724 fi
3725  if test "x$enable_dependency_tracking" != xno; then
3726   AMDEP_TRUE=
3727   AMDEP_FALSE='#'
3728 else
3729   AMDEP_TRUE='#'
3730   AMDEP_FALSE=
3731 fi
3732
3733
3734
3735 depcc="$CC"   am_compiler_list=
3736
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3738 $as_echo_n "checking dependency style of $depcc... " >&6; }
3739 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3740   $as_echo_n "(cached) " >&6
3741 else
3742   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3743   # We make a subdir and do the tests there.  Otherwise we can end up
3744   # making bogus files that we don't know about and never remove.  For
3745   # instance it was reported that on HP-UX the gcc test will end up
3746   # making a dummy file named `D' -- because `-MD' means `put the output
3747   # in D'.
3748   rm -rf conftest.dir
3749   mkdir conftest.dir
3750   # Copy depcomp to subdir because otherwise we won't find it if we're
3751   # using a relative directory.
3752   cp "$am_depcomp" conftest.dir
3753   cd conftest.dir
3754   # We will build objects and dependencies in a subdirectory because
3755   # it helps to detect inapplicable dependency modes.  For instance
3756   # both Tru64's cc and ICC support -MD to output dependencies as a
3757   # side effect of compilation, but ICC will put the dependencies in
3758   # the current directory while Tru64 will put them in the object
3759   # directory.
3760   mkdir sub
3761
3762   am_cv_CC_dependencies_compiler_type=none
3763   if test "$am_compiler_list" = ""; then
3764      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3765   fi
3766   am__universal=false
3767   case " $depcc " in #(
3768      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3769      esac
3770
3771   for depmode in $am_compiler_list; do
3772     # Setup a source with many dependencies, because some compilers
3773     # like to wrap large dependency lists on column 80 (with \), and
3774     # we should not choose a depcomp mode which is confused by this.
3775     #
3776     # We need to recreate these files for each test, as the compiler may
3777     # overwrite some of them when testing with obscure command lines.
3778     # This happens at least with the AIX C compiler.
3779     : > sub/conftest.c
3780     for i in 1 2 3 4 5 6; do
3781       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3782       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3783       # Solaris 8's {/usr,}/bin/sh.
3784       touch sub/conftst$i.h
3785     done
3786     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3787
3788     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3789     # mode.  It turns out that the SunPro C++ compiler does not properly
3790     # handle `-M -o', and we need to detect this.  Also, some Intel
3791     # versions had trouble with output in subdirs
3792     am__obj=sub/conftest.${OBJEXT-o}
3793     am__minus_obj="-o $am__obj"
3794     case $depmode in
3795     gcc)
3796       # This depmode causes a compiler race in universal mode.
3797       test "$am__universal" = false || continue
3798       ;;
3799     nosideeffect)
3800       # after this tag, mechanisms are not by side-effect, so they'll
3801       # only be used when explicitly requested
3802       if test "x$enable_dependency_tracking" = xyes; then
3803         continue
3804       else
3805         break
3806       fi
3807       ;;
3808     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3809       # This compiler won't grok `-c -o', but also, the minuso test has
3810       # not run yet.  These depmodes are late enough in the game, and
3811       # so weak that their functioning should not be impacted.
3812       am__obj=conftest.${OBJEXT-o}
3813       am__minus_obj=
3814       ;;
3815     none) break ;;
3816     esac
3817     if depmode=$depmode \
3818        source=sub/conftest.c object=$am__obj \
3819        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3820        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3821          >/dev/null 2>conftest.err &&
3822        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3823        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3824        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3825        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3826       # icc doesn't choke on unknown options, it will just issue warnings
3827       # or remarks (even with -Werror).  So we grep stderr for any message
3828       # that says an option was ignored or not supported.
3829       # When given -MP, icc 7.0 and 7.1 complain thusly:
3830       #   icc: Command line warning: ignoring option '-M'; no argument required
3831       # The diagnosis changed in icc 8.0:
3832       #   icc: Command line remark: option '-MP' not supported
3833       if (grep 'ignoring option' conftest.err ||
3834           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3835         am_cv_CC_dependencies_compiler_type=$depmode
3836         break
3837       fi
3838     fi
3839   done
3840
3841   cd ..
3842   rm -rf conftest.dir
3843 else
3844   am_cv_CC_dependencies_compiler_type=none
3845 fi
3846
3847 fi
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3849 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3850 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3851
3852  if
3853   test "x$enable_dependency_tracking" != xno \
3854   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3855   am__fastdepCC_TRUE=
3856   am__fastdepCC_FALSE='#'
3857 else
3858   am__fastdepCC_TRUE='#'
3859   am__fastdepCC_FALSE=
3860 fi
3861
3862
3863 if test "x$CC" != xcc; then
3864   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
3865 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
3866 else
3867   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
3868 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
3869 fi
3870 set dummy $CC; ac_cc=`$as_echo "$2" |
3871                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3872 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
3873   $as_echo_n "(cached) " >&6
3874 else
3875   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3876 /* end confdefs.h.  */
3877
3878 int
3879 main ()
3880 {
3881
3882   ;
3883   return 0;
3884 }
3885 _ACEOF
3886 # Make sure it works both with $CC and with simple cc.
3887 # We do the test twice because some compilers refuse to overwrite an
3888 # existing .o file with -o, though they will create one.
3889 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3890 rm -f conftest2.*
3891 if { { case "(($ac_try" in
3892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3893   *) ac_try_echo=$ac_try;;
3894 esac
3895 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3896 $as_echo "$ac_try_echo"; } >&5
3897   (eval "$ac_try") 2>&5
3898   ac_status=$?
3899   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3900   test $ac_status = 0; } &&
3901    test -f conftest2.$ac_objext && { { case "(($ac_try" in
3902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3903   *) ac_try_echo=$ac_try;;
3904 esac
3905 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3906 $as_echo "$ac_try_echo"; } >&5
3907   (eval "$ac_try") 2>&5
3908   ac_status=$?
3909   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3910   test $ac_status = 0; };
3911 then
3912   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3913   if test "x$CC" != xcc; then
3914     # Test first that cc exists at all.
3915     if { ac_try='cc -c conftest.$ac_ext >&5'
3916   { { case "(($ac_try" in
3917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3918   *) ac_try_echo=$ac_try;;
3919 esac
3920 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3921 $as_echo "$ac_try_echo"; } >&5
3922   (eval "$ac_try") 2>&5
3923   ac_status=$?
3924   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3925   test $ac_status = 0; }; }; then
3926       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3927       rm -f conftest2.*
3928       if { { case "(($ac_try" in
3929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3930   *) ac_try_echo=$ac_try;;
3931 esac
3932 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3933 $as_echo "$ac_try_echo"; } >&5
3934   (eval "$ac_try") 2>&5
3935   ac_status=$?
3936   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3937   test $ac_status = 0; } &&
3938          test -f conftest2.$ac_objext && { { case "(($ac_try" in
3939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3940   *) ac_try_echo=$ac_try;;
3941 esac
3942 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3943 $as_echo "$ac_try_echo"; } >&5
3944   (eval "$ac_try") 2>&5
3945   ac_status=$?
3946   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3947   test $ac_status = 0; };
3948       then
3949         # cc works too.
3950         :
3951       else
3952         # cc exists but doesn't like -o.
3953         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3954       fi
3955     fi
3956   fi
3957 else
3958   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3959 fi
3960 rm -f core conftest*
3961
3962 fi
3963 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3965 $as_echo "yes" >&6; }
3966 else
3967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3968 $as_echo "no" >&6; }
3969
3970 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
3971
3972 fi
3973
3974 # FIXME: we rely on the cache variable name because
3975 # there is no other way.
3976 set dummy $CC
3977 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3978 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
3979 if test "$am_t" != yes; then
3980    # Losing compiler, so override with the script.
3981    # FIXME: It is wrong to rewrite CC.
3982    # But if we don't then we get into trouble of one sort or another.
3983    # A longer-term fix would be to have automake use am__CC in this case,
3984    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3985    CC="$am_aux_dir/compile $CC"
3986 fi
3987
3988
3989
3990 ac_ext=c
3991 ac_cpp='$CPP $CPPFLAGS'
3992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3996 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3997 # On Suns, sometimes $CPP names a directory.
3998 if test -n "$CPP" && test -d "$CPP"; then
3999   CPP=
4000 fi
4001 if test -z "$CPP"; then
4002   if ${ac_cv_prog_CPP+:} false; then :
4003   $as_echo_n "(cached) " >&6
4004 else
4005       # Double quotes because CPP needs to be expanded
4006     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4007     do
4008       ac_preproc_ok=false
4009 for ac_c_preproc_warn_flag in '' yes
4010 do
4011   # Use a header file that comes with gcc, so configuring glibc
4012   # with a fresh cross-compiler works.
4013   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4014   # <limits.h> exists even on freestanding compilers.
4015   # On the NeXT, cc -E runs the code through the compiler's parser,
4016   # not just through cpp. "Syntax error" is here to catch this case.
4017   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4018 /* end confdefs.h.  */
4019 #ifdef __STDC__
4020 # include <limits.h>
4021 #else
4022 # include <assert.h>
4023 #endif
4024                      Syntax error
4025 _ACEOF
4026 if ac_fn_c_try_cpp "$LINENO"; then :
4027
4028 else
4029   # Broken: fails on valid input.
4030 continue
4031 fi
4032 rm -f conftest.err conftest.i conftest.$ac_ext
4033
4034   # OK, works on sane cases.  Now check whether nonexistent headers
4035   # can be detected and how.
4036   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4037 /* end confdefs.h.  */
4038 #include <ac_nonexistent.h>
4039 _ACEOF
4040 if ac_fn_c_try_cpp "$LINENO"; then :
4041   # Broken: success on invalid input.
4042 continue
4043 else
4044   # Passes both tests.
4045 ac_preproc_ok=:
4046 break
4047 fi
4048 rm -f conftest.err conftest.i conftest.$ac_ext
4049
4050 done
4051 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4052 rm -f conftest.i conftest.err conftest.$ac_ext
4053 if $ac_preproc_ok; then :
4054   break
4055 fi
4056
4057     done
4058     ac_cv_prog_CPP=$CPP
4059
4060 fi
4061   CPP=$ac_cv_prog_CPP
4062 else
4063   ac_cv_prog_CPP=$CPP
4064 fi
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4066 $as_echo "$CPP" >&6; }
4067 ac_preproc_ok=false
4068 for ac_c_preproc_warn_flag in '' yes
4069 do
4070   # Use a header file that comes with gcc, so configuring glibc
4071   # with a fresh cross-compiler works.
4072   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4073   # <limits.h> exists even on freestanding compilers.
4074   # On the NeXT, cc -E runs the code through the compiler's parser,
4075   # not just through cpp. "Syntax error" is here to catch this case.
4076   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4077 /* end confdefs.h.  */
4078 #ifdef __STDC__
4079 # include <limits.h>
4080 #else
4081 # include <assert.h>
4082 #endif
4083                      Syntax error
4084 _ACEOF
4085 if ac_fn_c_try_cpp "$LINENO"; then :
4086
4087 else
4088   # Broken: fails on valid input.
4089 continue
4090 fi
4091 rm -f conftest.err conftest.i conftest.$ac_ext
4092
4093   # OK, works on sane cases.  Now check whether nonexistent headers
4094   # can be detected and how.
4095   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4096 /* end confdefs.h.  */
4097 #include <ac_nonexistent.h>
4098 _ACEOF
4099 if ac_fn_c_try_cpp "$LINENO"; then :
4100   # Broken: success on invalid input.
4101 continue
4102 else
4103   # Passes both tests.
4104 ac_preproc_ok=:
4105 break
4106 fi
4107 rm -f conftest.err conftest.i conftest.$ac_ext
4108
4109 done
4110 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4111 rm -f conftest.i conftest.err conftest.$ac_ext
4112 if $ac_preproc_ok; then :
4113
4114 else
4115   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4116 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4117 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4118 See \`config.log' for more details" "$LINENO" 5; }
4119 fi
4120
4121 ac_ext=c
4122 ac_cpp='$CPP $CPPFLAGS'
4123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4126
4127
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4129 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4130 if ${ac_cv_path_GREP+:} false; then :
4131   $as_echo_n "(cached) " >&6
4132 else
4133   if test -z "$GREP"; then
4134   ac_path_GREP_found=false
4135   # Loop through the user's path and test for each of PROGNAME-LIST
4136   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4137 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4138 do
4139   IFS=$as_save_IFS
4140   test -z "$as_dir" && as_dir=.
4141     for ac_prog in grep ggrep; do
4142     for ac_exec_ext in '' $ac_executable_extensions; do
4143       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4144       as_fn_executable_p "$ac_path_GREP" || continue
4145 # Check for GNU ac_path_GREP and select it if it is found.
4146   # Check for GNU $ac_path_GREP
4147 case `"$ac_path_GREP" --version 2>&1` in
4148 *GNU*)
4149   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4150 *)
4151   ac_count=0
4152   $as_echo_n 0123456789 >"conftest.in"
4153   while :
4154   do
4155     cat "conftest.in" "conftest.in" >"conftest.tmp"
4156     mv "conftest.tmp" "conftest.in"
4157     cp "conftest.in" "conftest.nl"
4158     $as_echo 'GREP' >> "conftest.nl"
4159     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4160     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4161     as_fn_arith $ac_count + 1 && ac_count=$as_val
4162     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4163       # Best one so far, save it but keep looking for a better one
4164       ac_cv_path_GREP="$ac_path_GREP"
4165       ac_path_GREP_max=$ac_count
4166     fi
4167     # 10*(2^10) chars as input seems more than enough
4168     test $ac_count -gt 10 && break
4169   done
4170   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4171 esac
4172
4173       $ac_path_GREP_found && break 3
4174     done
4175   done
4176   done
4177 IFS=$as_save_IFS
4178   if test -z "$ac_cv_path_GREP"; then
4179     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4180   fi
4181 else
4182   ac_cv_path_GREP=$GREP
4183 fi
4184
4185 fi
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4187 $as_echo "$ac_cv_path_GREP" >&6; }
4188  GREP="$ac_cv_path_GREP"
4189
4190
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4192 $as_echo_n "checking for egrep... " >&6; }
4193 if ${ac_cv_path_EGREP+:} false; then :
4194   $as_echo_n "(cached) " >&6
4195 else
4196   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4197    then ac_cv_path_EGREP="$GREP -E"
4198    else
4199      if test -z "$EGREP"; then
4200   ac_path_EGREP_found=false
4201   # Loop through the user's path and test for each of PROGNAME-LIST
4202   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4203 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4204 do
4205   IFS=$as_save_IFS
4206   test -z "$as_dir" && as_dir=.
4207     for ac_prog in egrep; do
4208     for ac_exec_ext in '' $ac_executable_extensions; do
4209       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4210       as_fn_executable_p "$ac_path_EGREP" || continue
4211 # Check for GNU ac_path_EGREP and select it if it is found.
4212   # Check for GNU $ac_path_EGREP
4213 case `"$ac_path_EGREP" --version 2>&1` in
4214 *GNU*)
4215   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4216 *)
4217   ac_count=0
4218   $as_echo_n 0123456789 >"conftest.in"
4219   while :
4220   do
4221     cat "conftest.in" "conftest.in" >"conftest.tmp"
4222     mv "conftest.tmp" "conftest.in"
4223     cp "conftest.in" "conftest.nl"
4224     $as_echo 'EGREP' >> "conftest.nl"
4225     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4226     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4227     as_fn_arith $ac_count + 1 && ac_count=$as_val
4228     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4229       # Best one so far, save it but keep looking for a better one
4230       ac_cv_path_EGREP="$ac_path_EGREP"
4231       ac_path_EGREP_max=$ac_count
4232     fi
4233     # 10*(2^10) chars as input seems more than enough
4234     test $ac_count -gt 10 && break
4235   done
4236   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4237 esac
4238
4239       $ac_path_EGREP_found && break 3
4240     done
4241   done
4242   done
4243 IFS=$as_save_IFS
4244   if test -z "$ac_cv_path_EGREP"; then
4245     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4246   fi
4247 else
4248   ac_cv_path_EGREP=$EGREP
4249 fi
4250
4251    fi
4252 fi
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4254 $as_echo "$ac_cv_path_EGREP" >&6; }
4255  EGREP="$ac_cv_path_EGREP"
4256
4257
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4259 $as_echo_n "checking for ANSI C header files... " >&6; }
4260 if ${ac_cv_header_stdc+:} false; then :
4261   $as_echo_n "(cached) " >&6
4262 else
4263   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4264 /* end confdefs.h.  */
4265 #include <stdlib.h>
4266 #include <stdarg.h>
4267 #include <string.h>
4268 #include <float.h>
4269
4270 int
4271 main ()
4272 {
4273
4274   ;
4275   return 0;
4276 }
4277 _ACEOF
4278 if ac_fn_c_try_compile "$LINENO"; then :
4279   ac_cv_header_stdc=yes
4280 else
4281   ac_cv_header_stdc=no
4282 fi
4283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4284
4285 if test $ac_cv_header_stdc = yes; then
4286   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4287   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4288 /* end confdefs.h.  */
4289 #include <string.h>
4290
4291 _ACEOF
4292 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4293   $EGREP "memchr" >/dev/null 2>&1; then :
4294
4295 else
4296   ac_cv_header_stdc=no
4297 fi
4298 rm -f conftest*
4299
4300 fi
4301
4302 if test $ac_cv_header_stdc = yes; then
4303   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4304   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4305 /* end confdefs.h.  */
4306 #include <stdlib.h>
4307
4308 _ACEOF
4309 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4310   $EGREP "free" >/dev/null 2>&1; then :
4311
4312 else
4313   ac_cv_header_stdc=no
4314 fi
4315 rm -f conftest*
4316
4317 fi
4318
4319 if test $ac_cv_header_stdc = yes; then
4320   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4321   if test "$cross_compiling" = yes; then :
4322   :
4323 else
4324   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4325 /* end confdefs.h.  */
4326 #include <ctype.h>
4327 #include <stdlib.h>
4328 #if ((' ' & 0x0FF) == 0x020)
4329 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4330 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4331 #else
4332 # define ISLOWER(c) \
4333                    (('a' <= (c) && (c) <= 'i') \
4334                      || ('j' <= (c) && (c) <= 'r') \
4335                      || ('s' <= (c) && (c) <= 'z'))
4336 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4337 #endif
4338
4339 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4340 int
4341 main ()
4342 {
4343   int i;
4344   for (i = 0; i < 256; i++)
4345     if (XOR (islower (i), ISLOWER (i))
4346         || toupper (i) != TOUPPER (i))
4347       return 2;
4348   return 0;
4349 }
4350 _ACEOF
4351 if ac_fn_c_try_run "$LINENO"; then :
4352
4353 else
4354   ac_cv_header_stdc=no
4355 fi
4356 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4357   conftest.$ac_objext conftest.beam conftest.$ac_ext
4358 fi
4359
4360 fi
4361 fi
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4363 $as_echo "$ac_cv_header_stdc" >&6; }
4364 if test $ac_cv_header_stdc = yes; then
4365
4366 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4367
4368 fi
4369
4370 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4371 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4372                   inttypes.h stdint.h unistd.h
4373 do :
4374   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4375 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4376 "
4377 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4378   cat >>confdefs.h <<_ACEOF
4379 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4380 _ACEOF
4381
4382 fi
4383
4384 done
4385
4386
4387
4388
4389
4390   for ac_header in $ac_header_list
4391 do :
4392   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4393 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4394 "
4395 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4396   cat >>confdefs.h <<_ACEOF
4397 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4398 _ACEOF
4399
4400 fi
4401
4402 done
4403
4404
4405
4406
4407
4408
4409
4410
4411 for ac_func in getpagesize
4412 do :
4413   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
4414 if test "x$ac_cv_func_getpagesize" = xyes; then :
4415   cat >>confdefs.h <<_ACEOF
4416 #define HAVE_GETPAGESIZE 1
4417 _ACEOF
4418
4419 fi
4420 done
4421
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
4423 $as_echo_n "checking for working mmap... " >&6; }
4424 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
4425   $as_echo_n "(cached) " >&6
4426 else
4427   if test "$cross_compiling" = yes; then :
4428   ac_cv_func_mmap_fixed_mapped=no
4429 else
4430   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4431 /* end confdefs.h.  */
4432 $ac_includes_default
4433 /* malloc might have been renamed as rpl_malloc. */
4434 #undef malloc
4435
4436 /* Thanks to Mike Haertel and Jim Avera for this test.
4437    Here is a matrix of mmap possibilities:
4438         mmap private not fixed
4439         mmap private fixed at somewhere currently unmapped
4440         mmap private fixed at somewhere already mapped
4441         mmap shared not fixed
4442         mmap shared fixed at somewhere currently unmapped
4443         mmap shared fixed at somewhere already mapped
4444    For private mappings, we should verify that changes cannot be read()
4445    back from the file, nor mmap's back from the file at a different
4446    address.  (There have been systems where private was not correctly
4447    implemented like the infamous i386 svr4.0, and systems where the
4448    VM page cache was not coherent with the file system buffer cache
4449    like early versions of FreeBSD and possibly contemporary NetBSD.)
4450    For shared mappings, we should conversely verify that changes get
4451    propagated back to all the places they're supposed to be.
4452
4453    Grep wants private fixed already mapped.
4454    The main things grep needs to know about mmap are:
4455    * does it exist and is it safe to write into the mmap'd area
4456    * how to use it (BSD variants)  */
4457
4458 #include <fcntl.h>
4459 #include <sys/mman.h>
4460
4461 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
4462 char *malloc ();
4463 #endif
4464
4465 /* This mess was copied from the GNU getpagesize.h.  */
4466 #ifndef HAVE_GETPAGESIZE
4467 # ifdef _SC_PAGESIZE
4468 #  define getpagesize() sysconf(_SC_PAGESIZE)
4469 # else /* no _SC_PAGESIZE */
4470 #  ifdef HAVE_SYS_PARAM_H
4471 #   include <sys/param.h>
4472 #   ifdef EXEC_PAGESIZE
4473 #    define getpagesize() EXEC_PAGESIZE
4474 #   else /* no EXEC_PAGESIZE */
4475 #    ifdef NBPG
4476 #     define getpagesize() NBPG * CLSIZE
4477 #     ifndef CLSIZE
4478 #      define CLSIZE 1
4479 #     endif /* no CLSIZE */
4480 #    else /* no NBPG */
4481 #     ifdef NBPC
4482 #      define getpagesize() NBPC
4483 #     else /* no NBPC */
4484 #      ifdef PAGESIZE
4485 #       define getpagesize() PAGESIZE
4486 #      endif /* PAGESIZE */
4487 #     endif /* no NBPC */
4488 #    endif /* no NBPG */
4489 #   endif /* no EXEC_PAGESIZE */
4490 #  else /* no HAVE_SYS_PARAM_H */
4491 #   define getpagesize() 8192   /* punt totally */
4492 #  endif /* no HAVE_SYS_PARAM_H */
4493 # endif /* no _SC_PAGESIZE */
4494
4495 #endif /* no HAVE_GETPAGESIZE */
4496
4497 int
4498 main ()
4499 {
4500   char *data, *data2, *data3;
4501   const char *cdata2;
4502   int i, pagesize;
4503   int fd, fd2;
4504
4505   pagesize = getpagesize ();
4506
4507   /* First, make a file with some known garbage in it. */
4508   data = (char *) malloc (pagesize);
4509   if (!data)
4510     return 1;
4511   for (i = 0; i < pagesize; ++i)
4512     *(data + i) = rand ();
4513   umask (0);
4514   fd = creat ("conftest.mmap", 0600);
4515   if (fd < 0)
4516     return 2;
4517   if (write (fd, data, pagesize) != pagesize)
4518     return 3;
4519   close (fd);
4520
4521   /* Next, check that the tail of a page is zero-filled.  File must have
4522      non-zero length, otherwise we risk SIGBUS for entire page.  */
4523   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
4524   if (fd2 < 0)
4525     return 4;
4526   cdata2 = "";
4527   if (write (fd2, cdata2, 1) != 1)
4528     return 5;
4529   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
4530   if (data2 == MAP_FAILED)
4531     return 6;
4532   for (i = 0; i < pagesize; ++i)
4533     if (*(data2 + i))
4534       return 7;
4535   close (fd2);
4536   if (munmap (data2, pagesize))
4537     return 8;
4538
4539   /* Next, try to mmap the file at a fixed address which already has
4540      something else allocated at it.  If we can, also make sure that
4541      we see the same garbage.  */
4542   fd = open ("conftest.mmap", O_RDWR);
4543   if (fd < 0)
4544     return 9;
4545   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4546                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
4547     return 10;
4548   for (i = 0; i < pagesize; ++i)
4549     if (*(data + i) != *(data2 + i))
4550       return 11;
4551
4552   /* Finally, make sure that changes to the mapped area do not
4553      percolate back to the file as seen by read().  (This is a bug on
4554      some variants of i386 svr4.0.)  */
4555   for (i = 0; i < pagesize; ++i)
4556     *(data2 + i) = *(data2 + i) + 1;
4557   data3 = (char *) malloc (pagesize);
4558   if (!data3)
4559     return 12;
4560   if (read (fd, data3, pagesize) != pagesize)
4561     return 13;
4562   for (i = 0; i < pagesize; ++i)
4563     if (*(data + i) != *(data3 + i))
4564       return 14;
4565   close (fd);
4566   return 0;
4567 }
4568 _ACEOF
4569 if ac_fn_c_try_run "$LINENO"; then :
4570   ac_cv_func_mmap_fixed_mapped=yes
4571 else
4572   ac_cv_func_mmap_fixed_mapped=no
4573 fi
4574 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4575   conftest.$ac_objext conftest.beam conftest.$ac_ext
4576 fi
4577
4578 fi
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
4580 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
4581 if test $ac_cv_func_mmap_fixed_mapped = yes; then
4582
4583 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
4584
4585 fi
4586 rm -f conftest.mmap conftest.txt
4587
4588
4589 # Initialize libtool
4590
4591 case `pwd` in
4592   *\ * | *\     *)
4593     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4594 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4595 esac
4596
4597
4598
4599 macro_version='2.4.2'
4600 macro_revision='1.3337'
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614 ltmain="$ac_aux_dir/ltmain.sh"
4615
4616 # Make sure we can run config.sub.
4617 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4618   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4619
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4621 $as_echo_n "checking build system type... " >&6; }
4622 if ${ac_cv_build+:} false; then :
4623   $as_echo_n "(cached) " >&6
4624 else
4625   ac_build_alias=$build_alias
4626 test "x$ac_build_alias" = x &&
4627   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4628 test "x$ac_build_alias" = x &&
4629   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4630 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4631   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4632
4633 fi
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4635 $as_echo "$ac_cv_build" >&6; }
4636 case $ac_cv_build in
4637 *-*-*) ;;
4638 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4639 esac
4640 build=$ac_cv_build
4641 ac_save_IFS=$IFS; IFS='-'
4642 set x $ac_cv_build
4643 shift
4644 build_cpu=$1
4645 build_vendor=$2
4646 shift; shift
4647 # Remember, the first character of IFS is used to create $*,
4648 # except with old shells:
4649 build_os=$*
4650 IFS=$ac_save_IFS
4651 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4652
4653
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4655 $as_echo_n "checking host system type... " >&6; }
4656 if ${ac_cv_host+:} false; then :
4657   $as_echo_n "(cached) " >&6
4658 else
4659   if test "x$host_alias" = x; then
4660   ac_cv_host=$ac_cv_build
4661 else
4662   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4663     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4664 fi
4665
4666 fi
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4668 $as_echo "$ac_cv_host" >&6; }
4669 case $ac_cv_host in
4670 *-*-*) ;;
4671 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4672 esac
4673 host=$ac_cv_host
4674 ac_save_IFS=$IFS; IFS='-'
4675 set x $ac_cv_host
4676 shift
4677 host_cpu=$1
4678 host_vendor=$2
4679 shift; shift
4680 # Remember, the first character of IFS is used to create $*,
4681 # except with old shells:
4682 host_os=$*
4683 IFS=$ac_save_IFS
4684 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4685
4686
4687 # Backslashify metacharacters that are still active within
4688 # double-quoted strings.
4689 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4690
4691 # Same as above, but do not quote variable references.
4692 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4693
4694 # Sed substitution to delay expansion of an escaped shell variable in a
4695 # double_quote_subst'ed string.
4696 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4697
4698 # Sed substitution to delay expansion of an escaped single quote.
4699 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4700
4701 # Sed substitution to avoid accidental globbing in evaled expressions
4702 no_glob_subst='s/\*/\\\*/g'
4703
4704 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4705 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4706 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4707
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4709 $as_echo_n "checking how to print strings... " >&6; }
4710 # Test print first, because it will be a builtin if present.
4711 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4712    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4713   ECHO='print -r --'
4714 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4715   ECHO='printf %s\n'
4716 else
4717   # Use this function as a fallback that always works.
4718   func_fallback_echo ()
4719   {
4720     eval 'cat <<_LTECHO_EOF
4721 $1
4722 _LTECHO_EOF'
4723   }
4724   ECHO='func_fallback_echo'
4725 fi
4726
4727 # func_echo_all arg...
4728 # Invoke $ECHO with all args, space-separated.
4729 func_echo_all ()
4730 {
4731     $ECHO ""
4732 }
4733
4734 case "$ECHO" in
4735   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4736 $as_echo "printf" >&6; } ;;
4737   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4738 $as_echo "print -r" >&6; } ;;
4739   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4740 $as_echo "cat" >&6; } ;;
4741 esac
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4757 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4758 if ${ac_cv_path_SED+:} false; then :
4759   $as_echo_n "(cached) " >&6
4760 else
4761             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4762      for ac_i in 1 2 3 4 5 6 7; do
4763        ac_script="$ac_script$as_nl$ac_script"
4764      done
4765      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4766      { ac_script=; unset ac_script;}
4767      if test -z "$SED"; then
4768   ac_path_SED_found=false
4769   # Loop through the user's path and test for each of PROGNAME-LIST
4770   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4771 for as_dir in $PATH
4772 do
4773   IFS=$as_save_IFS
4774   test -z "$as_dir" && as_dir=.
4775     for ac_prog in sed gsed; do
4776     for ac_exec_ext in '' $ac_executable_extensions; do
4777       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4778       as_fn_executable_p "$ac_path_SED" || continue
4779 # Check for GNU ac_path_SED and select it if it is found.
4780   # Check for GNU $ac_path_SED
4781 case `"$ac_path_SED" --version 2>&1` in
4782 *GNU*)
4783   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4784 *)
4785   ac_count=0
4786   $as_echo_n 0123456789 >"conftest.in"
4787   while :
4788   do
4789     cat "conftest.in" "conftest.in" >"conftest.tmp"
4790     mv "conftest.tmp" "conftest.in"
4791     cp "conftest.in" "conftest.nl"
4792     $as_echo '' >> "conftest.nl"
4793     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4794     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4795     as_fn_arith $ac_count + 1 && ac_count=$as_val
4796     if test $ac_count -gt ${ac_path_SED_max-0}; then
4797       # Best one so far, save it but keep looking for a better one
4798       ac_cv_path_SED="$ac_path_SED"
4799       ac_path_SED_max=$ac_count
4800     fi
4801     # 10*(2^10) chars as input seems more than enough
4802     test $ac_count -gt 10 && break
4803   done
4804   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4805 esac
4806
4807       $ac_path_SED_found && break 3
4808     done
4809   done
4810   done
4811 IFS=$as_save_IFS
4812   if test -z "$ac_cv_path_SED"; then
4813     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4814   fi
4815 else
4816   ac_cv_path_SED=$SED
4817 fi
4818
4819 fi
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4821 $as_echo "$ac_cv_path_SED" >&6; }
4822  SED="$ac_cv_path_SED"
4823   rm -f conftest.sed
4824
4825 test -z "$SED" && SED=sed
4826 Xsed="$SED -e 1s/^X//"
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4839 $as_echo_n "checking for fgrep... " >&6; }
4840 if ${ac_cv_path_FGREP+:} false; then :
4841   $as_echo_n "(cached) " >&6
4842 else
4843   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4844    then ac_cv_path_FGREP="$GREP -F"
4845    else
4846      if test -z "$FGREP"; then
4847   ac_path_FGREP_found=false
4848   # Loop through the user's path and test for each of PROGNAME-LIST
4849   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4850 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4851 do
4852   IFS=$as_save_IFS
4853   test -z "$as_dir" && as_dir=.
4854     for ac_prog in fgrep; do
4855     for ac_exec_ext in '' $ac_executable_extensions; do
4856       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4857       as_fn_executable_p "$ac_path_FGREP" || continue
4858 # Check for GNU ac_path_FGREP and select it if it is found.
4859   # Check for GNU $ac_path_FGREP
4860 case `"$ac_path_FGREP" --version 2>&1` in
4861 *GNU*)
4862   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4863 *)
4864   ac_count=0
4865   $as_echo_n 0123456789 >"conftest.in"
4866   while :
4867   do
4868     cat "conftest.in" "conftest.in" >"conftest.tmp"
4869     mv "conftest.tmp" "conftest.in"
4870     cp "conftest.in" "conftest.nl"
4871     $as_echo 'FGREP' >> "conftest.nl"
4872     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4873     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4874     as_fn_arith $ac_count + 1 && ac_count=$as_val
4875     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4876       # Best one so far, save it but keep looking for a better one
4877       ac_cv_path_FGREP="$ac_path_FGREP"
4878       ac_path_FGREP_max=$ac_count
4879     fi
4880     # 10*(2^10) chars as input seems more than enough
4881     test $ac_count -gt 10 && break
4882   done
4883   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4884 esac
4885
4886       $ac_path_FGREP_found && break 3
4887     done
4888   done
4889   done
4890 IFS=$as_save_IFS
4891   if test -z "$ac_cv_path_FGREP"; then
4892     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4893   fi
4894 else
4895   ac_cv_path_FGREP=$FGREP
4896 fi
4897
4898    fi
4899 fi
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4901 $as_echo "$ac_cv_path_FGREP" >&6; }
4902  FGREP="$ac_cv_path_FGREP"
4903
4904
4905 test -z "$GREP" && GREP=grep
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925 # Check whether --with-gnu-ld was given.
4926 if test "${with_gnu_ld+set}" = set; then :
4927   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4928 else
4929   with_gnu_ld=no
4930 fi
4931
4932 ac_prog=ld
4933 if test "$GCC" = yes; then
4934   # Check if gcc -print-prog-name=ld gives a path.
4935   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4936 $as_echo_n "checking for ld used by $CC... " >&6; }
4937   case $host in
4938   *-*-mingw*)
4939     # gcc leaves a trailing carriage return which upsets mingw
4940     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4941   *)
4942     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4943   esac
4944   case $ac_prog in
4945     # Accept absolute paths.
4946     [\\/]* | ?:[\\/]*)
4947       re_direlt='/[^/][^/]*/\.\./'
4948       # Canonicalize the pathname of ld
4949       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4950       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4951         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4952       done
4953       test -z "$LD" && LD="$ac_prog"
4954       ;;
4955   "")
4956     # If it fails, then pretend we aren't using GCC.
4957     ac_prog=ld
4958     ;;
4959   *)
4960     # If it is relative, then search for the first ld in PATH.
4961     with_gnu_ld=unknown
4962     ;;
4963   esac
4964 elif test "$with_gnu_ld" = yes; then
4965   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4966 $as_echo_n "checking for GNU ld... " >&6; }
4967 else
4968   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4969 $as_echo_n "checking for non-GNU ld... " >&6; }
4970 fi
4971 if ${lt_cv_path_LD+:} false; then :
4972   $as_echo_n "(cached) " >&6
4973 else
4974   if test -z "$LD"; then
4975   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4976   for ac_dir in $PATH; do
4977     IFS="$lt_save_ifs"
4978     test -z "$ac_dir" && ac_dir=.
4979     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4980       lt_cv_path_LD="$ac_dir/$ac_prog"
4981       # Check to see if the program is GNU ld.  I'd rather use --version,
4982       # but apparently some variants of GNU ld only accept -v.
4983       # Break only if it was the GNU/non-GNU ld that we prefer.
4984       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4985       *GNU* | *'with BFD'*)
4986         test "$with_gnu_ld" != no && break
4987         ;;
4988       *)
4989         test "$with_gnu_ld" != yes && break
4990         ;;
4991       esac
4992     fi
4993   done
4994   IFS="$lt_save_ifs"
4995 else
4996   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4997 fi
4998 fi
4999
5000 LD="$lt_cv_path_LD"
5001 if test -n "$LD"; then
5002   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5003 $as_echo "$LD" >&6; }
5004 else
5005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5006 $as_echo "no" >&6; }
5007 fi
5008 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5010 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5011 if ${lt_cv_prog_gnu_ld+:} false; then :
5012   $as_echo_n "(cached) " >&6
5013 else
5014   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5015 case `$LD -v 2>&1 </dev/null` in
5016 *GNU* | *'with BFD'*)
5017   lt_cv_prog_gnu_ld=yes
5018   ;;
5019 *)
5020   lt_cv_prog_gnu_ld=no
5021   ;;
5022 esac
5023 fi
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5025 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5026 with_gnu_ld=$lt_cv_prog_gnu_ld
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5037 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5038 if ${lt_cv_path_NM+:} false; then :
5039   $as_echo_n "(cached) " >&6
5040 else
5041   if test -n "$NM"; then
5042   # Let the user override the test.
5043   lt_cv_path_NM="$NM"
5044 else
5045   lt_nm_to_check="${ac_tool_prefix}nm"
5046   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5047     lt_nm_to_check="$lt_nm_to_check nm"
5048   fi
5049   for lt_tmp_nm in $lt_nm_to_check; do
5050     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5051     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5052       IFS="$lt_save_ifs"
5053       test -z "$ac_dir" && ac_dir=.
5054       tmp_nm="$ac_dir/$lt_tmp_nm"
5055       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5056         # Check to see if the nm accepts a BSD-compat flag.
5057         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5058         #   nm: unknown option "B" ignored
5059         # Tru64's nm complains that /dev/null is an invalid object file
5060         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5061         */dev/null* | *'Invalid file or object type'*)
5062           lt_cv_path_NM="$tmp_nm -B"
5063           break
5064           ;;
5065         *)
5066           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5067           */dev/null*)
5068             lt_cv_path_NM="$tmp_nm -p"
5069             break
5070             ;;
5071           *)
5072             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5073             continue # so that we can try to find one that supports BSD flags
5074             ;;
5075           esac
5076           ;;
5077         esac
5078       fi
5079     done
5080     IFS="$lt_save_ifs"
5081   done
5082   : ${lt_cv_path_NM=no}
5083 fi
5084 fi
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5086 $as_echo "$lt_cv_path_NM" >&6; }
5087 if test "$lt_cv_path_NM" != "no"; then
5088   NM="$lt_cv_path_NM"
5089 else
5090   # Didn't find any BSD compatible name lister, look for dumpbin.
5091   if test -n "$DUMPBIN"; then :
5092     # Let the user override the test.
5093   else
5094     if test -n "$ac_tool_prefix"; then
5095   for ac_prog in dumpbin "link -dump"
5096   do
5097     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5098 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5100 $as_echo_n "checking for $ac_word... " >&6; }
5101 if ${ac_cv_prog_DUMPBIN+:} false; then :
5102   $as_echo_n "(cached) " >&6
5103 else
5104   if test -n "$DUMPBIN"; then
5105   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5106 else
5107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5108 for as_dir in $PATH
5109 do
5110   IFS=$as_save_IFS
5111   test -z "$as_dir" && as_dir=.
5112     for ac_exec_ext in '' $ac_executable_extensions; do
5113   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5114     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5115     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5116     break 2
5117   fi
5118 done
5119   done
5120 IFS=$as_save_IFS
5121
5122 fi
5123 fi
5124 DUMPBIN=$ac_cv_prog_DUMPBIN
5125 if test -n "$DUMPBIN"; then
5126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5127 $as_echo "$DUMPBIN" >&6; }
5128 else
5129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5130 $as_echo "no" >&6; }
5131 fi
5132
5133
5134     test -n "$DUMPBIN" && break
5135   done
5136 fi
5137 if test -z "$DUMPBIN"; then
5138   ac_ct_DUMPBIN=$DUMPBIN
5139   for ac_prog in dumpbin "link -dump"
5140 do
5141   # Extract the first word of "$ac_prog", so it can be a program name with args.
5142 set dummy $ac_prog; ac_word=$2
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5144 $as_echo_n "checking for $ac_word... " >&6; }
5145 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5146   $as_echo_n "(cached) " >&6
5147 else
5148   if test -n "$ac_ct_DUMPBIN"; then
5149   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5150 else
5151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5152 for as_dir in $PATH
5153 do
5154   IFS=$as_save_IFS
5155   test -z "$as_dir" && as_dir=.
5156     for ac_exec_ext in '' $ac_executable_extensions; do
5157   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5158     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5159     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5160     break 2
5161   fi
5162 done
5163   done
5164 IFS=$as_save_IFS
5165
5166 fi
5167 fi
5168 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5169 if test -n "$ac_ct_DUMPBIN"; then
5170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5171 $as_echo "$ac_ct_DUMPBIN" >&6; }
5172 else
5173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5174 $as_echo "no" >&6; }
5175 fi
5176
5177
5178   test -n "$ac_ct_DUMPBIN" && break
5179 done
5180
5181   if test "x$ac_ct_DUMPBIN" = x; then
5182     DUMPBIN=":"
5183   else
5184     case $cross_compiling:$ac_tool_warned in
5185 yes:)
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5187 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5188 ac_tool_warned=yes ;;
5189 esac
5190     DUMPBIN=$ac_ct_DUMPBIN
5191   fi
5192 fi
5193
5194     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5195     *COFF*)
5196       DUMPBIN="$DUMPBIN -symbols"
5197       ;;
5198     *)
5199       DUMPBIN=:
5200       ;;
5201     esac
5202   fi
5203
5204   if test "$DUMPBIN" != ":"; then
5205     NM="$DUMPBIN"
5206   fi
5207 fi
5208 test -z "$NM" && NM=nm
5209
5210
5211
5212
5213
5214
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5216 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5217 if ${lt_cv_nm_interface+:} false; then :
5218   $as_echo_n "(cached) " >&6
5219 else
5220   lt_cv_nm_interface="BSD nm"
5221   echo "int some_variable = 0;" > conftest.$ac_ext
5222   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5223   (eval "$ac_compile" 2>conftest.err)
5224   cat conftest.err >&5
5225   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5226   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5227   cat conftest.err >&5
5228   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5229   cat conftest.out >&5
5230   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5231     lt_cv_nm_interface="MS dumpbin"
5232   fi
5233   rm -f conftest*
5234 fi
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5236 $as_echo "$lt_cv_nm_interface" >&6; }
5237
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5239 $as_echo_n "checking whether ln -s works... " >&6; }
5240 LN_S=$as_ln_s
5241 if test "$LN_S" = "ln -s"; then
5242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5243 $as_echo "yes" >&6; }
5244 else
5245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5246 $as_echo "no, using $LN_S" >&6; }
5247 fi
5248
5249 # find the maximum length of command line arguments
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5251 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5252 if ${lt_cv_sys_max_cmd_len+:} false; then :
5253   $as_echo_n "(cached) " >&6
5254 else
5255     i=0
5256   teststring="ABCD"
5257
5258   case $build_os in
5259   msdosdjgpp*)
5260     # On DJGPP, this test can blow up pretty badly due to problems in libc
5261     # (any single argument exceeding 2000 bytes causes a buffer overrun
5262     # during glob expansion).  Even if it were fixed, the result of this
5263     # check would be larger than it should be.
5264     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5265     ;;
5266
5267   gnu*)
5268     # Under GNU Hurd, this test is not required because there is
5269     # no limit to the length of command line arguments.
5270     # Libtool will interpret -1 as no limit whatsoever
5271     lt_cv_sys_max_cmd_len=-1;
5272     ;;
5273
5274   cygwin* | mingw* | cegcc*)
5275     # On Win9x/ME, this test blows up -- it succeeds, but takes
5276     # about 5 minutes as the teststring grows exponentially.
5277     # Worse, since 9x/ME are not pre-emptively multitasking,
5278     # you end up with a "frozen" computer, even though with patience
5279     # the test eventually succeeds (with a max line length of 256k).
5280     # Instead, let's just punt: use the minimum linelength reported by
5281     # all of the supported platforms: 8192 (on NT/2K/XP).
5282     lt_cv_sys_max_cmd_len=8192;
5283     ;;
5284
5285   mint*)
5286     # On MiNT this can take a long time and run out of memory.
5287     lt_cv_sys_max_cmd_len=8192;
5288     ;;
5289
5290   amigaos*)
5291     # On AmigaOS with pdksh, this test takes hours, literally.
5292     # So we just punt and use a minimum line length of 8192.
5293     lt_cv_sys_max_cmd_len=8192;
5294     ;;
5295
5296   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5297     # This has been around since 386BSD, at least.  Likely further.
5298     if test -x /sbin/sysctl; then
5299       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5300     elif test -x /usr/sbin/sysctl; then
5301       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5302     else
5303       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5304     fi
5305     # And add a safety zone
5306     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5307     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5308     ;;
5309
5310   interix*)
5311     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5312     lt_cv_sys_max_cmd_len=196608
5313     ;;
5314
5315   os2*)
5316     # The test takes a long time on OS/2.
5317     lt_cv_sys_max_cmd_len=8192
5318     ;;
5319
5320   osf*)
5321     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5322     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5323     # nice to cause kernel panics so lets avoid the loop below.
5324     # First set a reasonable default.
5325     lt_cv_sys_max_cmd_len=16384
5326     #
5327     if test -x /sbin/sysconfig; then
5328       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5329         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5330       esac
5331     fi
5332     ;;
5333   sco3.2v5*)
5334     lt_cv_sys_max_cmd_len=102400
5335     ;;
5336   sysv5* | sco5v6* | sysv4.2uw2*)
5337     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5338     if test -n "$kargmax"; then
5339       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5340     else
5341       lt_cv_sys_max_cmd_len=32768
5342     fi
5343     ;;
5344   *)
5345     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5346     if test -n "$lt_cv_sys_max_cmd_len"; then
5347       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5348       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5349     else
5350       # Make teststring a little bigger before we do anything with it.
5351       # a 1K string should be a reasonable start.
5352       for i in 1 2 3 4 5 6 7 8 ; do
5353         teststring=$teststring$teststring
5354       done
5355       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5356       # If test is not a shell built-in, we'll probably end up computing a
5357       # maximum length that is only half of the actual maximum length, but
5358       # we can't tell.
5359       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5360                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5361               test $i != 17 # 1/2 MB should be enough
5362       do
5363         i=`expr $i + 1`
5364         teststring=$teststring$teststring
5365       done
5366       # Only check the string length outside the loop.
5367       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5368       teststring=
5369       # Add a significant safety factor because C++ compilers can tack on
5370       # massive amounts of additional arguments before passing them to the
5371       # linker.  It appears as though 1/2 is a usable value.
5372       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5373     fi
5374     ;;
5375   esac
5376
5377 fi
5378
5379 if test -n $lt_cv_sys_max_cmd_len ; then
5380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5381 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5382 else
5383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5384 $as_echo "none" >&6; }
5385 fi
5386 max_cmd_len=$lt_cv_sys_max_cmd_len
5387
5388
5389
5390
5391
5392
5393 : ${CP="cp -f"}
5394 : ${MV="mv -f"}
5395 : ${RM="rm -f"}
5396
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5398 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5399 # Try some XSI features
5400 xsi_shell=no
5401 ( _lt_dummy="a/b/c"
5402   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5403       = c,a/b,b/c, \
5404     && eval 'test $(( 1 + 1 )) -eq 2 \
5405     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5406   && xsi_shell=yes
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5408 $as_echo "$xsi_shell" >&6; }
5409
5410
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5412 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5413 lt_shell_append=no
5414 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5415     >/dev/null 2>&1 \
5416   && lt_shell_append=yes
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5418 $as_echo "$lt_shell_append" >&6; }
5419
5420
5421 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5422   lt_unset=unset
5423 else
5424   lt_unset=false
5425 fi
5426
5427
5428
5429
5430
5431 # test EBCDIC or ASCII
5432 case `echo X|tr X '\101'` in
5433  A) # ASCII based system
5434     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5435   lt_SP2NL='tr \040 \012'
5436   lt_NL2SP='tr \015\012 \040\040'
5437   ;;
5438  *) # EBCDIC based system
5439   lt_SP2NL='tr \100 \n'
5440   lt_NL2SP='tr \r\n \100\100'
5441   ;;
5442 esac
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5453 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5454 if ${lt_cv_to_host_file_cmd+:} false; then :
5455   $as_echo_n "(cached) " >&6
5456 else
5457   case $host in
5458   *-*-mingw* )
5459     case $build in
5460       *-*-mingw* ) # actually msys
5461         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5462         ;;
5463       *-*-cygwin* )
5464         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5465         ;;
5466       * ) # otherwise, assume *nix
5467         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5468         ;;
5469     esac
5470     ;;
5471   *-*-cygwin* )
5472     case $build in
5473       *-*-mingw* ) # actually msys
5474         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5475         ;;
5476       *-*-cygwin* )
5477         lt_cv_to_host_file_cmd=func_convert_file_noop
5478         ;;
5479       * ) # otherwise, assume *nix
5480         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5481         ;;
5482     esac
5483     ;;
5484   * ) # unhandled hosts (and "normal" native builds)
5485     lt_cv_to_host_file_cmd=func_convert_file_noop
5486     ;;
5487 esac
5488
5489 fi
5490
5491 to_host_file_cmd=$lt_cv_to_host_file_cmd
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5493 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5494
5495
5496
5497
5498
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5500 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5501 if ${lt_cv_to_tool_file_cmd+:} false; then :
5502   $as_echo_n "(cached) " >&6
5503 else
5504   #assume ordinary cross tools, or native build.
5505 lt_cv_to_tool_file_cmd=func_convert_file_noop
5506 case $host in
5507   *-*-mingw* )
5508     case $build in
5509       *-*-mingw* ) # actually msys
5510         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5511         ;;
5512     esac
5513     ;;
5514 esac
5515
5516 fi
5517
5518 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5520 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5521
5522
5523
5524
5525
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5527 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5528 if ${lt_cv_ld_reload_flag+:} false; then :
5529   $as_echo_n "(cached) " >&6
5530 else
5531   lt_cv_ld_reload_flag='-r'
5532 fi
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5534 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5535 reload_flag=$lt_cv_ld_reload_flag
5536 case $reload_flag in
5537 "" | " "*) ;;
5538 *) reload_flag=" $reload_flag" ;;
5539 esac
5540 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5541 case $host_os in
5542   cygwin* | mingw* | pw32* | cegcc*)
5543     if test "$GCC" != yes; then
5544       reload_cmds=false
5545     fi
5546     ;;
5547   darwin*)
5548     if test "$GCC" = yes; then
5549       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5550     else
5551       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5552     fi
5553     ;;
5554 esac
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564 if test -n "$ac_tool_prefix"; then
5565   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5566 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5568 $as_echo_n "checking for $ac_word... " >&6; }
5569 if ${ac_cv_prog_OBJDUMP+:} false; then :
5570   $as_echo_n "(cached) " >&6
5571 else
5572   if test -n "$OBJDUMP"; then
5573   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5574 else
5575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5576 for as_dir in $PATH
5577 do
5578   IFS=$as_save_IFS
5579   test -z "$as_dir" && as_dir=.
5580     for ac_exec_ext in '' $ac_executable_extensions; do
5581   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5582     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5583     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5584     break 2
5585   fi
5586 done
5587   done
5588 IFS=$as_save_IFS
5589
5590 fi
5591 fi
5592 OBJDUMP=$ac_cv_prog_OBJDUMP
5593 if test -n "$OBJDUMP"; then
5594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5595 $as_echo "$OBJDUMP" >&6; }
5596 else
5597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5598 $as_echo "no" >&6; }
5599 fi
5600
5601
5602 fi
5603 if test -z "$ac_cv_prog_OBJDUMP"; then
5604   ac_ct_OBJDUMP=$OBJDUMP
5605   # Extract the first word of "objdump", so it can be a program name with args.
5606 set dummy objdump; ac_word=$2
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5608 $as_echo_n "checking for $ac_word... " >&6; }
5609 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5610   $as_echo_n "(cached) " >&6
5611 else
5612   if test -n "$ac_ct_OBJDUMP"; then
5613   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5614 else
5615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5616 for as_dir in $PATH
5617 do
5618   IFS=$as_save_IFS
5619   test -z "$as_dir" && as_dir=.
5620     for ac_exec_ext in '' $ac_executable_extensions; do
5621   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5622     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5623     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5624     break 2
5625   fi
5626 done
5627   done
5628 IFS=$as_save_IFS
5629
5630 fi
5631 fi
5632 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5633 if test -n "$ac_ct_OBJDUMP"; then
5634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5635 $as_echo "$ac_ct_OBJDUMP" >&6; }
5636 else
5637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5638 $as_echo "no" >&6; }
5639 fi
5640
5641   if test "x$ac_ct_OBJDUMP" = x; then
5642     OBJDUMP="false"
5643   else
5644     case $cross_compiling:$ac_tool_warned in
5645 yes:)
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5647 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5648 ac_tool_warned=yes ;;
5649 esac
5650     OBJDUMP=$ac_ct_OBJDUMP
5651   fi
5652 else
5653   OBJDUMP="$ac_cv_prog_OBJDUMP"
5654 fi
5655
5656 test -z "$OBJDUMP" && OBJDUMP=objdump
5657
5658
5659
5660
5661
5662
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5664 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5665 if ${lt_cv_deplibs_check_method+:} false; then :
5666   $as_echo_n "(cached) " >&6
5667 else
5668   lt_cv_file_magic_cmd='$MAGIC_CMD'
5669 lt_cv_file_magic_test_file=
5670 lt_cv_deplibs_check_method='unknown'
5671 # Need to set the preceding variable on all platforms that support
5672 # interlibrary dependencies.
5673 # 'none' -- dependencies not supported.
5674 # `unknown' -- same as none, but documents that we really don't know.
5675 # 'pass_all' -- all dependencies passed with no checks.
5676 # 'test_compile' -- check by making test program.
5677 # 'file_magic [[regex]]' -- check by looking for files in library path
5678 # which responds to the $file_magic_cmd with a given extended regex.
5679 # If you have `file' or equivalent on your system and you're not sure
5680 # whether `pass_all' will *always* work, you probably want this one.
5681
5682 case $host_os in
5683 aix[4-9]*)
5684   lt_cv_deplibs_check_method=pass_all
5685   ;;
5686
5687 beos*)
5688   lt_cv_deplibs_check_method=pass_all
5689   ;;
5690
5691 bsdi[45]*)
5692   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5693   lt_cv_file_magic_cmd='/usr/bin/file -L'
5694   lt_cv_file_magic_test_file=/shlib/libc.so
5695   ;;
5696
5697 cygwin*)
5698   # func_win32_libid is a shell function defined in ltmain.sh
5699   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5700   lt_cv_file_magic_cmd='func_win32_libid'
5701   ;;
5702
5703 mingw* | pw32*)
5704   # Base MSYS/MinGW do not provide the 'file' command needed by
5705   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5706   # unless we find 'file', for example because we are cross-compiling.
5707   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5708   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5709     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5710     lt_cv_file_magic_cmd='func_win32_libid'
5711   else
5712     # Keep this pattern in sync with the one in func_win32_libid.
5713     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5714     lt_cv_file_magic_cmd='$OBJDUMP -f'
5715   fi
5716   ;;
5717
5718 cegcc*)
5719   # use the weaker test based on 'objdump'. See mingw*.
5720   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5721   lt_cv_file_magic_cmd='$OBJDUMP -f'
5722   ;;
5723
5724 darwin* | rhapsody*)
5725   lt_cv_deplibs_check_method=pass_all
5726   ;;
5727
5728 freebsd* | dragonfly*)
5729   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5730     case $host_cpu in
5731     i*86 )
5732       # Not sure whether the presence of OpenBSD here was a mistake.
5733       # Let's accept both of them until this is cleared up.
5734       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5735       lt_cv_file_magic_cmd=/usr/bin/file
5736       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5737       ;;
5738     esac
5739   else
5740     lt_cv_deplibs_check_method=pass_all
5741   fi
5742   ;;
5743
5744 gnu*)
5745   lt_cv_deplibs_check_method=pass_all
5746   ;;
5747
5748 haiku*)
5749   lt_cv_deplibs_check_method=pass_all
5750   ;;
5751
5752 hpux10.20* | hpux11*)
5753   lt_cv_file_magic_cmd=/usr/bin/file
5754   case $host_cpu in
5755   ia64*)
5756     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5757     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5758     ;;
5759   hppa*64*)
5760     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]'
5761     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5762     ;;
5763   *)
5764     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5765     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5766     ;;
5767   esac
5768   ;;
5769
5770 interix[3-9]*)
5771   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5772   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5773   ;;
5774
5775 irix5* | irix6* | nonstopux*)
5776   case $LD in
5777   *-32|*"-32 ") libmagic=32-bit;;
5778   *-n32|*"-n32 ") libmagic=N32;;
5779   *-64|*"-64 ") libmagic=64-bit;;
5780   *) libmagic=never-match;;
5781   esac
5782   lt_cv_deplibs_check_method=pass_all
5783   ;;
5784
5785 # This must be glibc/ELF.
5786 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5787   lt_cv_deplibs_check_method=pass_all
5788   ;;
5789
5790 netbsd* | netbsdelf*-gnu)
5791   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5792     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5793   else
5794     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5795   fi
5796   ;;
5797
5798 newos6*)
5799   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5800   lt_cv_file_magic_cmd=/usr/bin/file
5801   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5802   ;;
5803
5804 *nto* | *qnx*)
5805   lt_cv_deplibs_check_method=pass_all
5806   ;;
5807
5808 openbsd*)
5809   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5810     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5811   else
5812     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5813   fi
5814   ;;
5815
5816 osf3* | osf4* | osf5*)
5817   lt_cv_deplibs_check_method=pass_all
5818   ;;
5819
5820 rdos*)
5821   lt_cv_deplibs_check_method=pass_all
5822   ;;
5823
5824 solaris*)
5825   lt_cv_deplibs_check_method=pass_all
5826   ;;
5827
5828 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5829   lt_cv_deplibs_check_method=pass_all
5830   ;;
5831
5832 sysv4 | sysv4.3*)
5833   case $host_vendor in
5834   motorola)
5835     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]'
5836     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5837     ;;
5838   ncr)
5839     lt_cv_deplibs_check_method=pass_all
5840     ;;
5841   sequent)
5842     lt_cv_file_magic_cmd='/bin/file'
5843     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5844     ;;
5845   sni)
5846     lt_cv_file_magic_cmd='/bin/file'
5847     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5848     lt_cv_file_magic_test_file=/lib/libc.so
5849     ;;
5850   siemens)
5851     lt_cv_deplibs_check_method=pass_all
5852     ;;
5853   pc)
5854     lt_cv_deplibs_check_method=pass_all
5855     ;;
5856   esac
5857   ;;
5858
5859 tpf*)
5860   lt_cv_deplibs_check_method=pass_all
5861   ;;
5862 esac
5863
5864 fi
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5866 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5867
5868 file_magic_glob=
5869 want_nocaseglob=no
5870 if test "$build" = "$host"; then
5871   case $host_os in
5872   mingw* | pw32*)
5873     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5874       want_nocaseglob=yes
5875     else
5876       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5877     fi
5878     ;;
5879   esac
5880 fi
5881
5882 file_magic_cmd=$lt_cv_file_magic_cmd
5883 deplibs_check_method=$lt_cv_deplibs_check_method
5884 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907 if test -n "$ac_tool_prefix"; then
5908   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5909 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5911 $as_echo_n "checking for $ac_word... " >&6; }
5912 if ${ac_cv_prog_DLLTOOL+:} false; then :
5913   $as_echo_n "(cached) " >&6
5914 else
5915   if test -n "$DLLTOOL"; then
5916   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5917 else
5918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5919 for as_dir in $PATH
5920 do
5921   IFS=$as_save_IFS
5922   test -z "$as_dir" && as_dir=.
5923     for ac_exec_ext in '' $ac_executable_extensions; do
5924   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5925     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5926     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5927     break 2
5928   fi
5929 done
5930   done
5931 IFS=$as_save_IFS
5932
5933 fi
5934 fi
5935 DLLTOOL=$ac_cv_prog_DLLTOOL
5936 if test -n "$DLLTOOL"; then
5937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5938 $as_echo "$DLLTOOL" >&6; }
5939 else
5940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5941 $as_echo "no" >&6; }
5942 fi
5943
5944
5945 fi
5946 if test -z "$ac_cv_prog_DLLTOOL"; then
5947   ac_ct_DLLTOOL=$DLLTOOL
5948   # Extract the first word of "dlltool", so it can be a program name with args.
5949 set dummy dlltool; ac_word=$2
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5951 $as_echo_n "checking for $ac_word... " >&6; }
5952 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5953   $as_echo_n "(cached) " >&6
5954 else
5955   if test -n "$ac_ct_DLLTOOL"; then
5956   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5957 else
5958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5959 for as_dir in $PATH
5960 do
5961   IFS=$as_save_IFS
5962   test -z "$as_dir" && as_dir=.
5963     for ac_exec_ext in '' $ac_executable_extensions; do
5964   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5965     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5966     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5967     break 2
5968   fi
5969 done
5970   done
5971 IFS=$as_save_IFS
5972
5973 fi
5974 fi
5975 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5976 if test -n "$ac_ct_DLLTOOL"; then
5977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5978 $as_echo "$ac_ct_DLLTOOL" >&6; }
5979 else
5980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5981 $as_echo "no" >&6; }
5982 fi
5983
5984   if test "x$ac_ct_DLLTOOL" = x; then
5985     DLLTOOL="false"
5986   else
5987     case $cross_compiling:$ac_tool_warned in
5988 yes:)
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5990 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5991 ac_tool_warned=yes ;;
5992 esac
5993     DLLTOOL=$ac_ct_DLLTOOL
5994   fi
5995 else
5996   DLLTOOL="$ac_cv_prog_DLLTOOL"
5997 fi
5998
5999 test -z "$DLLTOOL" && DLLTOOL=dlltool
6000
6001
6002
6003
6004
6005
6006
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6008 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6009 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6010   $as_echo_n "(cached) " >&6
6011 else
6012   lt_cv_sharedlib_from_linklib_cmd='unknown'
6013
6014 case $host_os in
6015 cygwin* | mingw* | pw32* | cegcc*)
6016   # two different shell functions defined in ltmain.sh
6017   # decide which to use based on capabilities of $DLLTOOL
6018   case `$DLLTOOL --help 2>&1` in
6019   *--identify-strict*)
6020     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6021     ;;
6022   *)
6023     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6024     ;;
6025   esac
6026   ;;
6027 *)
6028   # fallback: assume linklib IS sharedlib
6029   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6030   ;;
6031 esac
6032
6033 fi
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6035 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6036 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6037 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6038
6039
6040
6041
6042
6043
6044
6045 if test -n "$ac_tool_prefix"; then
6046   for ac_prog in ar
6047   do
6048     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6049 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6051 $as_echo_n "checking for $ac_word... " >&6; }
6052 if ${ac_cv_prog_AR+:} false; then :
6053   $as_echo_n "(cached) " >&6
6054 else
6055   if test -n "$AR"; then
6056   ac_cv_prog_AR="$AR" # Let the user override the test.
6057 else
6058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6059 for as_dir in $PATH
6060 do
6061   IFS=$as_save_IFS
6062   test -z "$as_dir" && as_dir=.
6063     for ac_exec_ext in '' $ac_executable_extensions; do
6064   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6065     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6066     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6067     break 2
6068   fi
6069 done
6070   done
6071 IFS=$as_save_IFS
6072
6073 fi
6074 fi
6075 AR=$ac_cv_prog_AR
6076 if test -n "$AR"; then
6077   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6078 $as_echo "$AR" >&6; }
6079 else
6080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6081 $as_echo "no" >&6; }
6082 fi
6083
6084
6085     test -n "$AR" && break
6086   done
6087 fi
6088 if test -z "$AR"; then
6089   ac_ct_AR=$AR
6090   for ac_prog in ar
6091 do
6092   # Extract the first word of "$ac_prog", so it can be a program name with args.
6093 set dummy $ac_prog; ac_word=$2
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6095 $as_echo_n "checking for $ac_word... " >&6; }
6096 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6097   $as_echo_n "(cached) " >&6
6098 else
6099   if test -n "$ac_ct_AR"; then
6100   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6101 else
6102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6103 for as_dir in $PATH
6104 do
6105   IFS=$as_save_IFS
6106   test -z "$as_dir" && as_dir=.
6107     for ac_exec_ext in '' $ac_executable_extensions; do
6108   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6109     ac_cv_prog_ac_ct_AR="$ac_prog"
6110     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6111     break 2
6112   fi
6113 done
6114   done
6115 IFS=$as_save_IFS
6116
6117 fi
6118 fi
6119 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6120 if test -n "$ac_ct_AR"; then
6121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6122 $as_echo "$ac_ct_AR" >&6; }
6123 else
6124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6125 $as_echo "no" >&6; }
6126 fi
6127
6128
6129   test -n "$ac_ct_AR" && break
6130 done
6131
6132   if test "x$ac_ct_AR" = x; then
6133     AR="false"
6134   else
6135     case $cross_compiling:$ac_tool_warned in
6136 yes:)
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6138 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6139 ac_tool_warned=yes ;;
6140 esac
6141     AR=$ac_ct_AR
6142   fi
6143 fi
6144
6145 : ${AR=ar}
6146 : ${AR_FLAGS=cru}
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6159 $as_echo_n "checking for archiver @FILE support... " >&6; }
6160 if ${lt_cv_ar_at_file+:} false; then :
6161   $as_echo_n "(cached) " >&6
6162 else
6163   lt_cv_ar_at_file=no
6164    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6165 /* end confdefs.h.  */
6166
6167 int
6168 main ()
6169 {
6170
6171   ;
6172   return 0;
6173 }
6174 _ACEOF
6175 if ac_fn_c_try_compile "$LINENO"; then :
6176   echo conftest.$ac_objext > conftest.lst
6177       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6178       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6179   (eval $lt_ar_try) 2>&5
6180   ac_status=$?
6181   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6182   test $ac_status = 0; }
6183       if test "$ac_status" -eq 0; then
6184         # Ensure the archiver fails upon bogus file names.
6185         rm -f conftest.$ac_objext libconftest.a
6186         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6187   (eval $lt_ar_try) 2>&5
6188   ac_status=$?
6189   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6190   test $ac_status = 0; }
6191         if test "$ac_status" -ne 0; then
6192           lt_cv_ar_at_file=@
6193         fi
6194       fi
6195       rm -f conftest.* libconftest.a
6196
6197 fi
6198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6199
6200 fi
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6202 $as_echo "$lt_cv_ar_at_file" >&6; }
6203
6204 if test "x$lt_cv_ar_at_file" = xno; then
6205   archiver_list_spec=
6206 else
6207   archiver_list_spec=$lt_cv_ar_at_file
6208 fi
6209
6210
6211
6212
6213
6214
6215
6216 if test -n "$ac_tool_prefix"; then
6217   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6218 set dummy ${ac_tool_prefix}strip; ac_word=$2
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6220 $as_echo_n "checking for $ac_word... " >&6; }
6221 if ${ac_cv_prog_STRIP+:} false; then :
6222   $as_echo_n "(cached) " >&6
6223 else
6224   if test -n "$STRIP"; then
6225   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6226 else
6227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6228 for as_dir in $PATH
6229 do
6230   IFS=$as_save_IFS
6231   test -z "$as_dir" && as_dir=.
6232     for ac_exec_ext in '' $ac_executable_extensions; do
6233   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6234     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6235     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6236     break 2
6237   fi
6238 done
6239   done
6240 IFS=$as_save_IFS
6241
6242 fi
6243 fi
6244 STRIP=$ac_cv_prog_STRIP
6245 if test -n "$STRIP"; then
6246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6247 $as_echo "$STRIP" >&6; }
6248 else
6249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6250 $as_echo "no" >&6; }
6251 fi
6252
6253
6254 fi
6255 if test -z "$ac_cv_prog_STRIP"; then
6256   ac_ct_STRIP=$STRIP
6257   # Extract the first word of "strip", so it can be a program name with args.
6258 set dummy strip; ac_word=$2
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6260 $as_echo_n "checking for $ac_word... " >&6; }
6261 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6262   $as_echo_n "(cached) " >&6
6263 else
6264   if test -n "$ac_ct_STRIP"; then
6265   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6266 else
6267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6268 for as_dir in $PATH
6269 do
6270   IFS=$as_save_IFS
6271   test -z "$as_dir" && as_dir=.
6272     for ac_exec_ext in '' $ac_executable_extensions; do
6273   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6274     ac_cv_prog_ac_ct_STRIP="strip"
6275     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6276     break 2
6277   fi
6278 done
6279   done
6280 IFS=$as_save_IFS
6281
6282 fi
6283 fi
6284 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6285 if test -n "$ac_ct_STRIP"; then
6286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6287 $as_echo "$ac_ct_STRIP" >&6; }
6288 else
6289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6290 $as_echo "no" >&6; }
6291 fi
6292
6293   if test "x$ac_ct_STRIP" = x; then
6294     STRIP=":"
6295   else
6296     case $cross_compiling:$ac_tool_warned in
6297 yes:)
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6299 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6300 ac_tool_warned=yes ;;
6301 esac
6302     STRIP=$ac_ct_STRIP
6303   fi
6304 else
6305   STRIP="$ac_cv_prog_STRIP"
6306 fi
6307
6308 test -z "$STRIP" && STRIP=:
6309
6310
6311
6312
6313
6314
6315 if test -n "$ac_tool_prefix"; then
6316   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6317 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6319 $as_echo_n "checking for $ac_word... " >&6; }
6320 if ${ac_cv_prog_RANLIB+:} false; then :
6321   $as_echo_n "(cached) " >&6
6322 else
6323   if test -n "$RANLIB"; then
6324   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6325 else
6326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6327 for as_dir in $PATH
6328 do
6329   IFS=$as_save_IFS
6330   test -z "$as_dir" && as_dir=.
6331     for ac_exec_ext in '' $ac_executable_extensions; do
6332   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6333     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6334     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6335     break 2
6336   fi
6337 done
6338   done
6339 IFS=$as_save_IFS
6340
6341 fi
6342 fi
6343 RANLIB=$ac_cv_prog_RANLIB
6344 if test -n "$RANLIB"; then
6345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6346 $as_echo "$RANLIB" >&6; }
6347 else
6348   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6349 $as_echo "no" >&6; }
6350 fi
6351
6352
6353 fi
6354 if test -z "$ac_cv_prog_RANLIB"; then
6355   ac_ct_RANLIB=$RANLIB
6356   # Extract the first word of "ranlib", so it can be a program name with args.
6357 set dummy ranlib; ac_word=$2
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6359 $as_echo_n "checking for $ac_word... " >&6; }
6360 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6361   $as_echo_n "(cached) " >&6
6362 else
6363   if test -n "$ac_ct_RANLIB"; then
6364   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6365 else
6366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6367 for as_dir in $PATH
6368 do
6369   IFS=$as_save_IFS
6370   test -z "$as_dir" && as_dir=.
6371     for ac_exec_ext in '' $ac_executable_extensions; do
6372   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6373     ac_cv_prog_ac_ct_RANLIB="ranlib"
6374     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6375     break 2
6376   fi
6377 done
6378   done
6379 IFS=$as_save_IFS
6380
6381 fi
6382 fi
6383 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6384 if test -n "$ac_ct_RANLIB"; then
6385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6386 $as_echo "$ac_ct_RANLIB" >&6; }
6387 else
6388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6389 $as_echo "no" >&6; }
6390 fi
6391
6392   if test "x$ac_ct_RANLIB" = x; then
6393     RANLIB=":"
6394   else
6395     case $cross_compiling:$ac_tool_warned in
6396 yes:)
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6398 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6399 ac_tool_warned=yes ;;
6400 esac
6401     RANLIB=$ac_ct_RANLIB
6402   fi
6403 else
6404   RANLIB="$ac_cv_prog_RANLIB"
6405 fi
6406
6407 test -z "$RANLIB" && RANLIB=:
6408
6409
6410
6411
6412
6413
6414 # Determine commands to create old-style static archives.
6415 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6416 old_postinstall_cmds='chmod 644 $oldlib'
6417 old_postuninstall_cmds=
6418
6419 if test -n "$RANLIB"; then
6420   case $host_os in
6421   openbsd*)
6422     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6423     ;;
6424   *)
6425     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6426     ;;
6427   esac
6428   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6429 fi
6430
6431 case $host_os in
6432   darwin*)
6433     lock_old_archive_extraction=yes ;;
6434   *)
6435     lock_old_archive_extraction=no ;;
6436 esac
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476 # If no C compiler was specified, use CC.
6477 LTCC=${LTCC-"$CC"}
6478
6479 # If no C compiler flags were specified, use CFLAGS.
6480 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6481
6482 # Allow CC to be a program name with arguments.
6483 compiler=$CC
6484
6485
6486 # Check for command to grab the raw symbol name followed by C symbol from nm.
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6488 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6489 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6490   $as_echo_n "(cached) " >&6
6491 else
6492
6493 # These are sane defaults that work on at least a few old systems.
6494 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6495
6496 # Character class describing NM global symbol codes.
6497 symcode='[BCDEGRST]'
6498
6499 # Regexp to match symbols that can be accessed directly from C.
6500 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6501
6502 # Define system-specific variables.
6503 case $host_os in
6504 aix*)
6505   symcode='[BCDT]'
6506   ;;
6507 cygwin* | mingw* | pw32* | cegcc*)
6508   symcode='[ABCDGISTW]'
6509   ;;
6510 hpux*)
6511   if test "$host_cpu" = ia64; then
6512     symcode='[ABCDEGRST]'
6513   fi
6514   ;;
6515 irix* | nonstopux*)
6516   symcode='[BCDEGRST]'
6517   ;;
6518 osf*)
6519   symcode='[BCDEGQRST]'
6520   ;;
6521 solaris*)
6522   symcode='[BDRT]'
6523   ;;
6524 sco3.2v5*)
6525   symcode='[DT]'
6526   ;;
6527 sysv4.2uw2*)
6528   symcode='[DT]'
6529   ;;
6530 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6531   symcode='[ABDT]'
6532   ;;
6533 sysv4)
6534   symcode='[DFNSTU]'
6535   ;;
6536 esac
6537
6538 # If we're using GNU nm, then use its standard symbol codes.
6539 case `$NM -V 2>&1` in
6540 *GNU* | *'with BFD'*)
6541   symcode='[ABCDGIRSTW]' ;;
6542 esac
6543
6544 # Transform an extracted symbol line into a proper C declaration.
6545 # Some systems (esp. on ia64) link data and code symbols differently,
6546 # so use this general approach.
6547 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6548
6549 # Transform an extracted symbol line into symbol name and symbol address
6550 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6551 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'"
6552
6553 # Handle CRLF in mingw tool chain
6554 opt_cr=
6555 case $build_os in
6556 mingw*)
6557   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6558   ;;
6559 esac
6560
6561 # Try without a prefix underscore, then with it.
6562 for ac_symprfx in "" "_"; do
6563
6564   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6565   symxfrm="\\1 $ac_symprfx\\2 \\2"
6566
6567   # Write the raw and C identifiers.
6568   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6569     # Fake it for dumpbin and say T for any non-static function
6570     # and D for any global variable.
6571     # Also find C++ and __fastcall symbols from MSVC++,
6572     # which start with @ or ?.
6573     lt_cv_sys_global_symbol_pipe="$AWK '"\
6574 "     {last_section=section; section=\$ 3};"\
6575 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6576 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6577 "     \$ 0!~/External *\|/{next};"\
6578 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6579 "     {if(hide[section]) next};"\
6580 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6581 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6582 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6583 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6584 "     ' prfx=^$ac_symprfx"
6585   else
6586     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6587   fi
6588   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6589
6590   # Check to see that the pipe works correctly.
6591   pipe_works=no
6592
6593   rm -f conftest*
6594   cat > conftest.$ac_ext <<_LT_EOF
6595 #ifdef __cplusplus
6596 extern "C" {
6597 #endif
6598 char nm_test_var;
6599 void nm_test_func(void);
6600 void nm_test_func(void){}
6601 #ifdef __cplusplus
6602 }
6603 #endif
6604 int main(){nm_test_var='a';nm_test_func();return(0);}
6605 _LT_EOF
6606
6607   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6608   (eval $ac_compile) 2>&5
6609   ac_status=$?
6610   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6611   test $ac_status = 0; }; then
6612     # Now try to grab the symbols.
6613     nlist=conftest.nm
6614     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6615   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6616   ac_status=$?
6617   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6618   test $ac_status = 0; } && test -s "$nlist"; then
6619       # Try sorting and uniquifying the output.
6620       if sort "$nlist" | uniq > "$nlist"T; then
6621         mv -f "$nlist"T "$nlist"
6622       else
6623         rm -f "$nlist"T
6624       fi
6625
6626       # Make sure that we snagged all the symbols we need.
6627       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6628         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6629           cat <<_LT_EOF > conftest.$ac_ext
6630 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6631 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6632 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6633    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6634 # define LT_DLSYM_CONST
6635 #elif defined(__osf__)
6636 /* This system does not cope well with relocations in const data.  */
6637 # define LT_DLSYM_CONST
6638 #else
6639 # define LT_DLSYM_CONST const
6640 #endif
6641
6642 #ifdef __cplusplus
6643 extern "C" {
6644 #endif
6645
6646 _LT_EOF
6647           # Now generate the symbol file.
6648           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6649
6650           cat <<_LT_EOF >> conftest.$ac_ext
6651
6652 /* The mapping between symbol names and symbols.  */
6653 LT_DLSYM_CONST struct {
6654   const char *name;
6655   void       *address;
6656 }
6657 lt__PROGRAM__LTX_preloaded_symbols[] =
6658 {
6659   { "@PROGRAM@", (void *) 0 },
6660 _LT_EOF
6661           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6662           cat <<\_LT_EOF >> conftest.$ac_ext
6663   {0, (void *) 0}
6664 };
6665
6666 /* This works around a problem in FreeBSD linker */
6667 #ifdef FREEBSD_WORKAROUND
6668 static const void *lt_preloaded_setup() {
6669   return lt__PROGRAM__LTX_preloaded_symbols;
6670 }
6671 #endif
6672
6673 #ifdef __cplusplus
6674 }
6675 #endif
6676 _LT_EOF
6677           # Now try linking the two files.
6678           mv conftest.$ac_objext conftstm.$ac_objext
6679           lt_globsym_save_LIBS=$LIBS
6680           lt_globsym_save_CFLAGS=$CFLAGS
6681           LIBS="conftstm.$ac_objext"
6682           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6683           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6684   (eval $ac_link) 2>&5
6685   ac_status=$?
6686   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6687   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6688             pipe_works=yes
6689           fi
6690           LIBS=$lt_globsym_save_LIBS
6691           CFLAGS=$lt_globsym_save_CFLAGS
6692         else
6693           echo "cannot find nm_test_func in $nlist" >&5
6694         fi
6695       else
6696         echo "cannot find nm_test_var in $nlist" >&5
6697       fi
6698     else
6699       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6700     fi
6701   else
6702     echo "$progname: failed program was:" >&5
6703     cat conftest.$ac_ext >&5
6704   fi
6705   rm -rf conftest* conftst*
6706
6707   # Do not use the global_symbol_pipe unless it works.
6708   if test "$pipe_works" = yes; then
6709     break
6710   else
6711     lt_cv_sys_global_symbol_pipe=
6712   fi
6713 done
6714
6715 fi
6716
6717 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6718   lt_cv_sys_global_symbol_to_cdecl=
6719 fi
6720 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6722 $as_echo "failed" >&6; }
6723 else
6724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6725 $as_echo "ok" >&6; }
6726 fi
6727
6728 # Response file support.
6729 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6730   nm_file_list_spec='@'
6731 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6732   nm_file_list_spec='@'
6733 fi
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6762 $as_echo_n "checking for sysroot... " >&6; }
6763
6764 # Check whether --with-sysroot was given.
6765 if test "${with_sysroot+set}" = set; then :
6766   withval=$with_sysroot;
6767 else
6768   with_sysroot=no
6769 fi
6770
6771
6772 lt_sysroot=
6773 case ${with_sysroot} in #(
6774  yes)
6775    if test "$GCC" = yes; then
6776      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6777    fi
6778    ;; #(
6779  /*)
6780    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6781    ;; #(
6782  no|'')
6783    ;; #(
6784  *)
6785    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6786 $as_echo "${with_sysroot}" >&6; }
6787    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6788    ;;
6789 esac
6790
6791  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6792 $as_echo "${lt_sysroot:-no}" >&6; }
6793
6794
6795
6796
6797
6798 # Check whether --enable-libtool-lock was given.
6799 if test "${enable_libtool_lock+set}" = set; then :
6800   enableval=$enable_libtool_lock;
6801 fi
6802
6803 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6804
6805 # Some flags need to be propagated to the compiler or linker for good
6806 # libtool support.
6807 case $host in
6808 ia64-*-hpux*)
6809   # Find out which ABI we are using.
6810   echo 'int i;' > conftest.$ac_ext
6811   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6812   (eval $ac_compile) 2>&5
6813   ac_status=$?
6814   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6815   test $ac_status = 0; }; then
6816     case `/usr/bin/file conftest.$ac_objext` in
6817       *ELF-32*)
6818         HPUX_IA64_MODE="32"
6819         ;;
6820       *ELF-64*)
6821         HPUX_IA64_MODE="64"
6822         ;;
6823     esac
6824   fi
6825   rm -rf conftest*
6826   ;;
6827 *-*-irix6*)
6828   # Find out which ABI we are using.
6829   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6830   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6831   (eval $ac_compile) 2>&5
6832   ac_status=$?
6833   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6834   test $ac_status = 0; }; then
6835     if test "$lt_cv_prog_gnu_ld" = yes; then
6836       case `/usr/bin/file conftest.$ac_objext` in
6837         *32-bit*)
6838           LD="${LD-ld} -melf32bsmip"
6839           ;;
6840         *N32*)
6841           LD="${LD-ld} -melf32bmipn32"
6842           ;;
6843         *64-bit*)
6844           LD="${LD-ld} -melf64bmip"
6845         ;;
6846       esac
6847     else
6848       case `/usr/bin/file conftest.$ac_objext` in
6849         *32-bit*)
6850           LD="${LD-ld} -32"
6851           ;;
6852         *N32*)
6853           LD="${LD-ld} -n32"
6854           ;;
6855         *64-bit*)
6856           LD="${LD-ld} -64"
6857           ;;
6858       esac
6859     fi
6860   fi
6861   rm -rf conftest*
6862   ;;
6863
6864 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6865 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6866   # Find out which ABI we are using.
6867   echo 'int i;' > conftest.$ac_ext
6868   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6869   (eval $ac_compile) 2>&5
6870   ac_status=$?
6871   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6872   test $ac_status = 0; }; then
6873     case `/usr/bin/file conftest.o` in
6874       *32-bit*)
6875         case $host in
6876           x86_64-*kfreebsd*-gnu)
6877             LD="${LD-ld} -m elf_i386_fbsd"
6878             ;;
6879           x86_64-*linux*)
6880             LD="${LD-ld} -m elf_i386"
6881             ;;
6882           ppc64-*linux*|powerpc64-*linux*)
6883             LD="${LD-ld} -m elf32ppclinux"
6884             ;;
6885           s390x-*linux*)
6886             LD="${LD-ld} -m elf_s390"
6887             ;;
6888           sparc64-*linux*)
6889             LD="${LD-ld} -m elf32_sparc"
6890             ;;
6891         esac
6892         ;;
6893       *64-bit*)
6894         case $host in
6895           x86_64-*kfreebsd*-gnu)
6896             LD="${LD-ld} -m elf_x86_64_fbsd"
6897             ;;
6898           x86_64-*linux*)
6899             LD="${LD-ld} -m elf_x86_64"
6900             ;;
6901           ppc*-*linux*|powerpc*-*linux*)
6902             LD="${LD-ld} -m elf64ppc"
6903             ;;
6904           s390*-*linux*|s390*-*tpf*)
6905             LD="${LD-ld} -m elf64_s390"
6906             ;;
6907           sparc*-*linux*)
6908             LD="${LD-ld} -m elf64_sparc"
6909             ;;
6910         esac
6911         ;;
6912     esac
6913   fi
6914   rm -rf conftest*
6915   ;;
6916
6917 *-*-sco3.2v5*)
6918   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6919   SAVE_CFLAGS="$CFLAGS"
6920   CFLAGS="$CFLAGS -belf"
6921   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6922 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6923 if ${lt_cv_cc_needs_belf+:} false; then :
6924   $as_echo_n "(cached) " >&6
6925 else
6926   ac_ext=c
6927 ac_cpp='$CPP $CPPFLAGS'
6928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6931
6932      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6933 /* end confdefs.h.  */
6934
6935 int
6936 main ()
6937 {
6938
6939   ;
6940   return 0;
6941 }
6942 _ACEOF
6943 if ac_fn_c_try_link "$LINENO"; then :
6944   lt_cv_cc_needs_belf=yes
6945 else
6946   lt_cv_cc_needs_belf=no
6947 fi
6948 rm -f core conftest.err conftest.$ac_objext \
6949     conftest$ac_exeext conftest.$ac_ext
6950      ac_ext=c
6951 ac_cpp='$CPP $CPPFLAGS'
6952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6955
6956 fi
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6958 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6959   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6960     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6961     CFLAGS="$SAVE_CFLAGS"
6962   fi
6963   ;;
6964 *-*solaris*)
6965   # Find out which ABI we are using.
6966   echo 'int i;' > conftest.$ac_ext
6967   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6968   (eval $ac_compile) 2>&5
6969   ac_status=$?
6970   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6971   test $ac_status = 0; }; then
6972     case `/usr/bin/file conftest.o` in
6973     *64-bit*)
6974       case $lt_cv_prog_gnu_ld in
6975       yes*)
6976         case $host in
6977         i?86-*-solaris*)
6978           LD="${LD-ld} -m elf_x86_64"
6979           ;;
6980         sparc*-*-solaris*)
6981           LD="${LD-ld} -m elf64_sparc"
6982           ;;
6983         esac
6984         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6985         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6986           LD="${LD-ld}_sol2"
6987         fi
6988         ;;
6989       *)
6990         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6991           LD="${LD-ld} -64"
6992         fi
6993         ;;
6994       esac
6995       ;;
6996     esac
6997   fi
6998   rm -rf conftest*
6999   ;;
7000 esac
7001
7002 need_locks="$enable_libtool_lock"
7003
7004 if test -n "$ac_tool_prefix"; then
7005   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7006 set dummy ${ac_tool_prefix}mt; ac_word=$2
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7008 $as_echo_n "checking for $ac_word... " >&6; }
7009 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7010   $as_echo_n "(cached) " >&6
7011 else
7012   if test -n "$MANIFEST_TOOL"; then
7013   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7014 else
7015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7016 for as_dir in $PATH
7017 do
7018   IFS=$as_save_IFS
7019   test -z "$as_dir" && as_dir=.
7020     for ac_exec_ext in '' $ac_executable_extensions; do
7021   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7022     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7023     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7024     break 2
7025   fi
7026 done
7027   done
7028 IFS=$as_save_IFS
7029
7030 fi
7031 fi
7032 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7033 if test -n "$MANIFEST_TOOL"; then
7034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7035 $as_echo "$MANIFEST_TOOL" >&6; }
7036 else
7037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7038 $as_echo "no" >&6; }
7039 fi
7040
7041
7042 fi
7043 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7044   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7045   # Extract the first word of "mt", so it can be a program name with args.
7046 set dummy mt; ac_word=$2
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7048 $as_echo_n "checking for $ac_word... " >&6; }
7049 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7050   $as_echo_n "(cached) " >&6
7051 else
7052   if test -n "$ac_ct_MANIFEST_TOOL"; then
7053   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7054 else
7055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7056 for as_dir in $PATH
7057 do
7058   IFS=$as_save_IFS
7059   test -z "$as_dir" && as_dir=.
7060     for ac_exec_ext in '' $ac_executable_extensions; do
7061   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7062     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7063     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7064     break 2
7065   fi
7066 done
7067   done
7068 IFS=$as_save_IFS
7069
7070 fi
7071 fi
7072 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7073 if test -n "$ac_ct_MANIFEST_TOOL"; then
7074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7075 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7076 else
7077   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7078 $as_echo "no" >&6; }
7079 fi
7080
7081   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7082     MANIFEST_TOOL=":"
7083   else
7084     case $cross_compiling:$ac_tool_warned in
7085 yes:)
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7087 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7088 ac_tool_warned=yes ;;
7089 esac
7090     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7091   fi
7092 else
7093   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7094 fi
7095
7096 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7098 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7099 if ${lt_cv_path_mainfest_tool+:} false; then :
7100   $as_echo_n "(cached) " >&6
7101 else
7102   lt_cv_path_mainfest_tool=no
7103   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7104   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7105   cat conftest.err >&5
7106   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7107     lt_cv_path_mainfest_tool=yes
7108   fi
7109   rm -f conftest*
7110 fi
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7112 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7113 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7114   MANIFEST_TOOL=:
7115 fi
7116
7117
7118
7119
7120
7121
7122   case $host_os in
7123     rhapsody* | darwin*)
7124     if test -n "$ac_tool_prefix"; then
7125   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7126 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7128 $as_echo_n "checking for $ac_word... " >&6; }
7129 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7130   $as_echo_n "(cached) " >&6
7131 else
7132   if test -n "$DSYMUTIL"; then
7133   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7134 else
7135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7136 for as_dir in $PATH
7137 do
7138   IFS=$as_save_IFS
7139   test -z "$as_dir" && as_dir=.
7140     for ac_exec_ext in '' $ac_executable_extensions; do
7141   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7142     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7143     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7144     break 2
7145   fi
7146 done
7147   done
7148 IFS=$as_save_IFS
7149
7150 fi
7151 fi
7152 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7153 if test -n "$DSYMUTIL"; then
7154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7155 $as_echo "$DSYMUTIL" >&6; }
7156 else
7157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7158 $as_echo "no" >&6; }
7159 fi
7160
7161
7162 fi
7163 if test -z "$ac_cv_prog_DSYMUTIL"; then
7164   ac_ct_DSYMUTIL=$DSYMUTIL
7165   # Extract the first word of "dsymutil", so it can be a program name with args.
7166 set dummy dsymutil; ac_word=$2
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7168 $as_echo_n "checking for $ac_word... " >&6; }
7169 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7170   $as_echo_n "(cached) " >&6
7171 else
7172   if test -n "$ac_ct_DSYMUTIL"; then
7173   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7174 else
7175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7176 for as_dir in $PATH
7177 do
7178   IFS=$as_save_IFS
7179   test -z "$as_dir" && as_dir=.
7180     for ac_exec_ext in '' $ac_executable_extensions; do
7181   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7182     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7183     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7184     break 2
7185   fi
7186 done
7187   done
7188 IFS=$as_save_IFS
7189
7190 fi
7191 fi
7192 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7193 if test -n "$ac_ct_DSYMUTIL"; then
7194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7195 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7196 else
7197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7198 $as_echo "no" >&6; }
7199 fi
7200
7201   if test "x$ac_ct_DSYMUTIL" = x; then
7202     DSYMUTIL=":"
7203   else
7204     case $cross_compiling:$ac_tool_warned in
7205 yes:)
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7207 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7208 ac_tool_warned=yes ;;
7209 esac
7210     DSYMUTIL=$ac_ct_DSYMUTIL
7211   fi
7212 else
7213   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7214 fi
7215
7216     if test -n "$ac_tool_prefix"; then
7217   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7218 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7220 $as_echo_n "checking for $ac_word... " >&6; }
7221 if ${ac_cv_prog_NMEDIT+:} false; then :
7222   $as_echo_n "(cached) " >&6
7223 else
7224   if test -n "$NMEDIT"; then
7225   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7226 else
7227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7228 for as_dir in $PATH
7229 do
7230   IFS=$as_save_IFS
7231   test -z "$as_dir" && as_dir=.
7232     for ac_exec_ext in '' $ac_executable_extensions; do
7233   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7234     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7235     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7236     break 2
7237   fi
7238 done
7239   done
7240 IFS=$as_save_IFS
7241
7242 fi
7243 fi
7244 NMEDIT=$ac_cv_prog_NMEDIT
7245 if test -n "$NMEDIT"; then
7246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7247 $as_echo "$NMEDIT" >&6; }
7248 else
7249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7250 $as_echo "no" >&6; }
7251 fi
7252
7253
7254 fi
7255 if test -z "$ac_cv_prog_NMEDIT"; then
7256   ac_ct_NMEDIT=$NMEDIT
7257   # Extract the first word of "nmedit", so it can be a program name with args.
7258 set dummy nmedit; ac_word=$2
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7260 $as_echo_n "checking for $ac_word... " >&6; }
7261 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7262   $as_echo_n "(cached) " >&6
7263 else
7264   if test -n "$ac_ct_NMEDIT"; then
7265   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7266 else
7267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7268 for as_dir in $PATH
7269 do
7270   IFS=$as_save_IFS
7271   test -z "$as_dir" && as_dir=.
7272     for ac_exec_ext in '' $ac_executable_extensions; do
7273   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7274     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7275     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7276     break 2
7277   fi
7278 done
7279   done
7280 IFS=$as_save_IFS
7281
7282 fi
7283 fi
7284 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7285 if test -n "$ac_ct_NMEDIT"; then
7286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7287 $as_echo "$ac_ct_NMEDIT" >&6; }
7288 else
7289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7290 $as_echo "no" >&6; }
7291 fi
7292
7293   if test "x$ac_ct_NMEDIT" = x; then
7294     NMEDIT=":"
7295   else
7296     case $cross_compiling:$ac_tool_warned in
7297 yes:)
7298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7299 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7300 ac_tool_warned=yes ;;
7301 esac
7302     NMEDIT=$ac_ct_NMEDIT
7303   fi
7304 else
7305   NMEDIT="$ac_cv_prog_NMEDIT"
7306 fi
7307
7308     if test -n "$ac_tool_prefix"; then
7309   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7310 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7312 $as_echo_n "checking for $ac_word... " >&6; }
7313 if ${ac_cv_prog_LIPO+:} false; then :
7314   $as_echo_n "(cached) " >&6
7315 else
7316   if test -n "$LIPO"; then
7317   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7318 else
7319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7320 for as_dir in $PATH
7321 do
7322   IFS=$as_save_IFS
7323   test -z "$as_dir" && as_dir=.
7324     for ac_exec_ext in '' $ac_executable_extensions; do
7325   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7326     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7327     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7328     break 2
7329   fi
7330 done
7331   done
7332 IFS=$as_save_IFS
7333
7334 fi
7335 fi
7336 LIPO=$ac_cv_prog_LIPO
7337 if test -n "$LIPO"; then
7338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7339 $as_echo "$LIPO" >&6; }
7340 else
7341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7342 $as_echo "no" >&6; }
7343 fi
7344
7345
7346 fi
7347 if test -z "$ac_cv_prog_LIPO"; then
7348   ac_ct_LIPO=$LIPO
7349   # Extract the first word of "lipo", so it can be a program name with args.
7350 set dummy lipo; ac_word=$2
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7352 $as_echo_n "checking for $ac_word... " >&6; }
7353 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7354   $as_echo_n "(cached) " >&6
7355 else
7356   if test -n "$ac_ct_LIPO"; then
7357   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7358 else
7359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7360 for as_dir in $PATH
7361 do
7362   IFS=$as_save_IFS
7363   test -z "$as_dir" && as_dir=.
7364     for ac_exec_ext in '' $ac_executable_extensions; do
7365   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7366     ac_cv_prog_ac_ct_LIPO="lipo"
7367     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7368     break 2
7369   fi
7370 done
7371   done
7372 IFS=$as_save_IFS
7373
7374 fi
7375 fi
7376 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7377 if test -n "$ac_ct_LIPO"; then
7378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7379 $as_echo "$ac_ct_LIPO" >&6; }
7380 else
7381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7382 $as_echo "no" >&6; }
7383 fi
7384
7385   if test "x$ac_ct_LIPO" = x; then
7386     LIPO=":"
7387   else
7388     case $cross_compiling:$ac_tool_warned in
7389 yes:)
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7391 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7392 ac_tool_warned=yes ;;
7393 esac
7394     LIPO=$ac_ct_LIPO
7395   fi
7396 else
7397   LIPO="$ac_cv_prog_LIPO"
7398 fi
7399
7400     if test -n "$ac_tool_prefix"; then
7401   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7402 set dummy ${ac_tool_prefix}otool; ac_word=$2
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7404 $as_echo_n "checking for $ac_word... " >&6; }
7405 if ${ac_cv_prog_OTOOL+:} false; then :
7406   $as_echo_n "(cached) " >&6
7407 else
7408   if test -n "$OTOOL"; then
7409   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7410 else
7411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7412 for as_dir in $PATH
7413 do
7414   IFS=$as_save_IFS
7415   test -z "$as_dir" && as_dir=.
7416     for ac_exec_ext in '' $ac_executable_extensions; do
7417   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7418     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7419     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7420     break 2
7421   fi
7422 done
7423   done
7424 IFS=$as_save_IFS
7425
7426 fi
7427 fi
7428 OTOOL=$ac_cv_prog_OTOOL
7429 if test -n "$OTOOL"; then
7430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7431 $as_echo "$OTOOL" >&6; }
7432 else
7433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7434 $as_echo "no" >&6; }
7435 fi
7436
7437
7438 fi
7439 if test -z "$ac_cv_prog_OTOOL"; then
7440   ac_ct_OTOOL=$OTOOL
7441   # Extract the first word of "otool", so it can be a program name with args.
7442 set dummy otool; ac_word=$2
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7444 $as_echo_n "checking for $ac_word... " >&6; }
7445 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7446   $as_echo_n "(cached) " >&6
7447 else
7448   if test -n "$ac_ct_OTOOL"; then
7449   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7450 else
7451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7452 for as_dir in $PATH
7453 do
7454   IFS=$as_save_IFS
7455   test -z "$as_dir" && as_dir=.
7456     for ac_exec_ext in '' $ac_executable_extensions; do
7457   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7458     ac_cv_prog_ac_ct_OTOOL="otool"
7459     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7460     break 2
7461   fi
7462 done
7463   done
7464 IFS=$as_save_IFS
7465
7466 fi
7467 fi
7468 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7469 if test -n "$ac_ct_OTOOL"; then
7470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7471 $as_echo "$ac_ct_OTOOL" >&6; }
7472 else
7473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7474 $as_echo "no" >&6; }
7475 fi
7476
7477   if test "x$ac_ct_OTOOL" = x; then
7478     OTOOL=":"
7479   else
7480     case $cross_compiling:$ac_tool_warned in
7481 yes:)
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7483 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7484 ac_tool_warned=yes ;;
7485 esac
7486     OTOOL=$ac_ct_OTOOL
7487   fi
7488 else
7489   OTOOL="$ac_cv_prog_OTOOL"
7490 fi
7491
7492     if test -n "$ac_tool_prefix"; then
7493   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7494 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7496 $as_echo_n "checking for $ac_word... " >&6; }
7497 if ${ac_cv_prog_OTOOL64+:} false; then :
7498   $as_echo_n "(cached) " >&6
7499 else
7500   if test -n "$OTOOL64"; then
7501   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7502 else
7503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7504 for as_dir in $PATH
7505 do
7506   IFS=$as_save_IFS
7507   test -z "$as_dir" && as_dir=.
7508     for ac_exec_ext in '' $ac_executable_extensions; do
7509   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7510     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7511     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7512     break 2
7513   fi
7514 done
7515   done
7516 IFS=$as_save_IFS
7517
7518 fi
7519 fi
7520 OTOOL64=$ac_cv_prog_OTOOL64
7521 if test -n "$OTOOL64"; then
7522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7523 $as_echo "$OTOOL64" >&6; }
7524 else
7525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7526 $as_echo "no" >&6; }
7527 fi
7528
7529
7530 fi
7531 if test -z "$ac_cv_prog_OTOOL64"; then
7532   ac_ct_OTOOL64=$OTOOL64
7533   # Extract the first word of "otool64", so it can be a program name with args.
7534 set dummy otool64; ac_word=$2
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7536 $as_echo_n "checking for $ac_word... " >&6; }
7537 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7538   $as_echo_n "(cached) " >&6
7539 else
7540   if test -n "$ac_ct_OTOOL64"; then
7541   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7542 else
7543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7544 for as_dir in $PATH
7545 do
7546   IFS=$as_save_IFS
7547   test -z "$as_dir" && as_dir=.
7548     for ac_exec_ext in '' $ac_executable_extensions; do
7549   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7550     ac_cv_prog_ac_ct_OTOOL64="otool64"
7551     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7552     break 2
7553   fi
7554 done
7555   done
7556 IFS=$as_save_IFS
7557
7558 fi
7559 fi
7560 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7561 if test -n "$ac_ct_OTOOL64"; then
7562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7563 $as_echo "$ac_ct_OTOOL64" >&6; }
7564 else
7565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7566 $as_echo "no" >&6; }
7567 fi
7568
7569   if test "x$ac_ct_OTOOL64" = x; then
7570     OTOOL64=":"
7571   else
7572     case $cross_compiling:$ac_tool_warned in
7573 yes:)
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7575 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7576 ac_tool_warned=yes ;;
7577 esac
7578     OTOOL64=$ac_ct_OTOOL64
7579   fi
7580 else
7581   OTOOL64="$ac_cv_prog_OTOOL64"
7582 fi
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7611 $as_echo_n "checking for -single_module linker flag... " >&6; }
7612 if ${lt_cv_apple_cc_single_mod+:} false; then :
7613   $as_echo_n "(cached) " >&6
7614 else
7615   lt_cv_apple_cc_single_mod=no
7616       if test -z "${LT_MULTI_MODULE}"; then
7617         # By default we will add the -single_module flag. You can override
7618         # by either setting the environment variable LT_MULTI_MODULE
7619         # non-empty at configure time, or by adding -multi_module to the
7620         # link flags.
7621         rm -rf libconftest.dylib*
7622         echo "int foo(void){return 1;}" > conftest.c
7623         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7624 -dynamiclib -Wl,-single_module conftest.c" >&5
7625         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7626           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7627         _lt_result=$?
7628         # If there is a non-empty error log, and "single_module"
7629         # appears in it, assume the flag caused a linker warning
7630         if test -s conftest.err && $GREP single_module conftest.err; then
7631           cat conftest.err >&5
7632         # Otherwise, if the output was created with a 0 exit code from
7633         # the compiler, it worked.
7634         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7635           lt_cv_apple_cc_single_mod=yes
7636         else
7637           cat conftest.err >&5
7638         fi
7639         rm -rf libconftest.dylib*
7640         rm -f conftest.*
7641       fi
7642 fi
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7644 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7645
7646     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7647 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7648 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7649   $as_echo_n "(cached) " >&6
7650 else
7651   lt_cv_ld_exported_symbols_list=no
7652       save_LDFLAGS=$LDFLAGS
7653       echo "_main" > conftest.sym
7654       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7655       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7656 /* end confdefs.h.  */
7657
7658 int
7659 main ()
7660 {
7661
7662   ;
7663   return 0;
7664 }
7665 _ACEOF
7666 if ac_fn_c_try_link "$LINENO"; then :
7667   lt_cv_ld_exported_symbols_list=yes
7668 else
7669   lt_cv_ld_exported_symbols_list=no
7670 fi
7671 rm -f core conftest.err conftest.$ac_objext \
7672     conftest$ac_exeext conftest.$ac_ext
7673         LDFLAGS="$save_LDFLAGS"
7674
7675 fi
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7677 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7678
7679     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7680 $as_echo_n "checking for -force_load linker flag... " >&6; }
7681 if ${lt_cv_ld_force_load+:} false; then :
7682   $as_echo_n "(cached) " >&6
7683 else
7684   lt_cv_ld_force_load=no
7685       cat > conftest.c << _LT_EOF
7686 int forced_loaded() { return 2;}
7687 _LT_EOF
7688       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7689       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7690       echo "$AR cru libconftest.a conftest.o" >&5
7691       $AR cru libconftest.a conftest.o 2>&5
7692       echo "$RANLIB libconftest.a" >&5
7693       $RANLIB libconftest.a 2>&5
7694       cat > conftest.c << _LT_EOF
7695 int main() { return 0;}
7696 _LT_EOF
7697       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7698       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7699       _lt_result=$?
7700       if test -s conftest.err && $GREP force_load conftest.err; then
7701         cat conftest.err >&5
7702       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7703         lt_cv_ld_force_load=yes
7704       else
7705         cat conftest.err >&5
7706       fi
7707         rm -f conftest.err libconftest.a conftest conftest.c
7708         rm -rf conftest.dSYM
7709
7710 fi
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7712 $as_echo "$lt_cv_ld_force_load" >&6; }
7713     case $host_os in
7714     rhapsody* | darwin1.[012])
7715       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7716     darwin1.*)
7717       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7718     darwin*) # darwin 5.x on
7719       # if running on 10.5 or later, the deployment target defaults
7720       # to the OS version, if on x86, and 10.4, the deployment
7721       # target defaults to 10.4. Don't you love it?
7722       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7723         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7724           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7725         10.[012]*)
7726           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7727         10.*)
7728           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7729       esac
7730     ;;
7731   esac
7732     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7733       _lt_dar_single_mod='$single_module'
7734     fi
7735     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7736       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7737     else
7738       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7739     fi
7740     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7741       _lt_dsymutil='~$DSYMUTIL $lib || :'
7742     else
7743       _lt_dsymutil=
7744     fi
7745     ;;
7746   esac
7747
7748 for ac_header in dlfcn.h
7749 do :
7750   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7751 "
7752 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7753   cat >>confdefs.h <<_ACEOF
7754 #define HAVE_DLFCN_H 1
7755 _ACEOF
7756
7757 fi
7758
7759 done
7760
7761
7762
7763
7764
7765 # Set options
7766 enable_win32_dll=yes
7767
7768 case $host in
7769 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7770   if test -n "$ac_tool_prefix"; then
7771   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7772 set dummy ${ac_tool_prefix}as; ac_word=$2
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7774 $as_echo_n "checking for $ac_word... " >&6; }
7775 if ${ac_cv_prog_AS+:} false; then :
7776   $as_echo_n "(cached) " >&6
7777 else
7778   if test -n "$AS"; then
7779   ac_cv_prog_AS="$AS" # Let the user override the test.
7780 else
7781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7782 for as_dir in $PATH
7783 do
7784   IFS=$as_save_IFS
7785   test -z "$as_dir" && as_dir=.
7786     for ac_exec_ext in '' $ac_executable_extensions; do
7787   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7788     ac_cv_prog_AS="${ac_tool_prefix}as"
7789     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7790     break 2
7791   fi
7792 done
7793   done
7794 IFS=$as_save_IFS
7795
7796 fi
7797 fi
7798 AS=$ac_cv_prog_AS
7799 if test -n "$AS"; then
7800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7801 $as_echo "$AS" >&6; }
7802 else
7803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7804 $as_echo "no" >&6; }
7805 fi
7806
7807
7808 fi
7809 if test -z "$ac_cv_prog_AS"; then
7810   ac_ct_AS=$AS
7811   # Extract the first word of "as", so it can be a program name with args.
7812 set dummy as; ac_word=$2
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7814 $as_echo_n "checking for $ac_word... " >&6; }
7815 if ${ac_cv_prog_ac_ct_AS+:} false; then :
7816   $as_echo_n "(cached) " >&6
7817 else
7818   if test -n "$ac_ct_AS"; then
7819   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7820 else
7821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7822 for as_dir in $PATH
7823 do
7824   IFS=$as_save_IFS
7825   test -z "$as_dir" && as_dir=.
7826     for ac_exec_ext in '' $ac_executable_extensions; do
7827   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7828     ac_cv_prog_ac_ct_AS="as"
7829     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7830     break 2
7831   fi
7832 done
7833   done
7834 IFS=$as_save_IFS
7835
7836 fi
7837 fi
7838 ac_ct_AS=$ac_cv_prog_ac_ct_AS
7839 if test -n "$ac_ct_AS"; then
7840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7841 $as_echo "$ac_ct_AS" >&6; }
7842 else
7843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7844 $as_echo "no" >&6; }
7845 fi
7846
7847   if test "x$ac_ct_AS" = x; then
7848     AS="false"
7849   else
7850     case $cross_compiling:$ac_tool_warned in
7851 yes:)
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7853 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7854 ac_tool_warned=yes ;;
7855 esac
7856     AS=$ac_ct_AS
7857   fi
7858 else
7859   AS="$ac_cv_prog_AS"
7860 fi
7861
7862   if test -n "$ac_tool_prefix"; then
7863   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7864 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7866 $as_echo_n "checking for $ac_word... " >&6; }
7867 if ${ac_cv_prog_DLLTOOL+:} false; then :
7868   $as_echo_n "(cached) " >&6
7869 else
7870   if test -n "$DLLTOOL"; then
7871   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7872 else
7873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7874 for as_dir in $PATH
7875 do
7876   IFS=$as_save_IFS
7877   test -z "$as_dir" && as_dir=.
7878     for ac_exec_ext in '' $ac_executable_extensions; do
7879   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7880     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7881     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7882     break 2
7883   fi
7884 done
7885   done
7886 IFS=$as_save_IFS
7887
7888 fi
7889 fi
7890 DLLTOOL=$ac_cv_prog_DLLTOOL
7891 if test -n "$DLLTOOL"; then
7892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7893 $as_echo "$DLLTOOL" >&6; }
7894 else
7895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7896 $as_echo "no" >&6; }
7897 fi
7898
7899
7900 fi
7901 if test -z "$ac_cv_prog_DLLTOOL"; then
7902   ac_ct_DLLTOOL=$DLLTOOL
7903   # Extract the first word of "dlltool", so it can be a program name with args.
7904 set dummy dlltool; ac_word=$2
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7906 $as_echo_n "checking for $ac_word... " >&6; }
7907 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7908   $as_echo_n "(cached) " >&6
7909 else
7910   if test -n "$ac_ct_DLLTOOL"; then
7911   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7912 else
7913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7914 for as_dir in $PATH
7915 do
7916   IFS=$as_save_IFS
7917   test -z "$as_dir" && as_dir=.
7918     for ac_exec_ext in '' $ac_executable_extensions; do
7919   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7920     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7921     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7922     break 2
7923   fi
7924 done
7925   done
7926 IFS=$as_save_IFS
7927
7928 fi
7929 fi
7930 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7931 if test -n "$ac_ct_DLLTOOL"; then
7932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7933 $as_echo "$ac_ct_DLLTOOL" >&6; }
7934 else
7935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7936 $as_echo "no" >&6; }
7937 fi
7938
7939   if test "x$ac_ct_DLLTOOL" = x; then
7940     DLLTOOL="false"
7941   else
7942     case $cross_compiling:$ac_tool_warned in
7943 yes:)
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7946 ac_tool_warned=yes ;;
7947 esac
7948     DLLTOOL=$ac_ct_DLLTOOL
7949   fi
7950 else
7951   DLLTOOL="$ac_cv_prog_DLLTOOL"
7952 fi
7953
7954   if test -n "$ac_tool_prefix"; then
7955   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7956 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7958 $as_echo_n "checking for $ac_word... " >&6; }
7959 if ${ac_cv_prog_OBJDUMP+:} false; then :
7960   $as_echo_n "(cached) " >&6
7961 else
7962   if test -n "$OBJDUMP"; then
7963   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7964 else
7965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7966 for as_dir in $PATH
7967 do
7968   IFS=$as_save_IFS
7969   test -z "$as_dir" && as_dir=.
7970     for ac_exec_ext in '' $ac_executable_extensions; do
7971   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7972     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7973     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7974     break 2
7975   fi
7976 done
7977   done
7978 IFS=$as_save_IFS
7979
7980 fi
7981 fi
7982 OBJDUMP=$ac_cv_prog_OBJDUMP
7983 if test -n "$OBJDUMP"; then
7984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7985 $as_echo "$OBJDUMP" >&6; }
7986 else
7987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7988 $as_echo "no" >&6; }
7989 fi
7990
7991
7992 fi
7993 if test -z "$ac_cv_prog_OBJDUMP"; then
7994   ac_ct_OBJDUMP=$OBJDUMP
7995   # Extract the first word of "objdump", so it can be a program name with args.
7996 set dummy objdump; ac_word=$2
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7998 $as_echo_n "checking for $ac_word... " >&6; }
7999 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8000   $as_echo_n "(cached) " >&6
8001 else
8002   if test -n "$ac_ct_OBJDUMP"; then
8003   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8004 else
8005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8006 for as_dir in $PATH
8007 do
8008   IFS=$as_save_IFS
8009   test -z "$as_dir" && as_dir=.
8010     for ac_exec_ext in '' $ac_executable_extensions; do
8011   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8012     ac_cv_prog_ac_ct_OBJDUMP="objdump"
8013     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8014     break 2
8015   fi
8016 done
8017   done
8018 IFS=$as_save_IFS
8019
8020 fi
8021 fi
8022 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8023 if test -n "$ac_ct_OBJDUMP"; then
8024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8025 $as_echo "$ac_ct_OBJDUMP" >&6; }
8026 else
8027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8028 $as_echo "no" >&6; }
8029 fi
8030
8031   if test "x$ac_ct_OBJDUMP" = x; then
8032     OBJDUMP="false"
8033   else
8034     case $cross_compiling:$ac_tool_warned in
8035 yes:)
8036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8037 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8038 ac_tool_warned=yes ;;
8039 esac
8040     OBJDUMP=$ac_ct_OBJDUMP
8041   fi
8042 else
8043   OBJDUMP="$ac_cv_prog_OBJDUMP"
8044 fi
8045
8046   ;;
8047 esac
8048
8049 test -z "$AS" && AS=as
8050
8051
8052
8053
8054
8055 test -z "$DLLTOOL" && DLLTOOL=dlltool
8056
8057
8058
8059
8060
8061 test -z "$OBJDUMP" && OBJDUMP=objdump
8062
8063
8064
8065
8066
8067
8068
8069         enable_dlopen=no
8070
8071
8072
8073             # Check whether --enable-shared was given.
8074 if test "${enable_shared+set}" = set; then :
8075   enableval=$enable_shared; p=${PACKAGE-default}
8076     case $enableval in
8077     yes) enable_shared=yes ;;
8078     no) enable_shared=no ;;
8079     *)
8080       enable_shared=no
8081       # Look at the argument we got.  We use all the common list separators.
8082       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8083       for pkg in $enableval; do
8084         IFS="$lt_save_ifs"
8085         if test "X$pkg" = "X$p"; then
8086           enable_shared=yes
8087         fi
8088       done
8089       IFS="$lt_save_ifs"
8090       ;;
8091     esac
8092 else
8093   enable_shared=yes
8094 fi
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104   # Check whether --enable-static was given.
8105 if test "${enable_static+set}" = set; then :
8106   enableval=$enable_static; p=${PACKAGE-default}
8107     case $enableval in
8108     yes) enable_static=yes ;;
8109     no) enable_static=no ;;
8110     *)
8111      enable_static=no
8112       # Look at the argument we got.  We use all the common list separators.
8113       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8114       for pkg in $enableval; do
8115         IFS="$lt_save_ifs"
8116         if test "X$pkg" = "X$p"; then
8117           enable_static=yes
8118         fi
8119       done
8120       IFS="$lt_save_ifs"
8121       ;;
8122     esac
8123 else
8124   enable_static=yes
8125 fi
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136 # Check whether --with-pic was given.
8137 if test "${with_pic+set}" = set; then :
8138   withval=$with_pic; lt_p=${PACKAGE-default}
8139     case $withval in
8140     yes|no) pic_mode=$withval ;;
8141     *)
8142       pic_mode=default
8143       # Look at the argument we got.  We use all the common list separators.
8144       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8145       for lt_pkg in $withval; do
8146         IFS="$lt_save_ifs"
8147         if test "X$lt_pkg" = "X$lt_p"; then
8148           pic_mode=yes
8149         fi
8150       done
8151       IFS="$lt_save_ifs"
8152       ;;
8153     esac
8154 else
8155   pic_mode=default
8156 fi
8157
8158
8159 test -z "$pic_mode" && pic_mode=default
8160
8161
8162
8163
8164
8165
8166
8167   # Check whether --enable-fast-install was given.
8168 if test "${enable_fast_install+set}" = set; then :
8169   enableval=$enable_fast_install; p=${PACKAGE-default}
8170     case $enableval in
8171     yes) enable_fast_install=yes ;;
8172     no) enable_fast_install=no ;;
8173     *)
8174       enable_fast_install=no
8175       # Look at the argument we got.  We use all the common list separators.
8176       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8177       for pkg in $enableval; do
8178         IFS="$lt_save_ifs"
8179         if test "X$pkg" = "X$p"; then
8180           enable_fast_install=yes
8181         fi
8182       done
8183       IFS="$lt_save_ifs"
8184       ;;
8185     esac
8186 else
8187   enable_fast_install=yes
8188 fi
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200 # This can be used to rebuild libtool when needed
8201 LIBTOOL_DEPS="$ltmain"
8202
8203 # Always use our own libtool.
8204 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235 test -z "$LN_S" && LN_S="ln -s"
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250 if test -n "${ZSH_VERSION+set}" ; then
8251    setopt NO_GLOB_SUBST
8252 fi
8253
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8255 $as_echo_n "checking for objdir... " >&6; }
8256 if ${lt_cv_objdir+:} false; then :
8257   $as_echo_n "(cached) " >&6
8258 else
8259   rm -f .libs 2>/dev/null
8260 mkdir .libs 2>/dev/null
8261 if test -d .libs; then
8262   lt_cv_objdir=.libs
8263 else
8264   # MS-DOS does not allow filenames that begin with a dot.
8265   lt_cv_objdir=_libs
8266 fi
8267 rmdir .libs 2>/dev/null
8268 fi
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8270 $as_echo "$lt_cv_objdir" >&6; }
8271 objdir=$lt_cv_objdir
8272
8273
8274
8275
8276
8277 cat >>confdefs.h <<_ACEOF
8278 #define LT_OBJDIR "$lt_cv_objdir/"
8279 _ACEOF
8280
8281
8282
8283
8284 case $host_os in
8285 aix3*)
8286   # AIX sometimes has problems with the GCC collect2 program.  For some
8287   # reason, if we set the COLLECT_NAMES environment variable, the problems
8288   # vanish in a puff of smoke.
8289   if test "X${COLLECT_NAMES+set}" != Xset; then
8290     COLLECT_NAMES=
8291     export COLLECT_NAMES
8292   fi
8293   ;;
8294 esac
8295
8296 # Global variables:
8297 ofile=libtool
8298 can_build_shared=yes
8299
8300 # All known linkers require a `.a' archive for static linking (except MSVC,
8301 # which needs '.lib').
8302 libext=a
8303
8304 with_gnu_ld="$lt_cv_prog_gnu_ld"
8305
8306 old_CC="$CC"
8307 old_CFLAGS="$CFLAGS"
8308
8309 # Set sane defaults for various variables
8310 test -z "$CC" && CC=cc
8311 test -z "$LTCC" && LTCC=$CC
8312 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8313 test -z "$LD" && LD=ld
8314 test -z "$ac_objext" && ac_objext=o
8315
8316 for cc_temp in $compiler""; do
8317   case $cc_temp in
8318     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8319     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8320     \-*) ;;
8321     *) break;;
8322   esac
8323 done
8324 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8325
8326
8327 # Only perform the check for file, if the check method requires it
8328 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8329 case $deplibs_check_method in
8330 file_magic*)
8331   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8332     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8333 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8334 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8335   $as_echo_n "(cached) " >&6
8336 else
8337   case $MAGIC_CMD in
8338 [\\/*] |  ?:[\\/]*)
8339   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8340   ;;
8341 *)
8342   lt_save_MAGIC_CMD="$MAGIC_CMD"
8343   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8344   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8345   for ac_dir in $ac_dummy; do
8346     IFS="$lt_save_ifs"
8347     test -z "$ac_dir" && ac_dir=.
8348     if test -f $ac_dir/${ac_tool_prefix}file; then
8349       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8350       if test -n "$file_magic_test_file"; then
8351         case $deplibs_check_method in
8352         "file_magic "*)
8353           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8354           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8355           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8356             $EGREP "$file_magic_regex" > /dev/null; then
8357             :
8358           else
8359             cat <<_LT_EOF 1>&2
8360
8361 *** Warning: the command libtool uses to detect shared libraries,
8362 *** $file_magic_cmd, produces output that libtool cannot recognize.
8363 *** The result is that libtool may fail to recognize shared libraries
8364 *** as such.  This will affect the creation of libtool libraries that
8365 *** depend on shared libraries, but programs linked with such libtool
8366 *** libraries will work regardless of this problem.  Nevertheless, you
8367 *** may want to report the problem to your system manager and/or to
8368 *** bug-libtool@gnu.org
8369
8370 _LT_EOF
8371           fi ;;
8372         esac
8373       fi
8374       break
8375     fi
8376   done
8377   IFS="$lt_save_ifs"
8378   MAGIC_CMD="$lt_save_MAGIC_CMD"
8379   ;;
8380 esac
8381 fi
8382
8383 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8384 if test -n "$MAGIC_CMD"; then
8385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8386 $as_echo "$MAGIC_CMD" >&6; }
8387 else
8388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8389 $as_echo "no" >&6; }
8390 fi
8391
8392
8393
8394
8395
8396 if test -z "$lt_cv_path_MAGIC_CMD"; then
8397   if test -n "$ac_tool_prefix"; then
8398     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8399 $as_echo_n "checking for file... " >&6; }
8400 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8401   $as_echo_n "(cached) " >&6
8402 else
8403   case $MAGIC_CMD in
8404 [\\/*] |  ?:[\\/]*)
8405   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8406   ;;
8407 *)
8408   lt_save_MAGIC_CMD="$MAGIC_CMD"
8409   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8410   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8411   for ac_dir in $ac_dummy; do
8412     IFS="$lt_save_ifs"
8413     test -z "$ac_dir" && ac_dir=.
8414     if test -f $ac_dir/file; then
8415       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8416       if test -n "$file_magic_test_file"; then
8417         case $deplibs_check_method in
8418         "file_magic "*)
8419           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8420           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8421           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8422             $EGREP "$file_magic_regex" > /dev/null; then
8423             :
8424           else
8425             cat <<_LT_EOF 1>&2
8426
8427 *** Warning: the command libtool uses to detect shared libraries,
8428 *** $file_magic_cmd, produces output that libtool cannot recognize.
8429 *** The result is that libtool may fail to recognize shared libraries
8430 *** as such.  This will affect the creation of libtool libraries that
8431 *** depend on shared libraries, but programs linked with such libtool
8432 *** libraries will work regardless of this problem.  Nevertheless, you
8433 *** may want to report the problem to your system manager and/or to
8434 *** bug-libtool@gnu.org
8435
8436 _LT_EOF
8437           fi ;;
8438         esac
8439       fi
8440       break
8441     fi
8442   done
8443   IFS="$lt_save_ifs"
8444   MAGIC_CMD="$lt_save_MAGIC_CMD"
8445   ;;
8446 esac
8447 fi
8448
8449 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8450 if test -n "$MAGIC_CMD"; then
8451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8452 $as_echo "$MAGIC_CMD" >&6; }
8453 else
8454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8455 $as_echo "no" >&6; }
8456 fi
8457
8458
8459   else
8460     MAGIC_CMD=:
8461   fi
8462 fi
8463
8464   fi
8465   ;;
8466 esac
8467
8468 # Use C for the default configuration in the libtool script
8469
8470 lt_save_CC="$CC"
8471 ac_ext=c
8472 ac_cpp='$CPP $CPPFLAGS'
8473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8476
8477
8478 # Source file extension for C test sources.
8479 ac_ext=c
8480
8481 # Object file extension for compiled C test sources.
8482 objext=o
8483 objext=$objext
8484
8485 # Code to be used in simple compile tests
8486 lt_simple_compile_test_code="int some_variable = 0;"
8487
8488 # Code to be used in simple link tests
8489 lt_simple_link_test_code='int main(){return(0);}'
8490
8491
8492
8493
8494
8495
8496
8497 # If no C compiler was specified, use CC.
8498 LTCC=${LTCC-"$CC"}
8499
8500 # If no C compiler flags were specified, use CFLAGS.
8501 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8502
8503 # Allow CC to be a program name with arguments.
8504 compiler=$CC
8505
8506 # Save the default compiler, since it gets overwritten when the other
8507 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8508 compiler_DEFAULT=$CC
8509
8510 # save warnings/boilerplate of simple test code
8511 ac_outfile=conftest.$ac_objext
8512 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8513 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8514 _lt_compiler_boilerplate=`cat conftest.err`
8515 $RM conftest*
8516
8517 ac_outfile=conftest.$ac_objext
8518 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8519 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8520 _lt_linker_boilerplate=`cat conftest.err`
8521 $RM -r conftest*
8522
8523
8524 ## CAVEAT EMPTOR:
8525 ## There is no encapsulation within the following macros, do not change
8526 ## the running order or otherwise move them around unless you know exactly
8527 ## what you are doing...
8528 if test -n "$compiler"; then
8529
8530 lt_prog_compiler_no_builtin_flag=
8531
8532 if test "$GCC" = yes; then
8533   case $cc_basename in
8534   nvcc*)
8535     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8536   *)
8537     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8538   esac
8539
8540   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8541 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8542 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8543   $as_echo_n "(cached) " >&6
8544 else
8545   lt_cv_prog_compiler_rtti_exceptions=no
8546    ac_outfile=conftest.$ac_objext
8547    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8548    lt_compiler_flag="-fno-rtti -fno-exceptions"
8549    # Insert the option either (1) after the last *FLAGS variable, or
8550    # (2) before a word containing "conftest.", or (3) at the end.
8551    # Note that $ac_compile itself does not contain backslashes and begins
8552    # with a dollar sign (not a hyphen), so the echo should work correctly.
8553    # The option is referenced via a variable to avoid confusing sed.
8554    lt_compile=`echo "$ac_compile" | $SED \
8555    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8556    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8557    -e 's:$: $lt_compiler_flag:'`
8558    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8559    (eval "$lt_compile" 2>conftest.err)
8560    ac_status=$?
8561    cat conftest.err >&5
8562    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8563    if (exit $ac_status) && test -s "$ac_outfile"; then
8564      # The compiler can only warn and ignore the option if not recognized
8565      # So say no if there are warnings other than the usual output.
8566      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8567      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8568      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8569        lt_cv_prog_compiler_rtti_exceptions=yes
8570      fi
8571    fi
8572    $RM conftest*
8573
8574 fi
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8576 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8577
8578 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8579     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8580 else
8581     :
8582 fi
8583
8584 fi
8585
8586
8587
8588
8589
8590
8591   lt_prog_compiler_wl=
8592 lt_prog_compiler_pic=
8593 lt_prog_compiler_static=
8594
8595
8596   if test "$GCC" = yes; then
8597     lt_prog_compiler_wl='-Wl,'
8598     lt_prog_compiler_static='-static'
8599
8600     case $host_os in
8601       aix*)
8602       # All AIX code is PIC.
8603       if test "$host_cpu" = ia64; then
8604         # AIX 5 now supports IA64 processor
8605         lt_prog_compiler_static='-Bstatic'
8606       fi
8607       ;;
8608
8609     amigaos*)
8610       case $host_cpu in
8611       powerpc)
8612             # see comment about AmigaOS4 .so support
8613             lt_prog_compiler_pic='-fPIC'
8614         ;;
8615       m68k)
8616             # FIXME: we need at least 68020 code to build shared libraries, but
8617             # adding the `-m68020' flag to GCC prevents building anything better,
8618             # like `-m68040'.
8619             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8620         ;;
8621       esac
8622       ;;
8623
8624     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8625       # PIC is the default for these OSes.
8626       ;;
8627
8628     mingw* | cygwin* | pw32* | os2* | cegcc*)
8629       # This hack is so that the source file can tell whether it is being
8630       # built for inclusion in a dll (and should export symbols for example).
8631       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8632       # (--disable-auto-import) libraries
8633       lt_prog_compiler_pic='-DDLL_EXPORT'
8634       ;;
8635
8636     darwin* | rhapsody*)
8637       # PIC is the default on this platform
8638       # Common symbols not allowed in MH_DYLIB files
8639       lt_prog_compiler_pic='-fno-common'
8640       ;;
8641
8642     haiku*)
8643       # PIC is the default for Haiku.
8644       # The "-static" flag exists, but is broken.
8645       lt_prog_compiler_static=
8646       ;;
8647
8648     hpux*)
8649       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8650       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8651       # sets the default TLS model and affects inlining.
8652       case $host_cpu in
8653       hppa*64*)
8654         # +Z the default
8655         ;;
8656       *)
8657         lt_prog_compiler_pic='-fPIC'
8658         ;;
8659       esac
8660       ;;
8661
8662     interix[3-9]*)
8663       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8664       # Instead, we relocate shared libraries at runtime.
8665       ;;
8666
8667     msdosdjgpp*)
8668       # Just because we use GCC doesn't mean we suddenly get shared libraries
8669       # on systems that don't support them.
8670       lt_prog_compiler_can_build_shared=no
8671       enable_shared=no
8672       ;;
8673
8674     *nto* | *qnx*)
8675       # QNX uses GNU C++, but need to define -shared option too, otherwise
8676       # it will coredump.
8677       lt_prog_compiler_pic='-fPIC -shared'
8678       ;;
8679
8680     sysv4*MP*)
8681       if test -d /usr/nec; then
8682         lt_prog_compiler_pic=-Kconform_pic
8683       fi
8684       ;;
8685
8686     *)
8687       lt_prog_compiler_pic='-fPIC'
8688       ;;
8689     esac
8690
8691     case $cc_basename in
8692     nvcc*) # Cuda Compiler Driver 2.2
8693       lt_prog_compiler_wl='-Xlinker '
8694       if test -n "$lt_prog_compiler_pic"; then
8695         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8696       fi
8697       ;;
8698     esac
8699   else
8700     # PORTME Check for flag to pass linker flags through the system compiler.
8701     case $host_os in
8702     aix*)
8703       lt_prog_compiler_wl='-Wl,'
8704       if test "$host_cpu" = ia64; then
8705         # AIX 5 now supports IA64 processor
8706         lt_prog_compiler_static='-Bstatic'
8707       else
8708         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8709       fi
8710       ;;
8711
8712     mingw* | cygwin* | pw32* | os2* | cegcc*)
8713       # This hack is so that the source file can tell whether it is being
8714       # built for inclusion in a dll (and should export symbols for example).
8715       lt_prog_compiler_pic='-DDLL_EXPORT'
8716       ;;
8717
8718     hpux9* | hpux10* | hpux11*)
8719       lt_prog_compiler_wl='-Wl,'
8720       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8721       # not for PA HP-UX.
8722       case $host_cpu in
8723       hppa*64*|ia64*)
8724         # +Z the default
8725         ;;
8726       *)
8727         lt_prog_compiler_pic='+Z'
8728         ;;
8729       esac
8730       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8731       lt_prog_compiler_static='${wl}-a ${wl}archive'
8732       ;;
8733
8734     irix5* | irix6* | nonstopux*)
8735       lt_prog_compiler_wl='-Wl,'
8736       # PIC (with -KPIC) is the default.
8737       lt_prog_compiler_static='-non_shared'
8738       ;;
8739
8740     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8741       case $cc_basename in
8742       # old Intel for x86_64 which still supported -KPIC.
8743       ecc*)
8744         lt_prog_compiler_wl='-Wl,'
8745         lt_prog_compiler_pic='-KPIC'
8746         lt_prog_compiler_static='-static'
8747         ;;
8748       # icc used to be incompatible with GCC.
8749       # ICC 10 doesn't accept -KPIC any more.
8750       icc* | ifort*)
8751         lt_prog_compiler_wl='-Wl,'
8752         lt_prog_compiler_pic='-fPIC'
8753         lt_prog_compiler_static='-static'
8754         ;;
8755       # Lahey Fortran 8.1.
8756       lf95*)
8757         lt_prog_compiler_wl='-Wl,'
8758         lt_prog_compiler_pic='--shared'
8759         lt_prog_compiler_static='--static'
8760         ;;
8761       nagfor*)
8762         # NAG Fortran compiler
8763         lt_prog_compiler_wl='-Wl,-Wl,,'
8764         lt_prog_compiler_pic='-PIC'
8765         lt_prog_compiler_static='-Bstatic'
8766         ;;
8767       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8768         # Portland Group compilers (*not* the Pentium gcc compiler,
8769         # which looks to be a dead project)
8770         lt_prog_compiler_wl='-Wl,'
8771         lt_prog_compiler_pic='-fpic'
8772         lt_prog_compiler_static='-Bstatic'
8773         ;;
8774       ccc*)
8775         lt_prog_compiler_wl='-Wl,'
8776         # All Alpha code is PIC.
8777         lt_prog_compiler_static='-non_shared'
8778         ;;
8779       xl* | bgxl* | bgf* | mpixl*)
8780         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8781         lt_prog_compiler_wl='-Wl,'
8782         lt_prog_compiler_pic='-qpic'
8783         lt_prog_compiler_static='-qstaticlink'
8784         ;;
8785       *)
8786         case `$CC -V 2>&1 | sed 5q` in
8787         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8788           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8789           lt_prog_compiler_pic='-KPIC'
8790           lt_prog_compiler_static='-Bstatic'
8791           lt_prog_compiler_wl=''
8792           ;;
8793         *Sun\ F* | *Sun*Fortran*)
8794           lt_prog_compiler_pic='-KPIC'
8795           lt_prog_compiler_static='-Bstatic'
8796           lt_prog_compiler_wl='-Qoption ld '
8797           ;;
8798         *Sun\ C*)
8799           # Sun C 5.9
8800           lt_prog_compiler_pic='-KPIC'
8801           lt_prog_compiler_static='-Bstatic'
8802           lt_prog_compiler_wl='-Wl,'
8803           ;;
8804         *Intel*\ [CF]*Compiler*)
8805           lt_prog_compiler_wl='-Wl,'
8806           lt_prog_compiler_pic='-fPIC'
8807           lt_prog_compiler_static='-static'
8808           ;;
8809         *Portland\ Group*)
8810           lt_prog_compiler_wl='-Wl,'
8811           lt_prog_compiler_pic='-fpic'
8812           lt_prog_compiler_static='-Bstatic'
8813           ;;
8814         esac
8815         ;;
8816       esac
8817       ;;
8818
8819     newsos6)
8820       lt_prog_compiler_pic='-KPIC'
8821       lt_prog_compiler_static='-Bstatic'
8822       ;;
8823
8824     *nto* | *qnx*)
8825       # QNX uses GNU C++, but need to define -shared option too, otherwise
8826       # it will coredump.
8827       lt_prog_compiler_pic='-fPIC -shared'
8828       ;;
8829
8830     osf3* | osf4* | osf5*)
8831       lt_prog_compiler_wl='-Wl,'
8832       # All OSF/1 code is PIC.
8833       lt_prog_compiler_static='-non_shared'
8834       ;;
8835
8836     rdos*)
8837       lt_prog_compiler_static='-non_shared'
8838       ;;
8839
8840     solaris*)
8841       lt_prog_compiler_pic='-KPIC'
8842       lt_prog_compiler_static='-Bstatic'
8843       case $cc_basename in
8844       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8845         lt_prog_compiler_wl='-Qoption ld ';;
8846       *)
8847         lt_prog_compiler_wl='-Wl,';;
8848       esac
8849       ;;
8850
8851     sunos4*)
8852       lt_prog_compiler_wl='-Qoption ld '
8853       lt_prog_compiler_pic='-PIC'
8854       lt_prog_compiler_static='-Bstatic'
8855       ;;
8856
8857     sysv4 | sysv4.2uw2* | sysv4.3*)
8858       lt_prog_compiler_wl='-Wl,'
8859       lt_prog_compiler_pic='-KPIC'
8860       lt_prog_compiler_static='-Bstatic'
8861       ;;
8862
8863     sysv4*MP*)
8864       if test -d /usr/nec ;then
8865         lt_prog_compiler_pic='-Kconform_pic'
8866         lt_prog_compiler_static='-Bstatic'
8867       fi
8868       ;;
8869
8870     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8871       lt_prog_compiler_wl='-Wl,'
8872       lt_prog_compiler_pic='-KPIC'
8873       lt_prog_compiler_static='-Bstatic'
8874       ;;
8875
8876     unicos*)
8877       lt_prog_compiler_wl='-Wl,'
8878       lt_prog_compiler_can_build_shared=no
8879       ;;
8880
8881     uts4*)
8882       lt_prog_compiler_pic='-pic'
8883       lt_prog_compiler_static='-Bstatic'
8884       ;;
8885
8886     *)
8887       lt_prog_compiler_can_build_shared=no
8888       ;;
8889     esac
8890   fi
8891
8892 case $host_os in
8893   # For platforms which do not support PIC, -DPIC is meaningless:
8894   *djgpp*)
8895     lt_prog_compiler_pic=
8896     ;;
8897   *)
8898     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8899     ;;
8900 esac
8901
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8903 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8904 if ${lt_cv_prog_compiler_pic+:} false; then :
8905   $as_echo_n "(cached) " >&6
8906 else
8907   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8908 fi
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8910 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8911 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8912
8913 #
8914 # Check to make sure the PIC flag actually works.
8915 #
8916 if test -n "$lt_prog_compiler_pic"; then
8917   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8918 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8919 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8920   $as_echo_n "(cached) " >&6
8921 else
8922   lt_cv_prog_compiler_pic_works=no
8923    ac_outfile=conftest.$ac_objext
8924    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8925    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8926    # Insert the option either (1) after the last *FLAGS variable, or
8927    # (2) before a word containing "conftest.", or (3) at the end.
8928    # Note that $ac_compile itself does not contain backslashes and begins
8929    # with a dollar sign (not a hyphen), so the echo should work correctly.
8930    # The option is referenced via a variable to avoid confusing sed.
8931    lt_compile=`echo "$ac_compile" | $SED \
8932    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8933    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8934    -e 's:$: $lt_compiler_flag:'`
8935    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8936    (eval "$lt_compile" 2>conftest.err)
8937    ac_status=$?
8938    cat conftest.err >&5
8939    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8940    if (exit $ac_status) && test -s "$ac_outfile"; then
8941      # The compiler can only warn and ignore the option if not recognized
8942      # So say no if there are warnings other than the usual output.
8943      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8944      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8945      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8946        lt_cv_prog_compiler_pic_works=yes
8947      fi
8948    fi
8949    $RM conftest*
8950
8951 fi
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8953 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8954
8955 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8956     case $lt_prog_compiler_pic in
8957      "" | " "*) ;;
8958      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8959      esac
8960 else
8961     lt_prog_compiler_pic=
8962      lt_prog_compiler_can_build_shared=no
8963 fi
8964
8965 fi
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977 #
8978 # Check to make sure the static flag actually works.
8979 #
8980 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8982 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8983 if ${lt_cv_prog_compiler_static_works+:} false; then :
8984   $as_echo_n "(cached) " >&6
8985 else
8986   lt_cv_prog_compiler_static_works=no
8987    save_LDFLAGS="$LDFLAGS"
8988    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8989    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8990    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8991      # The linker can only warn and ignore the option if not recognized
8992      # So say no if there are warnings
8993      if test -s conftest.err; then
8994        # Append any errors to the config.log.
8995        cat conftest.err 1>&5
8996        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8997        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8998        if diff conftest.exp conftest.er2 >/dev/null; then
8999          lt_cv_prog_compiler_static_works=yes
9000        fi
9001      else
9002        lt_cv_prog_compiler_static_works=yes
9003      fi
9004    fi
9005    $RM -r conftest*
9006    LDFLAGS="$save_LDFLAGS"
9007
9008 fi
9009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9010 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9011
9012 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9013     :
9014 else
9015     lt_prog_compiler_static=
9016 fi
9017
9018
9019
9020
9021
9022
9023
9024   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9025 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9026 if ${lt_cv_prog_compiler_c_o+:} false; then :
9027   $as_echo_n "(cached) " >&6
9028 else
9029   lt_cv_prog_compiler_c_o=no
9030    $RM -r conftest 2>/dev/null
9031    mkdir conftest
9032    cd conftest
9033    mkdir out
9034    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9035
9036    lt_compiler_flag="-o out/conftest2.$ac_objext"
9037    # Insert the option either (1) after the last *FLAGS variable, or
9038    # (2) before a word containing "conftest.", or (3) at the end.
9039    # Note that $ac_compile itself does not contain backslashes and begins
9040    # with a dollar sign (not a hyphen), so the echo should work correctly.
9041    lt_compile=`echo "$ac_compile" | $SED \
9042    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9043    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9044    -e 's:$: $lt_compiler_flag:'`
9045    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9046    (eval "$lt_compile" 2>out/conftest.err)
9047    ac_status=$?
9048    cat out/conftest.err >&5
9049    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9050    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9051    then
9052      # The compiler can only warn and ignore the option if not recognized
9053      # So say no if there are warnings
9054      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9055      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9056      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9057        lt_cv_prog_compiler_c_o=yes
9058      fi
9059    fi
9060    chmod u+w . 2>&5
9061    $RM conftest*
9062    # SGI C++ compiler will create directory out/ii_files/ for
9063    # template instantiation
9064    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9065    $RM out/* && rmdir out
9066    cd ..
9067    $RM -r conftest
9068    $RM conftest*
9069
9070 fi
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9072 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9073
9074
9075
9076
9077
9078
9079   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9080 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9081 if ${lt_cv_prog_compiler_c_o+:} false; then :
9082   $as_echo_n "(cached) " >&6
9083 else
9084   lt_cv_prog_compiler_c_o=no
9085    $RM -r conftest 2>/dev/null
9086    mkdir conftest
9087    cd conftest
9088    mkdir out
9089    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9090
9091    lt_compiler_flag="-o out/conftest2.$ac_objext"
9092    # Insert the option either (1) after the last *FLAGS variable, or
9093    # (2) before a word containing "conftest.", or (3) at the end.
9094    # Note that $ac_compile itself does not contain backslashes and begins
9095    # with a dollar sign (not a hyphen), so the echo should work correctly.
9096    lt_compile=`echo "$ac_compile" | $SED \
9097    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9098    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9099    -e 's:$: $lt_compiler_flag:'`
9100    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9101    (eval "$lt_compile" 2>out/conftest.err)
9102    ac_status=$?
9103    cat out/conftest.err >&5
9104    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9105    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9106    then
9107      # The compiler can only warn and ignore the option if not recognized
9108      # So say no if there are warnings
9109      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9110      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9111      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9112        lt_cv_prog_compiler_c_o=yes
9113      fi
9114    fi
9115    chmod u+w . 2>&5
9116    $RM conftest*
9117    # SGI C++ compiler will create directory out/ii_files/ for
9118    # template instantiation
9119    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9120    $RM out/* && rmdir out
9121    cd ..
9122    $RM -r conftest
9123    $RM conftest*
9124
9125 fi
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9127 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9128
9129
9130
9131
9132 hard_links="nottested"
9133 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9134   # do not overwrite the value of need_locks provided by the user
9135   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9136 $as_echo_n "checking if we can lock with hard links... " >&6; }
9137   hard_links=yes
9138   $RM conftest*
9139   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9140   touch conftest.a
9141   ln conftest.a conftest.b 2>&5 || hard_links=no
9142   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9144 $as_echo "$hard_links" >&6; }
9145   if test "$hard_links" = no; then
9146     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9147 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9148     need_locks=warn
9149   fi
9150 else
9151   need_locks=no
9152 fi
9153
9154
9155
9156
9157
9158
9159   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9160 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9161
9162   runpath_var=
9163   allow_undefined_flag=
9164   always_export_symbols=no
9165   archive_cmds=
9166   archive_expsym_cmds=
9167   compiler_needs_object=no
9168   enable_shared_with_static_runtimes=no
9169   export_dynamic_flag_spec=
9170   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9171   hardcode_automatic=no
9172   hardcode_direct=no
9173   hardcode_direct_absolute=no
9174   hardcode_libdir_flag_spec=
9175   hardcode_libdir_separator=
9176   hardcode_minus_L=no
9177   hardcode_shlibpath_var=unsupported
9178   inherit_rpath=no
9179   link_all_deplibs=unknown
9180   module_cmds=
9181   module_expsym_cmds=
9182   old_archive_from_new_cmds=
9183   old_archive_from_expsyms_cmds=
9184   thread_safe_flag_spec=
9185   whole_archive_flag_spec=
9186   # include_expsyms should be a list of space-separated symbols to be *always*
9187   # included in the symbol list
9188   include_expsyms=
9189   # exclude_expsyms can be an extended regexp of symbols to exclude
9190   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9191   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9192   # as well as any symbol that contains `d'.
9193   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9194   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9195   # platforms (ab)use it in PIC code, but their linkers get confused if
9196   # the symbol is explicitly referenced.  Since portable code cannot
9197   # rely on this symbol name, it's probably fine to never include it in
9198   # preloaded symbol tables.
9199   # Exclude shared library initialization/finalization symbols.
9200   extract_expsyms_cmds=
9201
9202   case $host_os in
9203   cygwin* | mingw* | pw32* | cegcc*)
9204     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9205     # When not using gcc, we currently assume that we are using
9206     # Microsoft Visual C++.
9207     if test "$GCC" != yes; then
9208       with_gnu_ld=no
9209     fi
9210     ;;
9211   interix*)
9212     # we just hope/assume this is gcc and not c89 (= MSVC++)
9213     with_gnu_ld=yes
9214     ;;
9215   openbsd*)
9216     with_gnu_ld=no
9217     ;;
9218   linux* | k*bsd*-gnu | gnu*)
9219     link_all_deplibs=no
9220     ;;
9221   esac
9222
9223   ld_shlibs=yes
9224
9225   # On some targets, GNU ld is compatible enough with the native linker
9226   # that we're better off using the native interface for both.
9227   lt_use_gnu_ld_interface=no
9228   if test "$with_gnu_ld" = yes; then
9229     case $host_os in
9230       aix*)
9231         # The AIX port of GNU ld has always aspired to compatibility
9232         # with the native linker.  However, as the warning in the GNU ld
9233         # block says, versions before 2.19.5* couldn't really create working
9234         # shared libraries, regardless of the interface used.
9235         case `$LD -v 2>&1` in
9236           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9237           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9238           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9239           *)
9240             lt_use_gnu_ld_interface=yes
9241             ;;
9242         esac
9243         ;;
9244       *)
9245         lt_use_gnu_ld_interface=yes
9246         ;;
9247     esac
9248   fi
9249
9250   if test "$lt_use_gnu_ld_interface" = yes; then
9251     # If archive_cmds runs LD, not CC, wlarc should be empty
9252     wlarc='${wl}'
9253
9254     # Set some defaults for GNU ld with shared library support. These
9255     # are reset later if shared libraries are not supported. Putting them
9256     # here allows them to be overridden if necessary.
9257     runpath_var=LD_RUN_PATH
9258     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9259     export_dynamic_flag_spec='${wl}--export-dynamic'
9260     # ancient GNU ld didn't support --whole-archive et. al.
9261     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9262       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9263     else
9264       whole_archive_flag_spec=
9265     fi
9266     supports_anon_versioning=no
9267     case `$LD -v 2>&1` in
9268       *GNU\ gold*) supports_anon_versioning=yes ;;
9269       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9270       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9271       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9272       *\ 2.11.*) ;; # other 2.11 versions
9273       *) supports_anon_versioning=yes ;;
9274     esac
9275
9276     # See if GNU ld supports shared libraries.
9277     case $host_os in
9278     aix[3-9]*)
9279       # On AIX/PPC, the GNU linker is very broken
9280       if test "$host_cpu" != ia64; then
9281         ld_shlibs=no
9282         cat <<_LT_EOF 1>&2
9283
9284 *** Warning: the GNU linker, at least up to release 2.19, is reported
9285 *** to be unable to reliably create shared libraries on AIX.
9286 *** Therefore, libtool is disabling shared libraries support.  If you
9287 *** really care for shared libraries, you may want to install binutils
9288 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9289 *** You will then need to restart the configuration process.
9290
9291 _LT_EOF
9292       fi
9293       ;;
9294
9295     amigaos*)
9296       case $host_cpu in
9297       powerpc)
9298             # see comment about AmigaOS4 .so support
9299             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9300             archive_expsym_cmds=''
9301         ;;
9302       m68k)
9303             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)'
9304             hardcode_libdir_flag_spec='-L$libdir'
9305             hardcode_minus_L=yes
9306         ;;
9307       esac
9308       ;;
9309
9310     beos*)
9311       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9312         allow_undefined_flag=unsupported
9313         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9314         # support --undefined.  This deserves some investigation.  FIXME
9315         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9316       else
9317         ld_shlibs=no
9318       fi
9319       ;;
9320
9321     cygwin* | mingw* | pw32* | cegcc*)
9322       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9323       # as there is no search path for DLLs.
9324       hardcode_libdir_flag_spec='-L$libdir'
9325       export_dynamic_flag_spec='${wl}--export-all-symbols'
9326       allow_undefined_flag=unsupported
9327       always_export_symbols=no
9328       enable_shared_with_static_runtimes=yes
9329       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'
9330       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9331
9332       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9333         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9334         # If the export-symbols file already is a .def file (1st line
9335         # is EXPORTS), use it as is; otherwise, prepend...
9336         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9337           cp $export_symbols $output_objdir/$soname.def;
9338         else
9339           echo EXPORTS > $output_objdir/$soname.def;
9340           cat $export_symbols >> $output_objdir/$soname.def;
9341         fi~
9342         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9343       else
9344         ld_shlibs=no
9345       fi
9346       ;;
9347
9348     haiku*)
9349       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9350       link_all_deplibs=yes
9351       ;;
9352
9353     interix[3-9]*)
9354       hardcode_direct=no
9355       hardcode_shlibpath_var=no
9356       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9357       export_dynamic_flag_spec='${wl}-E'
9358       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9359       # Instead, shared libraries are loaded at an image base (0x10000000 by
9360       # default) and relocated if they conflict, which is a slow very memory
9361       # consuming and fragmenting process.  To avoid this, we pick a random,
9362       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9363       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9364       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9365       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'
9366       ;;
9367
9368     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9369       tmp_diet=no
9370       if test "$host_os" = linux-dietlibc; then
9371         case $cc_basename in
9372           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9373         esac
9374       fi
9375       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9376          && test "$tmp_diet" = no
9377       then
9378         tmp_addflag=' $pic_flag'
9379         tmp_sharedflag='-shared'
9380         case $cc_basename,$host_cpu in
9381         pgcc*)                          # Portland Group C compiler
9382           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'
9383           tmp_addflag=' $pic_flag'
9384           ;;
9385         pgf77* | pgf90* | pgf95* | pgfortran*)
9386                                         # Portland Group f77 and f90 compilers
9387           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'
9388           tmp_addflag=' $pic_flag -Mnomain' ;;
9389         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9390           tmp_addflag=' -i_dynamic' ;;
9391         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9392           tmp_addflag=' -i_dynamic -nofor_main' ;;
9393         ifc* | ifort*)                  # Intel Fortran compiler
9394           tmp_addflag=' -nofor_main' ;;
9395         lf95*)                          # Lahey Fortran 8.1
9396           whole_archive_flag_spec=
9397           tmp_sharedflag='--shared' ;;
9398         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9399           tmp_sharedflag='-qmkshrobj'
9400           tmp_addflag= ;;
9401         nvcc*)  # Cuda Compiler Driver 2.2
9402           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'
9403           compiler_needs_object=yes
9404           ;;
9405         esac
9406         case `$CC -V 2>&1 | sed 5q` in
9407         *Sun\ C*)                       # Sun C 5.9
9408           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'
9409           compiler_needs_object=yes
9410           tmp_sharedflag='-G' ;;
9411         *Sun\ F*)                       # Sun Fortran 8.3
9412           tmp_sharedflag='-G' ;;
9413         esac
9414         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9415
9416         if test "x$supports_anon_versioning" = xyes; then
9417           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9418             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9419             echo "local: *; };" >> $output_objdir/$libname.ver~
9420             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9421         fi
9422
9423         case $cc_basename in
9424         xlf* | bgf* | bgxlf* | mpixlf*)
9425           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9426           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9427           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9428           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9429           if test "x$supports_anon_versioning" = xyes; then
9430             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9431               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9432               echo "local: *; };" >> $output_objdir/$libname.ver~
9433               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9434           fi
9435           ;;
9436         esac
9437       else
9438         ld_shlibs=no
9439       fi
9440       ;;
9441
9442     netbsd* | netbsdelf*-gnu)
9443       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9444         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9445         wlarc=
9446       else
9447         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9448         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9449       fi
9450       ;;
9451
9452     solaris*)
9453       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9454         ld_shlibs=no
9455         cat <<_LT_EOF 1>&2
9456
9457 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9458 *** create shared libraries on Solaris systems.  Therefore, libtool
9459 *** is disabling shared libraries support.  We urge you to upgrade GNU
9460 *** binutils to release 2.9.1 or newer.  Another option is to modify
9461 *** your PATH or compiler configuration so that the native linker is
9462 *** used, and then restart.
9463
9464 _LT_EOF
9465       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9466         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9467         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9468       else
9469         ld_shlibs=no
9470       fi
9471       ;;
9472
9473     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9474       case `$LD -v 2>&1` in
9475         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9476         ld_shlibs=no
9477         cat <<_LT_EOF 1>&2
9478
9479 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9480 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9481 *** is disabling shared libraries support.  We urge you to upgrade GNU
9482 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9483 *** your PATH or compiler configuration so that the native linker is
9484 *** used, and then restart.
9485
9486 _LT_EOF
9487         ;;
9488         *)
9489           # For security reasons, it is highly recommended that you always
9490           # use absolute paths for naming shared libraries, and exclude the
9491           # DT_RUNPATH tag from executables and libraries.  But doing so
9492           # requires that you compile everything twice, which is a pain.
9493           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9494             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9495             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9496             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9497           else
9498             ld_shlibs=no
9499           fi
9500         ;;
9501       esac
9502       ;;
9503
9504     sunos4*)
9505       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9506       wlarc=
9507       hardcode_direct=yes
9508       hardcode_shlibpath_var=no
9509       ;;
9510
9511     *)
9512       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9513         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9514         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9515       else
9516         ld_shlibs=no
9517       fi
9518       ;;
9519     esac
9520
9521     if test "$ld_shlibs" = no; then
9522       runpath_var=
9523       hardcode_libdir_flag_spec=
9524       export_dynamic_flag_spec=
9525       whole_archive_flag_spec=
9526     fi
9527   else
9528     # PORTME fill in a description of your system's linker (not GNU ld)
9529     case $host_os in
9530     aix3*)
9531       allow_undefined_flag=unsupported
9532       always_export_symbols=yes
9533       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'
9534       # Note: this linker hardcodes the directories in LIBPATH if there
9535       # are no directories specified by -L.
9536       hardcode_minus_L=yes
9537       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9538         # Neither direct hardcoding nor static linking is supported with a
9539         # broken collect2.
9540         hardcode_direct=unsupported
9541       fi
9542       ;;
9543
9544     aix[4-9]*)
9545       if test "$host_cpu" = ia64; then
9546         # On IA64, the linker does run time linking by default, so we don't
9547         # have to do anything special.
9548         aix_use_runtimelinking=no
9549         exp_sym_flag='-Bexport'
9550         no_entry_flag=""
9551       else
9552         # If we're using GNU nm, then we don't want the "-C" option.
9553         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9554         # Also, AIX nm treats weak defined symbols like other global
9555         # defined symbols, whereas GNU nm marks them as "W".
9556         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9557           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'
9558         else
9559           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'
9560         fi
9561         aix_use_runtimelinking=no
9562
9563         # Test if we are trying to use run time linking or normal
9564         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9565         # need to do runtime linking.
9566         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9567           for ld_flag in $LDFLAGS; do
9568           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9569             aix_use_runtimelinking=yes
9570             break
9571           fi
9572           done
9573           ;;
9574         esac
9575
9576         exp_sym_flag='-bexport'
9577         no_entry_flag='-bnoentry'
9578       fi
9579
9580       # When large executables or shared objects are built, AIX ld can
9581       # have problems creating the table of contents.  If linking a library
9582       # or program results in "error TOC overflow" add -mminimal-toc to
9583       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9584       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9585
9586       archive_cmds=''
9587       hardcode_direct=yes
9588       hardcode_direct_absolute=yes
9589       hardcode_libdir_separator=':'
9590       link_all_deplibs=yes
9591       file_list_spec='${wl}-f,'
9592
9593       if test "$GCC" = yes; then
9594         case $host_os in aix4.[012]|aix4.[012].*)
9595         # We only want to do this on AIX 4.2 and lower, the check
9596         # below for broken collect2 doesn't work under 4.3+
9597           collect2name=`${CC} -print-prog-name=collect2`
9598           if test -f "$collect2name" &&
9599            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9600           then
9601           # We have reworked collect2
9602           :
9603           else
9604           # We have old collect2
9605           hardcode_direct=unsupported
9606           # It fails to find uninstalled libraries when the uninstalled
9607           # path is not listed in the libpath.  Setting hardcode_minus_L
9608           # to unsupported forces relinking
9609           hardcode_minus_L=yes
9610           hardcode_libdir_flag_spec='-L$libdir'
9611           hardcode_libdir_separator=
9612           fi
9613           ;;
9614         esac
9615         shared_flag='-shared'
9616         if test "$aix_use_runtimelinking" = yes; then
9617           shared_flag="$shared_flag "'${wl}-G'
9618         fi
9619         link_all_deplibs=no
9620       else
9621         # not using gcc
9622         if test "$host_cpu" = ia64; then
9623         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9624         # chokes on -Wl,-G. The following line is correct:
9625           shared_flag='-G'
9626         else
9627           if test "$aix_use_runtimelinking" = yes; then
9628             shared_flag='${wl}-G'
9629           else
9630             shared_flag='${wl}-bM:SRE'
9631           fi
9632         fi
9633       fi
9634
9635       export_dynamic_flag_spec='${wl}-bexpall'
9636       # It seems that -bexpall does not export symbols beginning with
9637       # underscore (_), so it is better to generate a list of symbols to export.
9638       always_export_symbols=yes
9639       if test "$aix_use_runtimelinking" = yes; then
9640         # Warning - without using the other runtime loading flags (-brtl),
9641         # -berok will link without error, but may produce a broken library.
9642         allow_undefined_flag='-berok'
9643         # Determine the default libpath from the value encoded in an
9644         # empty executable.
9645         if test "${lt_cv_aix_libpath+set}" = set; then
9646   aix_libpath=$lt_cv_aix_libpath
9647 else
9648   if ${lt_cv_aix_libpath_+:} false; then :
9649   $as_echo_n "(cached) " >&6
9650 else
9651   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9652 /* end confdefs.h.  */
9653
9654 int
9655 main ()
9656 {
9657
9658   ;
9659   return 0;
9660 }
9661 _ACEOF
9662 if ac_fn_c_try_link "$LINENO"; then :
9663
9664   lt_aix_libpath_sed='
9665       /Import File Strings/,/^$/ {
9666           /^0/ {
9667               s/^0  *\([^ ]*\) *$/\1/
9668               p
9669           }
9670       }'
9671   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9672   # Check for a 64-bit object if we didn't find anything.
9673   if test -z "$lt_cv_aix_libpath_"; then
9674     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9675   fi
9676 fi
9677 rm -f core conftest.err conftest.$ac_objext \
9678     conftest$ac_exeext conftest.$ac_ext
9679   if test -z "$lt_cv_aix_libpath_"; then
9680     lt_cv_aix_libpath_="/usr/lib:/lib"
9681   fi
9682
9683 fi
9684
9685   aix_libpath=$lt_cv_aix_libpath_
9686 fi
9687
9688         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9689         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"
9690       else
9691         if test "$host_cpu" = ia64; then
9692           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9693           allow_undefined_flag="-z nodefs"
9694           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"
9695         else
9696          # Determine the default libpath from the value encoded in an
9697          # empty executable.
9698          if test "${lt_cv_aix_libpath+set}" = set; then
9699   aix_libpath=$lt_cv_aix_libpath
9700 else
9701   if ${lt_cv_aix_libpath_+:} false; then :
9702   $as_echo_n "(cached) " >&6
9703 else
9704   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9705 /* end confdefs.h.  */
9706
9707 int
9708 main ()
9709 {
9710
9711   ;
9712   return 0;
9713 }
9714 _ACEOF
9715 if ac_fn_c_try_link "$LINENO"; then :
9716
9717   lt_aix_libpath_sed='
9718       /Import File Strings/,/^$/ {
9719           /^0/ {
9720               s/^0  *\([^ ]*\) *$/\1/
9721               p
9722           }
9723       }'
9724   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9725   # Check for a 64-bit object if we didn't find anything.
9726   if test -z "$lt_cv_aix_libpath_"; then
9727     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9728   fi
9729 fi
9730 rm -f core conftest.err conftest.$ac_objext \
9731     conftest$ac_exeext conftest.$ac_ext
9732   if test -z "$lt_cv_aix_libpath_"; then
9733     lt_cv_aix_libpath_="/usr/lib:/lib"
9734   fi
9735
9736 fi
9737
9738   aix_libpath=$lt_cv_aix_libpath_
9739 fi
9740
9741          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9742           # Warning - without using the other run time loading flags,
9743           # -berok will link without error, but may produce a broken library.
9744           no_undefined_flag=' ${wl}-bernotok'
9745           allow_undefined_flag=' ${wl}-berok'
9746           if test "$with_gnu_ld" = yes; then
9747             # We only use this code for GNU lds that support --whole-archive.
9748             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9749           else
9750             # Exported symbols can be pulled into shared objects from archives
9751             whole_archive_flag_spec='$convenience'
9752           fi
9753           archive_cmds_need_lc=yes
9754           # This is similar to how AIX traditionally builds its shared libraries.
9755           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'
9756         fi
9757       fi
9758       ;;
9759
9760     amigaos*)
9761       case $host_cpu in
9762       powerpc)
9763             # see comment about AmigaOS4 .so support
9764             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9765             archive_expsym_cmds=''
9766         ;;
9767       m68k)
9768             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)'
9769             hardcode_libdir_flag_spec='-L$libdir'
9770             hardcode_minus_L=yes
9771         ;;
9772       esac
9773       ;;
9774
9775     bsdi[45]*)
9776       export_dynamic_flag_spec=-rdynamic
9777       ;;
9778
9779     cygwin* | mingw* | pw32* | cegcc*)
9780       # When not using gcc, we currently assume that we are using
9781       # Microsoft Visual C++.
9782       # hardcode_libdir_flag_spec is actually meaningless, as there is
9783       # no search path for DLLs.
9784       case $cc_basename in
9785       cl*)
9786         # Native MSVC
9787         hardcode_libdir_flag_spec=' '
9788         allow_undefined_flag=unsupported
9789         always_export_symbols=yes
9790         file_list_spec='@'
9791         # Tell ltmain to make .lib files, not .a files.
9792         libext=lib
9793         # Tell ltmain to make .dll files, not .so files.
9794         shrext_cmds=".dll"
9795         # FIXME: Setting linknames here is a bad hack.
9796         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9797         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9798             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9799           else
9800             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9801           fi~
9802           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9803           linknames='
9804         # The linker will not automatically build a static lib if we build a DLL.
9805         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9806         enable_shared_with_static_runtimes=yes
9807         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9808         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9809         # Don't use ranlib
9810         old_postinstall_cmds='chmod 644 $oldlib'
9811         postlink_cmds='lt_outputfile="@OUTPUT@"~
9812           lt_tool_outputfile="@TOOL_OUTPUT@"~
9813           case $lt_outputfile in
9814             *.exe|*.EXE) ;;
9815             *)
9816               lt_outputfile="$lt_outputfile.exe"
9817               lt_tool_outputfile="$lt_tool_outputfile.exe"
9818               ;;
9819           esac~
9820           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9821             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9822             $RM "$lt_outputfile.manifest";
9823           fi'
9824         ;;
9825       *)
9826         # Assume MSVC wrapper
9827         hardcode_libdir_flag_spec=' '
9828         allow_undefined_flag=unsupported
9829         # Tell ltmain to make .lib files, not .a files.
9830         libext=lib
9831         # Tell ltmain to make .dll files, not .so files.
9832         shrext_cmds=".dll"
9833         # FIXME: Setting linknames here is a bad hack.
9834         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9835         # The linker will automatically build a .lib file if we build a DLL.
9836         old_archive_from_new_cmds='true'
9837         # FIXME: Should let the user specify the lib program.
9838         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9839         enable_shared_with_static_runtimes=yes
9840         ;;
9841       esac
9842       ;;
9843
9844     darwin* | rhapsody*)
9845
9846
9847   archive_cmds_need_lc=no
9848   hardcode_direct=no
9849   hardcode_automatic=yes
9850   hardcode_shlibpath_var=unsupported
9851   if test "$lt_cv_ld_force_load" = "yes"; then
9852     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\"`'
9853
9854   else
9855     whole_archive_flag_spec=''
9856   fi
9857   link_all_deplibs=yes
9858   allow_undefined_flag="$_lt_dar_allow_undefined"
9859   case $cc_basename in
9860      ifort*) _lt_dar_can_shared=yes ;;
9861      *) _lt_dar_can_shared=$GCC ;;
9862   esac
9863   if test "$_lt_dar_can_shared" = "yes"; then
9864     output_verbose_link_cmd=func_echo_all
9865     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9866     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9867     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}"
9868     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}"
9869
9870   else
9871   ld_shlibs=no
9872   fi
9873
9874       ;;
9875
9876     dgux*)
9877       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9878       hardcode_libdir_flag_spec='-L$libdir'
9879       hardcode_shlibpath_var=no
9880       ;;
9881
9882     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9883     # support.  Future versions do this automatically, but an explicit c++rt0.o
9884     # does not break anything, and helps significantly (at the cost of a little
9885     # extra space).
9886     freebsd2.2*)
9887       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9888       hardcode_libdir_flag_spec='-R$libdir'
9889       hardcode_direct=yes
9890       hardcode_shlibpath_var=no
9891       ;;
9892
9893     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9894     freebsd2.*)
9895       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9896       hardcode_direct=yes
9897       hardcode_minus_L=yes
9898       hardcode_shlibpath_var=no
9899       ;;
9900
9901     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9902     freebsd* | dragonfly*)
9903       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9904       hardcode_libdir_flag_spec='-R$libdir'
9905       hardcode_direct=yes
9906       hardcode_shlibpath_var=no
9907       ;;
9908
9909     hpux9*)
9910       if test "$GCC" = yes; then
9911         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'
9912       else
9913         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'
9914       fi
9915       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9916       hardcode_libdir_separator=:
9917       hardcode_direct=yes
9918
9919       # hardcode_minus_L: Not really in the search PATH,
9920       # but as the default location of the library.
9921       hardcode_minus_L=yes
9922       export_dynamic_flag_spec='${wl}-E'
9923       ;;
9924
9925     hpux10*)
9926       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9927         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9928       else
9929         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9930       fi
9931       if test "$with_gnu_ld" = no; then
9932         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9933         hardcode_libdir_separator=:
9934         hardcode_direct=yes
9935         hardcode_direct_absolute=yes
9936         export_dynamic_flag_spec='${wl}-E'
9937         # hardcode_minus_L: Not really in the search PATH,
9938         # but as the default location of the library.
9939         hardcode_minus_L=yes
9940       fi
9941       ;;
9942
9943     hpux11*)
9944       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9945         case $host_cpu in
9946         hppa*64*)
9947           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9948           ;;
9949         ia64*)
9950           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9951           ;;
9952         *)
9953           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9954           ;;
9955         esac
9956       else
9957         case $host_cpu in
9958         hppa*64*)
9959           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9960           ;;
9961         ia64*)
9962           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9963           ;;
9964         *)
9965
9966           # Older versions of the 11.00 compiler do not understand -b yet
9967           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9968           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9969 $as_echo_n "checking if $CC understands -b... " >&6; }
9970 if ${lt_cv_prog_compiler__b+:} false; then :
9971   $as_echo_n "(cached) " >&6
9972 else
9973   lt_cv_prog_compiler__b=no
9974    save_LDFLAGS="$LDFLAGS"
9975    LDFLAGS="$LDFLAGS -b"
9976    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9977    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9978      # The linker can only warn and ignore the option if not recognized
9979      # So say no if there are warnings
9980      if test -s conftest.err; then
9981        # Append any errors to the config.log.
9982        cat conftest.err 1>&5
9983        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9984        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9985        if diff conftest.exp conftest.er2 >/dev/null; then
9986          lt_cv_prog_compiler__b=yes
9987        fi
9988      else
9989        lt_cv_prog_compiler__b=yes
9990      fi
9991    fi
9992    $RM -r conftest*
9993    LDFLAGS="$save_LDFLAGS"
9994
9995 fi
9996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9997 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9998
9999 if test x"$lt_cv_prog_compiler__b" = xyes; then
10000     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10001 else
10002     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10003 fi
10004
10005           ;;
10006         esac
10007       fi
10008       if test "$with_gnu_ld" = no; then
10009         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10010         hardcode_libdir_separator=:
10011
10012         case $host_cpu in
10013         hppa*64*|ia64*)
10014           hardcode_direct=no
10015           hardcode_shlibpath_var=no
10016           ;;
10017         *)
10018           hardcode_direct=yes
10019           hardcode_direct_absolute=yes
10020           export_dynamic_flag_spec='${wl}-E'
10021
10022           # hardcode_minus_L: Not really in the search PATH,
10023           # but as the default location of the library.
10024           hardcode_minus_L=yes
10025           ;;
10026         esac
10027       fi
10028       ;;
10029
10030     irix5* | irix6* | nonstopux*)
10031       if test "$GCC" = yes; then
10032         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'
10033         # Try to use the -exported_symbol ld option, if it does not
10034         # work, assume that -exports_file does not work either and
10035         # implicitly export all symbols.
10036         # This should be the same for all languages, so no per-tag cache variable.
10037         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10038 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10039 if ${lt_cv_irix_exported_symbol+:} false; then :
10040   $as_echo_n "(cached) " >&6
10041 else
10042   save_LDFLAGS="$LDFLAGS"
10043            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10044            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10045 /* end confdefs.h.  */
10046 int foo (void) { return 0; }
10047 _ACEOF
10048 if ac_fn_c_try_link "$LINENO"; then :
10049   lt_cv_irix_exported_symbol=yes
10050 else
10051   lt_cv_irix_exported_symbol=no
10052 fi
10053 rm -f core conftest.err conftest.$ac_objext \
10054     conftest$ac_exeext conftest.$ac_ext
10055            LDFLAGS="$save_LDFLAGS"
10056 fi
10057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10058 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10059         if test "$lt_cv_irix_exported_symbol" = yes; then
10060           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'
10061         fi
10062       else
10063         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'
10064         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'
10065       fi
10066       archive_cmds_need_lc='no'
10067       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10068       hardcode_libdir_separator=:
10069       inherit_rpath=yes
10070       link_all_deplibs=yes
10071       ;;
10072
10073     netbsd* | netbsdelf*-gnu)
10074       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10075         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10076       else
10077         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10078       fi
10079       hardcode_libdir_flag_spec='-R$libdir'
10080       hardcode_direct=yes
10081       hardcode_shlibpath_var=no
10082       ;;
10083
10084     newsos6)
10085       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10086       hardcode_direct=yes
10087       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10088       hardcode_libdir_separator=:
10089       hardcode_shlibpath_var=no
10090       ;;
10091
10092     *nto* | *qnx*)
10093       ;;
10094
10095     openbsd*)
10096       if test -f /usr/libexec/ld.so; then
10097         hardcode_direct=yes
10098         hardcode_shlibpath_var=no
10099         hardcode_direct_absolute=yes
10100         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10101           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10102           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10103           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10104           export_dynamic_flag_spec='${wl}-E'
10105         else
10106           case $host_os in
10107            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10108              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10109              hardcode_libdir_flag_spec='-R$libdir'
10110              ;;
10111            *)
10112              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10113              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10114              ;;
10115           esac
10116         fi
10117       else
10118         ld_shlibs=no
10119       fi
10120       ;;
10121
10122     os2*)
10123       hardcode_libdir_flag_spec='-L$libdir'
10124       hardcode_minus_L=yes
10125       allow_undefined_flag=unsupported
10126       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'
10127       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10128       ;;
10129
10130     osf3*)
10131       if test "$GCC" = yes; then
10132         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10133         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'
10134       else
10135         allow_undefined_flag=' -expect_unresolved \*'
10136         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'
10137       fi
10138       archive_cmds_need_lc='no'
10139       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10140       hardcode_libdir_separator=:
10141       ;;
10142
10143     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10144       if test "$GCC" = yes; then
10145         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10146         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'
10147         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10148       else
10149         allow_undefined_flag=' -expect_unresolved \*'
10150         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'
10151         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~
10152         $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'
10153
10154         # Both c and cxx compiler support -rpath directly
10155         hardcode_libdir_flag_spec='-rpath $libdir'
10156       fi
10157       archive_cmds_need_lc='no'
10158       hardcode_libdir_separator=:
10159       ;;
10160
10161     solaris*)
10162       no_undefined_flag=' -z defs'
10163       if test "$GCC" = yes; then
10164         wlarc='${wl}'
10165         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10166         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10167           $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'
10168       else
10169         case `$CC -V 2>&1` in
10170         *"Compilers 5.0"*)
10171           wlarc=''
10172           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10173           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10174           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10175           ;;
10176         *)
10177           wlarc='${wl}'
10178           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10179           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10180           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10181           ;;
10182         esac
10183       fi
10184       hardcode_libdir_flag_spec='-R$libdir'
10185       hardcode_shlibpath_var=no
10186       case $host_os in
10187       solaris2.[0-5] | solaris2.[0-5].*) ;;
10188       *)
10189         # The compiler driver will combine and reorder linker options,
10190         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10191         # but is careful enough not to reorder.
10192         # Supported since Solaris 2.6 (maybe 2.5.1?)
10193         if test "$GCC" = yes; then
10194           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10195         else
10196           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10197         fi
10198         ;;
10199       esac
10200       link_all_deplibs=yes
10201       ;;
10202
10203     sunos4*)
10204       if test "x$host_vendor" = xsequent; then
10205         # Use $CC to link under sequent, because it throws in some extra .o
10206         # files that make .init and .fini sections work.
10207         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10208       else
10209         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10210       fi
10211       hardcode_libdir_flag_spec='-L$libdir'
10212       hardcode_direct=yes
10213       hardcode_minus_L=yes
10214       hardcode_shlibpath_var=no
10215       ;;
10216
10217     sysv4)
10218       case $host_vendor in
10219         sni)
10220           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10221           hardcode_direct=yes # is this really true???
10222         ;;
10223         siemens)
10224           ## LD is ld it makes a PLAMLIB
10225           ## CC just makes a GrossModule.
10226           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10227           reload_cmds='$CC -r -o $output$reload_objs'
10228           hardcode_direct=no
10229         ;;
10230         motorola)
10231           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10232           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10233         ;;
10234       esac
10235       runpath_var='LD_RUN_PATH'
10236       hardcode_shlibpath_var=no
10237       ;;
10238
10239     sysv4.3*)
10240       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10241       hardcode_shlibpath_var=no
10242       export_dynamic_flag_spec='-Bexport'
10243       ;;
10244
10245     sysv4*MP*)
10246       if test -d /usr/nec; then
10247         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10248         hardcode_shlibpath_var=no
10249         runpath_var=LD_RUN_PATH
10250         hardcode_runpath_var=yes
10251         ld_shlibs=yes
10252       fi
10253       ;;
10254
10255     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10256       no_undefined_flag='${wl}-z,text'
10257       archive_cmds_need_lc=no
10258       hardcode_shlibpath_var=no
10259       runpath_var='LD_RUN_PATH'
10260
10261       if test "$GCC" = yes; then
10262         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10263         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10264       else
10265         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10266         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10267       fi
10268       ;;
10269
10270     sysv5* | sco3.2v5* | sco5v6*)
10271       # Note: We can NOT use -z defs as we might desire, because we do not
10272       # link with -lc, and that would cause any symbols used from libc to
10273       # always be unresolved, which means just about no library would
10274       # ever link correctly.  If we're not using GNU ld we use -z text
10275       # though, which does catch some bad symbols but isn't as heavy-handed
10276       # as -z defs.
10277       no_undefined_flag='${wl}-z,text'
10278       allow_undefined_flag='${wl}-z,nodefs'
10279       archive_cmds_need_lc=no
10280       hardcode_shlibpath_var=no
10281       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10282       hardcode_libdir_separator=':'
10283       link_all_deplibs=yes
10284       export_dynamic_flag_spec='${wl}-Bexport'
10285       runpath_var='LD_RUN_PATH'
10286
10287       if test "$GCC" = yes; then
10288         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10289         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10290       else
10291         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10292         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10293       fi
10294       ;;
10295
10296     uts4*)
10297       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10298       hardcode_libdir_flag_spec='-L$libdir'
10299       hardcode_shlibpath_var=no
10300       ;;
10301
10302     *)
10303       ld_shlibs=no
10304       ;;
10305     esac
10306
10307     if test x$host_vendor = xsni; then
10308       case $host in
10309       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10310         export_dynamic_flag_spec='${wl}-Blargedynsym'
10311         ;;
10312       esac
10313     fi
10314   fi
10315
10316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10317 $as_echo "$ld_shlibs" >&6; }
10318 test "$ld_shlibs" = no && can_build_shared=no
10319
10320 with_gnu_ld=$with_gnu_ld
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336 #
10337 # Do we need to explicitly link libc?
10338 #
10339 case "x$archive_cmds_need_lc" in
10340 x|xyes)
10341   # Assume -lc should be added
10342   archive_cmds_need_lc=yes
10343
10344   if test "$enable_shared" = yes && test "$GCC" = yes; then
10345     case $archive_cmds in
10346     *'~'*)
10347       # FIXME: we may have to deal with multi-command sequences.
10348       ;;
10349     '$CC '*)
10350       # Test whether the compiler implicitly links with -lc since on some
10351       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10352       # to ld, don't add -lc before -lgcc.
10353       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10354 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10355 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10356   $as_echo_n "(cached) " >&6
10357 else
10358   $RM conftest*
10359         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10360
10361         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10362   (eval $ac_compile) 2>&5
10363   ac_status=$?
10364   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10365   test $ac_status = 0; } 2>conftest.err; then
10366           soname=conftest
10367           lib=conftest
10368           libobjs=conftest.$ac_objext
10369           deplibs=
10370           wl=$lt_prog_compiler_wl
10371           pic_flag=$lt_prog_compiler_pic
10372           compiler_flags=-v
10373           linker_flags=-v
10374           verstring=
10375           output_objdir=.
10376           libname=conftest
10377           lt_save_allow_undefined_flag=$allow_undefined_flag
10378           allow_undefined_flag=
10379           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10380   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10381   ac_status=$?
10382   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10383   test $ac_status = 0; }
10384           then
10385             lt_cv_archive_cmds_need_lc=no
10386           else
10387             lt_cv_archive_cmds_need_lc=yes
10388           fi
10389           allow_undefined_flag=$lt_save_allow_undefined_flag
10390         else
10391           cat conftest.err 1>&5
10392         fi
10393         $RM conftest*
10394
10395 fi
10396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10397 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10398       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10399       ;;
10400     esac
10401   fi
10402   ;;
10403 esac
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10557 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10558
10559 if test "$GCC" = yes; then
10560   case $host_os in
10561     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10562     *) lt_awk_arg="/^libraries:/" ;;
10563   esac
10564   case $host_os in
10565     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10566     *) lt_sed_strip_eq="s,=/,/,g" ;;
10567   esac
10568   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10569   case $lt_search_path_spec in
10570   *\;*)
10571     # if the path contains ";" then we assume it to be the separator
10572     # otherwise default to the standard path separator (i.e. ":") - it is
10573     # assumed that no part of a normal pathname contains ";" but that should
10574     # okay in the real world where ";" in dirpaths is itself problematic.
10575     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10576     ;;
10577   *)
10578     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10579     ;;
10580   esac
10581   # Ok, now we have the path, separated by spaces, we can step through it
10582   # and add multilib dir if necessary.
10583   lt_tmp_lt_search_path_spec=
10584   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10585   for lt_sys_path in $lt_search_path_spec; do
10586     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10587       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10588     else
10589       test -d "$lt_sys_path" && \
10590         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10591     fi
10592   done
10593   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10594 BEGIN {RS=" "; FS="/|\n";} {
10595   lt_foo="";
10596   lt_count=0;
10597   for (lt_i = NF; lt_i > 0; lt_i--) {
10598     if ($lt_i != "" && $lt_i != ".") {
10599       if ($lt_i == "..") {
10600         lt_count++;
10601       } else {
10602         if (lt_count == 0) {
10603           lt_foo="/" $lt_i lt_foo;
10604         } else {
10605           lt_count--;
10606         }
10607       }
10608     }
10609   }
10610   if (lt_foo != "") { lt_freq[lt_foo]++; }
10611   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10612 }'`
10613   # AWK program above erroneously prepends '/' to C:/dos/paths
10614   # for these hosts.
10615   case $host_os in
10616     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10617       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10618   esac
10619   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10620 else
10621   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10622 fi
10623 library_names_spec=
10624 libname_spec='lib$name'
10625 soname_spec=
10626 shrext_cmds=".so"
10627 postinstall_cmds=
10628 postuninstall_cmds=
10629 finish_cmds=
10630 finish_eval=
10631 shlibpath_var=
10632 shlibpath_overrides_runpath=unknown
10633 version_type=none
10634 dynamic_linker="$host_os ld.so"
10635 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10636 need_lib_prefix=unknown
10637 hardcode_into_libs=no
10638
10639 # when you set need_version to no, make sure it does not cause -set_version
10640 # flags to be left without arguments
10641 need_version=unknown
10642
10643 case $host_os in
10644 aix3*)
10645   version_type=linux # correct to gnu/linux during the next big refactor
10646   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10647   shlibpath_var=LIBPATH
10648
10649   # AIX 3 has no versioning support, so we append a major version to the name.
10650   soname_spec='${libname}${release}${shared_ext}$major'
10651   ;;
10652
10653 aix[4-9]*)
10654   version_type=linux # correct to gnu/linux during the next big refactor
10655   need_lib_prefix=no
10656   need_version=no
10657   hardcode_into_libs=yes
10658   if test "$host_cpu" = ia64; then
10659     # AIX 5 supports IA64
10660     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10661     shlibpath_var=LD_LIBRARY_PATH
10662   else
10663     # With GCC up to 2.95.x, collect2 would create an import file
10664     # for dependence libraries.  The import file would start with
10665     # the line `#! .'.  This would cause the generated library to
10666     # depend on `.', always an invalid library.  This was fixed in
10667     # development snapshots of GCC prior to 3.0.
10668     case $host_os in
10669       aix4 | aix4.[01] | aix4.[01].*)
10670       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10671            echo ' yes '
10672            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10673         :
10674       else
10675         can_build_shared=no
10676       fi
10677       ;;
10678     esac
10679     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10680     # soname into executable. Probably we can add versioning support to
10681     # collect2, so additional links can be useful in future.
10682     if test "$aix_use_runtimelinking" = yes; then
10683       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10684       # instead of lib<name>.a to let people know that these are not
10685       # typical AIX shared libraries.
10686       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10687     else
10688       # We preserve .a as extension for shared libraries through AIX4.2
10689       # and later when we are not doing run time linking.
10690       library_names_spec='${libname}${release}.a $libname.a'
10691       soname_spec='${libname}${release}${shared_ext}$major'
10692     fi
10693     shlibpath_var=LIBPATH
10694   fi
10695   ;;
10696
10697 amigaos*)
10698   case $host_cpu in
10699   powerpc)
10700     # Since July 2007 AmigaOS4 officially supports .so libraries.
10701     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10702     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10703     ;;
10704   m68k)
10705     library_names_spec='$libname.ixlibrary $libname.a'
10706     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10707     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'
10708     ;;
10709   esac
10710   ;;
10711
10712 beos*)
10713   library_names_spec='${libname}${shared_ext}'
10714   dynamic_linker="$host_os ld.so"
10715   shlibpath_var=LIBRARY_PATH
10716   ;;
10717
10718 bsdi[45]*)
10719   version_type=linux # correct to gnu/linux during the next big refactor
10720   need_version=no
10721   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10722   soname_spec='${libname}${release}${shared_ext}$major'
10723   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10724   shlibpath_var=LD_LIBRARY_PATH
10725   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10726   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10727   # the default ld.so.conf also contains /usr/contrib/lib and
10728   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10729   # libtool to hard-code these into programs
10730   ;;
10731
10732 cygwin* | mingw* | pw32* | cegcc*)
10733   version_type=windows
10734   shrext_cmds=".dll"
10735   need_version=no
10736   need_lib_prefix=no
10737
10738   case $GCC,$cc_basename in
10739   yes,*)
10740     # gcc
10741     library_names_spec='$libname.dll.a'
10742     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10743     postinstall_cmds='base_file=`basename \${file}`~
10744       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10745       dldir=$destdir/`dirname \$dlpath`~
10746       test -d \$dldir || mkdir -p \$dldir~
10747       $install_prog $dir/$dlname \$dldir/$dlname~
10748       chmod a+x \$dldir/$dlname~
10749       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10750         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10751       fi'
10752     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10753       dlpath=$dir/\$dldll~
10754        $RM \$dlpath'
10755     shlibpath_overrides_runpath=yes
10756
10757     case $host_os in
10758     cygwin*)
10759       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10760       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10761
10762       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10763       ;;
10764     mingw* | cegcc*)
10765       # MinGW DLLs use traditional 'lib' prefix
10766       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10767       ;;
10768     pw32*)
10769       # pw32 DLLs use 'pw' prefix rather than 'lib'
10770       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10771       ;;
10772     esac
10773     dynamic_linker='Win32 ld.exe'
10774     ;;
10775
10776   *,cl*)
10777     # Native MSVC
10778     libname_spec='$name'
10779     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10780     library_names_spec='${libname}.dll.lib'
10781
10782     case $build_os in
10783     mingw*)
10784       sys_lib_search_path_spec=
10785       lt_save_ifs=$IFS
10786       IFS=';'
10787       for lt_path in $LIB
10788       do
10789         IFS=$lt_save_ifs
10790         # Let DOS variable expansion print the short 8.3 style file name.
10791         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10792         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10793       done
10794       IFS=$lt_save_ifs
10795       # Convert to MSYS style.
10796       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10797       ;;
10798     cygwin*)
10799       # Convert to unix form, then to dos form, then back to unix form
10800       # but this time dos style (no spaces!) so that the unix form looks
10801       # like /cygdrive/c/PROGRA~1:/cygdr...
10802       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10803       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10804       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10805       ;;
10806     *)
10807       sys_lib_search_path_spec="$LIB"
10808       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10809         # It is most probably a Windows format PATH.
10810         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10811       else
10812         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10813       fi
10814       # FIXME: find the short name or the path components, as spaces are
10815       # common. (e.g. "Program Files" -> "PROGRA~1")
10816       ;;
10817     esac
10818
10819     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10820     postinstall_cmds='base_file=`basename \${file}`~
10821       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10822       dldir=$destdir/`dirname \$dlpath`~
10823       test -d \$dldir || mkdir -p \$dldir~
10824       $install_prog $dir/$dlname \$dldir/$dlname'
10825     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10826       dlpath=$dir/\$dldll~
10827        $RM \$dlpath'
10828     shlibpath_overrides_runpath=yes
10829     dynamic_linker='Win32 link.exe'
10830     ;;
10831
10832   *)
10833     # Assume MSVC wrapper
10834     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10835     dynamic_linker='Win32 ld.exe'
10836     ;;
10837   esac
10838   # FIXME: first we should search . and the directory the executable is in
10839   shlibpath_var=PATH
10840   ;;
10841
10842 darwin* | rhapsody*)
10843   dynamic_linker="$host_os dyld"
10844   version_type=darwin
10845   need_lib_prefix=no
10846   need_version=no
10847   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10848   soname_spec='${libname}${release}${major}$shared_ext'
10849   shlibpath_overrides_runpath=yes
10850   shlibpath_var=DYLD_LIBRARY_PATH
10851   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10852
10853   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10854   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10855   ;;
10856
10857 dgux*)
10858   version_type=linux # correct to gnu/linux during the next big refactor
10859   need_lib_prefix=no
10860   need_version=no
10861   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10862   soname_spec='${libname}${release}${shared_ext}$major'
10863   shlibpath_var=LD_LIBRARY_PATH
10864   ;;
10865
10866 freebsd* | dragonfly*)
10867   # DragonFly does not have aout.  When/if they implement a new
10868   # versioning mechanism, adjust this.
10869   if test -x /usr/bin/objformat; then
10870     objformat=`/usr/bin/objformat`
10871   else
10872     case $host_os in
10873     freebsd[23].*) objformat=aout ;;
10874     *) objformat=elf ;;
10875     esac
10876   fi
10877   version_type=freebsd-$objformat
10878   case $version_type in
10879     freebsd-elf*)
10880       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10881       need_version=no
10882       need_lib_prefix=no
10883       ;;
10884     freebsd-*)
10885       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10886       need_version=yes
10887       ;;
10888   esac
10889   shlibpath_var=LD_LIBRARY_PATH
10890   case $host_os in
10891   freebsd2.*)
10892     shlibpath_overrides_runpath=yes
10893     ;;
10894   freebsd3.[01]* | freebsdelf3.[01]*)
10895     shlibpath_overrides_runpath=yes
10896     hardcode_into_libs=yes
10897     ;;
10898   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10899   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10900     shlibpath_overrides_runpath=no
10901     hardcode_into_libs=yes
10902     ;;
10903   *) # from 4.6 on, and DragonFly
10904     shlibpath_overrides_runpath=yes
10905     hardcode_into_libs=yes
10906     ;;
10907   esac
10908   ;;
10909
10910 gnu*)
10911   version_type=linux # correct to gnu/linux during the next big refactor
10912   need_lib_prefix=no
10913   need_version=no
10914   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10915   soname_spec='${libname}${release}${shared_ext}$major'
10916   shlibpath_var=LD_LIBRARY_PATH
10917   shlibpath_overrides_runpath=no
10918   hardcode_into_libs=yes
10919   ;;
10920
10921 haiku*)
10922   version_type=linux # correct to gnu/linux during the next big refactor
10923   need_lib_prefix=no
10924   need_version=no
10925   dynamic_linker="$host_os runtime_loader"
10926   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10927   soname_spec='${libname}${release}${shared_ext}$major'
10928   shlibpath_var=LIBRARY_PATH
10929   shlibpath_overrides_runpath=yes
10930   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10931   hardcode_into_libs=yes
10932   ;;
10933
10934 hpux9* | hpux10* | hpux11*)
10935   # Give a soname corresponding to the major version so that dld.sl refuses to
10936   # link against other versions.
10937   version_type=sunos
10938   need_lib_prefix=no
10939   need_version=no
10940   case $host_cpu in
10941   ia64*)
10942     shrext_cmds='.so'
10943     hardcode_into_libs=yes
10944     dynamic_linker="$host_os dld.so"
10945     shlibpath_var=LD_LIBRARY_PATH
10946     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10947     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10948     soname_spec='${libname}${release}${shared_ext}$major'
10949     if test "X$HPUX_IA64_MODE" = X32; then
10950       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10951     else
10952       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10953     fi
10954     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10955     ;;
10956   hppa*64*)
10957     shrext_cmds='.sl'
10958     hardcode_into_libs=yes
10959     dynamic_linker="$host_os dld.sl"
10960     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10961     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10962     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10963     soname_spec='${libname}${release}${shared_ext}$major'
10964     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10965     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10966     ;;
10967   *)
10968     shrext_cmds='.sl'
10969     dynamic_linker="$host_os dld.sl"
10970     shlibpath_var=SHLIB_PATH
10971     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10972     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10973     soname_spec='${libname}${release}${shared_ext}$major'
10974     ;;
10975   esac
10976   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10977   postinstall_cmds='chmod 555 $lib'
10978   # or fails outright, so override atomically:
10979   install_override_mode=555
10980   ;;
10981
10982 interix[3-9]*)
10983   version_type=linux # correct to gnu/linux during the next big refactor
10984   need_lib_prefix=no
10985   need_version=no
10986   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10987   soname_spec='${libname}${release}${shared_ext}$major'
10988   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10989   shlibpath_var=LD_LIBRARY_PATH
10990   shlibpath_overrides_runpath=no
10991   hardcode_into_libs=yes
10992   ;;
10993
10994 irix5* | irix6* | nonstopux*)
10995   case $host_os in
10996     nonstopux*) version_type=nonstopux ;;
10997     *)
10998         if test "$lt_cv_prog_gnu_ld" = yes; then
10999                 version_type=linux # correct to gnu/linux during the next big refactor
11000         else
11001                 version_type=irix
11002         fi ;;
11003   esac
11004   need_lib_prefix=no
11005   need_version=no
11006   soname_spec='${libname}${release}${shared_ext}$major'
11007   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11008   case $host_os in
11009   irix5* | nonstopux*)
11010     libsuff= shlibsuff=
11011     ;;
11012   *)
11013     case $LD in # libtool.m4 will add one of these switches to LD
11014     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11015       libsuff= shlibsuff= libmagic=32-bit;;
11016     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11017       libsuff=32 shlibsuff=N32 libmagic=N32;;
11018     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11019       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11020     *) libsuff= shlibsuff= libmagic=never-match;;
11021     esac
11022     ;;
11023   esac
11024   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11025   shlibpath_overrides_runpath=no
11026   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11027   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11028   hardcode_into_libs=yes
11029   ;;
11030
11031 # No shared lib support for Linux oldld, aout, or coff.
11032 linux*oldld* | linux*aout* | linux*coff*)
11033   dynamic_linker=no
11034   ;;
11035
11036 # This must be glibc/ELF.
11037 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11038   version_type=linux # correct to gnu/linux during the next big refactor
11039   need_lib_prefix=no
11040   need_version=no
11041   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11042   soname_spec='${libname}${release}${shared_ext}$major'
11043   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11044   shlibpath_var=LD_LIBRARY_PATH
11045   shlibpath_overrides_runpath=no
11046
11047   # Some binutils ld are patched to set DT_RUNPATH
11048   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11049   $as_echo_n "(cached) " >&6
11050 else
11051   lt_cv_shlibpath_overrides_runpath=no
11052     save_LDFLAGS=$LDFLAGS
11053     save_libdir=$libdir
11054     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11055          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11056     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11057 /* end confdefs.h.  */
11058
11059 int
11060 main ()
11061 {
11062
11063   ;
11064   return 0;
11065 }
11066 _ACEOF
11067 if ac_fn_c_try_link "$LINENO"; then :
11068   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11069   lt_cv_shlibpath_overrides_runpath=yes
11070 fi
11071 fi
11072 rm -f core conftest.err conftest.$ac_objext \
11073     conftest$ac_exeext conftest.$ac_ext
11074     LDFLAGS=$save_LDFLAGS
11075     libdir=$save_libdir
11076
11077 fi
11078
11079   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11080
11081   # This implies no fast_install, which is unacceptable.
11082   # Some rework will be needed to allow for fast_install
11083   # before this can be enabled.
11084   hardcode_into_libs=yes
11085
11086   # Append ld.so.conf contents to the search path
11087   if test -f /etc/ld.so.conf; then
11088     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' ' '`
11089     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11090   fi
11091
11092   # We used to test for /lib/ld.so.1 and disable shared libraries on
11093   # powerpc, because MkLinux only supported shared libraries with the
11094   # GNU dynamic linker.  Since this was broken with cross compilers,
11095   # most powerpc-linux boxes support dynamic linking these days and
11096   # people can always --disable-shared, the test was removed, and we
11097   # assume the GNU/Linux dynamic linker is in use.
11098   dynamic_linker='GNU/Linux ld.so'
11099   ;;
11100
11101 netbsdelf*-gnu)
11102   version_type=linux
11103   need_lib_prefix=no
11104   need_version=no
11105   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11106   soname_spec='${libname}${release}${shared_ext}$major'
11107   shlibpath_var=LD_LIBRARY_PATH
11108   shlibpath_overrides_runpath=no
11109   hardcode_into_libs=yes
11110   dynamic_linker='NetBSD ld.elf_so'
11111   ;;
11112
11113 netbsd*)
11114   version_type=sunos
11115   need_lib_prefix=no
11116   need_version=no
11117   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11118     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11119     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11120     dynamic_linker='NetBSD (a.out) ld.so'
11121   else
11122     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11123     soname_spec='${libname}${release}${shared_ext}$major'
11124     dynamic_linker='NetBSD ld.elf_so'
11125   fi
11126   shlibpath_var=LD_LIBRARY_PATH
11127   shlibpath_overrides_runpath=yes
11128   hardcode_into_libs=yes
11129   ;;
11130
11131 newsos6)
11132   version_type=linux # correct to gnu/linux during the next big refactor
11133   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11134   shlibpath_var=LD_LIBRARY_PATH
11135   shlibpath_overrides_runpath=yes
11136   ;;
11137
11138 *nto* | *qnx*)
11139   version_type=qnx
11140   need_lib_prefix=no
11141   need_version=no
11142   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11143   soname_spec='${libname}${release}${shared_ext}$major'
11144   shlibpath_var=LD_LIBRARY_PATH
11145   shlibpath_overrides_runpath=no
11146   hardcode_into_libs=yes
11147   dynamic_linker='ldqnx.so'
11148   ;;
11149
11150 openbsd*)
11151   version_type=sunos
11152   sys_lib_dlsearch_path_spec="/usr/lib"
11153   need_lib_prefix=no
11154   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11155   case $host_os in
11156     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11157     *)                          need_version=no  ;;
11158   esac
11159   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11160   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11161   shlibpath_var=LD_LIBRARY_PATH
11162   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11163     case $host_os in
11164       openbsd2.[89] | openbsd2.[89].*)
11165         shlibpath_overrides_runpath=no
11166         ;;
11167       *)
11168         shlibpath_overrides_runpath=yes
11169         ;;
11170       esac
11171   else
11172     shlibpath_overrides_runpath=yes
11173   fi
11174   ;;
11175
11176 os2*)
11177   libname_spec='$name'
11178   shrext_cmds=".dll"
11179   need_lib_prefix=no
11180   library_names_spec='$libname${shared_ext} $libname.a'
11181   dynamic_linker='OS/2 ld.exe'
11182   shlibpath_var=LIBPATH
11183   ;;
11184
11185 osf3* | osf4* | osf5*)
11186   version_type=osf
11187   need_lib_prefix=no
11188   need_version=no
11189   soname_spec='${libname}${release}${shared_ext}$major'
11190   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11191   shlibpath_var=LD_LIBRARY_PATH
11192   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11193   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11194   ;;
11195
11196 rdos*)
11197   dynamic_linker=no
11198   ;;
11199
11200 solaris*)
11201   version_type=linux # correct to gnu/linux during the next big refactor
11202   need_lib_prefix=no
11203   need_version=no
11204   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11205   soname_spec='${libname}${release}${shared_ext}$major'
11206   shlibpath_var=LD_LIBRARY_PATH
11207   shlibpath_overrides_runpath=yes
11208   hardcode_into_libs=yes
11209   # ldd complains unless libraries are executable
11210   postinstall_cmds='chmod +x $lib'
11211   ;;
11212
11213 sunos4*)
11214   version_type=sunos
11215   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11216   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11217   shlibpath_var=LD_LIBRARY_PATH
11218   shlibpath_overrides_runpath=yes
11219   if test "$with_gnu_ld" = yes; then
11220     need_lib_prefix=no
11221   fi
11222   need_version=yes
11223   ;;
11224
11225 sysv4 | sysv4.3*)
11226   version_type=linux # correct to gnu/linux during the next big refactor
11227   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11228   soname_spec='${libname}${release}${shared_ext}$major'
11229   shlibpath_var=LD_LIBRARY_PATH
11230   case $host_vendor in
11231     sni)
11232       shlibpath_overrides_runpath=no
11233       need_lib_prefix=no
11234       runpath_var=LD_RUN_PATH
11235       ;;
11236     siemens)
11237       need_lib_prefix=no
11238       ;;
11239     motorola)
11240       need_lib_prefix=no
11241       need_version=no
11242       shlibpath_overrides_runpath=no
11243       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11244       ;;
11245   esac
11246   ;;
11247
11248 sysv4*MP*)
11249   if test -d /usr/nec ;then
11250     version_type=linux # correct to gnu/linux during the next big refactor
11251     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11252     soname_spec='$libname${shared_ext}.$major'
11253     shlibpath_var=LD_LIBRARY_PATH
11254   fi
11255   ;;
11256
11257 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11258   version_type=freebsd-elf
11259   need_lib_prefix=no
11260   need_version=no
11261   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11262   soname_spec='${libname}${release}${shared_ext}$major'
11263   shlibpath_var=LD_LIBRARY_PATH
11264   shlibpath_overrides_runpath=yes
11265   hardcode_into_libs=yes
11266   if test "$with_gnu_ld" = yes; then
11267     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11268   else
11269     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11270     case $host_os in
11271       sco3.2v5*)
11272         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11273         ;;
11274     esac
11275   fi
11276   sys_lib_dlsearch_path_spec='/usr/lib'
11277   ;;
11278
11279 tpf*)
11280   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11281   version_type=linux # correct to gnu/linux during the next big refactor
11282   need_lib_prefix=no
11283   need_version=no
11284   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11285   shlibpath_var=LD_LIBRARY_PATH
11286   shlibpath_overrides_runpath=no
11287   hardcode_into_libs=yes
11288   ;;
11289
11290 uts4*)
11291   version_type=linux # correct to gnu/linux during the next big refactor
11292   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11293   soname_spec='${libname}${release}${shared_ext}$major'
11294   shlibpath_var=LD_LIBRARY_PATH
11295   ;;
11296
11297 *)
11298   dynamic_linker=no
11299   ;;
11300 esac
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11302 $as_echo "$dynamic_linker" >&6; }
11303 test "$dynamic_linker" = no && can_build_shared=no
11304
11305 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11306 if test "$GCC" = yes; then
11307   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11308 fi
11309
11310 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11311   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11312 fi
11313 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11314   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11315 fi
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11409 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11410 hardcode_action=
11411 if test -n "$hardcode_libdir_flag_spec" ||
11412    test -n "$runpath_var" ||
11413    test "X$hardcode_automatic" = "Xyes" ; then
11414
11415   # We can hardcode non-existent directories.
11416   if test "$hardcode_direct" != no &&
11417      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11418      # have to relink, otherwise we might link with an installed library
11419      # when we should be linking with a yet-to-be-installed one
11420      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11421      test "$hardcode_minus_L" != no; then
11422     # Linking always hardcodes the temporary library directory.
11423     hardcode_action=relink
11424   else
11425     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11426     hardcode_action=immediate
11427   fi
11428 else
11429   # We cannot hardcode anything, or else we can only hardcode existing
11430   # directories.
11431   hardcode_action=unsupported
11432 fi
11433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11434 $as_echo "$hardcode_action" >&6; }
11435
11436 if test "$hardcode_action" = relink ||
11437    test "$inherit_rpath" = yes; then
11438   # Fast installation is not supported
11439   enable_fast_install=no
11440 elif test "$shlibpath_overrides_runpath" = yes ||
11441      test "$enable_shared" = no; then
11442   # Fast installation is not necessary
11443   enable_fast_install=needless
11444 fi
11445
11446
11447
11448
11449
11450
11451   if test "x$enable_dlopen" != xyes; then
11452   enable_dlopen=unknown
11453   enable_dlopen_self=unknown
11454   enable_dlopen_self_static=unknown
11455 else
11456   lt_cv_dlopen=no
11457   lt_cv_dlopen_libs=
11458
11459   case $host_os in
11460   beos*)
11461     lt_cv_dlopen="load_add_on"
11462     lt_cv_dlopen_libs=
11463     lt_cv_dlopen_self=yes
11464     ;;
11465
11466   mingw* | pw32* | cegcc*)
11467     lt_cv_dlopen="LoadLibrary"
11468     lt_cv_dlopen_libs=
11469     ;;
11470
11471   cygwin*)
11472     lt_cv_dlopen="dlopen"
11473     lt_cv_dlopen_libs=
11474     ;;
11475
11476   darwin*)
11477   # if libdl is installed we need to link against it
11478     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11479 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11480 if ${ac_cv_lib_dl_dlopen+:} false; then :
11481   $as_echo_n "(cached) " >&6
11482 else
11483   ac_check_lib_save_LIBS=$LIBS
11484 LIBS="-ldl  $LIBS"
11485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11486 /* end confdefs.h.  */
11487
11488 /* Override any GCC internal prototype to avoid an error.
11489    Use char because int might match the return type of a GCC
11490    builtin and then its argument prototype would still apply.  */
11491 #ifdef __cplusplus
11492 extern "C"
11493 #endif
11494 char dlopen ();
11495 int
11496 main ()
11497 {
11498 return dlopen ();
11499   ;
11500   return 0;
11501 }
11502 _ACEOF
11503 if ac_fn_c_try_link "$LINENO"; then :
11504   ac_cv_lib_dl_dlopen=yes
11505 else
11506   ac_cv_lib_dl_dlopen=no
11507 fi
11508 rm -f core conftest.err conftest.$ac_objext \
11509     conftest$ac_exeext conftest.$ac_ext
11510 LIBS=$ac_check_lib_save_LIBS
11511 fi
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11513 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11514 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11515   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11516 else
11517
11518     lt_cv_dlopen="dyld"
11519     lt_cv_dlopen_libs=
11520     lt_cv_dlopen_self=yes
11521
11522 fi
11523
11524     ;;
11525
11526   *)
11527     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11528 if test "x$ac_cv_func_shl_load" = xyes; then :
11529   lt_cv_dlopen="shl_load"
11530 else
11531   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11532 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11533 if ${ac_cv_lib_dld_shl_load+:} false; then :
11534   $as_echo_n "(cached) " >&6
11535 else
11536   ac_check_lib_save_LIBS=$LIBS
11537 LIBS="-ldld  $LIBS"
11538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11539 /* end confdefs.h.  */
11540
11541 /* Override any GCC internal prototype to avoid an error.
11542    Use char because int might match the return type of a GCC
11543    builtin and then its argument prototype would still apply.  */
11544 #ifdef __cplusplus
11545 extern "C"
11546 #endif
11547 char shl_load ();
11548 int
11549 main ()
11550 {
11551 return shl_load ();
11552   ;
11553   return 0;
11554 }
11555 _ACEOF
11556 if ac_fn_c_try_link "$LINENO"; then :
11557   ac_cv_lib_dld_shl_load=yes
11558 else
11559   ac_cv_lib_dld_shl_load=no
11560 fi
11561 rm -f core conftest.err conftest.$ac_objext \
11562     conftest$ac_exeext conftest.$ac_ext
11563 LIBS=$ac_check_lib_save_LIBS
11564 fi
11565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11566 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11567 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11568   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11569 else
11570   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11571 if test "x$ac_cv_func_dlopen" = xyes; then :
11572   lt_cv_dlopen="dlopen"
11573 else
11574   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11575 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11576 if ${ac_cv_lib_dl_dlopen+:} false; then :
11577   $as_echo_n "(cached) " >&6
11578 else
11579   ac_check_lib_save_LIBS=$LIBS
11580 LIBS="-ldl  $LIBS"
11581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11582 /* end confdefs.h.  */
11583
11584 /* Override any GCC internal prototype to avoid an error.
11585    Use char because int might match the return type of a GCC
11586    builtin and then its argument prototype would still apply.  */
11587 #ifdef __cplusplus
11588 extern "C"
11589 #endif
11590 char dlopen ();
11591 int
11592 main ()
11593 {
11594 return dlopen ();
11595   ;
11596   return 0;
11597 }
11598 _ACEOF
11599 if ac_fn_c_try_link "$LINENO"; then :
11600   ac_cv_lib_dl_dlopen=yes
11601 else
11602   ac_cv_lib_dl_dlopen=no
11603 fi
11604 rm -f core conftest.err conftest.$ac_objext \
11605     conftest$ac_exeext conftest.$ac_ext
11606 LIBS=$ac_check_lib_save_LIBS
11607 fi
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11609 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11610 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11611   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11612 else
11613   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11614 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11615 if ${ac_cv_lib_svld_dlopen+:} false; then :
11616   $as_echo_n "(cached) " >&6
11617 else
11618   ac_check_lib_save_LIBS=$LIBS
11619 LIBS="-lsvld  $LIBS"
11620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11621 /* end confdefs.h.  */
11622
11623 /* Override any GCC internal prototype to avoid an error.
11624    Use char because int might match the return type of a GCC
11625    builtin and then its argument prototype would still apply.  */
11626 #ifdef __cplusplus
11627 extern "C"
11628 #endif
11629 char dlopen ();
11630 int
11631 main ()
11632 {
11633 return dlopen ();
11634   ;
11635   return 0;
11636 }
11637 _ACEOF
11638 if ac_fn_c_try_link "$LINENO"; then :
11639   ac_cv_lib_svld_dlopen=yes
11640 else
11641   ac_cv_lib_svld_dlopen=no
11642 fi
11643 rm -f core conftest.err conftest.$ac_objext \
11644     conftest$ac_exeext conftest.$ac_ext
11645 LIBS=$ac_check_lib_save_LIBS
11646 fi
11647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11648 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11649 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11650   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11651 else
11652   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11653 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11654 if ${ac_cv_lib_dld_dld_link+:} false; then :
11655   $as_echo_n "(cached) " >&6
11656 else
11657   ac_check_lib_save_LIBS=$LIBS
11658 LIBS="-ldld  $LIBS"
11659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11660 /* end confdefs.h.  */
11661
11662 /* Override any GCC internal prototype to avoid an error.
11663    Use char because int might match the return type of a GCC
11664    builtin and then its argument prototype would still apply.  */
11665 #ifdef __cplusplus
11666 extern "C"
11667 #endif
11668 char dld_link ();
11669 int
11670 main ()
11671 {
11672 return dld_link ();
11673   ;
11674   return 0;
11675 }
11676 _ACEOF
11677 if ac_fn_c_try_link "$LINENO"; then :
11678   ac_cv_lib_dld_dld_link=yes
11679 else
11680   ac_cv_lib_dld_dld_link=no
11681 fi
11682 rm -f core conftest.err conftest.$ac_objext \
11683     conftest$ac_exeext conftest.$ac_ext
11684 LIBS=$ac_check_lib_save_LIBS
11685 fi
11686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11687 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11688 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11689   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11690 fi
11691
11692
11693 fi
11694
11695
11696 fi
11697
11698
11699 fi
11700
11701
11702 fi
11703
11704
11705 fi
11706
11707     ;;
11708   esac
11709
11710   if test "x$lt_cv_dlopen" != xno; then
11711     enable_dlopen=yes
11712   else
11713     enable_dlopen=no
11714   fi
11715
11716   case $lt_cv_dlopen in
11717   dlopen)
11718     save_CPPFLAGS="$CPPFLAGS"
11719     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11720
11721     save_LDFLAGS="$LDFLAGS"
11722     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11723
11724     save_LIBS="$LIBS"
11725     LIBS="$lt_cv_dlopen_libs $LIBS"
11726
11727     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11728 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11729 if ${lt_cv_dlopen_self+:} false; then :
11730   $as_echo_n "(cached) " >&6
11731 else
11732           if test "$cross_compiling" = yes; then :
11733   lt_cv_dlopen_self=cross
11734 else
11735   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11736   lt_status=$lt_dlunknown
11737   cat > conftest.$ac_ext <<_LT_EOF
11738 #line $LINENO "configure"
11739 #include "confdefs.h"
11740
11741 #if HAVE_DLFCN_H
11742 #include <dlfcn.h>
11743 #endif
11744
11745 #include <stdio.h>
11746
11747 #ifdef RTLD_GLOBAL
11748 #  define LT_DLGLOBAL           RTLD_GLOBAL
11749 #else
11750 #  ifdef DL_GLOBAL
11751 #    define LT_DLGLOBAL         DL_GLOBAL
11752 #  else
11753 #    define LT_DLGLOBAL         0
11754 #  endif
11755 #endif
11756
11757 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11758    find out it does not work in some platform. */
11759 #ifndef LT_DLLAZY_OR_NOW
11760 #  ifdef RTLD_LAZY
11761 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11762 #  else
11763 #    ifdef DL_LAZY
11764 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11765 #    else
11766 #      ifdef RTLD_NOW
11767 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11768 #      else
11769 #        ifdef DL_NOW
11770 #          define LT_DLLAZY_OR_NOW      DL_NOW
11771 #        else
11772 #          define LT_DLLAZY_OR_NOW      0
11773 #        endif
11774 #      endif
11775 #    endif
11776 #  endif
11777 #endif
11778
11779 /* When -fvisbility=hidden is used, assume the code has been annotated
11780    correspondingly for the symbols needed.  */
11781 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11782 int fnord () __attribute__((visibility("default")));
11783 #endif
11784
11785 int fnord () { return 42; }
11786 int main ()
11787 {
11788   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11789   int status = $lt_dlunknown;
11790
11791   if (self)
11792     {
11793       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11794       else
11795         {
11796           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11797           else puts (dlerror ());
11798         }
11799       /* dlclose (self); */
11800     }
11801   else
11802     puts (dlerror ());
11803
11804   return status;
11805 }
11806 _LT_EOF
11807   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11808   (eval $ac_link) 2>&5
11809   ac_status=$?
11810   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11811   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11812     (./conftest; exit; ) >&5 2>/dev/null
11813     lt_status=$?
11814     case x$lt_status in
11815       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11816       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11817       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11818     esac
11819   else :
11820     # compilation failed
11821     lt_cv_dlopen_self=no
11822   fi
11823 fi
11824 rm -fr conftest*
11825
11826
11827 fi
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11829 $as_echo "$lt_cv_dlopen_self" >&6; }
11830
11831     if test "x$lt_cv_dlopen_self" = xyes; then
11832       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11833       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11834 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11835 if ${lt_cv_dlopen_self_static+:} false; then :
11836   $as_echo_n "(cached) " >&6
11837 else
11838           if test "$cross_compiling" = yes; then :
11839   lt_cv_dlopen_self_static=cross
11840 else
11841   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11842   lt_status=$lt_dlunknown
11843   cat > conftest.$ac_ext <<_LT_EOF
11844 #line $LINENO "configure"
11845 #include "confdefs.h"
11846
11847 #if HAVE_DLFCN_H
11848 #include <dlfcn.h>
11849 #endif
11850
11851 #include <stdio.h>
11852
11853 #ifdef RTLD_GLOBAL
11854 #  define LT_DLGLOBAL           RTLD_GLOBAL
11855 #else
11856 #  ifdef DL_GLOBAL
11857 #    define LT_DLGLOBAL         DL_GLOBAL
11858 #  else
11859 #    define LT_DLGLOBAL         0
11860 #  endif
11861 #endif
11862
11863 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11864    find out it does not work in some platform. */
11865 #ifndef LT_DLLAZY_OR_NOW
11866 #  ifdef RTLD_LAZY
11867 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11868 #  else
11869 #    ifdef DL_LAZY
11870 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11871 #    else
11872 #      ifdef RTLD_NOW
11873 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11874 #      else
11875 #        ifdef DL_NOW
11876 #          define LT_DLLAZY_OR_NOW      DL_NOW
11877 #        else
11878 #          define LT_DLLAZY_OR_NOW      0
11879 #        endif
11880 #      endif
11881 #    endif
11882 #  endif
11883 #endif
11884
11885 /* When -fvisbility=hidden is used, assume the code has been annotated
11886    correspondingly for the symbols needed.  */
11887 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11888 int fnord () __attribute__((visibility("default")));
11889 #endif
11890
11891 int fnord () { return 42; }
11892 int main ()
11893 {
11894   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11895   int status = $lt_dlunknown;
11896
11897   if (self)
11898     {
11899       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11900       else
11901         {
11902           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11903           else puts (dlerror ());
11904         }
11905       /* dlclose (self); */
11906     }
11907   else
11908     puts (dlerror ());
11909
11910   return status;
11911 }
11912 _LT_EOF
11913   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11914   (eval $ac_link) 2>&5
11915   ac_status=$?
11916   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11917   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11918     (./conftest; exit; ) >&5 2>/dev/null
11919     lt_status=$?
11920     case x$lt_status in
11921       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11922       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11923       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11924     esac
11925   else :
11926     # compilation failed
11927     lt_cv_dlopen_self_static=no
11928   fi
11929 fi
11930 rm -fr conftest*
11931
11932
11933 fi
11934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11935 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11936     fi
11937
11938     CPPFLAGS="$save_CPPFLAGS"
11939     LDFLAGS="$save_LDFLAGS"
11940     LIBS="$save_LIBS"
11941     ;;
11942   esac
11943
11944   case $lt_cv_dlopen_self in
11945   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11946   *) enable_dlopen_self=unknown ;;
11947   esac
11948
11949   case $lt_cv_dlopen_self_static in
11950   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11951   *) enable_dlopen_self_static=unknown ;;
11952   esac
11953 fi
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971 striplib=
11972 old_striplib=
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11974 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11975 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11976   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11977   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11979 $as_echo "yes" >&6; }
11980 else
11981 # FIXME - insert some real tests, host_os isn't really good enough
11982   case $host_os in
11983   darwin*)
11984     if test -n "$STRIP" ; then
11985       striplib="$STRIP -x"
11986       old_striplib="$STRIP -S"
11987       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11988 $as_echo "yes" >&6; }
11989     else
11990       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11991 $as_echo "no" >&6; }
11992     fi
11993     ;;
11994   *)
11995     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11996 $as_echo "no" >&6; }
11997     ;;
11998   esac
11999 fi
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012   # Report which library types will actually be built
12013   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12014 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12016 $as_echo "$can_build_shared" >&6; }
12017
12018   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12019 $as_echo_n "checking whether to build shared libraries... " >&6; }
12020   test "$can_build_shared" = "no" && enable_shared=no
12021
12022   # On AIX, shared libraries and static libraries use the same namespace, and
12023   # are all built from PIC.
12024   case $host_os in
12025   aix3*)
12026     test "$enable_shared" = yes && enable_static=no
12027     if test -n "$RANLIB"; then
12028       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12029       postinstall_cmds='$RANLIB $lib'
12030     fi
12031     ;;
12032
12033   aix[4-9]*)
12034     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12035       test "$enable_shared" = yes && enable_static=no
12036     fi
12037     ;;
12038   esac
12039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12040 $as_echo "$enable_shared" >&6; }
12041
12042   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12043 $as_echo_n "checking whether to build static libraries... " >&6; }
12044   # Make sure either enable_shared or enable_static is yes.
12045   test "$enable_shared" = yes || enable_static=yes
12046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12047 $as_echo "$enable_static" >&6; }
12048
12049
12050
12051
12052 fi
12053 ac_ext=c
12054 ac_cpp='$CPP $CPPFLAGS'
12055 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12056 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12057 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12058
12059 CC="$lt_save_CC"
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075         ac_config_commands="$ac_config_commands libtool"
12076
12077
12078
12079
12080 # Only expand once:
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12092         if test -n "$ac_tool_prefix"; then
12093   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12094 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12096 $as_echo_n "checking for $ac_word... " >&6; }
12097 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12098   $as_echo_n "(cached) " >&6
12099 else
12100   case $PKG_CONFIG in
12101   [\\/]* | ?:[\\/]*)
12102   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12103   ;;
12104   *)
12105   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12106 for as_dir in $PATH
12107 do
12108   IFS=$as_save_IFS
12109   test -z "$as_dir" && as_dir=.
12110     for ac_exec_ext in '' $ac_executable_extensions; do
12111   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12112     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12113     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12114     break 2
12115   fi
12116 done
12117   done
12118 IFS=$as_save_IFS
12119
12120   ;;
12121 esac
12122 fi
12123 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12124 if test -n "$PKG_CONFIG"; then
12125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12126 $as_echo "$PKG_CONFIG" >&6; }
12127 else
12128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12129 $as_echo "no" >&6; }
12130 fi
12131
12132
12133 fi
12134 if test -z "$ac_cv_path_PKG_CONFIG"; then
12135   ac_pt_PKG_CONFIG=$PKG_CONFIG
12136   # Extract the first word of "pkg-config", so it can be a program name with args.
12137 set dummy pkg-config; ac_word=$2
12138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12139 $as_echo_n "checking for $ac_word... " >&6; }
12140 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12141   $as_echo_n "(cached) " >&6
12142 else
12143   case $ac_pt_PKG_CONFIG in
12144   [\\/]* | ?:[\\/]*)
12145   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12146   ;;
12147   *)
12148   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12149 for as_dir in $PATH
12150 do
12151   IFS=$as_save_IFS
12152   test -z "$as_dir" && as_dir=.
12153     for ac_exec_ext in '' $ac_executable_extensions; do
12154   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12155     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12156     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12157     break 2
12158   fi
12159 done
12160   done
12161 IFS=$as_save_IFS
12162
12163   ;;
12164 esac
12165 fi
12166 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12167 if test -n "$ac_pt_PKG_CONFIG"; then
12168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12169 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12170 else
12171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12172 $as_echo "no" >&6; }
12173 fi
12174
12175   if test "x$ac_pt_PKG_CONFIG" = x; then
12176     PKG_CONFIG=""
12177   else
12178     case $cross_compiling:$ac_tool_warned in
12179 yes:)
12180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12181 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12182 ac_tool_warned=yes ;;
12183 esac
12184     PKG_CONFIG=$ac_pt_PKG_CONFIG
12185   fi
12186 else
12187   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12188 fi
12189
12190 fi
12191 if test -n "$PKG_CONFIG"; then
12192         _pkg_min_version=0.9.0
12193         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12194 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12195         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12196                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12197 $as_echo "yes" >&6; }
12198         else
12199                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12200 $as_echo "no" >&6; }
12201                 PKG_CONFIG=""
12202         fi
12203 fi
12204
12205 pkg_failed=no
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGUPNP" >&5
12207 $as_echo_n "checking for LIBGUPNP... " >&6; }
12208
12209 if test -n "$LIBGUPNP_CFLAGS"; then
12210     pkg_cv_LIBGUPNP_CFLAGS="$LIBGUPNP_CFLAGS"
12211  elif test -n "$PKG_CONFIG"; then
12212     if test -n "$PKG_CONFIG" && \
12213     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gupnp-1.0 >= 0.19.0 \\
12214                             gobject-2.0 \\
12215                             libxml-2.0\""; } >&5
12216   ($PKG_CONFIG --exists --print-errors "gupnp-1.0 >= 0.19.0 \
12217                             gobject-2.0 \
12218                             libxml-2.0") 2>&5
12219   ac_status=$?
12220   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12221   test $ac_status = 0; }; then
12222   pkg_cv_LIBGUPNP_CFLAGS=`$PKG_CONFIG --cflags "gupnp-1.0 >= 0.19.0 \
12223                             gobject-2.0 \
12224                             libxml-2.0" 2>/dev/null`
12225                       test "x$?" != "x0" && pkg_failed=yes
12226 else
12227   pkg_failed=yes
12228 fi
12229  else
12230     pkg_failed=untried
12231 fi
12232 if test -n "$LIBGUPNP_LIBS"; then
12233     pkg_cv_LIBGUPNP_LIBS="$LIBGUPNP_LIBS"
12234  elif test -n "$PKG_CONFIG"; then
12235     if test -n "$PKG_CONFIG" && \
12236     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gupnp-1.0 >= 0.19.0 \\
12237                             gobject-2.0 \\
12238                             libxml-2.0\""; } >&5
12239   ($PKG_CONFIG --exists --print-errors "gupnp-1.0 >= 0.19.0 \
12240                             gobject-2.0 \
12241                             libxml-2.0") 2>&5
12242   ac_status=$?
12243   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12244   test $ac_status = 0; }; then
12245   pkg_cv_LIBGUPNP_LIBS=`$PKG_CONFIG --libs "gupnp-1.0 >= 0.19.0 \
12246                             gobject-2.0 \
12247                             libxml-2.0" 2>/dev/null`
12248                       test "x$?" != "x0" && pkg_failed=yes
12249 else
12250   pkg_failed=yes
12251 fi
12252  else
12253     pkg_failed=untried
12254 fi
12255
12256
12257
12258 if test $pkg_failed = yes; then
12259         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12260 $as_echo "no" >&6; }
12261
12262 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12263         _pkg_short_errors_supported=yes
12264 else
12265         _pkg_short_errors_supported=no
12266 fi
12267         if test $_pkg_short_errors_supported = yes; then
12268                 LIBGUPNP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gupnp-1.0 >= 0.19.0 \
12269                             gobject-2.0 \
12270                             libxml-2.0" 2>&1`
12271         else
12272                 LIBGUPNP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gupnp-1.0 >= 0.19.0 \
12273                             gobject-2.0 \
12274                             libxml-2.0" 2>&1`
12275         fi
12276         # Put the nasty error message in config.log where it belongs
12277         echo "$LIBGUPNP_PKG_ERRORS" >&5
12278
12279         as_fn_error $? "Package requirements (gupnp-1.0 >= 0.19.0 \
12280                             gobject-2.0 \
12281                             libxml-2.0) were not met:
12282
12283 $LIBGUPNP_PKG_ERRORS
12284
12285 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12286 installed software in a non-standard prefix.
12287
12288 Alternatively, you may set the environment variables LIBGUPNP_CFLAGS
12289 and LIBGUPNP_LIBS to avoid the need to call pkg-config.
12290 See the pkg-config man page for more details." "$LINENO" 5
12291 elif test $pkg_failed = untried; then
12292         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12293 $as_echo "no" >&6; }
12294         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12295 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12296 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
12297 is in your PATH or set the PKG_CONFIG environment variable to the full
12298 path to pkg-config.
12299
12300 Alternatively, you may set the environment variables LIBGUPNP_CFLAGS
12301 and LIBGUPNP_LIBS to avoid the need to call pkg-config.
12302 See the pkg-config man page for more details.
12303
12304 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12305 See \`config.log' for more details" "$LINENO" 5; }
12306 else
12307         LIBGUPNP_CFLAGS=$pkg_cv_LIBGUPNP_CFLAGS
12308         LIBGUPNP_LIBS=$pkg_cv_LIBGUPNP_LIBS
12309         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12310 $as_echo "yes" >&6; }
12311
12312 fi
12313
12314 # glib-genmarshal
12315 GLIB_GENMARSHAL=`pkg-config --variable=glib_genmarshal glib-2.0`
12316
12317
12318 # Debugging
12319 # Check whether --enable-debug was given.
12320 if test "${enable_debug+set}" = set; then :
12321   enableval=$enable_debug;
12322 else
12323   enable_debug=no
12324 fi
12325
12326 if test "x$enable_debug" = "xyes"; then
12327         CFLAGS="$CFLAGS -g -Wall"
12328 fi
12329
12330
12331
12332
12333                 # Check whether --enable-introspection was given.
12334 if test "${enable_introspection+set}" = set; then :
12335   enableval=$enable_introspection;
12336 else
12337   enable_introspection=auto
12338 fi
12339
12340
12341     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-introspection" >&5
12342 $as_echo_n "checking for gobject-introspection... " >&6; }
12343
12344         case $enable_introspection in #(
12345   no) :
12346             found_introspection="no (disabled, use --enable-introspection to enable)"
12347      ;; #(
12348       yes) :
12349             if test -n "$PKG_CONFIG" && \
12350     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0\""; } >&5
12351   ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0") 2>&5
12352   ac_status=$?
12353   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12354   test $ac_status = 0; }; then
12355   :
12356 else
12357   as_fn_error $? "gobject-introspection-1.0 is not installed" "$LINENO" 5
12358 fi
12359         if test -n "$PKG_CONFIG" && \
12360     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 0.9.5\""; } >&5
12361   ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 0.9.5") 2>&5
12362   ac_status=$?
12363   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12364   test $ac_status = 0; }; then
12365   found_introspection=yes
12366 else
12367   as_fn_error $? "You need to have gobject-introspection >= 0.9.5 installed to build gupnp-av" "$LINENO" 5
12368 fi
12369      ;; #(
12370       auto) :
12371             if test -n "$PKG_CONFIG" && \
12372     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 0.9.5\""; } >&5
12373   ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 0.9.5") 2>&5
12374   ac_status=$?
12375   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12376   test $ac_status = 0; }; then
12377   found_introspection=yes
12378 else
12379   found_introspection=no
12380 fi
12381      ;; #(
12382   *) :
12383                 as_fn_error $? "invalid argument passed to --enable-introspection, should be one of [no/auto/yes]" "$LINENO" 5
12384      ;;
12385 esac
12386     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_introspection" >&5
12387 $as_echo "$found_introspection" >&6; }
12388
12389     INTROSPECTION_SCANNER=
12390     INTROSPECTION_COMPILER=
12391     INTROSPECTION_GENERATE=
12392     INTROSPECTION_GIRDIR=
12393     INTROSPECTION_TYPELIBDIR=
12394     if test "x$found_introspection" = "xyes"; then
12395        INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
12396        INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
12397        INTROSPECTION_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0`
12398        INTROSPECTION_GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0`
12399        INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)"
12400        INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0`
12401        INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0`
12402        INTROSPECTION_MAKEFILE=`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection
12403     fi
12404
12405
12406
12407
12408
12409
12410
12411
12412
12413      if test "x$found_introspection" = "xyes"; then
12414   HAVE_INTROSPECTION_TRUE=
12415   HAVE_INTROSPECTION_FALSE='#'
12416 else
12417   HAVE_INTROSPECTION_TRUE='#'
12418   HAVE_INTROSPECTION_FALSE=
12419 fi
12420
12421
12422
12423
12424 # vapigen
12425 if test "x$found_introspection" = "xyes"; then :
12426
12427        # Extract the first word of "vapigen", so it can be a program name with args.
12428 set dummy vapigen; ac_word=$2
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12430 $as_echo_n "checking for $ac_word... " >&6; }
12431 if ${ac_cv_path_VAPIGEN+:} false; then :
12432   $as_echo_n "(cached) " >&6
12433 else
12434   case $VAPIGEN in
12435   [\\/]* | ?:[\\/]*)
12436   ac_cv_path_VAPIGEN="$VAPIGEN" # Let the user override the test with a path.
12437   ;;
12438   *)
12439   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12440 for as_dir in $PATH
12441 do
12442   IFS=$as_save_IFS
12443   test -z "$as_dir" && as_dir=.
12444     for ac_exec_ext in '' $ac_executable_extensions; do
12445   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12446     ac_cv_path_VAPIGEN="$as_dir/$ac_word$ac_exec_ext"
12447     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12448     break 2
12449   fi
12450 done
12451   done
12452 IFS=$as_save_IFS
12453
12454   ;;
12455 esac
12456 fi
12457 VAPIGEN=$ac_cv_path_VAPIGEN
12458 if test -n "$VAPIGEN"; then
12459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VAPIGEN" >&5
12460 $as_echo "$VAPIGEN" >&6; }
12461 else
12462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12463 $as_echo "no" >&6; }
12464 fi
12465
12466
12467   if test -z "$VAPIGEN"; then :
12468   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No Vala API Generator found. You will not be able to generate .vapi files." >&5
12469 $as_echo "$as_me: WARNING: No Vala API Generator found. You will not be able to generate .vapi files." >&2;}
12470 else
12471   if test -n "0.14"; then :
12472   { $as_echo "$as_me:${as_lineno-$LINENO}: checking $VAPIGEN is at least version 0.14" >&5
12473 $as_echo_n "checking $VAPIGEN is at least version 0.14... " >&6; }
12474          am__vapigen_version=`$VAPIGEN --version | sed 's/Vala API Generator  *//'`
12475          as_arg_v1=0.14
12476 as_arg_v2="$am__vapigen_version"
12477 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
12478 case $? in #(
12479   1) :
12480     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12481 $as_echo "yes" >&6; } ;; #(
12482   0) :
12483     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12484 $as_echo "yes" >&6; } ;; #(
12485   2) :
12486     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12487 $as_echo "no" >&6; }
12488             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Vala API Generator 0.14 not found." >&5
12489 $as_echo "$as_me: WARNING: Vala API Generator 0.14 not found." >&2;} ;; #(
12490   *) :
12491      ;;
12492 esac
12493 fi
12494 fi
12495
12496
12497
12498 fi
12499  if test "x$VAPIGEN" != "x"; then
12500   HAVE_VAPIGEN_TRUE=
12501   HAVE_VAPIGEN_FALSE='#'
12502 else
12503   HAVE_VAPIGEN_TRUE='#'
12504   HAVE_VAPIGEN_FALSE=
12505 fi
12506
12507
12508
12509
12510
12511
12512     # Extract the first word of "gtkdoc-check", so it can be a program name with args.
12513 set dummy gtkdoc-check; ac_word=$2
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12515 $as_echo_n "checking for $ac_word... " >&6; }
12516 if ${ac_cv_path_GTKDOC_CHECK+:} false; then :
12517   $as_echo_n "(cached) " >&6
12518 else
12519   case $GTKDOC_CHECK in
12520   [\\/]* | ?:[\\/]*)
12521   ac_cv_path_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test with a path.
12522   ;;
12523   *)
12524   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12525 for as_dir in $PATH
12526 do
12527   IFS=$as_save_IFS
12528   test -z "$as_dir" && as_dir=.
12529     for ac_exec_ext in '' $ac_executable_extensions; do
12530   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12531     ac_cv_path_GTKDOC_CHECK="$as_dir/$ac_word$ac_exec_ext"
12532     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12533     break 2
12534   fi
12535 done
12536   done
12537 IFS=$as_save_IFS
12538
12539   ;;
12540 esac
12541 fi
12542 GTKDOC_CHECK=$ac_cv_path_GTKDOC_CHECK
12543 if test -n "$GTKDOC_CHECK"; then
12544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
12545 $as_echo "$GTKDOC_CHECK" >&6; }
12546 else
12547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12548 $as_echo "no" >&6; }
12549 fi
12550
12551
12552   for ac_prog in gtkdoc-rebase
12553 do
12554   # Extract the first word of "$ac_prog", so it can be a program name with args.
12555 set dummy $ac_prog; ac_word=$2
12556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12557 $as_echo_n "checking for $ac_word... " >&6; }
12558 if ${ac_cv_path_GTKDOC_REBASE+:} false; then :
12559   $as_echo_n "(cached) " >&6
12560 else
12561   case $GTKDOC_REBASE in
12562   [\\/]* | ?:[\\/]*)
12563   ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path.
12564   ;;
12565   *)
12566   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12567 for as_dir in $PATH
12568 do
12569   IFS=$as_save_IFS
12570   test -z "$as_dir" && as_dir=.
12571     for ac_exec_ext in '' $ac_executable_extensions; do
12572   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12573     ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext"
12574     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12575     break 2
12576   fi
12577 done
12578   done
12579 IFS=$as_save_IFS
12580
12581   ;;
12582 esac
12583 fi
12584 GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE
12585 if test -n "$GTKDOC_REBASE"; then
12586   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5
12587 $as_echo "$GTKDOC_REBASE" >&6; }
12588 else
12589   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12590 $as_echo "no" >&6; }
12591 fi
12592
12593
12594   test -n "$GTKDOC_REBASE" && break
12595 done
12596 test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true"
12597
12598   # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args.
12599 set dummy gtkdoc-mkpdf; ac_word=$2
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12601 $as_echo_n "checking for $ac_word... " >&6; }
12602 if ${ac_cv_path_GTKDOC_MKPDF+:} false; then :
12603   $as_echo_n "(cached) " >&6
12604 else
12605   case $GTKDOC_MKPDF in
12606   [\\/]* | ?:[\\/]*)
12607   ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path.
12608   ;;
12609   *)
12610   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12611 for as_dir in $PATH
12612 do
12613   IFS=$as_save_IFS
12614   test -z "$as_dir" && as_dir=.
12615     for ac_exec_ext in '' $ac_executable_extensions; do
12616   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12617     ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext"
12618     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12619     break 2
12620   fi
12621 done
12622   done
12623 IFS=$as_save_IFS
12624
12625   ;;
12626 esac
12627 fi
12628 GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF
12629 if test -n "$GTKDOC_MKPDF"; then
12630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5
12631 $as_echo "$GTKDOC_MKPDF" >&6; }
12632 else
12633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12634 $as_echo "no" >&6; }
12635 fi
12636
12637
12638
12639
12640 # Check whether --with-html-dir was given.
12641 if test "${with_html_dir+set}" = set; then :
12642   withval=$with_html_dir;
12643 else
12644   with_html_dir='${datadir}/gtk-doc/html'
12645 fi
12646
12647   HTML_DIR="$with_html_dir"
12648
12649
12650     # Check whether --enable-gtk-doc was given.
12651 if test "${enable_gtk_doc+set}" = set; then :
12652   enableval=$enable_gtk_doc;
12653 else
12654   enable_gtk_doc=no
12655 fi
12656
12657
12658   if test x$enable_gtk_doc = xyes; then
12659     if test -n "$PKG_CONFIG" && \
12660     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-doc >= 1.10\""; } >&5
12661   ($PKG_CONFIG --exists --print-errors "gtk-doc >= 1.10") 2>&5
12662   ac_status=$?
12663   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12664   test $ac_status = 0; }; then
12665   :
12666 else
12667   as_fn_error $? "You need to have gtk-doc >= 1.10 installed to build $PACKAGE_NAME" "$LINENO" 5
12668 fi
12669         if test "x$PACKAGE_NAME" != "xglib"; then
12670
12671 pkg_failed=no
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTKDOC_DEPS" >&5
12673 $as_echo_n "checking for GTKDOC_DEPS... " >&6; }
12674
12675 if test -n "$GTKDOC_DEPS_CFLAGS"; then
12676     pkg_cv_GTKDOC_DEPS_CFLAGS="$GTKDOC_DEPS_CFLAGS"
12677  elif test -n "$PKG_CONFIG"; then
12678     if test -n "$PKG_CONFIG" && \
12679     { { $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
12680   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0") 2>&5
12681   ac_status=$?
12682   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12683   test $ac_status = 0; }; then
12684   pkg_cv_GTKDOC_DEPS_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>/dev/null`
12685                       test "x$?" != "x0" && pkg_failed=yes
12686 else
12687   pkg_failed=yes
12688 fi
12689  else
12690     pkg_failed=untried
12691 fi
12692 if test -n "$GTKDOC_DEPS_LIBS"; then
12693     pkg_cv_GTKDOC_DEPS_LIBS="$GTKDOC_DEPS_LIBS"
12694  elif test -n "$PKG_CONFIG"; then
12695     if test -n "$PKG_CONFIG" && \
12696     { { $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
12697   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0") 2>&5
12698   ac_status=$?
12699   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12700   test $ac_status = 0; }; then
12701   pkg_cv_GTKDOC_DEPS_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>/dev/null`
12702                       test "x$?" != "x0" && pkg_failed=yes
12703 else
12704   pkg_failed=yes
12705 fi
12706  else
12707     pkg_failed=untried
12708 fi
12709
12710
12711
12712 if test $pkg_failed = yes; then
12713         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12714 $as_echo "no" >&6; }
12715
12716 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12717         _pkg_short_errors_supported=yes
12718 else
12719         _pkg_short_errors_supported=no
12720 fi
12721         if test $_pkg_short_errors_supported = yes; then
12722                 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`
12723         else
12724                 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>&1`
12725         fi
12726         # Put the nasty error message in config.log where it belongs
12727         echo "$GTKDOC_DEPS_PKG_ERRORS" >&5
12728
12729         as_fn_error $? "Package requirements (glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0) were not met:
12730
12731 $GTKDOC_DEPS_PKG_ERRORS
12732
12733 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12734 installed software in a non-standard prefix.
12735
12736 Alternatively, you may set the environment variables GTKDOC_DEPS_CFLAGS
12737 and GTKDOC_DEPS_LIBS to avoid the need to call pkg-config.
12738 See the pkg-config man page for more details." "$LINENO" 5
12739 elif test $pkg_failed = untried; then
12740         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12741 $as_echo "no" >&6; }
12742         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12743 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12744 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
12745 is in your PATH or set the PKG_CONFIG environment variable to the full
12746 path to pkg-config.
12747
12748 Alternatively, you may set the environment variables GTKDOC_DEPS_CFLAGS
12749 and GTKDOC_DEPS_LIBS to avoid the need to call pkg-config.
12750 See the pkg-config man page for more details.
12751
12752 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12753 See \`config.log' for more details" "$LINENO" 5; }
12754 else
12755         GTKDOC_DEPS_CFLAGS=$pkg_cv_GTKDOC_DEPS_CFLAGS
12756         GTKDOC_DEPS_LIBS=$pkg_cv_GTKDOC_DEPS_LIBS
12757         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12758 $as_echo "yes" >&6; }
12759
12760 fi
12761     fi
12762   fi
12763
12764   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
12765 $as_echo_n "checking whether to build gtk-doc documentation... " >&6; }
12766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
12767 $as_echo "$enable_gtk_doc" >&6; }
12768
12769     # Check whether --enable-gtk-doc-html was given.
12770 if test "${enable_gtk_doc_html+set}" = set; then :
12771   enableval=$enable_gtk_doc_html;
12772 else
12773   enable_gtk_doc_html=yes
12774 fi
12775
12776     # Check whether --enable-gtk-doc-pdf was given.
12777 if test "${enable_gtk_doc_pdf+set}" = set; then :
12778   enableval=$enable_gtk_doc_pdf;
12779 else
12780   enable_gtk_doc_pdf=no
12781 fi
12782
12783
12784   if test -z "$GTKDOC_MKPDF"; then
12785     enable_gtk_doc_pdf=no
12786   fi
12787
12788
12789    if test x$enable_gtk_doc = xyes; then
12790   ENABLE_GTK_DOC_TRUE=
12791   ENABLE_GTK_DOC_FALSE='#'
12792 else
12793   ENABLE_GTK_DOC_TRUE='#'
12794   ENABLE_GTK_DOC_FALSE=
12795 fi
12796
12797    if test x$enable_gtk_doc_html = xyes; then
12798   GTK_DOC_BUILD_HTML_TRUE=
12799   GTK_DOC_BUILD_HTML_FALSE='#'
12800 else
12801   GTK_DOC_BUILD_HTML_TRUE='#'
12802   GTK_DOC_BUILD_HTML_FALSE=
12803 fi
12804
12805    if test x$enable_gtk_doc_pdf = xyes; then
12806   GTK_DOC_BUILD_PDF_TRUE=
12807   GTK_DOC_BUILD_PDF_FALSE='#'
12808 else
12809   GTK_DOC_BUILD_PDF_TRUE='#'
12810   GTK_DOC_BUILD_PDF_FALSE=
12811 fi
12812
12813    if test -n "$LIBTOOL"; then
12814   GTK_DOC_USE_LIBTOOL_TRUE=
12815   GTK_DOC_USE_LIBTOOL_FALSE='#'
12816 else
12817   GTK_DOC_USE_LIBTOOL_TRUE='#'
12818   GTK_DOC_USE_LIBTOOL_FALSE=
12819 fi
12820
12821    if test -n "$GTKDOC_REBASE"; then
12822   GTK_DOC_USE_REBASE_TRUE=
12823   GTK_DOC_USE_REBASE_FALSE='#'
12824 else
12825   GTK_DOC_USE_REBASE_TRUE='#'
12826   GTK_DOC_USE_REBASE_FALSE=
12827 fi
12828
12829
12830
12831 ac_config_files="$ac_config_files Makefile libgupnp-av/Makefile tests/Makefile tests/gtest/Makefile doc/Makefile doc/version.xml data/Makefile vala/Makefile gupnp-av-1.0.pc gupnp-av-1.0-uninstalled.pc"
12832
12833 cat >confcache <<\_ACEOF
12834 # This file is a shell script that caches the results of configure
12835 # tests run on this system so they can be shared between configure
12836 # scripts and configure runs, see configure's option --config-cache.
12837 # It is not useful on other systems.  If it contains results you don't
12838 # want to keep, you may remove or edit it.
12839 #
12840 # config.status only pays attention to the cache file if you give it
12841 # the --recheck option to rerun configure.
12842 #
12843 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12844 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12845 # following values.
12846
12847 _ACEOF
12848
12849 # The following way of writing the cache mishandles newlines in values,
12850 # but we know of no workaround that is simple, portable, and efficient.
12851 # So, we kill variables containing newlines.
12852 # Ultrix sh set writes to stderr and can't be redirected directly,
12853 # and sets the high bit in the cache file unless we assign to the vars.
12854 (
12855   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12856     eval ac_val=\$$ac_var
12857     case $ac_val in #(
12858     *${as_nl}*)
12859       case $ac_var in #(
12860       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12861 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12862       esac
12863       case $ac_var in #(
12864       _ | IFS | as_nl) ;; #(
12865       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12866       *) { eval $ac_var=; unset $ac_var;} ;;
12867       esac ;;
12868     esac
12869   done
12870
12871   (set) 2>&1 |
12872     case $as_nl`(ac_space=' '; set) 2>&1` in #(
12873     *${as_nl}ac_space=\ *)
12874       # `set' does not quote correctly, so add quotes: double-quote
12875       # substitution turns \\\\ into \\, and sed turns \\ into \.
12876       sed -n \
12877         "s/'/'\\\\''/g;
12878           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12879       ;; #(
12880     *)
12881       # `set' quotes correctly as required by POSIX, so do not add quotes.
12882       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12883       ;;
12884     esac |
12885     sort
12886 ) |
12887   sed '
12888      /^ac_cv_env_/b end
12889      t clear
12890      :clear
12891      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12892      t end
12893      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12894      :end' >>confcache
12895 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12896   if test -w "$cache_file"; then
12897     if test "x$cache_file" != "x/dev/null"; then
12898       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12899 $as_echo "$as_me: updating cache $cache_file" >&6;}
12900       if test ! -f "$cache_file" || test -h "$cache_file"; then
12901         cat confcache >"$cache_file"
12902       else
12903         case $cache_file in #(
12904         */* | ?:*)
12905           mv -f confcache "$cache_file"$$ &&
12906           mv -f "$cache_file"$$ "$cache_file" ;; #(
12907         *)
12908           mv -f confcache "$cache_file" ;;
12909         esac
12910       fi
12911     fi
12912   else
12913     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12914 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12915   fi
12916 fi
12917 rm -f confcache
12918
12919 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12920 # Let make expand exec_prefix.
12921 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12922
12923 DEFS=-DHAVE_CONFIG_H
12924
12925 ac_libobjs=
12926 ac_ltlibobjs=
12927 U=
12928 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12929   # 1. Remove the extension, and $U if already installed.
12930   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12931   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12932   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12933   #    will be set to the directory where LIBOBJS objects are built.
12934   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12935   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12936 done
12937 LIBOBJS=$ac_libobjs
12938
12939 LTLIBOBJS=$ac_ltlibobjs
12940
12941
12942  if test -n "$EXEEXT"; then
12943   am__EXEEXT_TRUE=
12944   am__EXEEXT_FALSE='#'
12945 else
12946   am__EXEEXT_TRUE='#'
12947   am__EXEEXT_FALSE=
12948 fi
12949
12950 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12951   as_fn_error $? "conditional \"AMDEP\" was never defined.
12952 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12953 fi
12954 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12955   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12956 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12957 fi
12958 if test -z "${HAVE_INTROSPECTION_TRUE}" && test -z "${HAVE_INTROSPECTION_FALSE}"; then
12959   as_fn_error $? "conditional \"HAVE_INTROSPECTION\" was never defined.
12960 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12961 fi
12962 if test -z "${HAVE_VAPIGEN_TRUE}" && test -z "${HAVE_VAPIGEN_FALSE}"; then
12963   as_fn_error $? "conditional \"HAVE_VAPIGEN\" was never defined.
12964 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12965 fi
12966 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
12967   as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
12968 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12969 fi
12970 if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then
12971   as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined.
12972 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12973 fi
12974 if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then
12975   as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined.
12976 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12977 fi
12978 if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
12979   as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
12980 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12981 fi
12982 if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then
12983   as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined.
12984 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12985 fi
12986
12987 : "${CONFIG_STATUS=./config.status}"
12988 ac_write_fail=0
12989 ac_clean_files_save=$ac_clean_files
12990 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12991 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12992 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12993 as_write_fail=0
12994 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12995 #! $SHELL
12996 # Generated by $as_me.
12997 # Run this file to recreate the current configuration.
12998 # Compiler output produced by configure, useful for debugging
12999 # configure, is in config.log if it exists.
13000
13001 debug=false
13002 ac_cs_recheck=false
13003 ac_cs_silent=false
13004
13005 SHELL=\${CONFIG_SHELL-$SHELL}
13006 export SHELL
13007 _ASEOF
13008 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13009 ## -------------------- ##
13010 ## M4sh Initialization. ##
13011 ## -------------------- ##
13012
13013 # Be more Bourne compatible
13014 DUALCASE=1; export DUALCASE # for MKS sh
13015 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13016   emulate sh
13017   NULLCMD=:
13018   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13019   # is contrary to our usage.  Disable this feature.
13020   alias -g '${1+"$@"}'='"$@"'
13021   setopt NO_GLOB_SUBST
13022 else
13023   case `(set -o) 2>/dev/null` in #(
13024   *posix*) :
13025     set -o posix ;; #(
13026   *) :
13027      ;;
13028 esac
13029 fi
13030
13031
13032 as_nl='
13033 '
13034 export as_nl
13035 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13036 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13037 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13038 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13039 # Prefer a ksh shell builtin over an external printf program on Solaris,
13040 # but without wasting forks for bash or zsh.
13041 if test -z "$BASH_VERSION$ZSH_VERSION" \
13042     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13043   as_echo='print -r --'
13044   as_echo_n='print -rn --'
13045 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13046   as_echo='printf %s\n'
13047   as_echo_n='printf %s'
13048 else
13049   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13050     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13051     as_echo_n='/usr/ucb/echo -n'
13052   else
13053     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13054     as_echo_n_body='eval
13055       arg=$1;
13056       case $arg in #(
13057       *"$as_nl"*)
13058         expr "X$arg" : "X\\(.*\\)$as_nl";
13059         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13060       esac;
13061       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13062     '
13063     export as_echo_n_body
13064     as_echo_n='sh -c $as_echo_n_body as_echo'
13065   fi
13066   export as_echo_body
13067   as_echo='sh -c $as_echo_body as_echo'
13068 fi
13069
13070 # The user is always right.
13071 if test "${PATH_SEPARATOR+set}" != set; then
13072   PATH_SEPARATOR=:
13073   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13074     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13075       PATH_SEPARATOR=';'
13076   }
13077 fi
13078
13079
13080 # IFS
13081 # We need space, tab and new line, in precisely that order.  Quoting is
13082 # there to prevent editors from complaining about space-tab.
13083 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13084 # splitting by setting IFS to empty value.)
13085 IFS=" ""        $as_nl"
13086
13087 # Find who we are.  Look in the path if we contain no directory separator.
13088 as_myself=
13089 case $0 in #((
13090   *[\\/]* ) as_myself=$0 ;;
13091   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13092 for as_dir in $PATH
13093 do
13094   IFS=$as_save_IFS
13095   test -z "$as_dir" && as_dir=.
13096     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13097   done
13098 IFS=$as_save_IFS
13099
13100      ;;
13101 esac
13102 # We did not find ourselves, most probably we were run as `sh COMMAND'
13103 # in which case we are not to be found in the path.
13104 if test "x$as_myself" = x; then
13105   as_myself=$0
13106 fi
13107 if test ! -f "$as_myself"; then
13108   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13109   exit 1
13110 fi
13111
13112 # Unset variables that we do not need and which cause bugs (e.g. in
13113 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13114 # suppresses any "Segmentation fault" message there.  '((' could
13115 # trigger a bug in pdksh 5.2.14.
13116 for as_var in BASH_ENV ENV MAIL MAILPATH
13117 do eval test x\${$as_var+set} = xset \
13118   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13119 done
13120 PS1='$ '
13121 PS2='> '
13122 PS4='+ '
13123
13124 # NLS nuisances.
13125 LC_ALL=C
13126 export LC_ALL
13127 LANGUAGE=C
13128 export LANGUAGE
13129
13130 # CDPATH.
13131 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13132
13133
13134 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13135 # ----------------------------------------
13136 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13137 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13138 # script with STATUS, using 1 if that was 0.
13139 as_fn_error ()
13140 {
13141   as_status=$1; test $as_status -eq 0 && as_status=1
13142   if test "$4"; then
13143     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13144     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13145   fi
13146   $as_echo "$as_me: error: $2" >&2
13147   as_fn_exit $as_status
13148 } # as_fn_error
13149
13150
13151 # as_fn_set_status STATUS
13152 # -----------------------
13153 # Set $? to STATUS, without forking.
13154 as_fn_set_status ()
13155 {
13156   return $1
13157 } # as_fn_set_status
13158
13159 # as_fn_exit STATUS
13160 # -----------------
13161 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13162 as_fn_exit ()
13163 {
13164   set +e
13165   as_fn_set_status $1
13166   exit $1
13167 } # as_fn_exit
13168
13169 # as_fn_unset VAR
13170 # ---------------
13171 # Portably unset VAR.
13172 as_fn_unset ()
13173 {
13174   { eval $1=; unset $1;}
13175 }
13176 as_unset=as_fn_unset
13177 # as_fn_append VAR VALUE
13178 # ----------------------
13179 # Append the text in VALUE to the end of the definition contained in VAR. Take
13180 # advantage of any shell optimizations that allow amortized linear growth over
13181 # repeated appends, instead of the typical quadratic growth present in naive
13182 # implementations.
13183 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13184   eval 'as_fn_append ()
13185   {
13186     eval $1+=\$2
13187   }'
13188 else
13189   as_fn_append ()
13190   {
13191     eval $1=\$$1\$2
13192   }
13193 fi # as_fn_append
13194
13195 # as_fn_arith ARG...
13196 # ------------------
13197 # Perform arithmetic evaluation on the ARGs, and store the result in the
13198 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13199 # must be portable across $(()) and expr.
13200 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13201   eval 'as_fn_arith ()
13202   {
13203     as_val=$(( $* ))
13204   }'
13205 else
13206   as_fn_arith ()
13207   {
13208     as_val=`expr "$@" || test $? -eq 1`
13209   }
13210 fi # as_fn_arith
13211
13212
13213 if expr a : '\(a\)' >/dev/null 2>&1 &&
13214    test "X`expr 00001 : '.*\(...\)'`" = X001; then
13215   as_expr=expr
13216 else
13217   as_expr=false
13218 fi
13219
13220 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13221   as_basename=basename
13222 else
13223   as_basename=false
13224 fi
13225
13226 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13227   as_dirname=dirname
13228 else
13229   as_dirname=false
13230 fi
13231
13232 as_me=`$as_basename -- "$0" ||
13233 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13234          X"$0" : 'X\(//\)$' \| \
13235          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13236 $as_echo X/"$0" |
13237     sed '/^.*\/\([^/][^/]*\)\/*$/{
13238             s//\1/
13239             q
13240           }
13241           /^X\/\(\/\/\)$/{
13242             s//\1/
13243             q
13244           }
13245           /^X\/\(\/\).*/{
13246             s//\1/
13247             q
13248           }
13249           s/.*/./; q'`
13250
13251 # Avoid depending upon Character Ranges.
13252 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13253 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13254 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13255 as_cr_digits='0123456789'
13256 as_cr_alnum=$as_cr_Letters$as_cr_digits
13257
13258 ECHO_C= ECHO_N= ECHO_T=
13259 case `echo -n x` in #(((((
13260 -n*)
13261   case `echo 'xy\c'` in
13262   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
13263   xy)  ECHO_C='\c';;
13264   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13265        ECHO_T=' ';;
13266   esac;;
13267 *)
13268   ECHO_N='-n';;
13269 esac
13270
13271 rm -f conf$$ conf$$.exe conf$$.file
13272 if test -d conf$$.dir; then
13273   rm -f conf$$.dir/conf$$.file
13274 else
13275   rm -f conf$$.dir
13276   mkdir conf$$.dir 2>/dev/null
13277 fi
13278 if (echo >conf$$.file) 2>/dev/null; then
13279   if ln -s conf$$.file conf$$ 2>/dev/null; then
13280     as_ln_s='ln -s'
13281     # ... but there are two gotchas:
13282     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13283     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13284     # In both cases, we have to default to `cp -pR'.
13285     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13286       as_ln_s='cp -pR'
13287   elif ln conf$$.file conf$$ 2>/dev/null; then
13288     as_ln_s=ln
13289   else
13290     as_ln_s='cp -pR'
13291   fi
13292 else
13293   as_ln_s='cp -pR'
13294 fi
13295 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13296 rmdir conf$$.dir 2>/dev/null
13297
13298
13299 # as_fn_mkdir_p
13300 # -------------
13301 # Create "$as_dir" as a directory, including parents if necessary.
13302 as_fn_mkdir_p ()
13303 {
13304
13305   case $as_dir in #(
13306   -*) as_dir=./$as_dir;;
13307   esac
13308   test -d "$as_dir" || eval $as_mkdir_p || {
13309     as_dirs=
13310     while :; do
13311       case $as_dir in #(
13312       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13313       *) as_qdir=$as_dir;;
13314       esac
13315       as_dirs="'$as_qdir' $as_dirs"
13316       as_dir=`$as_dirname -- "$as_dir" ||
13317 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13318          X"$as_dir" : 'X\(//\)[^/]' \| \
13319          X"$as_dir" : 'X\(//\)$' \| \
13320          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13321 $as_echo X"$as_dir" |
13322     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13323             s//\1/
13324             q
13325           }
13326           /^X\(\/\/\)[^/].*/{
13327             s//\1/
13328             q
13329           }
13330           /^X\(\/\/\)$/{
13331             s//\1/
13332             q
13333           }
13334           /^X\(\/\).*/{
13335             s//\1/
13336             q
13337           }
13338           s/.*/./; q'`
13339       test -d "$as_dir" && break
13340     done
13341     test -z "$as_dirs" || eval "mkdir $as_dirs"
13342   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13343
13344
13345 } # as_fn_mkdir_p
13346 if mkdir -p . 2>/dev/null; then
13347   as_mkdir_p='mkdir -p "$as_dir"'
13348 else
13349   test -d ./-p && rmdir ./-p
13350   as_mkdir_p=false
13351 fi
13352
13353
13354 # as_fn_executable_p FILE
13355 # -----------------------
13356 # Test if FILE is an executable regular file.
13357 as_fn_executable_p ()
13358 {
13359   test -f "$1" && test -x "$1"
13360 } # as_fn_executable_p
13361 as_test_x='test -x'
13362 as_executable_p=as_fn_executable_p
13363
13364 # Sed expression to map a string onto a valid CPP name.
13365 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13366
13367 # Sed expression to map a string onto a valid variable name.
13368 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13369
13370
13371 exec 6>&1
13372 ## ----------------------------------- ##
13373 ## Main body of $CONFIG_STATUS script. ##
13374 ## ----------------------------------- ##
13375 _ASEOF
13376 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13377
13378 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13379 # Save the log message, to keep $0 and so on meaningful, and to
13380 # report actual input values of CONFIG_FILES etc. instead of their
13381 # values after options handling.
13382 ac_log="
13383 This file was extended by gupnp-av $as_me 0.11.2, which was
13384 generated by GNU Autoconf 2.69.  Invocation command line was
13385
13386   CONFIG_FILES    = $CONFIG_FILES
13387   CONFIG_HEADERS  = $CONFIG_HEADERS
13388   CONFIG_LINKS    = $CONFIG_LINKS
13389   CONFIG_COMMANDS = $CONFIG_COMMANDS
13390   $ $0 $@
13391
13392 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13393 "
13394
13395 _ACEOF
13396
13397 case $ac_config_files in *"
13398 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13399 esac
13400
13401 case $ac_config_headers in *"
13402 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13403 esac
13404
13405
13406 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13407 # Files that config.status was made for.
13408 config_files="$ac_config_files"
13409 config_headers="$ac_config_headers"
13410 config_commands="$ac_config_commands"
13411
13412 _ACEOF
13413
13414 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13415 ac_cs_usage="\
13416 \`$as_me' instantiates files and other configuration actions
13417 from templates according to the current configuration.  Unless the files
13418 and actions are specified as TAGs, all are instantiated by default.
13419
13420 Usage: $0 [OPTION]... [TAG]...
13421
13422   -h, --help       print this help, then exit
13423   -V, --version    print version number and configuration settings, then exit
13424       --config     print configuration, then exit
13425   -q, --quiet, --silent
13426                    do not print progress messages
13427   -d, --debug      don't remove temporary files
13428       --recheck    update $as_me by reconfiguring in the same conditions
13429       --file=FILE[:TEMPLATE]
13430                    instantiate the configuration file FILE
13431       --header=FILE[:TEMPLATE]
13432                    instantiate the configuration header FILE
13433
13434 Configuration files:
13435 $config_files
13436
13437 Configuration headers:
13438 $config_headers
13439
13440 Configuration commands:
13441 $config_commands
13442
13443 Report bugs to <https://bugzilla.gnome.org/enter_bug.cgi?product=GUPnP>.
13444 gupnp-av home page: <http://www.gupnp.org/>."
13445
13446 _ACEOF
13447 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13448 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13449 ac_cs_version="\\
13450 gupnp-av config.status 0.11.2
13451 configured by $0, generated by GNU Autoconf 2.69,
13452   with options \\"\$ac_cs_config\\"
13453
13454 Copyright (C) 2012 Free Software Foundation, Inc.
13455 This config.status script is free software; the Free Software Foundation
13456 gives unlimited permission to copy, distribute and modify it."
13457
13458 ac_pwd='$ac_pwd'
13459 srcdir='$srcdir'
13460 INSTALL='$INSTALL'
13461 MKDIR_P='$MKDIR_P'
13462 AWK='$AWK'
13463 test -n "\$AWK" || AWK=awk
13464 _ACEOF
13465
13466 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13467 # The default lists apply if the user does not specify any file.
13468 ac_need_defaults=:
13469 while test $# != 0
13470 do
13471   case $1 in
13472   --*=?*)
13473     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13474     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13475     ac_shift=:
13476     ;;
13477   --*=)
13478     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13479     ac_optarg=
13480     ac_shift=:
13481     ;;
13482   *)
13483     ac_option=$1
13484     ac_optarg=$2
13485     ac_shift=shift
13486     ;;
13487   esac
13488
13489   case $ac_option in
13490   # Handling of the options.
13491   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13492     ac_cs_recheck=: ;;
13493   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13494     $as_echo "$ac_cs_version"; exit ;;
13495   --config | --confi | --conf | --con | --co | --c )
13496     $as_echo "$ac_cs_config"; exit ;;
13497   --debug | --debu | --deb | --de | --d | -d )
13498     debug=: ;;
13499   --file | --fil | --fi | --f )
13500     $ac_shift
13501     case $ac_optarg in
13502     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13503     '') as_fn_error $? "missing file argument" ;;
13504     esac
13505     as_fn_append CONFIG_FILES " '$ac_optarg'"
13506     ac_need_defaults=false;;
13507   --header | --heade | --head | --hea )
13508     $ac_shift
13509     case $ac_optarg in
13510     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13511     esac
13512     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13513     ac_need_defaults=false;;
13514   --he | --h)
13515     # Conflict between --help and --header
13516     as_fn_error $? "ambiguous option: \`$1'
13517 Try \`$0 --help' for more information.";;
13518   --help | --hel | -h )
13519     $as_echo "$ac_cs_usage"; exit ;;
13520   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13521   | -silent | --silent | --silen | --sile | --sil | --si | --s)
13522     ac_cs_silent=: ;;
13523
13524   # This is an error.
13525   -*) as_fn_error $? "unrecognized option: \`$1'
13526 Try \`$0 --help' for more information." ;;
13527
13528   *) as_fn_append ac_config_targets " $1"
13529      ac_need_defaults=false ;;
13530
13531   esac
13532   shift
13533 done
13534
13535 ac_configure_extra_args=
13536
13537 if $ac_cs_silent; then
13538   exec 6>/dev/null
13539   ac_configure_extra_args="$ac_configure_extra_args --silent"
13540 fi
13541
13542 _ACEOF
13543 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13544 if \$ac_cs_recheck; then
13545   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13546   shift
13547   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13548   CONFIG_SHELL='$SHELL'
13549   export CONFIG_SHELL
13550   exec "\$@"
13551 fi
13552
13553 _ACEOF
13554 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13555 exec 5>>config.log
13556 {
13557   echo
13558   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13559 ## Running $as_me. ##
13560 _ASBOX
13561   $as_echo "$ac_log"
13562 } >&5
13563
13564 _ACEOF
13565 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13566 #
13567 # INIT-COMMANDS
13568 #
13569 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13570
13571
13572 # The HP-UX ksh and POSIX shell print the target directory to stdout
13573 # if CDPATH is set.
13574 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13575
13576 sed_quote_subst='$sed_quote_subst'
13577 double_quote_subst='$double_quote_subst'
13578 delay_variable_subst='$delay_variable_subst'
13579 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13580 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13581 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
13582 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13583 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13584 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13585 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13586 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13587 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13588 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13589 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13590 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13591 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13592 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13593 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13594 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13595 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13596 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13597 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13598 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13599 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13600 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13601 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13602 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13603 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13604 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13605 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13606 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13607 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13608 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13609 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13610 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13611 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13612 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13613 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13614 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13615 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13616 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13617 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13618 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13619 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13620 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13621 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13622 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13623 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13624 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13625 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13626 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13627 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13628 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13629 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13630 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13631 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13632 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13633 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13634 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13635 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13636 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"`'
13637 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13638 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13639 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13640 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13641 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13642 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13643 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13644 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13645 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13646 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13647 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13648 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13649 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13650 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13651 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13652 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13653 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13654 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13655 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13656 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13657 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13658 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13659 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13660 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13661 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13662 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13663 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13664 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13665 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13666 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13667 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13668 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13669 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13670 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13671 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13672 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13673 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13674 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13675 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13676 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13677 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13678 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13679 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13680 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13681 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13682 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13683 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13684 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13685 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13686 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13687 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13688 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13689 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13690 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13691 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13692 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13693 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13694 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13695 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13696 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13697 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13698 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13699 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13700 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13701 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13702 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13703 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13704 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13705 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13706 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13707 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13708 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13709 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13710
13711 LTCC='$LTCC'
13712 LTCFLAGS='$LTCFLAGS'
13713 compiler='$compiler_DEFAULT'
13714
13715 # A function that is used when there is no print builtin or printf.
13716 func_fallback_echo ()
13717 {
13718   eval 'cat <<_LTECHO_EOF
13719 \$1
13720 _LTECHO_EOF'
13721 }
13722
13723 # Quote evaled strings.
13724 for var in AS \
13725 DLLTOOL \
13726 OBJDUMP \
13727 SHELL \
13728 ECHO \
13729 PATH_SEPARATOR \
13730 SED \
13731 GREP \
13732 EGREP \
13733 FGREP \
13734 LD \
13735 NM \
13736 LN_S \
13737 lt_SP2NL \
13738 lt_NL2SP \
13739 reload_flag \
13740 deplibs_check_method \
13741 file_magic_cmd \
13742 file_magic_glob \
13743 want_nocaseglob \
13744 sharedlib_from_linklib_cmd \
13745 AR \
13746 AR_FLAGS \
13747 archiver_list_spec \
13748 STRIP \
13749 RANLIB \
13750 CC \
13751 CFLAGS \
13752 compiler \
13753 lt_cv_sys_global_symbol_pipe \
13754 lt_cv_sys_global_symbol_to_cdecl \
13755 lt_cv_sys_global_symbol_to_c_name_address \
13756 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13757 nm_file_list_spec \
13758 lt_prog_compiler_no_builtin_flag \
13759 lt_prog_compiler_pic \
13760 lt_prog_compiler_wl \
13761 lt_prog_compiler_static \
13762 lt_cv_prog_compiler_c_o \
13763 need_locks \
13764 MANIFEST_TOOL \
13765 DSYMUTIL \
13766 NMEDIT \
13767 LIPO \
13768 OTOOL \
13769 OTOOL64 \
13770 shrext_cmds \
13771 export_dynamic_flag_spec \
13772 whole_archive_flag_spec \
13773 compiler_needs_object \
13774 with_gnu_ld \
13775 allow_undefined_flag \
13776 no_undefined_flag \
13777 hardcode_libdir_flag_spec \
13778 hardcode_libdir_separator \
13779 exclude_expsyms \
13780 include_expsyms \
13781 file_list_spec \
13782 variables_saved_for_relink \
13783 libname_spec \
13784 library_names_spec \
13785 soname_spec \
13786 install_override_mode \
13787 finish_eval \
13788 old_striplib \
13789 striplib; do
13790     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13791     *[\\\\\\\`\\"\\\$]*)
13792       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13793       ;;
13794     *)
13795       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13796       ;;
13797     esac
13798 done
13799
13800 # Double-quote double-evaled strings.
13801 for var in reload_cmds \
13802 old_postinstall_cmds \
13803 old_postuninstall_cmds \
13804 old_archive_cmds \
13805 extract_expsyms_cmds \
13806 old_archive_from_new_cmds \
13807 old_archive_from_expsyms_cmds \
13808 archive_cmds \
13809 archive_expsym_cmds \
13810 module_cmds \
13811 module_expsym_cmds \
13812 export_symbols_cmds \
13813 prelink_cmds \
13814 postlink_cmds \
13815 postinstall_cmds \
13816 postuninstall_cmds \
13817 finish_cmds \
13818 sys_lib_search_path_spec \
13819 sys_lib_dlsearch_path_spec; do
13820     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13821     *[\\\\\\\`\\"\\\$]*)
13822       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13823       ;;
13824     *)
13825       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13826       ;;
13827     esac
13828 done
13829
13830 ac_aux_dir='$ac_aux_dir'
13831 xsi_shell='$xsi_shell'
13832 lt_shell_append='$lt_shell_append'
13833
13834 # See if we are running on zsh, and set the options which allow our
13835 # commands through without removal of \ escapes INIT.
13836 if test -n "\${ZSH_VERSION+set}" ; then
13837    setopt NO_GLOB_SUBST
13838 fi
13839
13840
13841     PACKAGE='$PACKAGE'
13842     VERSION='$VERSION'
13843     TIMESTAMP='$TIMESTAMP'
13844     RM='$RM'
13845     ofile='$ofile'
13846
13847
13848
13849
13850 _ACEOF
13851
13852 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13853
13854 # Handling of arguments.
13855 for ac_config_target in $ac_config_targets
13856 do
13857   case $ac_config_target in
13858     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13859     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13860     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13861     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13862     "libgupnp-av/Makefile") CONFIG_FILES="$CONFIG_FILES libgupnp-av/Makefile" ;;
13863     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
13864     "tests/gtest/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gtest/Makefile" ;;
13865     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13866     "doc/version.xml") CONFIG_FILES="$CONFIG_FILES doc/version.xml" ;;
13867     "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
13868     "vala/Makefile") CONFIG_FILES="$CONFIG_FILES vala/Makefile" ;;
13869     "gupnp-av-1.0.pc") CONFIG_FILES="$CONFIG_FILES gupnp-av-1.0.pc" ;;
13870     "gupnp-av-1.0-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES gupnp-av-1.0-uninstalled.pc" ;;
13871
13872   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13873   esac
13874 done
13875
13876
13877 # If the user did not use the arguments to specify the items to instantiate,
13878 # then the envvar interface is used.  Set only those that are not.
13879 # We use the long form for the default assignment because of an extremely
13880 # bizarre bug on SunOS 4.1.3.
13881 if $ac_need_defaults; then
13882   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13883   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13884   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13885 fi
13886
13887 # Have a temporary directory for convenience.  Make it in the build tree
13888 # simply because there is no reason against having it here, and in addition,
13889 # creating and moving files from /tmp can sometimes cause problems.
13890 # Hook for its removal unless debugging.
13891 # Note that there is a small window in which the directory will not be cleaned:
13892 # after its creation but before its name has been assigned to `$tmp'.
13893 $debug ||
13894 {
13895   tmp= ac_tmp=
13896   trap 'exit_status=$?
13897   : "${ac_tmp:=$tmp}"
13898   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13899 ' 0
13900   trap 'as_fn_exit 1' 1 2 13 15
13901 }
13902 # Create a (secure) tmp directory for tmp files.
13903
13904 {
13905   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13906   test -d "$tmp"
13907 }  ||
13908 {
13909   tmp=./conf$$-$RANDOM
13910   (umask 077 && mkdir "$tmp")
13911 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13912 ac_tmp=$tmp
13913
13914 # Set up the scripts for CONFIG_FILES section.
13915 # No need to generate them if there are no CONFIG_FILES.
13916 # This happens for instance with `./config.status config.h'.
13917 if test -n "$CONFIG_FILES"; then
13918
13919
13920 ac_cr=`echo X | tr X '\015'`
13921 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13922 # But we know of no other shell where ac_cr would be empty at this
13923 # point, so we can use a bashism as a fallback.
13924 if test "x$ac_cr" = x; then
13925   eval ac_cr=\$\'\\r\'
13926 fi
13927 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13928 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13929   ac_cs_awk_cr='\\r'
13930 else
13931   ac_cs_awk_cr=$ac_cr
13932 fi
13933
13934 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13935 _ACEOF
13936
13937
13938 {
13939   echo "cat >conf$$subs.awk <<_ACEOF" &&
13940   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13941   echo "_ACEOF"
13942 } >conf$$subs.sh ||
13943   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13944 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13945 ac_delim='%!_!# '
13946 for ac_last_try in false false false false false :; do
13947   . ./conf$$subs.sh ||
13948     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13949
13950   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13951   if test $ac_delim_n = $ac_delim_num; then
13952     break
13953   elif $ac_last_try; then
13954     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13955   else
13956     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13957   fi
13958 done
13959 rm -f conf$$subs.sh
13960
13961 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13962 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13963 _ACEOF
13964 sed -n '
13965 h
13966 s/^/S["/; s/!.*/"]=/
13967 p
13968 g
13969 s/^[^!]*!//
13970 :repl
13971 t repl
13972 s/'"$ac_delim"'$//
13973 t delim
13974 :nl
13975 h
13976 s/\(.\{148\}\)..*/\1/
13977 t more1
13978 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13979 p
13980 n
13981 b repl
13982 :more1
13983 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13984 p
13985 g
13986 s/.\{148\}//
13987 t nl
13988 :delim
13989 h
13990 s/\(.\{148\}\)..*/\1/
13991 t more2
13992 s/["\\]/\\&/g; s/^/"/; s/$/"/
13993 p
13994 b
13995 :more2
13996 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13997 p
13998 g
13999 s/.\{148\}//
14000 t delim
14001 ' <conf$$subs.awk | sed '
14002 /^[^""]/{
14003   N
14004   s/\n//
14005 }
14006 ' >>$CONFIG_STATUS || ac_write_fail=1
14007 rm -f conf$$subs.awk
14008 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14009 _ACAWK
14010 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14011   for (key in S) S_is_set[key] = 1
14012   FS = "\a"
14013
14014 }
14015 {
14016   line = $ 0
14017   nfields = split(line, field, "@")
14018   substed = 0
14019   len = length(field[1])
14020   for (i = 2; i < nfields; i++) {
14021     key = field[i]
14022     keylen = length(key)
14023     if (S_is_set[key]) {
14024       value = S[key]
14025       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14026       len += length(value) + length(field[++i])
14027       substed = 1
14028     } else
14029       len += 1 + keylen
14030   }
14031
14032   print line
14033 }
14034
14035 _ACAWK
14036 _ACEOF
14037 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14038 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14039   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14040 else
14041   cat
14042 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14043   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14044 _ACEOF
14045
14046 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14047 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14048 # trailing colons and then remove the whole line if VPATH becomes empty
14049 # (actually we leave an empty line to preserve line numbers).
14050 if test "x$srcdir" = x.; then
14051   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
14052 h
14053 s///
14054 s/^/:/
14055 s/[      ]*$/:/
14056 s/:\$(srcdir):/:/g
14057 s/:\${srcdir}:/:/g
14058 s/:@srcdir@:/:/g
14059 s/^:*//
14060 s/:*$//
14061 x
14062 s/\(=[   ]*\).*/\1/
14063 G
14064 s/\n//
14065 s/^[^=]*=[       ]*$//
14066 }'
14067 fi
14068
14069 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14070 fi # test -n "$CONFIG_FILES"
14071
14072 # Set up the scripts for CONFIG_HEADERS section.
14073 # No need to generate them if there are no CONFIG_HEADERS.
14074 # This happens for instance with `./config.status Makefile'.
14075 if test -n "$CONFIG_HEADERS"; then
14076 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14077 BEGIN {
14078 _ACEOF
14079
14080 # Transform confdefs.h into an awk script `defines.awk', embedded as
14081 # here-document in config.status, that substitutes the proper values into
14082 # config.h.in to produce config.h.
14083
14084 # Create a delimiter string that does not exist in confdefs.h, to ease
14085 # handling of long lines.
14086 ac_delim='%!_!# '
14087 for ac_last_try in false false :; do
14088   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14089   if test -z "$ac_tt"; then
14090     break
14091   elif $ac_last_try; then
14092     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14093   else
14094     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14095   fi
14096 done
14097
14098 # For the awk script, D is an array of macro values keyed by name,
14099 # likewise P contains macro parameters if any.  Preserve backslash
14100 # newline sequences.
14101
14102 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14103 sed -n '
14104 s/.\{148\}/&'"$ac_delim"'/g
14105 t rset
14106 :rset
14107 s/^[     ]*#[    ]*define[       ][      ]*/ /
14108 t def
14109 d
14110 :def
14111 s/\\$//
14112 t bsnl
14113 s/["\\]/\\&/g
14114 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14115 D["\1"]=" \3"/p
14116 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
14117 d
14118 :bsnl
14119 s/["\\]/\\&/g
14120 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14121 D["\1"]=" \3\\\\\\n"\\/p
14122 t cont
14123 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14124 t cont
14125 d
14126 :cont
14127 n
14128 s/.\{148\}/&'"$ac_delim"'/g
14129 t clear
14130 :clear
14131 s/\\$//
14132 t bsnlc
14133 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14134 d
14135 :bsnlc
14136 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14137 b cont
14138 ' <confdefs.h | sed '
14139 s/'"$ac_delim"'/"\\\
14140 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14141
14142 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14143   for (key in D) D_is_set[key] = 1
14144   FS = "\a"
14145 }
14146 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14147   line = \$ 0
14148   split(line, arg, " ")
14149   if (arg[1] == "#") {
14150     defundef = arg[2]
14151     mac1 = arg[3]
14152   } else {
14153     defundef = substr(arg[1], 2)
14154     mac1 = arg[2]
14155   }
14156   split(mac1, mac2, "(") #)
14157   macro = mac2[1]
14158   prefix = substr(line, 1, index(line, defundef) - 1)
14159   if (D_is_set[macro]) {
14160     # Preserve the white space surrounding the "#".
14161     print prefix "define", macro P[macro] D[macro]
14162     next
14163   } else {
14164     # Replace #undef with comments.  This is necessary, for example,
14165     # in the case of _POSIX_SOURCE, which is predefined and required
14166     # on some systems where configure will not decide to define it.
14167     if (defundef == "undef") {
14168       print "/*", prefix defundef, macro, "*/"
14169       next
14170     }
14171   }
14172 }
14173 { print }
14174 _ACAWK
14175 _ACEOF
14176 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14177   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14178 fi # test -n "$CONFIG_HEADERS"
14179
14180
14181 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14182 shift
14183 for ac_tag
14184 do
14185   case $ac_tag in
14186   :[FHLC]) ac_mode=$ac_tag; continue;;
14187   esac
14188   case $ac_mode$ac_tag in
14189   :[FHL]*:*);;
14190   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14191   :[FH]-) ac_tag=-:-;;
14192   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14193   esac
14194   ac_save_IFS=$IFS
14195   IFS=:
14196   set x $ac_tag
14197   IFS=$ac_save_IFS
14198   shift
14199   ac_file=$1
14200   shift
14201
14202   case $ac_mode in
14203   :L) ac_source=$1;;
14204   :[FH])
14205     ac_file_inputs=
14206     for ac_f
14207     do
14208       case $ac_f in
14209       -) ac_f="$ac_tmp/stdin";;
14210       *) # Look for the file first in the build tree, then in the source tree
14211          # (if the path is not absolute).  The absolute path cannot be DOS-style,
14212          # because $ac_f cannot contain `:'.
14213          test -f "$ac_f" ||
14214            case $ac_f in
14215            [\\/$]*) false;;
14216            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14217            esac ||
14218            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14219       esac
14220       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14221       as_fn_append ac_file_inputs " '$ac_f'"
14222     done
14223
14224     # Let's still pretend it is `configure' which instantiates (i.e., don't
14225     # use $as_me), people would be surprised to read:
14226     #    /* config.h.  Generated by config.status.  */
14227     configure_input='Generated from '`
14228           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14229         `' by configure.'
14230     if test x"$ac_file" != x-; then
14231       configure_input="$ac_file.  $configure_input"
14232       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14233 $as_echo "$as_me: creating $ac_file" >&6;}
14234     fi
14235     # Neutralize special characters interpreted by sed in replacement strings.
14236     case $configure_input in #(
14237     *\&* | *\|* | *\\* )
14238        ac_sed_conf_input=`$as_echo "$configure_input" |
14239        sed 's/[\\\\&|]/\\\\&/g'`;; #(
14240     *) ac_sed_conf_input=$configure_input;;
14241     esac
14242
14243     case $ac_tag in
14244     *:-:* | *:-) cat >"$ac_tmp/stdin" \
14245       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14246     esac
14247     ;;
14248   esac
14249
14250   ac_dir=`$as_dirname -- "$ac_file" ||
14251 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14252          X"$ac_file" : 'X\(//\)[^/]' \| \
14253          X"$ac_file" : 'X\(//\)$' \| \
14254          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14255 $as_echo X"$ac_file" |
14256     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14257             s//\1/
14258             q
14259           }
14260           /^X\(\/\/\)[^/].*/{
14261             s//\1/
14262             q
14263           }
14264           /^X\(\/\/\)$/{
14265             s//\1/
14266             q
14267           }
14268           /^X\(\/\).*/{
14269             s//\1/
14270             q
14271           }
14272           s/.*/./; q'`
14273   as_dir="$ac_dir"; as_fn_mkdir_p
14274   ac_builddir=.
14275
14276 case "$ac_dir" in
14277 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14278 *)
14279   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14280   # A ".." for each directory in $ac_dir_suffix.
14281   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14282   case $ac_top_builddir_sub in
14283   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14284   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14285   esac ;;
14286 esac
14287 ac_abs_top_builddir=$ac_pwd
14288 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14289 # for backward compatibility:
14290 ac_top_builddir=$ac_top_build_prefix
14291
14292 case $srcdir in
14293   .)  # We are building in place.
14294     ac_srcdir=.
14295     ac_top_srcdir=$ac_top_builddir_sub
14296     ac_abs_top_srcdir=$ac_pwd ;;
14297   [\\/]* | ?:[\\/]* )  # Absolute name.
14298     ac_srcdir=$srcdir$ac_dir_suffix;
14299     ac_top_srcdir=$srcdir
14300     ac_abs_top_srcdir=$srcdir ;;
14301   *) # Relative name.
14302     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14303     ac_top_srcdir=$ac_top_build_prefix$srcdir
14304     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14305 esac
14306 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14307
14308
14309   case $ac_mode in
14310   :F)
14311   #
14312   # CONFIG_FILE
14313   #
14314
14315   case $INSTALL in
14316   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14317   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14318   esac
14319   ac_MKDIR_P=$MKDIR_P
14320   case $MKDIR_P in
14321   [\\/$]* | ?:[\\/]* ) ;;
14322   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14323   esac
14324 _ACEOF
14325
14326 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14327 # If the template does not know about datarootdir, expand it.
14328 # FIXME: This hack should be removed a few years after 2.60.
14329 ac_datarootdir_hack=; ac_datarootdir_seen=
14330 ac_sed_dataroot='
14331 /datarootdir/ {
14332   p
14333   q
14334 }
14335 /@datadir@/p
14336 /@docdir@/p
14337 /@infodir@/p
14338 /@localedir@/p
14339 /@mandir@/p'
14340 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14341 *datarootdir*) ac_datarootdir_seen=yes;;
14342 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14343   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14344 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14345 _ACEOF
14346 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14347   ac_datarootdir_hack='
14348   s&@datadir@&$datadir&g
14349   s&@docdir@&$docdir&g
14350   s&@infodir@&$infodir&g
14351   s&@localedir@&$localedir&g
14352   s&@mandir@&$mandir&g
14353   s&\\\${datarootdir}&$datarootdir&g' ;;
14354 esac
14355 _ACEOF
14356
14357 # Neutralize VPATH when `$srcdir' = `.'.
14358 # Shell code in configure.ac might set extrasub.
14359 # FIXME: do we really want to maintain this feature?
14360 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14361 ac_sed_extra="$ac_vpsub
14362 $extrasub
14363 _ACEOF
14364 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14365 :t
14366 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14367 s|@configure_input@|$ac_sed_conf_input|;t t
14368 s&@top_builddir@&$ac_top_builddir_sub&;t t
14369 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14370 s&@srcdir@&$ac_srcdir&;t t
14371 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14372 s&@top_srcdir@&$ac_top_srcdir&;t t
14373 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14374 s&@builddir@&$ac_builddir&;t t
14375 s&@abs_builddir@&$ac_abs_builddir&;t t
14376 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14377 s&@INSTALL@&$ac_INSTALL&;t t
14378 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14379 $ac_datarootdir_hack
14380 "
14381 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14382   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14383
14384 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14385   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14386   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
14387       "$ac_tmp/out"`; test -z "$ac_out"; } &&
14388   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14389 which seems to be undefined.  Please make sure it is defined" >&5
14390 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14391 which seems to be undefined.  Please make sure it is defined" >&2;}
14392
14393   rm -f "$ac_tmp/stdin"
14394   case $ac_file in
14395   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14396   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14397   esac \
14398   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14399  ;;
14400   :H)
14401   #
14402   # CONFIG_HEADER
14403   #
14404   if test x"$ac_file" != x-; then
14405     {
14406       $as_echo "/* $configure_input  */" \
14407       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14408     } >"$ac_tmp/config.h" \
14409       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14410     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14411       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14412 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14413     else
14414       rm -f "$ac_file"
14415       mv "$ac_tmp/config.h" "$ac_file" \
14416         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14417     fi
14418   else
14419     $as_echo "/* $configure_input  */" \
14420       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14421       || as_fn_error $? "could not create -" "$LINENO" 5
14422   fi
14423 # Compute "$ac_file"'s index in $config_headers.
14424 _am_arg="$ac_file"
14425 _am_stamp_count=1
14426 for _am_header in $config_headers :; do
14427   case $_am_header in
14428     $_am_arg | $_am_arg:* )
14429       break ;;
14430     * )
14431       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14432   esac
14433 done
14434 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14435 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14436          X"$_am_arg" : 'X\(//\)[^/]' \| \
14437          X"$_am_arg" : 'X\(//\)$' \| \
14438          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14439 $as_echo X"$_am_arg" |
14440     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14441             s//\1/
14442             q
14443           }
14444           /^X\(\/\/\)[^/].*/{
14445             s//\1/
14446             q
14447           }
14448           /^X\(\/\/\)$/{
14449             s//\1/
14450             q
14451           }
14452           /^X\(\/\).*/{
14453             s//\1/
14454             q
14455           }
14456           s/.*/./; q'`/stamp-h$_am_stamp_count
14457  ;;
14458
14459   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14460 $as_echo "$as_me: executing $ac_file commands" >&6;}
14461  ;;
14462   esac
14463
14464
14465   case $ac_file$ac_mode in
14466     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14467   # Autoconf 2.62 quotes --file arguments for eval, but not when files
14468   # are listed without --file.  Let's play safe and only enable the eval
14469   # if we detect the quoting.
14470   case $CONFIG_FILES in
14471   *\'*) eval set x "$CONFIG_FILES" ;;
14472   *)   set x $CONFIG_FILES ;;
14473   esac
14474   shift
14475   for mf
14476   do
14477     # Strip MF so we end up with the name of the file.
14478     mf=`echo "$mf" | sed -e 's/:.*$//'`
14479     # Check whether this is an Automake generated Makefile or not.
14480     # We used to match only the files named `Makefile.in', but
14481     # some people rename them; so instead we look at the file content.
14482     # Grep'ing the first line is not enough: some people post-process
14483     # each Makefile.in and add a new line on top of each file to say so.
14484     # Grep'ing the whole file is not good either: AIX grep has a line
14485     # limit of 2048, but all sed's we know have understand at least 4000.
14486     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14487       dirpart=`$as_dirname -- "$mf" ||
14488 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14489          X"$mf" : 'X\(//\)[^/]' \| \
14490          X"$mf" : 'X\(//\)$' \| \
14491          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14492 $as_echo X"$mf" |
14493     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14494             s//\1/
14495             q
14496           }
14497           /^X\(\/\/\)[^/].*/{
14498             s//\1/
14499             q
14500           }
14501           /^X\(\/\/\)$/{
14502             s//\1/
14503             q
14504           }
14505           /^X\(\/\).*/{
14506             s//\1/
14507             q
14508           }
14509           s/.*/./; q'`
14510     else
14511       continue
14512     fi
14513     # Extract the definition of DEPDIR, am__include, and am__quote
14514     # from the Makefile without running `make'.
14515     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14516     test -z "$DEPDIR" && continue
14517     am__include=`sed -n 's/^am__include = //p' < "$mf"`
14518     test -z "am__include" && continue
14519     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14520     # When using ansi2knr, U may be empty or an underscore; expand it
14521     U=`sed -n 's/^U = //p' < "$mf"`
14522     # Find all dependency output files, they are included files with
14523     # $(DEPDIR) in their names.  We invoke sed twice because it is the
14524     # simplest approach to changing $(DEPDIR) to its actual value in the
14525     # expansion.
14526     for file in `sed -n "
14527       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14528          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14529       # Make sure the directory exists.
14530       test -f "$dirpart/$file" && continue
14531       fdir=`$as_dirname -- "$file" ||
14532 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14533          X"$file" : 'X\(//\)[^/]' \| \
14534          X"$file" : 'X\(//\)$' \| \
14535          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14536 $as_echo X"$file" |
14537     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14538             s//\1/
14539             q
14540           }
14541           /^X\(\/\/\)[^/].*/{
14542             s//\1/
14543             q
14544           }
14545           /^X\(\/\/\)$/{
14546             s//\1/
14547             q
14548           }
14549           /^X\(\/\).*/{
14550             s//\1/
14551             q
14552           }
14553           s/.*/./; q'`
14554       as_dir=$dirpart/$fdir; as_fn_mkdir_p
14555       # echo "creating $dirpart/$file"
14556       echo '# dummy' > "$dirpart/$file"
14557     done
14558   done
14559 }
14560  ;;
14561     "libtool":C)
14562
14563     # See if we are running on zsh, and set the options which allow our
14564     # commands through without removal of \ escapes.
14565     if test -n "${ZSH_VERSION+set}" ; then
14566       setopt NO_GLOB_SUBST
14567     fi
14568
14569     cfgfile="${ofile}T"
14570     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14571     $RM "$cfgfile"
14572
14573     cat <<_LT_EOF >> "$cfgfile"
14574 #! $SHELL
14575
14576 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14577 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14578 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14579 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14580 #
14581 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14582 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14583 #                 Foundation, Inc.
14584 #   Written by Gordon Matzigkeit, 1996
14585 #
14586 #   This file is part of GNU Libtool.
14587 #
14588 # GNU Libtool is free software; you can redistribute it and/or
14589 # modify it under the terms of the GNU General Public License as
14590 # published by the Free Software Foundation; either version 2 of
14591 # the License, or (at your option) any later version.
14592 #
14593 # As a special exception to the GNU General Public License,
14594 # if you distribute this file as part of a program or library that
14595 # is built using GNU Libtool, you may include this file under the
14596 # same distribution terms that you use for the rest of that program.
14597 #
14598 # GNU Libtool is distributed in the hope that it will be useful,
14599 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14600 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14601 # GNU General Public License for more details.
14602 #
14603 # You should have received a copy of the GNU General Public License
14604 # along with GNU Libtool; see the file COPYING.  If not, a copy
14605 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14606 # obtained by writing to the Free Software Foundation, Inc.,
14607 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14608
14609
14610 # The names of the tagged configurations supported by this script.
14611 available_tags=""
14612
14613 # ### BEGIN LIBTOOL CONFIG
14614
14615 # Which release of libtool.m4 was used?
14616 macro_version=$macro_version
14617 macro_revision=$macro_revision
14618
14619 # Assembler program.
14620 AS=$lt_AS
14621
14622 # DLL creation program.
14623 DLLTOOL=$lt_DLLTOOL
14624
14625 # Object dumper program.
14626 OBJDUMP=$lt_OBJDUMP
14627
14628 # Whether or not to build shared libraries.
14629 build_libtool_libs=$enable_shared
14630
14631 # Whether or not to build static libraries.
14632 build_old_libs=$enable_static
14633
14634 # What type of objects to build.
14635 pic_mode=$pic_mode
14636
14637 # Whether or not to optimize for fast installation.
14638 fast_install=$enable_fast_install
14639
14640 # Shell to use when invoking shell scripts.
14641 SHELL=$lt_SHELL
14642
14643 # An echo program that protects backslashes.
14644 ECHO=$lt_ECHO
14645
14646 # The PATH separator for the build system.
14647 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14648
14649 # The host system.
14650 host_alias=$host_alias
14651 host=$host
14652 host_os=$host_os
14653
14654 # The build system.
14655 build_alias=$build_alias
14656 build=$build
14657 build_os=$build_os
14658
14659 # A sed program that does not truncate output.
14660 SED=$lt_SED
14661
14662 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14663 Xsed="\$SED -e 1s/^X//"
14664
14665 # A grep program that handles long lines.
14666 GREP=$lt_GREP
14667
14668 # An ERE matcher.
14669 EGREP=$lt_EGREP
14670
14671 # A literal string matcher.
14672 FGREP=$lt_FGREP
14673
14674 # A BSD- or MS-compatible name lister.
14675 NM=$lt_NM
14676
14677 # Whether we need soft or hard links.
14678 LN_S=$lt_LN_S
14679
14680 # What is the maximum length of a command?
14681 max_cmd_len=$max_cmd_len
14682
14683 # Object file suffix (normally "o").
14684 objext=$ac_objext
14685
14686 # Executable file suffix (normally "").
14687 exeext=$exeext
14688
14689 # whether the shell understands "unset".
14690 lt_unset=$lt_unset
14691
14692 # turn spaces into newlines.
14693 SP2NL=$lt_lt_SP2NL
14694
14695 # turn newlines into spaces.
14696 NL2SP=$lt_lt_NL2SP
14697
14698 # convert \$build file names to \$host format.
14699 to_host_file_cmd=$lt_cv_to_host_file_cmd
14700
14701 # convert \$build files to toolchain format.
14702 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14703
14704 # Method to check whether dependent libraries are shared objects.
14705 deplibs_check_method=$lt_deplibs_check_method
14706
14707 # Command to use when deplibs_check_method = "file_magic".
14708 file_magic_cmd=$lt_file_magic_cmd
14709
14710 # How to find potential files when deplibs_check_method = "file_magic".
14711 file_magic_glob=$lt_file_magic_glob
14712
14713 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14714 want_nocaseglob=$lt_want_nocaseglob
14715
14716 # Command to associate shared and link libraries.
14717 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14718
14719 # The archiver.
14720 AR=$lt_AR
14721
14722 # Flags to create an archive.
14723 AR_FLAGS=$lt_AR_FLAGS
14724
14725 # How to feed a file listing to the archiver.
14726 archiver_list_spec=$lt_archiver_list_spec
14727
14728 # A symbol stripping program.
14729 STRIP=$lt_STRIP
14730
14731 # Commands used to install an old-style archive.
14732 RANLIB=$lt_RANLIB
14733 old_postinstall_cmds=$lt_old_postinstall_cmds
14734 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14735
14736 # Whether to use a lock for old archive extraction.
14737 lock_old_archive_extraction=$lock_old_archive_extraction
14738
14739 # A C compiler.
14740 LTCC=$lt_CC
14741
14742 # LTCC compiler flags.
14743 LTCFLAGS=$lt_CFLAGS
14744
14745 # Take the output of nm and produce a listing of raw symbols and C names.
14746 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14747
14748 # Transform the output of nm in a proper C declaration.
14749 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14750
14751 # Transform the output of nm in a C name address pair.
14752 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14753
14754 # Transform the output of nm in a C name address pair when lib prefix is needed.
14755 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14756
14757 # Specify filename containing input files for \$NM.
14758 nm_file_list_spec=$lt_nm_file_list_spec
14759
14760 # The root where to search for dependent libraries,and in which our libraries should be installed.
14761 lt_sysroot=$lt_sysroot
14762
14763 # The name of the directory that contains temporary libtool files.
14764 objdir=$objdir
14765
14766 # Used to examine libraries when file_magic_cmd begins with "file".
14767 MAGIC_CMD=$MAGIC_CMD
14768
14769 # Must we lock files when doing compilation?
14770 need_locks=$lt_need_locks
14771
14772 # Manifest tool.
14773 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14774
14775 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14776 DSYMUTIL=$lt_DSYMUTIL
14777
14778 # Tool to change global to local symbols on Mac OS X.
14779 NMEDIT=$lt_NMEDIT
14780
14781 # Tool to manipulate fat objects and archives on Mac OS X.
14782 LIPO=$lt_LIPO
14783
14784 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14785 OTOOL=$lt_OTOOL
14786
14787 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14788 OTOOL64=$lt_OTOOL64
14789
14790 # Old archive suffix (normally "a").
14791 libext=$libext
14792
14793 # Shared library suffix (normally ".so").
14794 shrext_cmds=$lt_shrext_cmds
14795
14796 # The commands to extract the exported symbol list from a shared archive.
14797 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14798
14799 # Variables whose values should be saved in libtool wrapper scripts and
14800 # restored at link time.
14801 variables_saved_for_relink=$lt_variables_saved_for_relink
14802
14803 # Do we need the "lib" prefix for modules?
14804 need_lib_prefix=$need_lib_prefix
14805
14806 # Do we need a version for libraries?
14807 need_version=$need_version
14808
14809 # Library versioning type.
14810 version_type=$version_type
14811
14812 # Shared library runtime path variable.
14813 runpath_var=$runpath_var
14814
14815 # Shared library path variable.
14816 shlibpath_var=$shlibpath_var
14817
14818 # Is shlibpath searched before the hard-coded library search path?
14819 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14820
14821 # Format of library name prefix.
14822 libname_spec=$lt_libname_spec
14823
14824 # List of archive names.  First name is the real one, the rest are links.
14825 # The last name is the one that the linker finds with -lNAME
14826 library_names_spec=$lt_library_names_spec
14827
14828 # The coded name of the library, if different from the real name.
14829 soname_spec=$lt_soname_spec
14830
14831 # Permission mode override for installation of shared libraries.
14832 install_override_mode=$lt_install_override_mode
14833
14834 # Command to use after installation of a shared archive.
14835 postinstall_cmds=$lt_postinstall_cmds
14836
14837 # Command to use after uninstallation of a shared archive.
14838 postuninstall_cmds=$lt_postuninstall_cmds
14839
14840 # Commands used to finish a libtool library installation in a directory.
14841 finish_cmds=$lt_finish_cmds
14842
14843 # As "finish_cmds", except a single script fragment to be evaled but
14844 # not shown.
14845 finish_eval=$lt_finish_eval
14846
14847 # Whether we should hardcode library paths into libraries.
14848 hardcode_into_libs=$hardcode_into_libs
14849
14850 # Compile-time system search path for libraries.
14851 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14852
14853 # Run-time system search path for libraries.
14854 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14855
14856 # Whether dlopen is supported.
14857 dlopen_support=$enable_dlopen
14858
14859 # Whether dlopen of programs is supported.
14860 dlopen_self=$enable_dlopen_self
14861
14862 # Whether dlopen of statically linked programs is supported.
14863 dlopen_self_static=$enable_dlopen_self_static
14864
14865 # Commands to strip libraries.
14866 old_striplib=$lt_old_striplib
14867 striplib=$lt_striplib
14868
14869
14870 # The linker used to build libraries.
14871 LD=$lt_LD
14872
14873 # How to create reloadable object files.
14874 reload_flag=$lt_reload_flag
14875 reload_cmds=$lt_reload_cmds
14876
14877 # Commands used to build an old-style archive.
14878 old_archive_cmds=$lt_old_archive_cmds
14879
14880 # A language specific compiler.
14881 CC=$lt_compiler
14882
14883 # Is the compiler the GNU compiler?
14884 with_gcc=$GCC
14885
14886 # Compiler flag to turn off builtin functions.
14887 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14888
14889 # Additional compiler flags for building library objects.
14890 pic_flag=$lt_lt_prog_compiler_pic
14891
14892 # How to pass a linker flag through the compiler.
14893 wl=$lt_lt_prog_compiler_wl
14894
14895 # Compiler flag to prevent dynamic linking.
14896 link_static_flag=$lt_lt_prog_compiler_static
14897
14898 # Does compiler simultaneously support -c and -o options?
14899 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14900
14901 # Whether or not to add -lc for building shared libraries.
14902 build_libtool_need_lc=$archive_cmds_need_lc
14903
14904 # Whether or not to disallow shared libs when runtime libs are static.
14905 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14906
14907 # Compiler flag to allow reflexive dlopens.
14908 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14909
14910 # Compiler flag to generate shared objects directly from archives.
14911 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14912
14913 # Whether the compiler copes with passing no objects directly.
14914 compiler_needs_object=$lt_compiler_needs_object
14915
14916 # Create an old-style archive from a shared archive.
14917 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14918
14919 # Create a temporary old-style archive to link instead of a shared archive.
14920 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14921
14922 # Commands used to build a shared archive.
14923 archive_cmds=$lt_archive_cmds
14924 archive_expsym_cmds=$lt_archive_expsym_cmds
14925
14926 # Commands used to build a loadable module if different from building
14927 # a shared archive.
14928 module_cmds=$lt_module_cmds
14929 module_expsym_cmds=$lt_module_expsym_cmds
14930
14931 # Whether we are building with GNU ld or not.
14932 with_gnu_ld=$lt_with_gnu_ld
14933
14934 # Flag that allows shared libraries with undefined symbols to be built.
14935 allow_undefined_flag=$lt_allow_undefined_flag
14936
14937 # Flag that enforces no undefined symbols.
14938 no_undefined_flag=$lt_no_undefined_flag
14939
14940 # Flag to hardcode \$libdir into a binary during linking.
14941 # This must work even if \$libdir does not exist
14942 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14943
14944 # Whether we need a single "-rpath" flag with a separated argument.
14945 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14946
14947 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14948 # DIR into the resulting binary.
14949 hardcode_direct=$hardcode_direct
14950
14951 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14952 # DIR into the resulting binary and the resulting library dependency is
14953 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14954 # library is relocated.
14955 hardcode_direct_absolute=$hardcode_direct_absolute
14956
14957 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14958 # into the resulting binary.
14959 hardcode_minus_L=$hardcode_minus_L
14960
14961 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14962 # into the resulting binary.
14963 hardcode_shlibpath_var=$hardcode_shlibpath_var
14964
14965 # Set to "yes" if building a shared library automatically hardcodes DIR
14966 # into the library and all subsequent libraries and executables linked
14967 # against it.
14968 hardcode_automatic=$hardcode_automatic
14969
14970 # Set to yes if linker adds runtime paths of dependent libraries
14971 # to runtime path list.
14972 inherit_rpath=$inherit_rpath
14973
14974 # Whether libtool must link a program against all its dependency libraries.
14975 link_all_deplibs=$link_all_deplibs
14976
14977 # Set to "yes" if exported symbols are required.
14978 always_export_symbols=$always_export_symbols
14979
14980 # The commands to list exported symbols.
14981 export_symbols_cmds=$lt_export_symbols_cmds
14982
14983 # Symbols that should not be listed in the preloaded symbols.
14984 exclude_expsyms=$lt_exclude_expsyms
14985
14986 # Symbols that must always be exported.
14987 include_expsyms=$lt_include_expsyms
14988
14989 # Commands necessary for linking programs (against libraries) with templates.
14990 prelink_cmds=$lt_prelink_cmds
14991
14992 # Commands necessary for finishing linking programs.
14993 postlink_cmds=$lt_postlink_cmds
14994
14995 # Specify filename containing input files.
14996 file_list_spec=$lt_file_list_spec
14997
14998 # How to hardcode a shared library path into an executable.
14999 hardcode_action=$hardcode_action
15000
15001 # ### END LIBTOOL CONFIG
15002
15003 _LT_EOF
15004
15005   case $host_os in
15006   aix3*)
15007     cat <<\_LT_EOF >> "$cfgfile"
15008 # AIX sometimes has problems with the GCC collect2 program.  For some
15009 # reason, if we set the COLLECT_NAMES environment variable, the problems
15010 # vanish in a puff of smoke.
15011 if test "X${COLLECT_NAMES+set}" != Xset; then
15012   COLLECT_NAMES=
15013   export COLLECT_NAMES
15014 fi
15015 _LT_EOF
15016     ;;
15017   esac
15018
15019
15020 ltmain="$ac_aux_dir/ltmain.sh"
15021
15022
15023   # We use sed instead of cat because bash on DJGPP gets confused if
15024   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15025   # text mode, it properly converts lines to CR/LF.  This bash problem
15026   # is reportedly fixed, but why not run on old versions too?
15027   sed '$q' "$ltmain" >> "$cfgfile" \
15028      || (rm -f "$cfgfile"; exit 1)
15029
15030   if test x"$xsi_shell" = xyes; then
15031   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
15032 func_dirname ()\
15033 {\
15034 \    case ${1} in\
15035 \      */*) func_dirname_result="${1%/*}${2}" ;;\
15036 \      *  ) func_dirname_result="${3}" ;;\
15037 \    esac\
15038 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
15039   && mv -f "$cfgfile.tmp" "$cfgfile" \
15040     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15041 test 0 -eq $? || _lt_function_replace_fail=:
15042
15043
15044   sed -e '/^func_basename ()$/,/^} # func_basename /c\
15045 func_basename ()\
15046 {\
15047 \    func_basename_result="${1##*/}"\
15048 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
15049   && mv -f "$cfgfile.tmp" "$cfgfile" \
15050     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15051 test 0 -eq $? || _lt_function_replace_fail=:
15052
15053
15054   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
15055 func_dirname_and_basename ()\
15056 {\
15057 \    case ${1} in\
15058 \      */*) func_dirname_result="${1%/*}${2}" ;;\
15059 \      *  ) func_dirname_result="${3}" ;;\
15060 \    esac\
15061 \    func_basename_result="${1##*/}"\
15062 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
15063   && mv -f "$cfgfile.tmp" "$cfgfile" \
15064     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15065 test 0 -eq $? || _lt_function_replace_fail=:
15066
15067
15068   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
15069 func_stripname ()\
15070 {\
15071 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
15072 \    # positional parameters, so assign one to ordinary parameter first.\
15073 \    func_stripname_result=${3}\
15074 \    func_stripname_result=${func_stripname_result#"${1}"}\
15075 \    func_stripname_result=${func_stripname_result%"${2}"}\
15076 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
15077   && mv -f "$cfgfile.tmp" "$cfgfile" \
15078     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15079 test 0 -eq $? || _lt_function_replace_fail=:
15080
15081
15082   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
15083 func_split_long_opt ()\
15084 {\
15085 \    func_split_long_opt_name=${1%%=*}\
15086 \    func_split_long_opt_arg=${1#*=}\
15087 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
15088   && mv -f "$cfgfile.tmp" "$cfgfile" \
15089     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15090 test 0 -eq $? || _lt_function_replace_fail=:
15091
15092
15093   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
15094 func_split_short_opt ()\
15095 {\
15096 \    func_split_short_opt_arg=${1#??}\
15097 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
15098 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
15099   && mv -f "$cfgfile.tmp" "$cfgfile" \
15100     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15101 test 0 -eq $? || _lt_function_replace_fail=:
15102
15103
15104   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
15105 func_lo2o ()\
15106 {\
15107 \    case ${1} in\
15108 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
15109 \      *)    func_lo2o_result=${1} ;;\
15110 \    esac\
15111 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
15112   && mv -f "$cfgfile.tmp" "$cfgfile" \
15113     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15114 test 0 -eq $? || _lt_function_replace_fail=:
15115
15116
15117   sed -e '/^func_xform ()$/,/^} # func_xform /c\
15118 func_xform ()\
15119 {\
15120     func_xform_result=${1%.*}.lo\
15121 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
15122   && mv -f "$cfgfile.tmp" "$cfgfile" \
15123     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15124 test 0 -eq $? || _lt_function_replace_fail=:
15125
15126
15127   sed -e '/^func_arith ()$/,/^} # func_arith /c\
15128 func_arith ()\
15129 {\
15130     func_arith_result=$(( $* ))\
15131 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
15132   && mv -f "$cfgfile.tmp" "$cfgfile" \
15133     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15134 test 0 -eq $? || _lt_function_replace_fail=:
15135
15136
15137   sed -e '/^func_len ()$/,/^} # func_len /c\
15138 func_len ()\
15139 {\
15140     func_len_result=${#1}\
15141 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
15142   && mv -f "$cfgfile.tmp" "$cfgfile" \
15143     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15144 test 0 -eq $? || _lt_function_replace_fail=:
15145
15146 fi
15147
15148 if test x"$lt_shell_append" = xyes; then
15149   sed -e '/^func_append ()$/,/^} # func_append /c\
15150 func_append ()\
15151 {\
15152     eval "${1}+=\\${2}"\
15153 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
15154   && mv -f "$cfgfile.tmp" "$cfgfile" \
15155     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15156 test 0 -eq $? || _lt_function_replace_fail=:
15157
15158
15159   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
15160 func_append_quoted ()\
15161 {\
15162 \    func_quote_for_eval "${2}"\
15163 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
15164 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
15165   && mv -f "$cfgfile.tmp" "$cfgfile" \
15166     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15167 test 0 -eq $? || _lt_function_replace_fail=:
15168
15169
15170   # Save a `func_append' function call where possible by direct use of '+='
15171   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
15172     && mv -f "$cfgfile.tmp" "$cfgfile" \
15173       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15174   test 0 -eq $? || _lt_function_replace_fail=:
15175 else
15176   # Save a `func_append' function call even when '+=' is not available
15177   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
15178     && mv -f "$cfgfile.tmp" "$cfgfile" \
15179       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15180   test 0 -eq $? || _lt_function_replace_fail=:
15181 fi
15182
15183 if test x"$_lt_function_replace_fail" = x":"; then
15184   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
15185 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
15186 fi
15187
15188
15189    mv -f "$cfgfile" "$ofile" ||
15190     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15191   chmod +x "$ofile"
15192
15193  ;;
15194
15195   esac
15196 done # for ac_tag
15197
15198
15199 as_fn_exit 0
15200 _ACEOF
15201 ac_clean_files=$ac_clean_files_save
15202
15203 test $ac_write_fail = 0 ||
15204   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15205
15206
15207 # configure is writing to config.log, and then calls config.status.
15208 # config.status does its own redirection, appending to config.log.
15209 # Unfortunately, on DOS this fails, as config.log is still kept open
15210 # by configure, so config.status won't be able to write to it; its
15211 # output is simply discarded.  So we exec the FD to /dev/null,
15212 # effectively closing config.log, so it can be properly (re)opened and
15213 # appended to by config.status.  When coming back to configure, we
15214 # need to make the FD available again.
15215 if test "$no_create" != yes; then
15216   ac_cs_success=:
15217   ac_config_status_args=
15218   test "$silent" = yes &&
15219     ac_config_status_args="$ac_config_status_args --quiet"
15220   exec 5>/dev/null
15221   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15222   exec 5>>config.log
15223   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15224   # would make configure fail if this is the last instruction.
15225   $ac_cs_success || as_fn_exit 1
15226 fi
15227 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15228   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15229 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15230 fi
15231