Update Changelog
[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.12.4.
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.12.4'
655 PACKAGE_STRING='gupnp-av 0.12.4'
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 MAINT
785 MAINTAINER_MODE_FALSE
786 MAINTAINER_MODE_TRUE
787 AM_BACKSLASH
788 AM_DEFAULT_VERBOSITY
789 AM_DEFAULT_V
790 AM_V
791 am__untar
792 am__tar
793 AMTAR
794 am__leading_dot
795 SET_MAKE
796 AWK
797 mkdir_p
798 MKDIR_P
799 INSTALL_STRIP_PROGRAM
800 STRIP
801 install_sh
802 MAKEINFO
803 AUTOHEADER
804 AUTOMAKE
805 AUTOCONF
806 ACLOCAL
807 VERSION
808 PACKAGE
809 CYGPATH_W
810 am__isrc
811 INSTALL_DATA
812 INSTALL_SCRIPT
813 INSTALL_PROGRAM
814 target_alias
815 host_alias
816 build_alias
817 LIBS
818 ECHO_T
819 ECHO_N
820 ECHO_C
821 DEFS
822 mandir
823 localedir
824 libdir
825 psdir
826 pdfdir
827 dvidir
828 htmldir
829 infodir
830 docdir
831 oldincludedir
832 includedir
833 localstatedir
834 sharedstatedir
835 sysconfdir
836 datadir
837 datarootdir
838 libexecdir
839 sbindir
840 bindir
841 program_transform_name
842 prefix
843 exec_prefix
844 PACKAGE_URL
845 PACKAGE_BUGREPORT
846 PACKAGE_STRING
847 PACKAGE_VERSION
848 PACKAGE_TARNAME
849 PACKAGE_NAME
850 PATH_SEPARATOR
851 SHELL'
852 ac_subst_files=''
853 ac_user_opts='
854 enable_option_checking
855 enable_silent_rules
856 enable_maintainer_mode
857 enable_dependency_tracking
858 enable_shared
859 enable_static
860 with_pic
861 enable_fast_install
862 with_gnu_ld
863 with_sysroot
864 enable_libtool_lock
865 enable_debug
866 enable_introspection
867 with_html_dir
868 enable_gtk_doc
869 enable_gtk_doc_html
870 enable_gtk_doc_pdf
871 '
872       ac_precious_vars='build_alias
873 host_alias
874 target_alias
875 CC
876 CFLAGS
877 LDFLAGS
878 LIBS
879 CPPFLAGS
880 CPP
881 PKG_CONFIG
882 PKG_CONFIG_PATH
883 PKG_CONFIG_LIBDIR
884 LIBGUPNP_CFLAGS
885 LIBGUPNP_LIBS
886 GTKDOC_DEPS_CFLAGS
887 GTKDOC_DEPS_LIBS'
888
889
890 # Initialize some variables set by options.
891 ac_init_help=
892 ac_init_version=false
893 ac_unrecognized_opts=
894 ac_unrecognized_sep=
895 # The variables have the same names as the options, with
896 # dashes changed to underlines.
897 cache_file=/dev/null
898 exec_prefix=NONE
899 no_create=
900 no_recursion=
901 prefix=NONE
902 program_prefix=NONE
903 program_suffix=NONE
904 program_transform_name=s,x,x,
905 silent=
906 site=
907 srcdir=
908 verbose=
909 x_includes=NONE
910 x_libraries=NONE
911
912 # Installation directory options.
913 # These are left unexpanded so users can "make install exec_prefix=/foo"
914 # and all the variables that are supposed to be based on exec_prefix
915 # by default will actually change.
916 # Use braces instead of parens because sh, perl, etc. also accept them.
917 # (The list follows the same order as the GNU Coding Standards.)
918 bindir='${exec_prefix}/bin'
919 sbindir='${exec_prefix}/sbin'
920 libexecdir='${exec_prefix}/libexec'
921 datarootdir='${prefix}/share'
922 datadir='${datarootdir}'
923 sysconfdir='${prefix}/etc'
924 sharedstatedir='${prefix}/com'
925 localstatedir='${prefix}/var'
926 includedir='${prefix}/include'
927 oldincludedir='/usr/include'
928 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
929 infodir='${datarootdir}/info'
930 htmldir='${docdir}'
931 dvidir='${docdir}'
932 pdfdir='${docdir}'
933 psdir='${docdir}'
934 libdir='${exec_prefix}/lib'
935 localedir='${datarootdir}/locale'
936 mandir='${datarootdir}/man'
937
938 ac_prev=
939 ac_dashdash=
940 for ac_option
941 do
942   # If the previous option needs an argument, assign it.
943   if test -n "$ac_prev"; then
944     eval $ac_prev=\$ac_option
945     ac_prev=
946     continue
947   fi
948
949   case $ac_option in
950   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
951   *=)   ac_optarg= ;;
952   *)    ac_optarg=yes ;;
953   esac
954
955   # Accept the important Cygnus configure options, so we can diagnose typos.
956
957   case $ac_dashdash$ac_option in
958   --)
959     ac_dashdash=yes ;;
960
961   -bindir | --bindir | --bindi | --bind | --bin | --bi)
962     ac_prev=bindir ;;
963   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
964     bindir=$ac_optarg ;;
965
966   -build | --build | --buil | --bui | --bu)
967     ac_prev=build_alias ;;
968   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
969     build_alias=$ac_optarg ;;
970
971   -cache-file | --cache-file | --cache-fil | --cache-fi \
972   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
973     ac_prev=cache_file ;;
974   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
975   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
976     cache_file=$ac_optarg ;;
977
978   --config-cache | -C)
979     cache_file=config.cache ;;
980
981   -datadir | --datadir | --datadi | --datad)
982     ac_prev=datadir ;;
983   -datadir=* | --datadir=* | --datadi=* | --datad=*)
984     datadir=$ac_optarg ;;
985
986   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
987   | --dataroo | --dataro | --datar)
988     ac_prev=datarootdir ;;
989   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
990   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
991     datarootdir=$ac_optarg ;;
992
993   -disable-* | --disable-*)
994     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
995     # Reject names that are not valid shell variable names.
996     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
997       as_fn_error $? "invalid feature name: $ac_useropt"
998     ac_useropt_orig=$ac_useropt
999     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1000     case $ac_user_opts in
1001       *"
1002 "enable_$ac_useropt"
1003 "*) ;;
1004       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1005          ac_unrecognized_sep=', ';;
1006     esac
1007     eval enable_$ac_useropt=no ;;
1008
1009   -docdir | --docdir | --docdi | --doc | --do)
1010     ac_prev=docdir ;;
1011   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1012     docdir=$ac_optarg ;;
1013
1014   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1015     ac_prev=dvidir ;;
1016   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1017     dvidir=$ac_optarg ;;
1018
1019   -enable-* | --enable-*)
1020     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1021     # Reject names that are not valid shell variable names.
1022     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1023       as_fn_error $? "invalid feature name: $ac_useropt"
1024     ac_useropt_orig=$ac_useropt
1025     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1026     case $ac_user_opts in
1027       *"
1028 "enable_$ac_useropt"
1029 "*) ;;
1030       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1031          ac_unrecognized_sep=', ';;
1032     esac
1033     eval enable_$ac_useropt=\$ac_optarg ;;
1034
1035   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1036   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1037   | --exec | --exe | --ex)
1038     ac_prev=exec_prefix ;;
1039   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1040   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1041   | --exec=* | --exe=* | --ex=*)
1042     exec_prefix=$ac_optarg ;;
1043
1044   -gas | --gas | --ga | --g)
1045     # Obsolete; use --with-gas.
1046     with_gas=yes ;;
1047
1048   -help | --help | --hel | --he | -h)
1049     ac_init_help=long ;;
1050   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1051     ac_init_help=recursive ;;
1052   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1053     ac_init_help=short ;;
1054
1055   -host | --host | --hos | --ho)
1056     ac_prev=host_alias ;;
1057   -host=* | --host=* | --hos=* | --ho=*)
1058     host_alias=$ac_optarg ;;
1059
1060   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1061     ac_prev=htmldir ;;
1062   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1063   | --ht=*)
1064     htmldir=$ac_optarg ;;
1065
1066   -includedir | --includedir | --includedi | --included | --include \
1067   | --includ | --inclu | --incl | --inc)
1068     ac_prev=includedir ;;
1069   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1070   | --includ=* | --inclu=* | --incl=* | --inc=*)
1071     includedir=$ac_optarg ;;
1072
1073   -infodir | --infodir | --infodi | --infod | --info | --inf)
1074     ac_prev=infodir ;;
1075   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1076     infodir=$ac_optarg ;;
1077
1078   -libdir | --libdir | --libdi | --libd)
1079     ac_prev=libdir ;;
1080   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1081     libdir=$ac_optarg ;;
1082
1083   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1084   | --libexe | --libex | --libe)
1085     ac_prev=libexecdir ;;
1086   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1087   | --libexe=* | --libex=* | --libe=*)
1088     libexecdir=$ac_optarg ;;
1089
1090   -localedir | --localedir | --localedi | --localed | --locale)
1091     ac_prev=localedir ;;
1092   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1093     localedir=$ac_optarg ;;
1094
1095   -localstatedir | --localstatedir | --localstatedi | --localstated \
1096   | --localstate | --localstat | --localsta | --localst | --locals)
1097     ac_prev=localstatedir ;;
1098   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1099   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1100     localstatedir=$ac_optarg ;;
1101
1102   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1103     ac_prev=mandir ;;
1104   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1105     mandir=$ac_optarg ;;
1106
1107   -nfp | --nfp | --nf)
1108     # Obsolete; use --without-fp.
1109     with_fp=no ;;
1110
1111   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1112   | --no-cr | --no-c | -n)
1113     no_create=yes ;;
1114
1115   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1116   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1117     no_recursion=yes ;;
1118
1119   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1120   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1121   | --oldin | --oldi | --old | --ol | --o)
1122     ac_prev=oldincludedir ;;
1123   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1124   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1125   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1126     oldincludedir=$ac_optarg ;;
1127
1128   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1129     ac_prev=prefix ;;
1130   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1131     prefix=$ac_optarg ;;
1132
1133   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1134   | --program-pre | --program-pr | --program-p)
1135     ac_prev=program_prefix ;;
1136   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1137   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1138     program_prefix=$ac_optarg ;;
1139
1140   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1141   | --program-suf | --program-su | --program-s)
1142     ac_prev=program_suffix ;;
1143   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1144   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1145     program_suffix=$ac_optarg ;;
1146
1147   -program-transform-name | --program-transform-name \
1148   | --program-transform-nam | --program-transform-na \
1149   | --program-transform-n | --program-transform- \
1150   | --program-transform | --program-transfor \
1151   | --program-transfo | --program-transf \
1152   | --program-trans | --program-tran \
1153   | --progr-tra | --program-tr | --program-t)
1154     ac_prev=program_transform_name ;;
1155   -program-transform-name=* | --program-transform-name=* \
1156   | --program-transform-nam=* | --program-transform-na=* \
1157   | --program-transform-n=* | --program-transform-=* \
1158   | --program-transform=* | --program-transfor=* \
1159   | --program-transfo=* | --program-transf=* \
1160   | --program-trans=* | --program-tran=* \
1161   | --progr-tra=* | --program-tr=* | --program-t=*)
1162     program_transform_name=$ac_optarg ;;
1163
1164   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1165     ac_prev=pdfdir ;;
1166   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1167     pdfdir=$ac_optarg ;;
1168
1169   -psdir | --psdir | --psdi | --psd | --ps)
1170     ac_prev=psdir ;;
1171   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1172     psdir=$ac_optarg ;;
1173
1174   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1175   | -silent | --silent | --silen | --sile | --sil)
1176     silent=yes ;;
1177
1178   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1179     ac_prev=sbindir ;;
1180   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1181   | --sbi=* | --sb=*)
1182     sbindir=$ac_optarg ;;
1183
1184   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1185   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1186   | --sharedst | --shareds | --shared | --share | --shar \
1187   | --sha | --sh)
1188     ac_prev=sharedstatedir ;;
1189   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1190   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1191   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1192   | --sha=* | --sh=*)
1193     sharedstatedir=$ac_optarg ;;
1194
1195   -site | --site | --sit)
1196     ac_prev=site ;;
1197   -site=* | --site=* | --sit=*)
1198     site=$ac_optarg ;;
1199
1200   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1201     ac_prev=srcdir ;;
1202   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1203     srcdir=$ac_optarg ;;
1204
1205   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1206   | --syscon | --sysco | --sysc | --sys | --sy)
1207     ac_prev=sysconfdir ;;
1208   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1209   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1210     sysconfdir=$ac_optarg ;;
1211
1212   -target | --target | --targe | --targ | --tar | --ta | --t)
1213     ac_prev=target_alias ;;
1214   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1215     target_alias=$ac_optarg ;;
1216
1217   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1218     verbose=yes ;;
1219
1220   -version | --version | --versio | --versi | --vers | -V)
1221     ac_init_version=: ;;
1222
1223   -with-* | --with-*)
1224     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1225     # Reject names that are not valid shell variable names.
1226     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1227       as_fn_error $? "invalid package name: $ac_useropt"
1228     ac_useropt_orig=$ac_useropt
1229     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1230     case $ac_user_opts in
1231       *"
1232 "with_$ac_useropt"
1233 "*) ;;
1234       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1235          ac_unrecognized_sep=', ';;
1236     esac
1237     eval with_$ac_useropt=\$ac_optarg ;;
1238
1239   -without-* | --without-*)
1240     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1241     # Reject names that are not valid shell variable names.
1242     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1243       as_fn_error $? "invalid package name: $ac_useropt"
1244     ac_useropt_orig=$ac_useropt
1245     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1246     case $ac_user_opts in
1247       *"
1248 "with_$ac_useropt"
1249 "*) ;;
1250       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1251          ac_unrecognized_sep=', ';;
1252     esac
1253     eval with_$ac_useropt=no ;;
1254
1255   --x)
1256     # Obsolete; use --with-x.
1257     with_x=yes ;;
1258
1259   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1260   | --x-incl | --x-inc | --x-in | --x-i)
1261     ac_prev=x_includes ;;
1262   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1263   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1264     x_includes=$ac_optarg ;;
1265
1266   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1267   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1268     ac_prev=x_libraries ;;
1269   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1270   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1271     x_libraries=$ac_optarg ;;
1272
1273   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1274 Try \`$0 --help' for more information"
1275     ;;
1276
1277   *=*)
1278     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1279     # Reject names that are not valid shell variable names.
1280     case $ac_envvar in #(
1281       '' | [0-9]* | *[!_$as_cr_alnum]* )
1282       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1283     esac
1284     eval $ac_envvar=\$ac_optarg
1285     export $ac_envvar ;;
1286
1287   *)
1288     # FIXME: should be removed in autoconf 3.0.
1289     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1290     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1291       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1292     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1293     ;;
1294
1295   esac
1296 done
1297
1298 if test -n "$ac_prev"; then
1299   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1300   as_fn_error $? "missing argument to $ac_option"
1301 fi
1302
1303 if test -n "$ac_unrecognized_opts"; then
1304   case $enable_option_checking in
1305     no) ;;
1306     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1307     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1308   esac
1309 fi
1310
1311 # Check all directory arguments for consistency.
1312 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1313                 datadir sysconfdir sharedstatedir localstatedir includedir \
1314                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1315                 libdir localedir mandir
1316 do
1317   eval ac_val=\$$ac_var
1318   # Remove trailing slashes.
1319   case $ac_val in
1320     */ )
1321       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1322       eval $ac_var=\$ac_val;;
1323   esac
1324   # Be sure to have absolute directory names.
1325   case $ac_val in
1326     [\\/$]* | ?:[\\/]* )  continue;;
1327     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1328   esac
1329   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1330 done
1331
1332 # There might be people who depend on the old broken behavior: `$host'
1333 # used to hold the argument of --host etc.
1334 # FIXME: To remove some day.
1335 build=$build_alias
1336 host=$host_alias
1337 target=$target_alias
1338
1339 # FIXME: To remove some day.
1340 if test "x$host_alias" != x; then
1341   if test "x$build_alias" = x; then
1342     cross_compiling=maybe
1343   elif test "x$build_alias" != "x$host_alias"; then
1344     cross_compiling=yes
1345   fi
1346 fi
1347
1348 ac_tool_prefix=
1349 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1350
1351 test "$silent" = yes && exec 6>/dev/null
1352
1353
1354 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1355 ac_ls_di=`ls -di .` &&
1356 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1357   as_fn_error $? "working directory cannot be determined"
1358 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1359   as_fn_error $? "pwd does not report name of working directory"
1360
1361
1362 # Find the source files, if location was not specified.
1363 if test -z "$srcdir"; then
1364   ac_srcdir_defaulted=yes
1365   # Try the directory containing this script, then the parent directory.
1366   ac_confdir=`$as_dirname -- "$as_myself" ||
1367 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1368          X"$as_myself" : 'X\(//\)[^/]' \| \
1369          X"$as_myself" : 'X\(//\)$' \| \
1370          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1371 $as_echo X"$as_myself" |
1372     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1373             s//\1/
1374             q
1375           }
1376           /^X\(\/\/\)[^/].*/{
1377             s//\1/
1378             q
1379           }
1380           /^X\(\/\/\)$/{
1381             s//\1/
1382             q
1383           }
1384           /^X\(\/\).*/{
1385             s//\1/
1386             q
1387           }
1388           s/.*/./; q'`
1389   srcdir=$ac_confdir
1390   if test ! -r "$srcdir/$ac_unique_file"; then
1391     srcdir=..
1392   fi
1393 else
1394   ac_srcdir_defaulted=no
1395 fi
1396 if test ! -r "$srcdir/$ac_unique_file"; then
1397   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1398   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1399 fi
1400 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1401 ac_abs_confdir=`(
1402         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1403         pwd)`
1404 # When building in place, set srcdir=.
1405 if test "$ac_abs_confdir" = "$ac_pwd"; then
1406   srcdir=.
1407 fi
1408 # Remove unnecessary trailing slashes from srcdir.
1409 # Double slashes in file names in object file debugging info
1410 # mess up M-x gdb in Emacs.
1411 case $srcdir in
1412 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1413 esac
1414 for ac_var in $ac_precious_vars; do
1415   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1416   eval ac_env_${ac_var}_value=\$${ac_var}
1417   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1418   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1419 done
1420
1421 #
1422 # Report the --help message.
1423 #
1424 if test "$ac_init_help" = "long"; then
1425   # Omit some internal or obsolete options to make the list less imposing.
1426   # This message is too long to be a string in the A/UX 3.1 sh.
1427   cat <<_ACEOF
1428 \`configure' configures gupnp-av 0.12.4 to adapt to many kinds of systems.
1429
1430 Usage: $0 [OPTION]... [VAR=VALUE]...
1431
1432 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1433 VAR=VALUE.  See below for descriptions of some of the useful variables.
1434
1435 Defaults for the options are specified in brackets.
1436
1437 Configuration:
1438   -h, --help              display this help and exit
1439       --help=short        display options specific to this package
1440       --help=recursive    display the short help of all the included packages
1441   -V, --version           display version information and exit
1442   -q, --quiet, --silent   do not print \`checking ...' messages
1443       --cache-file=FILE   cache test results in FILE [disabled]
1444   -C, --config-cache      alias for \`--cache-file=config.cache'
1445   -n, --no-create         do not create output files
1446       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1447
1448 Installation directories:
1449   --prefix=PREFIX         install architecture-independent files in PREFIX
1450                           [$ac_default_prefix]
1451   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1452                           [PREFIX]
1453
1454 By default, \`make install' will install all the files in
1455 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1456 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1457 for instance \`--prefix=\$HOME'.
1458
1459 For better control, use the options below.
1460
1461 Fine tuning of the installation directories:
1462   --bindir=DIR            user executables [EPREFIX/bin]
1463   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1464   --libexecdir=DIR        program executables [EPREFIX/libexec]
1465   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1466   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1467   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1468   --libdir=DIR            object code libraries [EPREFIX/lib]
1469   --includedir=DIR        C header files [PREFIX/include]
1470   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1471   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1472   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1473   --infodir=DIR           info documentation [DATAROOTDIR/info]
1474   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1475   --mandir=DIR            man documentation [DATAROOTDIR/man]
1476   --docdir=DIR            documentation root [DATAROOTDIR/doc/gupnp-av]
1477   --htmldir=DIR           html documentation [DOCDIR]
1478   --dvidir=DIR            dvi documentation [DOCDIR]
1479   --pdfdir=DIR            pdf documentation [DOCDIR]
1480   --psdir=DIR             ps documentation [DOCDIR]
1481 _ACEOF
1482
1483   cat <<\_ACEOF
1484
1485 Program names:
1486   --program-prefix=PREFIX            prepend PREFIX to installed program names
1487   --program-suffix=SUFFIX            append SUFFIX to installed program names
1488   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1489
1490 System types:
1491   --build=BUILD     configure for building on BUILD [guessed]
1492   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1493 _ACEOF
1494 fi
1495
1496 if test -n "$ac_init_help"; then
1497   case $ac_init_help in
1498      short | recursive ) echo "Configuration of gupnp-av 0.12.4:";;
1499    esac
1500   cat <<\_ACEOF
1501
1502 Optional Features:
1503   --disable-option-checking  ignore unrecognized --enable/--with options
1504   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1505   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1506   --enable-silent-rules   less verbose build output (undo: "make V=1")
1507   --disable-silent-rules  verbose build output (undo: "make V=0")
1508   --disable-maintainer-mode
1509                           disable make rules and dependencies not useful (and
1510                           sometimes confusing) to the casual installer
1511   --enable-dependency-tracking
1512                           do not reject slow dependency extractors
1513   --disable-dependency-tracking
1514                           speeds up one-time build
1515   --enable-shared[=PKGS]  build shared libraries [default=yes]
1516   --enable-static[=PKGS]  build static libraries [default=yes]
1517   --enable-fast-install[=PKGS]
1518                           optimize for fast installation [default=yes]
1519   --disable-libtool-lock  avoid locking (might break parallel builds)
1520   --enable-debug          enable debugging
1521   --enable-introspection=[no/auto/yes]
1522                           Enable introspection for this build
1523   --enable-gtk-doc        use gtk-doc to build documentation [[default=no]]
1524   --enable-gtk-doc-html   build documentation in html format [[default=yes]]
1525   --enable-gtk-doc-pdf    build documentation in pdf format [[default=no]]
1526
1527 Optional Packages:
1528   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1529   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1530   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1531                           both]
1532   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1533   --with-sysroot=DIR Search for dependent libraries within DIR
1534                         (or the compiler's sysroot if not specified).
1535   --with-html-dir=PATH    path to installed docs
1536
1537 Some influential environment variables:
1538   CC          C compiler command
1539   CFLAGS      C compiler flags
1540   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1541               nonstandard directory <lib dir>
1542   LIBS        libraries to pass to the linker, e.g. -l<library>
1543   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1544               you have headers in a nonstandard directory <include dir>
1545   CPP         C preprocessor
1546   PKG_CONFIG  path to pkg-config utility
1547   PKG_CONFIG_PATH
1548               directories to add to pkg-config's search path
1549   PKG_CONFIG_LIBDIR
1550               path overriding pkg-config's built-in search path
1551   LIBGUPNP_CFLAGS
1552               C compiler flags for LIBGUPNP, overriding pkg-config
1553   LIBGUPNP_LIBS
1554               linker flags for LIBGUPNP, overriding pkg-config
1555   GTKDOC_DEPS_CFLAGS
1556               C compiler flags for GTKDOC_DEPS, overriding pkg-config
1557   GTKDOC_DEPS_LIBS
1558               linker flags for GTKDOC_DEPS, overriding pkg-config
1559
1560 Use these variables to override the choices made by `configure' or to help
1561 it to find libraries and programs with nonstandard names/locations.
1562
1563 Report bugs to <https://bugzilla.gnome.org/enter_bug.cgi?product=GUPnP>.
1564 gupnp-av home page: <http://www.gupnp.org/>.
1565 _ACEOF
1566 ac_status=$?
1567 fi
1568
1569 if test "$ac_init_help" = "recursive"; then
1570   # If there are subdirs, report their specific --help.
1571   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1572     test -d "$ac_dir" ||
1573       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1574       continue
1575     ac_builddir=.
1576
1577 case "$ac_dir" in
1578 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1579 *)
1580   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1581   # A ".." for each directory in $ac_dir_suffix.
1582   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1583   case $ac_top_builddir_sub in
1584   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1585   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1586   esac ;;
1587 esac
1588 ac_abs_top_builddir=$ac_pwd
1589 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1590 # for backward compatibility:
1591 ac_top_builddir=$ac_top_build_prefix
1592
1593 case $srcdir in
1594   .)  # We are building in place.
1595     ac_srcdir=.
1596     ac_top_srcdir=$ac_top_builddir_sub
1597     ac_abs_top_srcdir=$ac_pwd ;;
1598   [\\/]* | ?:[\\/]* )  # Absolute name.
1599     ac_srcdir=$srcdir$ac_dir_suffix;
1600     ac_top_srcdir=$srcdir
1601     ac_abs_top_srcdir=$srcdir ;;
1602   *) # Relative name.
1603     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1604     ac_top_srcdir=$ac_top_build_prefix$srcdir
1605     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1606 esac
1607 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1608
1609     cd "$ac_dir" || { ac_status=$?; continue; }
1610     # Check for guested configure.
1611     if test -f "$ac_srcdir/configure.gnu"; then
1612       echo &&
1613       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1614     elif test -f "$ac_srcdir/configure"; then
1615       echo &&
1616       $SHELL "$ac_srcdir/configure" --help=recursive
1617     else
1618       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1619     fi || ac_status=$?
1620     cd "$ac_pwd" || { ac_status=$?; break; }
1621   done
1622 fi
1623
1624 test -n "$ac_init_help" && exit $ac_status
1625 if $ac_init_version; then
1626   cat <<\_ACEOF
1627 gupnp-av configure 0.12.4
1628 generated by GNU Autoconf 2.69
1629
1630 Copyright (C) 2012 Free Software Foundation, Inc.
1631 This configure script is free software; the Free Software Foundation
1632 gives unlimited permission to copy, distribute and modify it.
1633 _ACEOF
1634   exit
1635 fi
1636
1637 ## ------------------------ ##
1638 ## Autoconf initialization. ##
1639 ## ------------------------ ##
1640
1641 # ac_fn_c_try_compile LINENO
1642 # --------------------------
1643 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1644 ac_fn_c_try_compile ()
1645 {
1646   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1647   rm -f conftest.$ac_objext
1648   if { { ac_try="$ac_compile"
1649 case "(($ac_try" in
1650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1651   *) ac_try_echo=$ac_try;;
1652 esac
1653 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1654 $as_echo "$ac_try_echo"; } >&5
1655   (eval "$ac_compile") 2>conftest.err
1656   ac_status=$?
1657   if test -s conftest.err; then
1658     grep -v '^ *+' conftest.err >conftest.er1
1659     cat conftest.er1 >&5
1660     mv -f conftest.er1 conftest.err
1661   fi
1662   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1663   test $ac_status = 0; } && {
1664          test -z "$ac_c_werror_flag" ||
1665          test ! -s conftest.err
1666        } && test -s conftest.$ac_objext; then :
1667   ac_retval=0
1668 else
1669   $as_echo "$as_me: failed program was:" >&5
1670 sed 's/^/| /' conftest.$ac_ext >&5
1671
1672         ac_retval=1
1673 fi
1674   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1675   as_fn_set_status $ac_retval
1676
1677 } # ac_fn_c_try_compile
1678
1679 # ac_fn_c_try_cpp LINENO
1680 # ----------------------
1681 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1682 ac_fn_c_try_cpp ()
1683 {
1684   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1685   if { { ac_try="$ac_cpp conftest.$ac_ext"
1686 case "(($ac_try" in
1687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1688   *) ac_try_echo=$ac_try;;
1689 esac
1690 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1691 $as_echo "$ac_try_echo"; } >&5
1692   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1693   ac_status=$?
1694   if test -s conftest.err; then
1695     grep -v '^ *+' conftest.err >conftest.er1
1696     cat conftest.er1 >&5
1697     mv -f conftest.er1 conftest.err
1698   fi
1699   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1700   test $ac_status = 0; } > conftest.i && {
1701          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1702          test ! -s conftest.err
1703        }; then :
1704   ac_retval=0
1705 else
1706   $as_echo "$as_me: failed program was:" >&5
1707 sed 's/^/| /' conftest.$ac_ext >&5
1708
1709     ac_retval=1
1710 fi
1711   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1712   as_fn_set_status $ac_retval
1713
1714 } # ac_fn_c_try_cpp
1715
1716 # ac_fn_c_try_run LINENO
1717 # ----------------------
1718 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1719 # that executables *can* be run.
1720 ac_fn_c_try_run ()
1721 {
1722   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723   if { { ac_try="$ac_link"
1724 case "(($ac_try" in
1725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1726   *) ac_try_echo=$ac_try;;
1727 esac
1728 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1729 $as_echo "$ac_try_echo"; } >&5
1730   (eval "$ac_link") 2>&5
1731   ac_status=$?
1732   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1733   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1734   { { case "(($ac_try" in
1735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1736   *) ac_try_echo=$ac_try;;
1737 esac
1738 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1739 $as_echo "$ac_try_echo"; } >&5
1740   (eval "$ac_try") 2>&5
1741   ac_status=$?
1742   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1743   test $ac_status = 0; }; }; then :
1744   ac_retval=0
1745 else
1746   $as_echo "$as_me: program exited with status $ac_status" >&5
1747        $as_echo "$as_me: failed program was:" >&5
1748 sed 's/^/| /' conftest.$ac_ext >&5
1749
1750        ac_retval=$ac_status
1751 fi
1752   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1753   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1754   as_fn_set_status $ac_retval
1755
1756 } # ac_fn_c_try_run
1757
1758 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1759 # -------------------------------------------------------
1760 # Tests whether HEADER exists and can be compiled using the include files in
1761 # INCLUDES, setting the cache variable VAR accordingly.
1762 ac_fn_c_check_header_compile ()
1763 {
1764   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1765   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1766 $as_echo_n "checking for $2... " >&6; }
1767 if eval \${$3+:} false; then :
1768   $as_echo_n "(cached) " >&6
1769 else
1770   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1771 /* end confdefs.h.  */
1772 $4
1773 #include <$2>
1774 _ACEOF
1775 if ac_fn_c_try_compile "$LINENO"; then :
1776   eval "$3=yes"
1777 else
1778   eval "$3=no"
1779 fi
1780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1781 fi
1782 eval ac_res=\$$3
1783                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1784 $as_echo "$ac_res" >&6; }
1785   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1786
1787 } # ac_fn_c_check_header_compile
1788
1789 # ac_fn_c_try_link LINENO
1790 # -----------------------
1791 # Try to link conftest.$ac_ext, and return whether this succeeded.
1792 ac_fn_c_try_link ()
1793 {
1794   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1795   rm -f conftest.$ac_objext conftest$ac_exeext
1796   if { { ac_try="$ac_link"
1797 case "(($ac_try" in
1798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1799   *) ac_try_echo=$ac_try;;
1800 esac
1801 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1802 $as_echo "$ac_try_echo"; } >&5
1803   (eval "$ac_link") 2>conftest.err
1804   ac_status=$?
1805   if test -s conftest.err; then
1806     grep -v '^ *+' conftest.err >conftest.er1
1807     cat conftest.er1 >&5
1808     mv -f conftest.er1 conftest.err
1809   fi
1810   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1811   test $ac_status = 0; } && {
1812          test -z "$ac_c_werror_flag" ||
1813          test ! -s conftest.err
1814        } && test -s conftest$ac_exeext && {
1815          test "$cross_compiling" = yes ||
1816          test -x conftest$ac_exeext
1817        }; then :
1818   ac_retval=0
1819 else
1820   $as_echo "$as_me: failed program was:" >&5
1821 sed 's/^/| /' conftest.$ac_ext >&5
1822
1823         ac_retval=1
1824 fi
1825   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1826   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1827   # interfere with the next link command; also delete a directory that is
1828   # left behind by Apple's compiler.  We do this before executing the actions.
1829   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1830   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1831   as_fn_set_status $ac_retval
1832
1833 } # ac_fn_c_try_link
1834
1835 # ac_fn_c_check_func LINENO FUNC VAR
1836 # ----------------------------------
1837 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1838 ac_fn_c_check_func ()
1839 {
1840   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1841   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1842 $as_echo_n "checking for $2... " >&6; }
1843 if eval \${$3+:} false; then :
1844   $as_echo_n "(cached) " >&6
1845 else
1846   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1847 /* end confdefs.h.  */
1848 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1849    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1850 #define $2 innocuous_$2
1851
1852 /* System header to define __stub macros and hopefully few prototypes,
1853     which can conflict with char $2 (); below.
1854     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1855     <limits.h> exists even on freestanding compilers.  */
1856
1857 #ifdef __STDC__
1858 # include <limits.h>
1859 #else
1860 # include <assert.h>
1861 #endif
1862
1863 #undef $2
1864
1865 /* Override any GCC internal prototype to avoid an error.
1866    Use char because int might match the return type of a GCC
1867    builtin and then its argument prototype would still apply.  */
1868 #ifdef __cplusplus
1869 extern "C"
1870 #endif
1871 char $2 ();
1872 /* The GNU C library defines this for functions which it implements
1873     to always fail with ENOSYS.  Some functions are actually named
1874     something starting with __ and the normal name is an alias.  */
1875 #if defined __stub_$2 || defined __stub___$2
1876 choke me
1877 #endif
1878
1879 int
1880 main ()
1881 {
1882 return $2 ();
1883   ;
1884   return 0;
1885 }
1886 _ACEOF
1887 if ac_fn_c_try_link "$LINENO"; then :
1888   eval "$3=yes"
1889 else
1890   eval "$3=no"
1891 fi
1892 rm -f core conftest.err conftest.$ac_objext \
1893     conftest$ac_exeext conftest.$ac_ext
1894 fi
1895 eval ac_res=\$$3
1896                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1897 $as_echo "$ac_res" >&6; }
1898   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1899
1900 } # ac_fn_c_check_func
1901 cat >config.log <<_ACEOF
1902 This file contains any messages produced by compilers while
1903 running configure, to aid debugging if configure makes a mistake.
1904
1905 It was created by gupnp-av $as_me 0.12.4, which was
1906 generated by GNU Autoconf 2.69.  Invocation command line was
1907
1908   $ $0 $@
1909
1910 _ACEOF
1911 exec 5>>config.log
1912 {
1913 cat <<_ASUNAME
1914 ## --------- ##
1915 ## Platform. ##
1916 ## --------- ##
1917
1918 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1919 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1920 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1921 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1922 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1923
1924 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1925 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1926
1927 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1928 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1929 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1930 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1931 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1932 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1933 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1934
1935 _ASUNAME
1936
1937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1938 for as_dir in $PATH
1939 do
1940   IFS=$as_save_IFS
1941   test -z "$as_dir" && as_dir=.
1942     $as_echo "PATH: $as_dir"
1943   done
1944 IFS=$as_save_IFS
1945
1946 } >&5
1947
1948 cat >&5 <<_ACEOF
1949
1950
1951 ## ----------- ##
1952 ## Core tests. ##
1953 ## ----------- ##
1954
1955 _ACEOF
1956
1957
1958 # Keep a trace of the command line.
1959 # Strip out --no-create and --no-recursion so they do not pile up.
1960 # Strip out --silent because we don't want to record it for future runs.
1961 # Also quote any args containing shell meta-characters.
1962 # Make two passes to allow for proper duplicate-argument suppression.
1963 ac_configure_args=
1964 ac_configure_args0=
1965 ac_configure_args1=
1966 ac_must_keep_next=false
1967 for ac_pass in 1 2
1968 do
1969   for ac_arg
1970   do
1971     case $ac_arg in
1972     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1973     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1974     | -silent | --silent | --silen | --sile | --sil)
1975       continue ;;
1976     *\'*)
1977       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1978     esac
1979     case $ac_pass in
1980     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1981     2)
1982       as_fn_append ac_configure_args1 " '$ac_arg'"
1983       if test $ac_must_keep_next = true; then
1984         ac_must_keep_next=false # Got value, back to normal.
1985       else
1986         case $ac_arg in
1987           *=* | --config-cache | -C | -disable-* | --disable-* \
1988           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1989           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1990           | -with-* | --with-* | -without-* | --without-* | --x)
1991             case "$ac_configure_args0 " in
1992               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1993             esac
1994             ;;
1995           -* ) ac_must_keep_next=true ;;
1996         esac
1997       fi
1998       as_fn_append ac_configure_args " '$ac_arg'"
1999       ;;
2000     esac
2001   done
2002 done
2003 { ac_configure_args0=; unset ac_configure_args0;}
2004 { ac_configure_args1=; unset ac_configure_args1;}
2005
2006 # When interrupted or exit'd, cleanup temporary files, and complete
2007 # config.log.  We remove comments because anyway the quotes in there
2008 # would cause problems or look ugly.
2009 # WARNING: Use '\'' to represent an apostrophe within the trap.
2010 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2011 trap 'exit_status=$?
2012   # Save into config.log some information that might help in debugging.
2013   {
2014     echo
2015
2016     $as_echo "## ---------------- ##
2017 ## Cache variables. ##
2018 ## ---------------- ##"
2019     echo
2020     # The following way of writing the cache mishandles newlines in values,
2021 (
2022   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2023     eval ac_val=\$$ac_var
2024     case $ac_val in #(
2025     *${as_nl}*)
2026       case $ac_var in #(
2027       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2028 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2029       esac
2030       case $ac_var in #(
2031       _ | IFS | as_nl) ;; #(
2032       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2033       *) { eval $ac_var=; unset $ac_var;} ;;
2034       esac ;;
2035     esac
2036   done
2037   (set) 2>&1 |
2038     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2039     *${as_nl}ac_space=\ *)
2040       sed -n \
2041         "s/'\''/'\''\\\\'\'''\''/g;
2042           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2043       ;; #(
2044     *)
2045       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2046       ;;
2047     esac |
2048     sort
2049 )
2050     echo
2051
2052     $as_echo "## ----------------- ##
2053 ## Output variables. ##
2054 ## ----------------- ##"
2055     echo
2056     for ac_var in $ac_subst_vars
2057     do
2058       eval ac_val=\$$ac_var
2059       case $ac_val in
2060       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2061       esac
2062       $as_echo "$ac_var='\''$ac_val'\''"
2063     done | sort
2064     echo
2065
2066     if test -n "$ac_subst_files"; then
2067       $as_echo "## ------------------- ##
2068 ## File substitutions. ##
2069 ## ------------------- ##"
2070       echo
2071       for ac_var in $ac_subst_files
2072       do
2073         eval ac_val=\$$ac_var
2074         case $ac_val in
2075         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2076         esac
2077         $as_echo "$ac_var='\''$ac_val'\''"
2078       done | sort
2079       echo
2080     fi
2081
2082     if test -s confdefs.h; then
2083       $as_echo "## ----------- ##
2084 ## confdefs.h. ##
2085 ## ----------- ##"
2086       echo
2087       cat confdefs.h
2088       echo
2089     fi
2090     test "$ac_signal" != 0 &&
2091       $as_echo "$as_me: caught signal $ac_signal"
2092     $as_echo "$as_me: exit $exit_status"
2093   } >&5
2094   rm -f core *.core core.conftest.* &&
2095     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2096     exit $exit_status
2097 ' 0
2098 for ac_signal in 1 2 13 15; do
2099   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2100 done
2101 ac_signal=0
2102
2103 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2104 rm -f -r conftest* confdefs.h
2105
2106 $as_echo "/* confdefs.h */" > confdefs.h
2107
2108 # Predefined preprocessor variables.
2109
2110 cat >>confdefs.h <<_ACEOF
2111 #define PACKAGE_NAME "$PACKAGE_NAME"
2112 _ACEOF
2113
2114 cat >>confdefs.h <<_ACEOF
2115 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2116 _ACEOF
2117
2118 cat >>confdefs.h <<_ACEOF
2119 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2120 _ACEOF
2121
2122 cat >>confdefs.h <<_ACEOF
2123 #define PACKAGE_STRING "$PACKAGE_STRING"
2124 _ACEOF
2125
2126 cat >>confdefs.h <<_ACEOF
2127 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2128 _ACEOF
2129
2130 cat >>confdefs.h <<_ACEOF
2131 #define PACKAGE_URL "$PACKAGE_URL"
2132 _ACEOF
2133
2134
2135 # Let the site file select an alternate cache file if it wants to.
2136 # Prefer an explicitly selected file to automatically selected ones.
2137 ac_site_file1=NONE
2138 ac_site_file2=NONE
2139 if test -n "$CONFIG_SITE"; then
2140   # We do not want a PATH search for config.site.
2141   case $CONFIG_SITE in #((
2142     -*)  ac_site_file1=./$CONFIG_SITE;;
2143     */*) ac_site_file1=$CONFIG_SITE;;
2144     *)   ac_site_file1=./$CONFIG_SITE;;
2145   esac
2146 elif test "x$prefix" != xNONE; then
2147   ac_site_file1=$prefix/share/config.site
2148   ac_site_file2=$prefix/etc/config.site
2149 else
2150   ac_site_file1=$ac_default_prefix/share/config.site
2151   ac_site_file2=$ac_default_prefix/etc/config.site
2152 fi
2153 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2154 do
2155   test "x$ac_site_file" = xNONE && continue
2156   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2157     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2158 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2159     sed 's/^/| /' "$ac_site_file" >&5
2160     . "$ac_site_file" \
2161       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2162 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2163 as_fn_error $? "failed to load site script $ac_site_file
2164 See \`config.log' for more details" "$LINENO" 5; }
2165   fi
2166 done
2167
2168 if test -r "$cache_file"; then
2169   # Some versions of bash will fail to source /dev/null (special files
2170   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2171   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2172     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2173 $as_echo "$as_me: loading cache $cache_file" >&6;}
2174     case $cache_file in
2175       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2176       *)                      . "./$cache_file";;
2177     esac
2178   fi
2179 else
2180   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2181 $as_echo "$as_me: creating cache $cache_file" >&6;}
2182   >$cache_file
2183 fi
2184
2185 as_fn_append ac_header_list " stdlib.h"
2186 as_fn_append ac_header_list " unistd.h"
2187 as_fn_append ac_header_list " sys/param.h"
2188 # Check that the precious variables saved in the cache have kept the same
2189 # value.
2190 ac_cache_corrupted=false
2191 for ac_var in $ac_precious_vars; do
2192   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2193   eval ac_new_set=\$ac_env_${ac_var}_set
2194   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2195   eval ac_new_val=\$ac_env_${ac_var}_value
2196   case $ac_old_set,$ac_new_set in
2197     set,)
2198       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2199 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2200       ac_cache_corrupted=: ;;
2201     ,set)
2202       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2203 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2204       ac_cache_corrupted=: ;;
2205     ,);;
2206     *)
2207       if test "x$ac_old_val" != "x$ac_new_val"; then
2208         # differences in whitespace do not lead to failure.
2209         ac_old_val_w=`echo x $ac_old_val`
2210         ac_new_val_w=`echo x $ac_new_val`
2211         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2212           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2213 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2214           ac_cache_corrupted=:
2215         else
2216           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2217 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2218           eval $ac_var=\$ac_old_val
2219         fi
2220         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2221 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2222         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2223 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2224       fi;;
2225   esac
2226   # Pass precious variables to config.status.
2227   if test "$ac_new_set" = set; then
2228     case $ac_new_val in
2229     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2230     *) ac_arg=$ac_var=$ac_new_val ;;
2231     esac
2232     case " $ac_configure_args " in
2233       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2234       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2235     esac
2236   fi
2237 done
2238 if $ac_cache_corrupted; then
2239   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2240 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2241   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2242 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2243   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2244 fi
2245 ## -------------------- ##
2246 ## Main body of script. ##
2247 ## -------------------- ##
2248
2249 ac_ext=c
2250 ac_cpp='$CPP $CPPFLAGS'
2251 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2252 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2253 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2254
2255
2256
2257 ac_config_headers="$ac_config_headers config.h"
2258
2259
2260
2261 ac_aux_dir=
2262 for ac_dir in build-aux "$srcdir"/build-aux; do
2263   if test -f "$ac_dir/install-sh"; then
2264     ac_aux_dir=$ac_dir
2265     ac_install_sh="$ac_aux_dir/install-sh -c"
2266     break
2267   elif test -f "$ac_dir/install.sh"; then
2268     ac_aux_dir=$ac_dir
2269     ac_install_sh="$ac_aux_dir/install.sh -c"
2270     break
2271   elif test -f "$ac_dir/shtool"; then
2272     ac_aux_dir=$ac_dir
2273     ac_install_sh="$ac_aux_dir/shtool install -c"
2274     break
2275   fi
2276 done
2277 if test -z "$ac_aux_dir"; then
2278   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2279 fi
2280
2281 # These three variables are undocumented and unsupported,
2282 # and are intended to be withdrawn in a future Autoconf release.
2283 # They can cause serious problems if a builder's source tree is in a directory
2284 # whose full name contains unusual characters.
2285 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2286 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2287 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2288
2289
2290
2291 am__api_version='1.13'
2292
2293 # Find a good install program.  We prefer a C program (faster),
2294 # so one script is as good as another.  But avoid the broken or
2295 # incompatible versions:
2296 # SysV /etc/install, /usr/sbin/install
2297 # SunOS /usr/etc/install
2298 # IRIX /sbin/install
2299 # AIX /bin/install
2300 # AmigaOS /C/install, which installs bootblocks on floppy discs
2301 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2302 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2303 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2304 # OS/2's system install, which has a completely different semantic
2305 # ./install, which can be erroneously created by make from ./install.sh.
2306 # Reject install programs that cannot install multiple files.
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2308 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2309 if test -z "$INSTALL"; then
2310 if ${ac_cv_path_install+:} false; then :
2311   $as_echo_n "(cached) " >&6
2312 else
2313   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2314 for as_dir in $PATH
2315 do
2316   IFS=$as_save_IFS
2317   test -z "$as_dir" && as_dir=.
2318     # Account for people who put trailing slashes in PATH elements.
2319 case $as_dir/ in #((
2320   ./ | .// | /[cC]/* | \
2321   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2322   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2323   /usr/ucb/* ) ;;
2324   *)
2325     # OSF1 and SCO ODT 3.0 have their own names for install.
2326     # Don't use installbsd from OSF since it installs stuff as root
2327     # by default.
2328     for ac_prog in ginstall scoinst install; do
2329       for ac_exec_ext in '' $ac_executable_extensions; do
2330         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2331           if test $ac_prog = install &&
2332             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2333             # AIX install.  It has an incompatible calling convention.
2334             :
2335           elif test $ac_prog = install &&
2336             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2337             # program-specific install script used by HP pwplus--don't use.
2338             :
2339           else
2340             rm -rf conftest.one conftest.two conftest.dir
2341             echo one > conftest.one
2342             echo two > conftest.two
2343             mkdir conftest.dir
2344             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2345               test -s conftest.one && test -s conftest.two &&
2346               test -s conftest.dir/conftest.one &&
2347               test -s conftest.dir/conftest.two
2348             then
2349               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2350               break 3
2351             fi
2352           fi
2353         fi
2354       done
2355     done
2356     ;;
2357 esac
2358
2359   done
2360 IFS=$as_save_IFS
2361
2362 rm -rf conftest.one conftest.two conftest.dir
2363
2364 fi
2365   if test "${ac_cv_path_install+set}" = set; then
2366     INSTALL=$ac_cv_path_install
2367   else
2368     # As a last resort, use the slow shell script.  Don't cache a
2369     # value for INSTALL within a source directory, because that will
2370     # break other packages using the cache if that directory is
2371     # removed, or if the value is a relative name.
2372     INSTALL=$ac_install_sh
2373   fi
2374 fi
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2376 $as_echo "$INSTALL" >&6; }
2377
2378 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2379 # It thinks the first close brace ends the variable substitution.
2380 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2381
2382 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2383
2384 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2385
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2387 $as_echo_n "checking whether build environment is sane... " >&6; }
2388 # Reject unsafe characters in $srcdir or the absolute working directory
2389 # name.  Accept space and tab only in the latter.
2390 am_lf='
2391 '
2392 case `pwd` in
2393   *[\\\"\#\$\&\'\`$am_lf]*)
2394     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2395 esac
2396 case $srcdir in
2397   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2398     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2399 esac
2400
2401 # Do 'set' in a subshell so we don't clobber the current shell's
2402 # arguments.  Must try -L first in case configure is actually a
2403 # symlink; some systems play weird games with the mod time of symlinks
2404 # (eg FreeBSD returns the mod time of the symlink's containing
2405 # directory).
2406 if (
2407    am_has_slept=no
2408    for am_try in 1 2; do
2409      echo "timestamp, slept: $am_has_slept" > conftest.file
2410      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2411      if test "$*" = "X"; then
2412         # -L didn't work.
2413         set X `ls -t "$srcdir/configure" conftest.file`
2414      fi
2415      if test "$*" != "X $srcdir/configure conftest.file" \
2416         && test "$*" != "X conftest.file $srcdir/configure"; then
2417
2418         # If neither matched, then we have a broken ls.  This can happen
2419         # if, for instance, CONFIG_SHELL is bash and it inherits a
2420         # broken ls alias from the environment.  This has actually
2421         # happened.  Such a system could not be considered "sane".
2422         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2423   alias in your environment" "$LINENO" 5
2424      fi
2425      if test "$2" = conftest.file || test $am_try -eq 2; then
2426        break
2427      fi
2428      # Just in case.
2429      sleep 1
2430      am_has_slept=yes
2431    done
2432    test "$2" = conftest.file
2433    )
2434 then
2435    # Ok.
2436    :
2437 else
2438    as_fn_error $? "newly created file is older than distributed files!
2439 Check your system clock" "$LINENO" 5
2440 fi
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2442 $as_echo "yes" >&6; }
2443 # If we didn't sleep, we still need to ensure time stamps of config.status and
2444 # generated files are strictly newer.
2445 am_sleep_pid=
2446 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2447   ( sleep 1 ) &
2448   am_sleep_pid=$!
2449 fi
2450
2451 rm -f conftest.file
2452
2453 test "$program_prefix" != NONE &&
2454   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2455 # Use a double $ so make ignores it.
2456 test "$program_suffix" != NONE &&
2457   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2458 # Double any \ or $.
2459 # By default was `s,x,x', remove it if useless.
2460 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2461 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2462
2463 # expand $ac_aux_dir to an absolute path
2464 am_aux_dir=`cd $ac_aux_dir && pwd`
2465
2466 if test x"${MISSING+set}" != xset; then
2467   case $am_aux_dir in
2468   *\ * | *\     *)
2469     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2470   *)
2471     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2472   esac
2473 fi
2474 # Use eval to expand $SHELL
2475 if eval "$MISSING --is-lightweight"; then
2476   am_missing_run="$MISSING "
2477 else
2478   am_missing_run=
2479   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2480 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2481 fi
2482
2483 if test x"${install_sh}" != xset; then
2484   case $am_aux_dir in
2485   *\ * | *\     *)
2486     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2487   *)
2488     install_sh="\${SHELL} $am_aux_dir/install-sh"
2489   esac
2490 fi
2491
2492 # Installed binaries are usually stripped using 'strip' when the user
2493 # run "make install-strip".  However 'strip' might not be the right
2494 # tool to use in cross-compilation environments, therefore Automake
2495 # will honor the 'STRIP' environment variable to overrule this program.
2496 if test "$cross_compiling" != no; then
2497   if test -n "$ac_tool_prefix"; then
2498   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2499 set dummy ${ac_tool_prefix}strip; ac_word=$2
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2501 $as_echo_n "checking for $ac_word... " >&6; }
2502 if ${ac_cv_prog_STRIP+:} false; then :
2503   $as_echo_n "(cached) " >&6
2504 else
2505   if test -n "$STRIP"; then
2506   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2507 else
2508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2509 for as_dir in $PATH
2510 do
2511   IFS=$as_save_IFS
2512   test -z "$as_dir" && as_dir=.
2513     for ac_exec_ext in '' $ac_executable_extensions; do
2514   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2515     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2516     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2517     break 2
2518   fi
2519 done
2520   done
2521 IFS=$as_save_IFS
2522
2523 fi
2524 fi
2525 STRIP=$ac_cv_prog_STRIP
2526 if test -n "$STRIP"; then
2527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2528 $as_echo "$STRIP" >&6; }
2529 else
2530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2531 $as_echo "no" >&6; }
2532 fi
2533
2534
2535 fi
2536 if test -z "$ac_cv_prog_STRIP"; then
2537   ac_ct_STRIP=$STRIP
2538   # Extract the first word of "strip", so it can be a program name with args.
2539 set dummy strip; ac_word=$2
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2541 $as_echo_n "checking for $ac_word... " >&6; }
2542 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2543   $as_echo_n "(cached) " >&6
2544 else
2545   if test -n "$ac_ct_STRIP"; then
2546   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2547 else
2548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2549 for as_dir in $PATH
2550 do
2551   IFS=$as_save_IFS
2552   test -z "$as_dir" && as_dir=.
2553     for ac_exec_ext in '' $ac_executable_extensions; do
2554   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2555     ac_cv_prog_ac_ct_STRIP="strip"
2556     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2557     break 2
2558   fi
2559 done
2560   done
2561 IFS=$as_save_IFS
2562
2563 fi
2564 fi
2565 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2566 if test -n "$ac_ct_STRIP"; then
2567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2568 $as_echo "$ac_ct_STRIP" >&6; }
2569 else
2570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2571 $as_echo "no" >&6; }
2572 fi
2573
2574   if test "x$ac_ct_STRIP" = x; then
2575     STRIP=":"
2576   else
2577     case $cross_compiling:$ac_tool_warned in
2578 yes:)
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2580 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2581 ac_tool_warned=yes ;;
2582 esac
2583     STRIP=$ac_ct_STRIP
2584   fi
2585 else
2586   STRIP="$ac_cv_prog_STRIP"
2587 fi
2588
2589 fi
2590 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2591
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2593 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2594 if test -z "$MKDIR_P"; then
2595   if ${ac_cv_path_mkdir+:} false; then :
2596   $as_echo_n "(cached) " >&6
2597 else
2598   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2599 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2600 do
2601   IFS=$as_save_IFS
2602   test -z "$as_dir" && as_dir=.
2603     for ac_prog in mkdir gmkdir; do
2604          for ac_exec_ext in '' $ac_executable_extensions; do
2605            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2606            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2607              'mkdir (GNU coreutils) '* | \
2608              'mkdir (coreutils) '* | \
2609              'mkdir (fileutils) '4.1*)
2610                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2611                break 3;;
2612            esac
2613          done
2614        done
2615   done
2616 IFS=$as_save_IFS
2617
2618 fi
2619
2620   test -d ./--version && rmdir ./--version
2621   if test "${ac_cv_path_mkdir+set}" = set; then
2622     MKDIR_P="$ac_cv_path_mkdir -p"
2623   else
2624     # As a last resort, use the slow shell script.  Don't cache a
2625     # value for MKDIR_P within a source directory, because that will
2626     # break other packages using the cache if that directory is
2627     # removed, or if the value is a relative name.
2628     MKDIR_P="$ac_install_sh -d"
2629   fi
2630 fi
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2632 $as_echo "$MKDIR_P" >&6; }
2633
2634 for ac_prog in gawk mawk nawk awk
2635 do
2636   # Extract the first word of "$ac_prog", so it can be a program name with args.
2637 set dummy $ac_prog; ac_word=$2
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2639 $as_echo_n "checking for $ac_word... " >&6; }
2640 if ${ac_cv_prog_AWK+:} false; then :
2641   $as_echo_n "(cached) " >&6
2642 else
2643   if test -n "$AWK"; then
2644   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2645 else
2646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2647 for as_dir in $PATH
2648 do
2649   IFS=$as_save_IFS
2650   test -z "$as_dir" && as_dir=.
2651     for ac_exec_ext in '' $ac_executable_extensions; do
2652   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2653     ac_cv_prog_AWK="$ac_prog"
2654     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2655     break 2
2656   fi
2657 done
2658   done
2659 IFS=$as_save_IFS
2660
2661 fi
2662 fi
2663 AWK=$ac_cv_prog_AWK
2664 if test -n "$AWK"; then
2665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2666 $as_echo "$AWK" >&6; }
2667 else
2668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2669 $as_echo "no" >&6; }
2670 fi
2671
2672
2673   test -n "$AWK" && break
2674 done
2675
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2677 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2678 set x ${MAKE-make}
2679 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2680 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2681   $as_echo_n "(cached) " >&6
2682 else
2683   cat >conftest.make <<\_ACEOF
2684 SHELL = /bin/sh
2685 all:
2686         @echo '@@@%%%=$(MAKE)=@@@%%%'
2687 _ACEOF
2688 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2689 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2690   *@@@%%%=?*=@@@%%%*)
2691     eval ac_cv_prog_make_${ac_make}_set=yes;;
2692   *)
2693     eval ac_cv_prog_make_${ac_make}_set=no;;
2694 esac
2695 rm -f conftest.make
2696 fi
2697 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2699 $as_echo "yes" >&6; }
2700   SET_MAKE=
2701 else
2702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2703 $as_echo "no" >&6; }
2704   SET_MAKE="MAKE=${MAKE-make}"
2705 fi
2706
2707 rm -rf .tst 2>/dev/null
2708 mkdir .tst 2>/dev/null
2709 if test -d .tst; then
2710   am__leading_dot=.
2711 else
2712   am__leading_dot=_
2713 fi
2714 rmdir .tst 2>/dev/null
2715
2716 # Check whether --enable-silent-rules was given.
2717 if test "${enable_silent_rules+set}" = set; then :
2718   enableval=$enable_silent_rules;
2719 fi
2720
2721 case $enable_silent_rules in # (((
2722   yes) AM_DEFAULT_VERBOSITY=0;;
2723    no) AM_DEFAULT_VERBOSITY=1;;
2724     *) AM_DEFAULT_VERBOSITY=1;;
2725 esac
2726 am_make=${MAKE-make}
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2728 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2729 if ${am_cv_make_support_nested_variables+:} false; then :
2730   $as_echo_n "(cached) " >&6
2731 else
2732   if $as_echo 'TRUE=$(BAR$(V))
2733 BAR0=false
2734 BAR1=true
2735 V=1
2736 am__doit:
2737         @$(TRUE)
2738 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2739   am_cv_make_support_nested_variables=yes
2740 else
2741   am_cv_make_support_nested_variables=no
2742 fi
2743 fi
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2745 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2746 if test $am_cv_make_support_nested_variables = yes; then
2747     AM_V='$(V)'
2748   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2749 else
2750   AM_V=$AM_DEFAULT_VERBOSITY
2751   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2752 fi
2753 AM_BACKSLASH='\'
2754
2755 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2756   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2757   # is not polluted with repeated "-I."
2758   am__isrc=' -I$(srcdir)'
2759   # test to see if srcdir already configured
2760   if test -f $srcdir/config.status; then
2761     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2762   fi
2763 fi
2764
2765 # test whether we have cygpath
2766 if test -z "$CYGPATH_W"; then
2767   if (cygpath --version) >/dev/null 2>/dev/null; then
2768     CYGPATH_W='cygpath -w'
2769   else
2770     CYGPATH_W=echo
2771   fi
2772 fi
2773
2774
2775 # Define the identity of the package.
2776  PACKAGE='gupnp-av'
2777  VERSION='0.12.4'
2778
2779
2780 cat >>confdefs.h <<_ACEOF
2781 #define PACKAGE "$PACKAGE"
2782 _ACEOF
2783
2784
2785 cat >>confdefs.h <<_ACEOF
2786 #define VERSION "$VERSION"
2787 _ACEOF
2788
2789 # Some tools Automake needs.
2790
2791 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2792
2793
2794 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2795
2796
2797 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2798
2799
2800 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2801
2802
2803 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2804
2805 # For better backward compatibility.  To be removed once Automake 1.9.x
2806 # dies out for good.  For more background, see:
2807 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2808 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2809 mkdir_p='$(MKDIR_P)'
2810
2811 # We need awk for the "check" target.  The system "awk" is bad on
2812 # some platforms.
2813 # Always define AMTAR for backward compatibility.  Yes, it's still used
2814 # in the wild :-(  We should find a proper way to deprecate it ...
2815 AMTAR='$${TAR-tar}'
2816
2817
2818 # We'll loop over all known methods to create a tar archive until one works.
2819 _am_tools='gnutar plaintar pax cpio none'
2820
2821 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
2822       # There is notably a 21 bits limit for the UID and the GID.  In fact,
2823       # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
2824       # and bug#13588).
2825       am_max_uid=2097151 # 2^21 - 1
2826       am_max_gid=$am_max_uid
2827       # The $UID and $GID variables are not portable, so we need to resort
2828       # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
2829       # below are definitely unexpected, so allow the users to see them
2830       # (that is, avoid stderr redirection).
2831       am_uid=`id -u || echo unknown`
2832       am_gid=`id -g || echo unknown`
2833       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
2834 $as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
2835       if test $am_uid -le $am_max_uid; then
2836          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2837 $as_echo "yes" >&6; }
2838       else
2839          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2840 $as_echo "no" >&6; }
2841          _am_tools=none
2842       fi
2843       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
2844 $as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
2845       if test $am_gid -le $am_max_gid; then
2846          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2847 $as_echo "yes" >&6; }
2848       else
2849         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2850 $as_echo "no" >&6; }
2851         _am_tools=none
2852       fi
2853
2854   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
2855 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
2856
2857   # Go ahead even if we have the value already cached.  We do so because we
2858   # need to set the values for the 'am__tar' and 'am__untar' variables.
2859   _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
2860
2861   for _am_tool in $_am_tools; do
2862     case $_am_tool in
2863     gnutar)
2864       for _am_tar in tar gnutar gtar; do
2865         { echo "$as_me:$LINENO: $_am_tar --version" >&5
2866    ($_am_tar --version) >&5 2>&5
2867    ac_status=$?
2868    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869    (exit $ac_status); } && break
2870       done
2871       am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
2872       am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
2873       am__untar="$_am_tar -xf -"
2874       ;;
2875     plaintar)
2876       # Must skip GNU tar: if it does not support --format= it doesn't create
2877       # ustar tarball either.
2878       (tar --version) >/dev/null 2>&1 && continue
2879       am__tar='tar chf - "$$tardir"'
2880       am__tar_='tar chf - "$tardir"'
2881       am__untar='tar xf -'
2882       ;;
2883     pax)
2884       am__tar='pax -L -x ustar -w "$$tardir"'
2885       am__tar_='pax -L -x ustar -w "$tardir"'
2886       am__untar='pax -r'
2887       ;;
2888     cpio)
2889       am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
2890       am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
2891       am__untar='cpio -i -H ustar -d'
2892       ;;
2893     none)
2894       am__tar=false
2895       am__tar_=false
2896       am__untar=false
2897       ;;
2898     esac
2899
2900     # If the value was cached, stop now.  We just wanted to have am__tar
2901     # and am__untar set.
2902     test -n "${am_cv_prog_tar_ustar}" && break
2903
2904     # tar/untar a dummy directory, and stop if the command works.
2905     rm -rf conftest.dir
2906     mkdir conftest.dir
2907     echo GrepMe > conftest.dir/file
2908     { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
2909    (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
2910    ac_status=$?
2911    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912    (exit $ac_status); }
2913     rm -rf conftest.dir
2914     if test -s conftest.tar; then
2915       { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
2916    ($am__untar <conftest.tar) >&5 2>&5
2917    ac_status=$?
2918    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919    (exit $ac_status); }
2920       { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
2921    (cat conftest.dir/file) >&5 2>&5
2922    ac_status=$?
2923    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924    (exit $ac_status); }
2925       grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
2926     fi
2927   done
2928   rm -rf conftest.dir
2929
2930   if ${am_cv_prog_tar_ustar+:} false; then :
2931   $as_echo_n "(cached) " >&6
2932 else
2933   am_cv_prog_tar_ustar=$_am_tool
2934 fi
2935
2936   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
2937 $as_echo "$am_cv_prog_tar_ustar" >&6; }
2938
2939
2940
2941
2942
2943
2944
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2946 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2947     # Check whether --enable-maintainer-mode was given.
2948 if test "${enable_maintainer_mode+set}" = set; then :
2949   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2950 else
2951   USE_MAINTAINER_MODE=yes
2952 fi
2953
2954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2955 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2956    if test $USE_MAINTAINER_MODE = yes; then
2957   MAINTAINER_MODE_TRUE=
2958   MAINTAINER_MODE_FALSE='#'
2959 else
2960   MAINTAINER_MODE_TRUE='#'
2961   MAINTAINER_MODE_FALSE=
2962 fi
2963
2964   MAINT=$MAINTAINER_MODE_TRUE
2965
2966
2967
2968 # Check whether --enable-silent-rules was given.
2969 if test "${enable_silent_rules+set}" = set; then :
2970   enableval=$enable_silent_rules;
2971 fi
2972
2973 case $enable_silent_rules in # (((
2974   yes) AM_DEFAULT_VERBOSITY=0;;
2975    no) AM_DEFAULT_VERBOSITY=1;;
2976     *) AM_DEFAULT_VERBOSITY=0;;
2977 esac
2978 am_make=${MAKE-make}
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2980 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2981 if ${am_cv_make_support_nested_variables+:} false; then :
2982   $as_echo_n "(cached) " >&6
2983 else
2984   if $as_echo 'TRUE=$(BAR$(V))
2985 BAR0=false
2986 BAR1=true
2987 V=1
2988 am__doit:
2989         @$(TRUE)
2990 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2991   am_cv_make_support_nested_variables=yes
2992 else
2993   am_cv_make_support_nested_variables=no
2994 fi
2995 fi
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2997 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2998 if test $am_cv_make_support_nested_variables = yes; then
2999     AM_V='$(V)'
3000   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3001 else
3002   AM_V=$AM_DEFAULT_VERBOSITY
3003   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3004 fi
3005 AM_BACKSLASH='\'
3006
3007
3008 # Check for programs
3009 ac_ext=c
3010 ac_cpp='$CPP $CPPFLAGS'
3011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3014 if test -n "$ac_tool_prefix"; then
3015   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3016 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3018 $as_echo_n "checking for $ac_word... " >&6; }
3019 if ${ac_cv_prog_CC+:} false; then :
3020   $as_echo_n "(cached) " >&6
3021 else
3022   if test -n "$CC"; then
3023   ac_cv_prog_CC="$CC" # Let the user override the test.
3024 else
3025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3026 for as_dir in $PATH
3027 do
3028   IFS=$as_save_IFS
3029   test -z "$as_dir" && as_dir=.
3030     for ac_exec_ext in '' $ac_executable_extensions; do
3031   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3032     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3033     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3034     break 2
3035   fi
3036 done
3037   done
3038 IFS=$as_save_IFS
3039
3040 fi
3041 fi
3042 CC=$ac_cv_prog_CC
3043 if test -n "$CC"; then
3044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3045 $as_echo "$CC" >&6; }
3046 else
3047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3048 $as_echo "no" >&6; }
3049 fi
3050
3051
3052 fi
3053 if test -z "$ac_cv_prog_CC"; then
3054   ac_ct_CC=$CC
3055   # Extract the first word of "gcc", so it can be a program name with args.
3056 set dummy gcc; ac_word=$2
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3058 $as_echo_n "checking for $ac_word... " >&6; }
3059 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3060   $as_echo_n "(cached) " >&6
3061 else
3062   if test -n "$ac_ct_CC"; then
3063   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3064 else
3065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3066 for as_dir in $PATH
3067 do
3068   IFS=$as_save_IFS
3069   test -z "$as_dir" && as_dir=.
3070     for ac_exec_ext in '' $ac_executable_extensions; do
3071   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3072     ac_cv_prog_ac_ct_CC="gcc"
3073     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3074     break 2
3075   fi
3076 done
3077   done
3078 IFS=$as_save_IFS
3079
3080 fi
3081 fi
3082 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3083 if test -n "$ac_ct_CC"; then
3084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3085 $as_echo "$ac_ct_CC" >&6; }
3086 else
3087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3088 $as_echo "no" >&6; }
3089 fi
3090
3091   if test "x$ac_ct_CC" = x; then
3092     CC=""
3093   else
3094     case $cross_compiling:$ac_tool_warned in
3095 yes:)
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3097 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3098 ac_tool_warned=yes ;;
3099 esac
3100     CC=$ac_ct_CC
3101   fi
3102 else
3103   CC="$ac_cv_prog_CC"
3104 fi
3105
3106 if test -z "$CC"; then
3107           if test -n "$ac_tool_prefix"; then
3108     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3109 set dummy ${ac_tool_prefix}cc; ac_word=$2
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3111 $as_echo_n "checking for $ac_word... " >&6; }
3112 if ${ac_cv_prog_CC+:} false; then :
3113   $as_echo_n "(cached) " >&6
3114 else
3115   if test -n "$CC"; then
3116   ac_cv_prog_CC="$CC" # Let the user override the test.
3117 else
3118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3119 for as_dir in $PATH
3120 do
3121   IFS=$as_save_IFS
3122   test -z "$as_dir" && as_dir=.
3123     for ac_exec_ext in '' $ac_executable_extensions; do
3124   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3125     ac_cv_prog_CC="${ac_tool_prefix}cc"
3126     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3127     break 2
3128   fi
3129 done
3130   done
3131 IFS=$as_save_IFS
3132
3133 fi
3134 fi
3135 CC=$ac_cv_prog_CC
3136 if test -n "$CC"; then
3137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3138 $as_echo "$CC" >&6; }
3139 else
3140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3141 $as_echo "no" >&6; }
3142 fi
3143
3144
3145   fi
3146 fi
3147 if test -z "$CC"; then
3148   # Extract the first word of "cc", so it can be a program name with args.
3149 set dummy cc; ac_word=$2
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3151 $as_echo_n "checking for $ac_word... " >&6; }
3152 if ${ac_cv_prog_CC+:} false; then :
3153   $as_echo_n "(cached) " >&6
3154 else
3155   if test -n "$CC"; then
3156   ac_cv_prog_CC="$CC" # Let the user override the test.
3157 else
3158   ac_prog_rejected=no
3159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3160 for as_dir in $PATH
3161 do
3162   IFS=$as_save_IFS
3163   test -z "$as_dir" && as_dir=.
3164     for ac_exec_ext in '' $ac_executable_extensions; do
3165   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3166     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3167        ac_prog_rejected=yes
3168        continue
3169      fi
3170     ac_cv_prog_CC="cc"
3171     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3172     break 2
3173   fi
3174 done
3175   done
3176 IFS=$as_save_IFS
3177
3178 if test $ac_prog_rejected = yes; then
3179   # We found a bogon in the path, so make sure we never use it.
3180   set dummy $ac_cv_prog_CC
3181   shift
3182   if test $# != 0; then
3183     # We chose a different compiler from the bogus one.
3184     # However, it has the same basename, so the bogon will be chosen
3185     # first if we set CC to just the basename; use the full file name.
3186     shift
3187     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3188   fi
3189 fi
3190 fi
3191 fi
3192 CC=$ac_cv_prog_CC
3193 if test -n "$CC"; then
3194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3195 $as_echo "$CC" >&6; }
3196 else
3197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3198 $as_echo "no" >&6; }
3199 fi
3200
3201
3202 fi
3203 if test -z "$CC"; then
3204   if test -n "$ac_tool_prefix"; then
3205   for ac_prog in cl.exe
3206   do
3207     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3208 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3210 $as_echo_n "checking for $ac_word... " >&6; }
3211 if ${ac_cv_prog_CC+:} false; then :
3212   $as_echo_n "(cached) " >&6
3213 else
3214   if test -n "$CC"; then
3215   ac_cv_prog_CC="$CC" # Let the user override the test.
3216 else
3217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3218 for as_dir in $PATH
3219 do
3220   IFS=$as_save_IFS
3221   test -z "$as_dir" && as_dir=.
3222     for ac_exec_ext in '' $ac_executable_extensions; do
3223   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3224     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3225     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3226     break 2
3227   fi
3228 done
3229   done
3230 IFS=$as_save_IFS
3231
3232 fi
3233 fi
3234 CC=$ac_cv_prog_CC
3235 if test -n "$CC"; then
3236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3237 $as_echo "$CC" >&6; }
3238 else
3239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3240 $as_echo "no" >&6; }
3241 fi
3242
3243
3244     test -n "$CC" && break
3245   done
3246 fi
3247 if test -z "$CC"; then
3248   ac_ct_CC=$CC
3249   for ac_prog in cl.exe
3250 do
3251   # Extract the first word of "$ac_prog", so it can be a program name with args.
3252 set dummy $ac_prog; ac_word=$2
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3254 $as_echo_n "checking for $ac_word... " >&6; }
3255 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3256   $as_echo_n "(cached) " >&6
3257 else
3258   if test -n "$ac_ct_CC"; then
3259   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3260 else
3261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3262 for as_dir in $PATH
3263 do
3264   IFS=$as_save_IFS
3265   test -z "$as_dir" && as_dir=.
3266     for ac_exec_ext in '' $ac_executable_extensions; do
3267   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3268     ac_cv_prog_ac_ct_CC="$ac_prog"
3269     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3270     break 2
3271   fi
3272 done
3273   done
3274 IFS=$as_save_IFS
3275
3276 fi
3277 fi
3278 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3279 if test -n "$ac_ct_CC"; then
3280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3281 $as_echo "$ac_ct_CC" >&6; }
3282 else
3283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3284 $as_echo "no" >&6; }
3285 fi
3286
3287
3288   test -n "$ac_ct_CC" && break
3289 done
3290
3291   if test "x$ac_ct_CC" = x; then
3292     CC=""
3293   else
3294     case $cross_compiling:$ac_tool_warned in
3295 yes:)
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3297 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3298 ac_tool_warned=yes ;;
3299 esac
3300     CC=$ac_ct_CC
3301   fi
3302 fi
3303
3304 fi
3305
3306
3307 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3308 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3309 as_fn_error $? "no acceptable C compiler found in \$PATH
3310 See \`config.log' for more details" "$LINENO" 5; }
3311
3312 # Provide some information about the compiler.
3313 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3314 set X $ac_compile
3315 ac_compiler=$2
3316 for ac_option in --version -v -V -qversion; do
3317   { { ac_try="$ac_compiler $ac_option >&5"
3318 case "(($ac_try" in
3319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3320   *) ac_try_echo=$ac_try;;
3321 esac
3322 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3323 $as_echo "$ac_try_echo"; } >&5
3324   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3325   ac_status=$?
3326   if test -s conftest.err; then
3327     sed '10a\
3328 ... rest of stderr output deleted ...
3329          10q' conftest.err >conftest.er1
3330     cat conftest.er1 >&5
3331   fi
3332   rm -f conftest.er1 conftest.err
3333   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3334   test $ac_status = 0; }
3335 done
3336
3337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3338 /* end confdefs.h.  */
3339
3340 int
3341 main ()
3342 {
3343
3344   ;
3345   return 0;
3346 }
3347 _ACEOF
3348 ac_clean_files_save=$ac_clean_files
3349 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3350 # Try to create an executable without -o first, disregard a.out.
3351 # It will help us diagnose broken compilers, and finding out an intuition
3352 # of exeext.
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3354 $as_echo_n "checking whether the C compiler works... " >&6; }
3355 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3356
3357 # The possible output files:
3358 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3359
3360 ac_rmfiles=
3361 for ac_file in $ac_files
3362 do
3363   case $ac_file in
3364     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3365     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3366   esac
3367 done
3368 rm -f $ac_rmfiles
3369
3370 if { { ac_try="$ac_link_default"
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_default") 2>&5
3378   ac_status=$?
3379   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3380   test $ac_status = 0; }; then :
3381   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3382 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3383 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3384 # so that the user can short-circuit this test for compilers unknown to
3385 # Autoconf.
3386 for ac_file in $ac_files ''
3387 do
3388   test -f "$ac_file" || continue
3389   case $ac_file in
3390     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3391         ;;
3392     [ab].out )
3393         # We found the default executable, but exeext='' is most
3394         # certainly right.
3395         break;;
3396     *.* )
3397         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3398         then :; else
3399            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3400         fi
3401         # We set ac_cv_exeext here because the later test for it is not
3402         # safe: cross compilers may not add the suffix if given an `-o'
3403         # argument, so we may need to know it at that point already.
3404         # Even if this section looks crufty: it has the advantage of
3405         # actually working.
3406         break;;
3407     * )
3408         break;;
3409   esac
3410 done
3411 test "$ac_cv_exeext" = no && ac_cv_exeext=
3412
3413 else
3414   ac_file=''
3415 fi
3416 if test -z "$ac_file"; then :
3417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3418 $as_echo "no" >&6; }
3419 $as_echo "$as_me: failed program was:" >&5
3420 sed 's/^/| /' conftest.$ac_ext >&5
3421
3422 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3423 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3424 as_fn_error 77 "C compiler cannot create executables
3425 See \`config.log' for more details" "$LINENO" 5; }
3426 else
3427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3428 $as_echo "yes" >&6; }
3429 fi
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3431 $as_echo_n "checking for C compiler default output file name... " >&6; }
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3433 $as_echo "$ac_file" >&6; }
3434 ac_exeext=$ac_cv_exeext
3435
3436 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3437 ac_clean_files=$ac_clean_files_save
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3439 $as_echo_n "checking for suffix of executables... " >&6; }
3440 if { { ac_try="$ac_link"
3441 case "(($ac_try" in
3442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3443   *) ac_try_echo=$ac_try;;
3444 esac
3445 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3446 $as_echo "$ac_try_echo"; } >&5
3447   (eval "$ac_link") 2>&5
3448   ac_status=$?
3449   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3450   test $ac_status = 0; }; then :
3451   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3452 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3453 # work properly (i.e., refer to `conftest.exe'), while it won't with
3454 # `rm'.
3455 for ac_file in conftest.exe conftest conftest.*; do
3456   test -f "$ac_file" || continue
3457   case $ac_file in
3458     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3459     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3460           break;;
3461     * ) break;;
3462   esac
3463 done
3464 else
3465   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3466 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3467 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3468 See \`config.log' for more details" "$LINENO" 5; }
3469 fi
3470 rm -f conftest conftest$ac_cv_exeext
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3472 $as_echo "$ac_cv_exeext" >&6; }
3473
3474 rm -f conftest.$ac_ext
3475 EXEEXT=$ac_cv_exeext
3476 ac_exeext=$EXEEXT
3477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3478 /* end confdefs.h.  */
3479 #include <stdio.h>
3480 int
3481 main ()
3482 {
3483 FILE *f = fopen ("conftest.out", "w");
3484  return ferror (f) || fclose (f) != 0;
3485
3486   ;
3487   return 0;
3488 }
3489 _ACEOF
3490 ac_clean_files="$ac_clean_files conftest.out"
3491 # Check that the compiler produces executables we can run.  If not, either
3492 # the compiler is broken, or we cross compile.
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3494 $as_echo_n "checking whether we are cross compiling... " >&6; }
3495 if test "$cross_compiling" != yes; then
3496   { { ac_try="$ac_link"
3497 case "(($ac_try" in
3498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3499   *) ac_try_echo=$ac_try;;
3500 esac
3501 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3502 $as_echo "$ac_try_echo"; } >&5
3503   (eval "$ac_link") 2>&5
3504   ac_status=$?
3505   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3506   test $ac_status = 0; }
3507   if { ac_try='./conftest$ac_cv_exeext'
3508   { { case "(($ac_try" in
3509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3510   *) ac_try_echo=$ac_try;;
3511 esac
3512 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3513 $as_echo "$ac_try_echo"; } >&5
3514   (eval "$ac_try") 2>&5
3515   ac_status=$?
3516   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3517   test $ac_status = 0; }; }; then
3518     cross_compiling=no
3519   else
3520     if test "$cross_compiling" = maybe; then
3521         cross_compiling=yes
3522     else
3523         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3524 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3525 as_fn_error $? "cannot run C compiled programs.
3526 If you meant to cross compile, use \`--host'.
3527 See \`config.log' for more details" "$LINENO" 5; }
3528     fi
3529   fi
3530 fi
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3532 $as_echo "$cross_compiling" >&6; }
3533
3534 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3535 ac_clean_files=$ac_clean_files_save
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3537 $as_echo_n "checking for suffix of object files... " >&6; }
3538 if ${ac_cv_objext+:} false; then :
3539   $as_echo_n "(cached) " >&6
3540 else
3541   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3542 /* end confdefs.h.  */
3543
3544 int
3545 main ()
3546 {
3547
3548   ;
3549   return 0;
3550 }
3551 _ACEOF
3552 rm -f conftest.o conftest.obj
3553 if { { ac_try="$ac_compile"
3554 case "(($ac_try" in
3555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3556   *) ac_try_echo=$ac_try;;
3557 esac
3558 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3559 $as_echo "$ac_try_echo"; } >&5
3560   (eval "$ac_compile") 2>&5
3561   ac_status=$?
3562   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3563   test $ac_status = 0; }; then :
3564   for ac_file in conftest.o conftest.obj conftest.*; do
3565   test -f "$ac_file" || continue;
3566   case $ac_file in
3567     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3568     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3569        break;;
3570   esac
3571 done
3572 else
3573   $as_echo "$as_me: failed program was:" >&5
3574 sed 's/^/| /' conftest.$ac_ext >&5
3575
3576 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3577 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3578 as_fn_error $? "cannot compute suffix of object files: cannot compile
3579 See \`config.log' for more details" "$LINENO" 5; }
3580 fi
3581 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3582 fi
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3584 $as_echo "$ac_cv_objext" >&6; }
3585 OBJEXT=$ac_cv_objext
3586 ac_objext=$OBJEXT
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3588 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3589 if ${ac_cv_c_compiler_gnu+:} false; then :
3590   $as_echo_n "(cached) " >&6
3591 else
3592   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3593 /* end confdefs.h.  */
3594
3595 int
3596 main ()
3597 {
3598 #ifndef __GNUC__
3599        choke me
3600 #endif
3601
3602   ;
3603   return 0;
3604 }
3605 _ACEOF
3606 if ac_fn_c_try_compile "$LINENO"; then :
3607   ac_compiler_gnu=yes
3608 else
3609   ac_compiler_gnu=no
3610 fi
3611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3612 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3613
3614 fi
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3616 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3617 if test $ac_compiler_gnu = yes; then
3618   GCC=yes
3619 else
3620   GCC=
3621 fi
3622 ac_test_CFLAGS=${CFLAGS+set}
3623 ac_save_CFLAGS=$CFLAGS
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3625 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3626 if ${ac_cv_prog_cc_g+:} false; then :
3627   $as_echo_n "(cached) " >&6
3628 else
3629   ac_save_c_werror_flag=$ac_c_werror_flag
3630    ac_c_werror_flag=yes
3631    ac_cv_prog_cc_g=no
3632    CFLAGS="-g"
3633    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3634 /* end confdefs.h.  */
3635
3636 int
3637 main ()
3638 {
3639
3640   ;
3641   return 0;
3642 }
3643 _ACEOF
3644 if ac_fn_c_try_compile "$LINENO"; then :
3645   ac_cv_prog_cc_g=yes
3646 else
3647   CFLAGS=""
3648       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3649 /* end confdefs.h.  */
3650
3651 int
3652 main ()
3653 {
3654
3655   ;
3656   return 0;
3657 }
3658 _ACEOF
3659 if ac_fn_c_try_compile "$LINENO"; then :
3660
3661 else
3662   ac_c_werror_flag=$ac_save_c_werror_flag
3663          CFLAGS="-g"
3664          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3665 /* end confdefs.h.  */
3666
3667 int
3668 main ()
3669 {
3670
3671   ;
3672   return 0;
3673 }
3674 _ACEOF
3675 if ac_fn_c_try_compile "$LINENO"; then :
3676   ac_cv_prog_cc_g=yes
3677 fi
3678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3679 fi
3680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3681 fi
3682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3683    ac_c_werror_flag=$ac_save_c_werror_flag
3684 fi
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3686 $as_echo "$ac_cv_prog_cc_g" >&6; }
3687 if test "$ac_test_CFLAGS" = set; then
3688   CFLAGS=$ac_save_CFLAGS
3689 elif test $ac_cv_prog_cc_g = yes; then
3690   if test "$GCC" = yes; then
3691     CFLAGS="-g -O2"
3692   else
3693     CFLAGS="-g"
3694   fi
3695 else
3696   if test "$GCC" = yes; then
3697     CFLAGS="-O2"
3698   else
3699     CFLAGS=
3700   fi
3701 fi
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3703 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3704 if ${ac_cv_prog_cc_c89+:} false; then :
3705   $as_echo_n "(cached) " >&6
3706 else
3707   ac_cv_prog_cc_c89=no
3708 ac_save_CC=$CC
3709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3710 /* end confdefs.h.  */
3711 #include <stdarg.h>
3712 #include <stdio.h>
3713 struct stat;
3714 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3715 struct buf { int x; };
3716 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3717 static char *e (p, i)
3718      char **p;
3719      int i;
3720 {
3721   return p[i];
3722 }
3723 static char *f (char * (*g) (char **, int), char **p, ...)
3724 {
3725   char *s;
3726   va_list v;
3727   va_start (v,p);
3728   s = g (p, va_arg (v,int));
3729   va_end (v);
3730   return s;
3731 }
3732
3733 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3734    function prototypes and stuff, but not '\xHH' hex character constants.
3735    These don't provoke an error unfortunately, instead are silently treated
3736    as 'x'.  The following induces an error, until -std is added to get
3737    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3738    array size at least.  It's necessary to write '\x00'==0 to get something
3739    that's true only with -std.  */
3740 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3741
3742 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3743    inside strings and character constants.  */
3744 #define FOO(x) 'x'
3745 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3746
3747 int test (int i, double x);
3748 struct s1 {int (*f) (int a);};
3749 struct s2 {int (*f) (double a);};
3750 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3751 int argc;
3752 char **argv;
3753 int
3754 main ()
3755 {
3756 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3757   ;
3758   return 0;
3759 }
3760 _ACEOF
3761 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3762         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3763 do
3764   CC="$ac_save_CC $ac_arg"
3765   if ac_fn_c_try_compile "$LINENO"; then :
3766   ac_cv_prog_cc_c89=$ac_arg
3767 fi
3768 rm -f core conftest.err conftest.$ac_objext
3769   test "x$ac_cv_prog_cc_c89" != "xno" && break
3770 done
3771 rm -f conftest.$ac_ext
3772 CC=$ac_save_CC
3773
3774 fi
3775 # AC_CACHE_VAL
3776 case "x$ac_cv_prog_cc_c89" in
3777   x)
3778     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3779 $as_echo "none needed" >&6; } ;;
3780   xno)
3781     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3782 $as_echo "unsupported" >&6; } ;;
3783   *)
3784     CC="$CC $ac_cv_prog_cc_c89"
3785     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3786 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3787 esac
3788 if test "x$ac_cv_prog_cc_c89" != xno; then :
3789
3790 fi
3791
3792 ac_ext=c
3793 ac_cpp='$CPP $CPPFLAGS'
3794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3797 DEPDIR="${am__leading_dot}deps"
3798
3799 ac_config_commands="$ac_config_commands depfiles"
3800
3801
3802 am_make=${MAKE-make}
3803 cat > confinc << 'END'
3804 am__doit:
3805         @echo this is the am__doit target
3806 .PHONY: am__doit
3807 END
3808 # If we don't find an include directive, just comment out the code.
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3810 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3811 am__include="#"
3812 am__quote=
3813 _am_result=none
3814 # First try GNU make style include.
3815 echo "include confinc" > confmf
3816 # Ignore all kinds of additional output from 'make'.
3817 case `$am_make -s -f confmf 2> /dev/null` in #(
3818 *the\ am__doit\ target*)
3819   am__include=include
3820   am__quote=
3821   _am_result=GNU
3822   ;;
3823 esac
3824 # Now try BSD make style include.
3825 if test "$am__include" = "#"; then
3826    echo '.include "confinc"' > confmf
3827    case `$am_make -s -f confmf 2> /dev/null` in #(
3828    *the\ am__doit\ target*)
3829      am__include=.include
3830      am__quote="\""
3831      _am_result=BSD
3832      ;;
3833    esac
3834 fi
3835
3836
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3838 $as_echo "$_am_result" >&6; }
3839 rm -f confinc confmf
3840
3841 # Check whether --enable-dependency-tracking was given.
3842 if test "${enable_dependency_tracking+set}" = set; then :
3843   enableval=$enable_dependency_tracking;
3844 fi
3845
3846 if test "x$enable_dependency_tracking" != xno; then
3847   am_depcomp="$ac_aux_dir/depcomp"
3848   AMDEPBACKSLASH='\'
3849   am__nodep='_no'
3850 fi
3851  if test "x$enable_dependency_tracking" != xno; then
3852   AMDEP_TRUE=
3853   AMDEP_FALSE='#'
3854 else
3855   AMDEP_TRUE='#'
3856   AMDEP_FALSE=
3857 fi
3858
3859
3860
3861 depcc="$CC"   am_compiler_list=
3862
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3864 $as_echo_n "checking dependency style of $depcc... " >&6; }
3865 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3866   $as_echo_n "(cached) " >&6
3867 else
3868   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3869   # We make a subdir and do the tests there.  Otherwise we can end up
3870   # making bogus files that we don't know about and never remove.  For
3871   # instance it was reported that on HP-UX the gcc test will end up
3872   # making a dummy file named 'D' -- because '-MD' means "put the output
3873   # in D".
3874   rm -rf conftest.dir
3875   mkdir conftest.dir
3876   # Copy depcomp to subdir because otherwise we won't find it if we're
3877   # using a relative directory.
3878   cp "$am_depcomp" conftest.dir
3879   cd conftest.dir
3880   # We will build objects and dependencies in a subdirectory because
3881   # it helps to detect inapplicable dependency modes.  For instance
3882   # both Tru64's cc and ICC support -MD to output dependencies as a
3883   # side effect of compilation, but ICC will put the dependencies in
3884   # the current directory while Tru64 will put them in the object
3885   # directory.
3886   mkdir sub
3887
3888   am_cv_CC_dependencies_compiler_type=none
3889   if test "$am_compiler_list" = ""; then
3890      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3891   fi
3892   am__universal=false
3893   case " $depcc " in #(
3894      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3895      esac
3896
3897   for depmode in $am_compiler_list; do
3898     # Setup a source with many dependencies, because some compilers
3899     # like to wrap large dependency lists on column 80 (with \), and
3900     # we should not choose a depcomp mode which is confused by this.
3901     #
3902     # We need to recreate these files for each test, as the compiler may
3903     # overwrite some of them when testing with obscure command lines.
3904     # This happens at least with the AIX C compiler.
3905     : > sub/conftest.c
3906     for i in 1 2 3 4 5 6; do
3907       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3908       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3909       # Solaris 10 /bin/sh.
3910       echo '/* dummy */' > sub/conftst$i.h
3911     done
3912     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3913
3914     # We check with '-c' and '-o' for the sake of the "dashmstdout"
3915     # mode.  It turns out that the SunPro C++ compiler does not properly
3916     # handle '-M -o', and we need to detect this.  Also, some Intel
3917     # versions had trouble with output in subdirs.
3918     am__obj=sub/conftest.${OBJEXT-o}
3919     am__minus_obj="-o $am__obj"
3920     case $depmode in
3921     gcc)
3922       # This depmode causes a compiler race in universal mode.
3923       test "$am__universal" = false || continue
3924       ;;
3925     nosideeffect)
3926       # After this tag, mechanisms are not by side-effect, so they'll
3927       # only be used when explicitly requested.
3928       if test "x$enable_dependency_tracking" = xyes; then
3929         continue
3930       else
3931         break
3932       fi
3933       ;;
3934     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3935       # This compiler won't grok '-c -o', but also, the minuso test has
3936       # not run yet.  These depmodes are late enough in the game, and
3937       # so weak that their functioning should not be impacted.
3938       am__obj=conftest.${OBJEXT-o}
3939       am__minus_obj=
3940       ;;
3941     none) break ;;
3942     esac
3943     if depmode=$depmode \
3944        source=sub/conftest.c object=$am__obj \
3945        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3946        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3947          >/dev/null 2>conftest.err &&
3948        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3949        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3950        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3951        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3952       # icc doesn't choke on unknown options, it will just issue warnings
3953       # or remarks (even with -Werror).  So we grep stderr for any message
3954       # that says an option was ignored or not supported.
3955       # When given -MP, icc 7.0 and 7.1 complain thusly:
3956       #   icc: Command line warning: ignoring option '-M'; no argument required
3957       # The diagnosis changed in icc 8.0:
3958       #   icc: Command line remark: option '-MP' not supported
3959       if (grep 'ignoring option' conftest.err ||
3960           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3961         am_cv_CC_dependencies_compiler_type=$depmode
3962         break
3963       fi
3964     fi
3965   done
3966
3967   cd ..
3968   rm -rf conftest.dir
3969 else
3970   am_cv_CC_dependencies_compiler_type=none
3971 fi
3972
3973 fi
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3975 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3976 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3977
3978  if
3979   test "x$enable_dependency_tracking" != xno \
3980   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3981   am__fastdepCC_TRUE=
3982   am__fastdepCC_FALSE='#'
3983 else
3984   am__fastdepCC_TRUE='#'
3985   am__fastdepCC_FALSE=
3986 fi
3987
3988
3989 if test "x$CC" != xcc; then
3990   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
3991 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
3992 else
3993   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
3994 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
3995 fi
3996 set dummy $CC; ac_cc=`$as_echo "$2" |
3997                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3998 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
3999   $as_echo_n "(cached) " >&6
4000 else
4001   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4002 /* end confdefs.h.  */
4003
4004 int
4005 main ()
4006 {
4007
4008   ;
4009   return 0;
4010 }
4011 _ACEOF
4012 # Make sure it works both with $CC and with simple cc.
4013 # We do the test twice because some compilers refuse to overwrite an
4014 # existing .o file with -o, though they will create one.
4015 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4016 rm -f conftest2.*
4017 if { { case "(($ac_try" in
4018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4019   *) ac_try_echo=$ac_try;;
4020 esac
4021 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4022 $as_echo "$ac_try_echo"; } >&5
4023   (eval "$ac_try") 2>&5
4024   ac_status=$?
4025   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4026   test $ac_status = 0; } &&
4027    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4029   *) ac_try_echo=$ac_try;;
4030 esac
4031 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4032 $as_echo "$ac_try_echo"; } >&5
4033   (eval "$ac_try") 2>&5
4034   ac_status=$?
4035   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4036   test $ac_status = 0; };
4037 then
4038   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4039   if test "x$CC" != xcc; then
4040     # Test first that cc exists at all.
4041     if { ac_try='cc -c conftest.$ac_ext >&5'
4042   { { case "(($ac_try" in
4043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4044   *) ac_try_echo=$ac_try;;
4045 esac
4046 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4047 $as_echo "$ac_try_echo"; } >&5
4048   (eval "$ac_try") 2>&5
4049   ac_status=$?
4050   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4051   test $ac_status = 0; }; }; then
4052       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4053       rm -f conftest2.*
4054       if { { case "(($ac_try" in
4055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4056   *) ac_try_echo=$ac_try;;
4057 esac
4058 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4059 $as_echo "$ac_try_echo"; } >&5
4060   (eval "$ac_try") 2>&5
4061   ac_status=$?
4062   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4063   test $ac_status = 0; } &&
4064          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4066   *) ac_try_echo=$ac_try;;
4067 esac
4068 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4069 $as_echo "$ac_try_echo"; } >&5
4070   (eval "$ac_try") 2>&5
4071   ac_status=$?
4072   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4073   test $ac_status = 0; };
4074       then
4075         # cc works too.
4076         :
4077       else
4078         # cc exists but doesn't like -o.
4079         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4080       fi
4081     fi
4082   fi
4083 else
4084   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4085 fi
4086 rm -f core conftest*
4087
4088 fi
4089 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4091 $as_echo "yes" >&6; }
4092 else
4093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4094 $as_echo "no" >&6; }
4095
4096 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4097
4098 fi
4099
4100 # FIXME: we rely on the cache variable name because
4101 # there is no other way.
4102 set dummy $CC
4103 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4104 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4105 if test "$am_t" != yes; then
4106    # Losing compiler, so override with the script.
4107    # FIXME: It is wrong to rewrite CC.
4108    # But if we don't then we get into trouble of one sort or another.
4109    # A longer-term fix would be to have automake use am__CC in this case,
4110    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4111    CC="$am_aux_dir/compile $CC"
4112 fi
4113
4114
4115
4116 ac_ext=c
4117 ac_cpp='$CPP $CPPFLAGS'
4118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4122 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4123 # On Suns, sometimes $CPP names a directory.
4124 if test -n "$CPP" && test -d "$CPP"; then
4125   CPP=
4126 fi
4127 if test -z "$CPP"; then
4128   if ${ac_cv_prog_CPP+:} false; then :
4129   $as_echo_n "(cached) " >&6
4130 else
4131       # Double quotes because CPP needs to be expanded
4132     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4133     do
4134       ac_preproc_ok=false
4135 for ac_c_preproc_warn_flag in '' yes
4136 do
4137   # Use a header file that comes with gcc, so configuring glibc
4138   # with a fresh cross-compiler works.
4139   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4140   # <limits.h> exists even on freestanding compilers.
4141   # On the NeXT, cc -E runs the code through the compiler's parser,
4142   # not just through cpp. "Syntax error" is here to catch this case.
4143   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4144 /* end confdefs.h.  */
4145 #ifdef __STDC__
4146 # include <limits.h>
4147 #else
4148 # include <assert.h>
4149 #endif
4150                      Syntax error
4151 _ACEOF
4152 if ac_fn_c_try_cpp "$LINENO"; then :
4153
4154 else
4155   # Broken: fails on valid input.
4156 continue
4157 fi
4158 rm -f conftest.err conftest.i conftest.$ac_ext
4159
4160   # OK, works on sane cases.  Now check whether nonexistent headers
4161   # can be detected and how.
4162   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4163 /* end confdefs.h.  */
4164 #include <ac_nonexistent.h>
4165 _ACEOF
4166 if ac_fn_c_try_cpp "$LINENO"; then :
4167   # Broken: success on invalid input.
4168 continue
4169 else
4170   # Passes both tests.
4171 ac_preproc_ok=:
4172 break
4173 fi
4174 rm -f conftest.err conftest.i conftest.$ac_ext
4175
4176 done
4177 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4178 rm -f conftest.i conftest.err conftest.$ac_ext
4179 if $ac_preproc_ok; then :
4180   break
4181 fi
4182
4183     done
4184     ac_cv_prog_CPP=$CPP
4185
4186 fi
4187   CPP=$ac_cv_prog_CPP
4188 else
4189   ac_cv_prog_CPP=$CPP
4190 fi
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4192 $as_echo "$CPP" >&6; }
4193 ac_preproc_ok=false
4194 for ac_c_preproc_warn_flag in '' yes
4195 do
4196   # Use a header file that comes with gcc, so configuring glibc
4197   # with a fresh cross-compiler works.
4198   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4199   # <limits.h> exists even on freestanding compilers.
4200   # On the NeXT, cc -E runs the code through the compiler's parser,
4201   # not just through cpp. "Syntax error" is here to catch this case.
4202   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4203 /* end confdefs.h.  */
4204 #ifdef __STDC__
4205 # include <limits.h>
4206 #else
4207 # include <assert.h>
4208 #endif
4209                      Syntax error
4210 _ACEOF
4211 if ac_fn_c_try_cpp "$LINENO"; then :
4212
4213 else
4214   # Broken: fails on valid input.
4215 continue
4216 fi
4217 rm -f conftest.err conftest.i conftest.$ac_ext
4218
4219   # OK, works on sane cases.  Now check whether nonexistent headers
4220   # can be detected and how.
4221   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4222 /* end confdefs.h.  */
4223 #include <ac_nonexistent.h>
4224 _ACEOF
4225 if ac_fn_c_try_cpp "$LINENO"; then :
4226   # Broken: success on invalid input.
4227 continue
4228 else
4229   # Passes both tests.
4230 ac_preproc_ok=:
4231 break
4232 fi
4233 rm -f conftest.err conftest.i conftest.$ac_ext
4234
4235 done
4236 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4237 rm -f conftest.i conftest.err conftest.$ac_ext
4238 if $ac_preproc_ok; then :
4239
4240 else
4241   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4242 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4243 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4244 See \`config.log' for more details" "$LINENO" 5; }
4245 fi
4246
4247 ac_ext=c
4248 ac_cpp='$CPP $CPPFLAGS'
4249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4252
4253
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4255 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4256 if ${ac_cv_path_GREP+:} false; then :
4257   $as_echo_n "(cached) " >&6
4258 else
4259   if test -z "$GREP"; then
4260   ac_path_GREP_found=false
4261   # Loop through the user's path and test for each of PROGNAME-LIST
4262   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4263 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4264 do
4265   IFS=$as_save_IFS
4266   test -z "$as_dir" && as_dir=.
4267     for ac_prog in grep ggrep; do
4268     for ac_exec_ext in '' $ac_executable_extensions; do
4269       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4270       as_fn_executable_p "$ac_path_GREP" || continue
4271 # Check for GNU ac_path_GREP and select it if it is found.
4272   # Check for GNU $ac_path_GREP
4273 case `"$ac_path_GREP" --version 2>&1` in
4274 *GNU*)
4275   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4276 *)
4277   ac_count=0
4278   $as_echo_n 0123456789 >"conftest.in"
4279   while :
4280   do
4281     cat "conftest.in" "conftest.in" >"conftest.tmp"
4282     mv "conftest.tmp" "conftest.in"
4283     cp "conftest.in" "conftest.nl"
4284     $as_echo 'GREP' >> "conftest.nl"
4285     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4286     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4287     as_fn_arith $ac_count + 1 && ac_count=$as_val
4288     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4289       # Best one so far, save it but keep looking for a better one
4290       ac_cv_path_GREP="$ac_path_GREP"
4291       ac_path_GREP_max=$ac_count
4292     fi
4293     # 10*(2^10) chars as input seems more than enough
4294     test $ac_count -gt 10 && break
4295   done
4296   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4297 esac
4298
4299       $ac_path_GREP_found && break 3
4300     done
4301   done
4302   done
4303 IFS=$as_save_IFS
4304   if test -z "$ac_cv_path_GREP"; then
4305     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4306   fi
4307 else
4308   ac_cv_path_GREP=$GREP
4309 fi
4310
4311 fi
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4313 $as_echo "$ac_cv_path_GREP" >&6; }
4314  GREP="$ac_cv_path_GREP"
4315
4316
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4318 $as_echo_n "checking for egrep... " >&6; }
4319 if ${ac_cv_path_EGREP+:} false; then :
4320   $as_echo_n "(cached) " >&6
4321 else
4322   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4323    then ac_cv_path_EGREP="$GREP -E"
4324    else
4325      if test -z "$EGREP"; then
4326   ac_path_EGREP_found=false
4327   # Loop through the user's path and test for each of PROGNAME-LIST
4328   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4329 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4330 do
4331   IFS=$as_save_IFS
4332   test -z "$as_dir" && as_dir=.
4333     for ac_prog in egrep; do
4334     for ac_exec_ext in '' $ac_executable_extensions; do
4335       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4336       as_fn_executable_p "$ac_path_EGREP" || continue
4337 # Check for GNU ac_path_EGREP and select it if it is found.
4338   # Check for GNU $ac_path_EGREP
4339 case `"$ac_path_EGREP" --version 2>&1` in
4340 *GNU*)
4341   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4342 *)
4343   ac_count=0
4344   $as_echo_n 0123456789 >"conftest.in"
4345   while :
4346   do
4347     cat "conftest.in" "conftest.in" >"conftest.tmp"
4348     mv "conftest.tmp" "conftest.in"
4349     cp "conftest.in" "conftest.nl"
4350     $as_echo 'EGREP' >> "conftest.nl"
4351     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4352     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4353     as_fn_arith $ac_count + 1 && ac_count=$as_val
4354     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4355       # Best one so far, save it but keep looking for a better one
4356       ac_cv_path_EGREP="$ac_path_EGREP"
4357       ac_path_EGREP_max=$ac_count
4358     fi
4359     # 10*(2^10) chars as input seems more than enough
4360     test $ac_count -gt 10 && break
4361   done
4362   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4363 esac
4364
4365       $ac_path_EGREP_found && break 3
4366     done
4367   done
4368   done
4369 IFS=$as_save_IFS
4370   if test -z "$ac_cv_path_EGREP"; then
4371     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4372   fi
4373 else
4374   ac_cv_path_EGREP=$EGREP
4375 fi
4376
4377    fi
4378 fi
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4380 $as_echo "$ac_cv_path_EGREP" >&6; }
4381  EGREP="$ac_cv_path_EGREP"
4382
4383
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4385 $as_echo_n "checking for ANSI C header files... " >&6; }
4386 if ${ac_cv_header_stdc+:} false; then :
4387   $as_echo_n "(cached) " >&6
4388 else
4389   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4390 /* end confdefs.h.  */
4391 #include <stdlib.h>
4392 #include <stdarg.h>
4393 #include <string.h>
4394 #include <float.h>
4395
4396 int
4397 main ()
4398 {
4399
4400   ;
4401   return 0;
4402 }
4403 _ACEOF
4404 if ac_fn_c_try_compile "$LINENO"; then :
4405   ac_cv_header_stdc=yes
4406 else
4407   ac_cv_header_stdc=no
4408 fi
4409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4410
4411 if test $ac_cv_header_stdc = yes; then
4412   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4413   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4414 /* end confdefs.h.  */
4415 #include <string.h>
4416
4417 _ACEOF
4418 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4419   $EGREP "memchr" >/dev/null 2>&1; then :
4420
4421 else
4422   ac_cv_header_stdc=no
4423 fi
4424 rm -f conftest*
4425
4426 fi
4427
4428 if test $ac_cv_header_stdc = yes; then
4429   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4430   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4431 /* end confdefs.h.  */
4432 #include <stdlib.h>
4433
4434 _ACEOF
4435 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4436   $EGREP "free" >/dev/null 2>&1; then :
4437
4438 else
4439   ac_cv_header_stdc=no
4440 fi
4441 rm -f conftest*
4442
4443 fi
4444
4445 if test $ac_cv_header_stdc = yes; then
4446   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4447   if test "$cross_compiling" = yes; then :
4448   :
4449 else
4450   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4451 /* end confdefs.h.  */
4452 #include <ctype.h>
4453 #include <stdlib.h>
4454 #if ((' ' & 0x0FF) == 0x020)
4455 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4456 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4457 #else
4458 # define ISLOWER(c) \
4459                    (('a' <= (c) && (c) <= 'i') \
4460                      || ('j' <= (c) && (c) <= 'r') \
4461                      || ('s' <= (c) && (c) <= 'z'))
4462 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4463 #endif
4464
4465 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4466 int
4467 main ()
4468 {
4469   int i;
4470   for (i = 0; i < 256; i++)
4471     if (XOR (islower (i), ISLOWER (i))
4472         || toupper (i) != TOUPPER (i))
4473       return 2;
4474   return 0;
4475 }
4476 _ACEOF
4477 if ac_fn_c_try_run "$LINENO"; then :
4478
4479 else
4480   ac_cv_header_stdc=no
4481 fi
4482 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4483   conftest.$ac_objext conftest.beam conftest.$ac_ext
4484 fi
4485
4486 fi
4487 fi
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4489 $as_echo "$ac_cv_header_stdc" >&6; }
4490 if test $ac_cv_header_stdc = yes; then
4491
4492 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4493
4494 fi
4495
4496 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4497 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4498                   inttypes.h stdint.h unistd.h
4499 do :
4500   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4501 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4502 "
4503 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4504   cat >>confdefs.h <<_ACEOF
4505 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4506 _ACEOF
4507
4508 fi
4509
4510 done
4511
4512
4513
4514
4515
4516   for ac_header in $ac_header_list
4517 do :
4518   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4519 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4520 "
4521 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4522   cat >>confdefs.h <<_ACEOF
4523 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4524 _ACEOF
4525
4526 fi
4527
4528 done
4529
4530
4531
4532
4533
4534
4535
4536
4537 for ac_func in getpagesize
4538 do :
4539   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
4540 if test "x$ac_cv_func_getpagesize" = xyes; then :
4541   cat >>confdefs.h <<_ACEOF
4542 #define HAVE_GETPAGESIZE 1
4543 _ACEOF
4544
4545 fi
4546 done
4547
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
4549 $as_echo_n "checking for working mmap... " >&6; }
4550 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
4551   $as_echo_n "(cached) " >&6
4552 else
4553   if test "$cross_compiling" = yes; then :
4554   ac_cv_func_mmap_fixed_mapped=no
4555 else
4556   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4557 /* end confdefs.h.  */
4558 $ac_includes_default
4559 /* malloc might have been renamed as rpl_malloc. */
4560 #undef malloc
4561
4562 /* Thanks to Mike Haertel and Jim Avera for this test.
4563    Here is a matrix of mmap possibilities:
4564         mmap private not fixed
4565         mmap private fixed at somewhere currently unmapped
4566         mmap private fixed at somewhere already mapped
4567         mmap shared not fixed
4568         mmap shared fixed at somewhere currently unmapped
4569         mmap shared fixed at somewhere already mapped
4570    For private mappings, we should verify that changes cannot be read()
4571    back from the file, nor mmap's back from the file at a different
4572    address.  (There have been systems where private was not correctly
4573    implemented like the infamous i386 svr4.0, and systems where the
4574    VM page cache was not coherent with the file system buffer cache
4575    like early versions of FreeBSD and possibly contemporary NetBSD.)
4576    For shared mappings, we should conversely verify that changes get
4577    propagated back to all the places they're supposed to be.
4578
4579    Grep wants private fixed already mapped.
4580    The main things grep needs to know about mmap are:
4581    * does it exist and is it safe to write into the mmap'd area
4582    * how to use it (BSD variants)  */
4583
4584 #include <fcntl.h>
4585 #include <sys/mman.h>
4586
4587 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
4588 char *malloc ();
4589 #endif
4590
4591 /* This mess was copied from the GNU getpagesize.h.  */
4592 #ifndef HAVE_GETPAGESIZE
4593 # ifdef _SC_PAGESIZE
4594 #  define getpagesize() sysconf(_SC_PAGESIZE)
4595 # else /* no _SC_PAGESIZE */
4596 #  ifdef HAVE_SYS_PARAM_H
4597 #   include <sys/param.h>
4598 #   ifdef EXEC_PAGESIZE
4599 #    define getpagesize() EXEC_PAGESIZE
4600 #   else /* no EXEC_PAGESIZE */
4601 #    ifdef NBPG
4602 #     define getpagesize() NBPG * CLSIZE
4603 #     ifndef CLSIZE
4604 #      define CLSIZE 1
4605 #     endif /* no CLSIZE */
4606 #    else /* no NBPG */
4607 #     ifdef NBPC
4608 #      define getpagesize() NBPC
4609 #     else /* no NBPC */
4610 #      ifdef PAGESIZE
4611 #       define getpagesize() PAGESIZE
4612 #      endif /* PAGESIZE */
4613 #     endif /* no NBPC */
4614 #    endif /* no NBPG */
4615 #   endif /* no EXEC_PAGESIZE */
4616 #  else /* no HAVE_SYS_PARAM_H */
4617 #   define getpagesize() 8192   /* punt totally */
4618 #  endif /* no HAVE_SYS_PARAM_H */
4619 # endif /* no _SC_PAGESIZE */
4620
4621 #endif /* no HAVE_GETPAGESIZE */
4622
4623 int
4624 main ()
4625 {
4626   char *data, *data2, *data3;
4627   const char *cdata2;
4628   int i, pagesize;
4629   int fd, fd2;
4630
4631   pagesize = getpagesize ();
4632
4633   /* First, make a file with some known garbage in it. */
4634   data = (char *) malloc (pagesize);
4635   if (!data)
4636     return 1;
4637   for (i = 0; i < pagesize; ++i)
4638     *(data + i) = rand ();
4639   umask (0);
4640   fd = creat ("conftest.mmap", 0600);
4641   if (fd < 0)
4642     return 2;
4643   if (write (fd, data, pagesize) != pagesize)
4644     return 3;
4645   close (fd);
4646
4647   /* Next, check that the tail of a page is zero-filled.  File must have
4648      non-zero length, otherwise we risk SIGBUS for entire page.  */
4649   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
4650   if (fd2 < 0)
4651     return 4;
4652   cdata2 = "";
4653   if (write (fd2, cdata2, 1) != 1)
4654     return 5;
4655   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
4656   if (data2 == MAP_FAILED)
4657     return 6;
4658   for (i = 0; i < pagesize; ++i)
4659     if (*(data2 + i))
4660       return 7;
4661   close (fd2);
4662   if (munmap (data2, pagesize))
4663     return 8;
4664
4665   /* Next, try to mmap the file at a fixed address which already has
4666      something else allocated at it.  If we can, also make sure that
4667      we see the same garbage.  */
4668   fd = open ("conftest.mmap", O_RDWR);
4669   if (fd < 0)
4670     return 9;
4671   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4672                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
4673     return 10;
4674   for (i = 0; i < pagesize; ++i)
4675     if (*(data + i) != *(data2 + i))
4676       return 11;
4677
4678   /* Finally, make sure that changes to the mapped area do not
4679      percolate back to the file as seen by read().  (This is a bug on
4680      some variants of i386 svr4.0.)  */
4681   for (i = 0; i < pagesize; ++i)
4682     *(data2 + i) = *(data2 + i) + 1;
4683   data3 = (char *) malloc (pagesize);
4684   if (!data3)
4685     return 12;
4686   if (read (fd, data3, pagesize) != pagesize)
4687     return 13;
4688   for (i = 0; i < pagesize; ++i)
4689     if (*(data + i) != *(data3 + i))
4690       return 14;
4691   close (fd);
4692   return 0;
4693 }
4694 _ACEOF
4695 if ac_fn_c_try_run "$LINENO"; then :
4696   ac_cv_func_mmap_fixed_mapped=yes
4697 else
4698   ac_cv_func_mmap_fixed_mapped=no
4699 fi
4700 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4701   conftest.$ac_objext conftest.beam conftest.$ac_ext
4702 fi
4703
4704 fi
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
4706 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
4707 if test $ac_cv_func_mmap_fixed_mapped = yes; then
4708
4709 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
4710
4711 fi
4712 rm -f conftest.mmap conftest.txt
4713
4714
4715 # Initialize libtool
4716
4717 case `pwd` in
4718   *\ * | *\     *)
4719     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4720 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4721 esac
4722
4723
4724
4725 macro_version='2.4.2'
4726 macro_revision='1.3337'
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740 ltmain="$ac_aux_dir/ltmain.sh"
4741
4742 # Make sure we can run config.sub.
4743 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4744   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4745
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4747 $as_echo_n "checking build system type... " >&6; }
4748 if ${ac_cv_build+:} false; then :
4749   $as_echo_n "(cached) " >&6
4750 else
4751   ac_build_alias=$build_alias
4752 test "x$ac_build_alias" = x &&
4753   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4754 test "x$ac_build_alias" = x &&
4755   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4756 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4757   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4758
4759 fi
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4761 $as_echo "$ac_cv_build" >&6; }
4762 case $ac_cv_build in
4763 *-*-*) ;;
4764 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4765 esac
4766 build=$ac_cv_build
4767 ac_save_IFS=$IFS; IFS='-'
4768 set x $ac_cv_build
4769 shift
4770 build_cpu=$1
4771 build_vendor=$2
4772 shift; shift
4773 # Remember, the first character of IFS is used to create $*,
4774 # except with old shells:
4775 build_os=$*
4776 IFS=$ac_save_IFS
4777 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4778
4779
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4781 $as_echo_n "checking host system type... " >&6; }
4782 if ${ac_cv_host+:} false; then :
4783   $as_echo_n "(cached) " >&6
4784 else
4785   if test "x$host_alias" = x; then
4786   ac_cv_host=$ac_cv_build
4787 else
4788   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4789     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4790 fi
4791
4792 fi
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4794 $as_echo "$ac_cv_host" >&6; }
4795 case $ac_cv_host in
4796 *-*-*) ;;
4797 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4798 esac
4799 host=$ac_cv_host
4800 ac_save_IFS=$IFS; IFS='-'
4801 set x $ac_cv_host
4802 shift
4803 host_cpu=$1
4804 host_vendor=$2
4805 shift; shift
4806 # Remember, the first character of IFS is used to create $*,
4807 # except with old shells:
4808 host_os=$*
4809 IFS=$ac_save_IFS
4810 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4811
4812
4813 # Backslashify metacharacters that are still active within
4814 # double-quoted strings.
4815 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4816
4817 # Same as above, but do not quote variable references.
4818 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4819
4820 # Sed substitution to delay expansion of an escaped shell variable in a
4821 # double_quote_subst'ed string.
4822 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4823
4824 # Sed substitution to delay expansion of an escaped single quote.
4825 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4826
4827 # Sed substitution to avoid accidental globbing in evaled expressions
4828 no_glob_subst='s/\*/\\\*/g'
4829
4830 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4831 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4832 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4833
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4835 $as_echo_n "checking how to print strings... " >&6; }
4836 # Test print first, because it will be a builtin if present.
4837 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4838    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4839   ECHO='print -r --'
4840 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4841   ECHO='printf %s\n'
4842 else
4843   # Use this function as a fallback that always works.
4844   func_fallback_echo ()
4845   {
4846     eval 'cat <<_LTECHO_EOF
4847 $1
4848 _LTECHO_EOF'
4849   }
4850   ECHO='func_fallback_echo'
4851 fi
4852
4853 # func_echo_all arg...
4854 # Invoke $ECHO with all args, space-separated.
4855 func_echo_all ()
4856 {
4857     $ECHO ""
4858 }
4859
4860 case "$ECHO" in
4861   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4862 $as_echo "printf" >&6; } ;;
4863   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4864 $as_echo "print -r" >&6; } ;;
4865   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4866 $as_echo "cat" >&6; } ;;
4867 esac
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4883 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4884 if ${ac_cv_path_SED+:} false; then :
4885   $as_echo_n "(cached) " >&6
4886 else
4887             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4888      for ac_i in 1 2 3 4 5 6 7; do
4889        ac_script="$ac_script$as_nl$ac_script"
4890      done
4891      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4892      { ac_script=; unset ac_script;}
4893      if test -z "$SED"; then
4894   ac_path_SED_found=false
4895   # Loop through the user's path and test for each of PROGNAME-LIST
4896   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4897 for as_dir in $PATH
4898 do
4899   IFS=$as_save_IFS
4900   test -z "$as_dir" && as_dir=.
4901     for ac_prog in sed gsed; do
4902     for ac_exec_ext in '' $ac_executable_extensions; do
4903       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4904       as_fn_executable_p "$ac_path_SED" || continue
4905 # Check for GNU ac_path_SED and select it if it is found.
4906   # Check for GNU $ac_path_SED
4907 case `"$ac_path_SED" --version 2>&1` in
4908 *GNU*)
4909   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4910 *)
4911   ac_count=0
4912   $as_echo_n 0123456789 >"conftest.in"
4913   while :
4914   do
4915     cat "conftest.in" "conftest.in" >"conftest.tmp"
4916     mv "conftest.tmp" "conftest.in"
4917     cp "conftest.in" "conftest.nl"
4918     $as_echo '' >> "conftest.nl"
4919     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4920     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4921     as_fn_arith $ac_count + 1 && ac_count=$as_val
4922     if test $ac_count -gt ${ac_path_SED_max-0}; then
4923       # Best one so far, save it but keep looking for a better one
4924       ac_cv_path_SED="$ac_path_SED"
4925       ac_path_SED_max=$ac_count
4926     fi
4927     # 10*(2^10) chars as input seems more than enough
4928     test $ac_count -gt 10 && break
4929   done
4930   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4931 esac
4932
4933       $ac_path_SED_found && break 3
4934     done
4935   done
4936   done
4937 IFS=$as_save_IFS
4938   if test -z "$ac_cv_path_SED"; then
4939     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4940   fi
4941 else
4942   ac_cv_path_SED=$SED
4943 fi
4944
4945 fi
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4947 $as_echo "$ac_cv_path_SED" >&6; }
4948  SED="$ac_cv_path_SED"
4949   rm -f conftest.sed
4950
4951 test -z "$SED" && SED=sed
4952 Xsed="$SED -e 1s/^X//"
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4965 $as_echo_n "checking for fgrep... " >&6; }
4966 if ${ac_cv_path_FGREP+:} false; then :
4967   $as_echo_n "(cached) " >&6
4968 else
4969   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4970    then ac_cv_path_FGREP="$GREP -F"
4971    else
4972      if test -z "$FGREP"; then
4973   ac_path_FGREP_found=false
4974   # Loop through the user's path and test for each of PROGNAME-LIST
4975   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4976 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4977 do
4978   IFS=$as_save_IFS
4979   test -z "$as_dir" && as_dir=.
4980     for ac_prog in fgrep; do
4981     for ac_exec_ext in '' $ac_executable_extensions; do
4982       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4983       as_fn_executable_p "$ac_path_FGREP" || continue
4984 # Check for GNU ac_path_FGREP and select it if it is found.
4985   # Check for GNU $ac_path_FGREP
4986 case `"$ac_path_FGREP" --version 2>&1` in
4987 *GNU*)
4988   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4989 *)
4990   ac_count=0
4991   $as_echo_n 0123456789 >"conftest.in"
4992   while :
4993   do
4994     cat "conftest.in" "conftest.in" >"conftest.tmp"
4995     mv "conftest.tmp" "conftest.in"
4996     cp "conftest.in" "conftest.nl"
4997     $as_echo 'FGREP' >> "conftest.nl"
4998     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4999     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5000     as_fn_arith $ac_count + 1 && ac_count=$as_val
5001     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5002       # Best one so far, save it but keep looking for a better one
5003       ac_cv_path_FGREP="$ac_path_FGREP"
5004       ac_path_FGREP_max=$ac_count
5005     fi
5006     # 10*(2^10) chars as input seems more than enough
5007     test $ac_count -gt 10 && break
5008   done
5009   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5010 esac
5011
5012       $ac_path_FGREP_found && break 3
5013     done
5014   done
5015   done
5016 IFS=$as_save_IFS
5017   if test -z "$ac_cv_path_FGREP"; then
5018     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5019   fi
5020 else
5021   ac_cv_path_FGREP=$FGREP
5022 fi
5023
5024    fi
5025 fi
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5027 $as_echo "$ac_cv_path_FGREP" >&6; }
5028  FGREP="$ac_cv_path_FGREP"
5029
5030
5031 test -z "$GREP" && GREP=grep
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051 # Check whether --with-gnu-ld was given.
5052 if test "${with_gnu_ld+set}" = set; then :
5053   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5054 else
5055   with_gnu_ld=no
5056 fi
5057
5058 ac_prog=ld
5059 if test "$GCC" = yes; then
5060   # Check if gcc -print-prog-name=ld gives a path.
5061   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5062 $as_echo_n "checking for ld used by $CC... " >&6; }
5063   case $host in
5064   *-*-mingw*)
5065     # gcc leaves a trailing carriage return which upsets mingw
5066     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5067   *)
5068     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5069   esac
5070   case $ac_prog in
5071     # Accept absolute paths.
5072     [\\/]* | ?:[\\/]*)
5073       re_direlt='/[^/][^/]*/\.\./'
5074       # Canonicalize the pathname of ld
5075       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5076       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5077         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5078       done
5079       test -z "$LD" && LD="$ac_prog"
5080       ;;
5081   "")
5082     # If it fails, then pretend we aren't using GCC.
5083     ac_prog=ld
5084     ;;
5085   *)
5086     # If it is relative, then search for the first ld in PATH.
5087     with_gnu_ld=unknown
5088     ;;
5089   esac
5090 elif test "$with_gnu_ld" = yes; then
5091   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5092 $as_echo_n "checking for GNU ld... " >&6; }
5093 else
5094   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5095 $as_echo_n "checking for non-GNU ld... " >&6; }
5096 fi
5097 if ${lt_cv_path_LD+:} false; then :
5098   $as_echo_n "(cached) " >&6
5099 else
5100   if test -z "$LD"; then
5101   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5102   for ac_dir in $PATH; do
5103     IFS="$lt_save_ifs"
5104     test -z "$ac_dir" && ac_dir=.
5105     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5106       lt_cv_path_LD="$ac_dir/$ac_prog"
5107       # Check to see if the program is GNU ld.  I'd rather use --version,
5108       # but apparently some variants of GNU ld only accept -v.
5109       # Break only if it was the GNU/non-GNU ld that we prefer.
5110       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5111       *GNU* | *'with BFD'*)
5112         test "$with_gnu_ld" != no && break
5113         ;;
5114       *)
5115         test "$with_gnu_ld" != yes && break
5116         ;;
5117       esac
5118     fi
5119   done
5120   IFS="$lt_save_ifs"
5121 else
5122   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5123 fi
5124 fi
5125
5126 LD="$lt_cv_path_LD"
5127 if test -n "$LD"; then
5128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5129 $as_echo "$LD" >&6; }
5130 else
5131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5132 $as_echo "no" >&6; }
5133 fi
5134 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5136 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5137 if ${lt_cv_prog_gnu_ld+:} false; then :
5138   $as_echo_n "(cached) " >&6
5139 else
5140   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5141 case `$LD -v 2>&1 </dev/null` in
5142 *GNU* | *'with BFD'*)
5143   lt_cv_prog_gnu_ld=yes
5144   ;;
5145 *)
5146   lt_cv_prog_gnu_ld=no
5147   ;;
5148 esac
5149 fi
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5151 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5152 with_gnu_ld=$lt_cv_prog_gnu_ld
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5163 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5164 if ${lt_cv_path_NM+:} false; then :
5165   $as_echo_n "(cached) " >&6
5166 else
5167   if test -n "$NM"; then
5168   # Let the user override the test.
5169   lt_cv_path_NM="$NM"
5170 else
5171   lt_nm_to_check="${ac_tool_prefix}nm"
5172   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5173     lt_nm_to_check="$lt_nm_to_check nm"
5174   fi
5175   for lt_tmp_nm in $lt_nm_to_check; do
5176     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5177     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5178       IFS="$lt_save_ifs"
5179       test -z "$ac_dir" && ac_dir=.
5180       tmp_nm="$ac_dir/$lt_tmp_nm"
5181       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5182         # Check to see if the nm accepts a BSD-compat flag.
5183         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5184         #   nm: unknown option "B" ignored
5185         # Tru64's nm complains that /dev/null is an invalid object file
5186         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5187         */dev/null* | *'Invalid file or object type'*)
5188           lt_cv_path_NM="$tmp_nm -B"
5189           break
5190           ;;
5191         *)
5192           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5193           */dev/null*)
5194             lt_cv_path_NM="$tmp_nm -p"
5195             break
5196             ;;
5197           *)
5198             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5199             continue # so that we can try to find one that supports BSD flags
5200             ;;
5201           esac
5202           ;;
5203         esac
5204       fi
5205     done
5206     IFS="$lt_save_ifs"
5207   done
5208   : ${lt_cv_path_NM=no}
5209 fi
5210 fi
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5212 $as_echo "$lt_cv_path_NM" >&6; }
5213 if test "$lt_cv_path_NM" != "no"; then
5214   NM="$lt_cv_path_NM"
5215 else
5216   # Didn't find any BSD compatible name lister, look for dumpbin.
5217   if test -n "$DUMPBIN"; then :
5218     # Let the user override the test.
5219   else
5220     if test -n "$ac_tool_prefix"; then
5221   for ac_prog in dumpbin "link -dump"
5222   do
5223     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5224 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5226 $as_echo_n "checking for $ac_word... " >&6; }
5227 if ${ac_cv_prog_DUMPBIN+:} false; then :
5228   $as_echo_n "(cached) " >&6
5229 else
5230   if test -n "$DUMPBIN"; then
5231   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5232 else
5233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5234 for as_dir in $PATH
5235 do
5236   IFS=$as_save_IFS
5237   test -z "$as_dir" && as_dir=.
5238     for ac_exec_ext in '' $ac_executable_extensions; do
5239   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5240     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5241     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5242     break 2
5243   fi
5244 done
5245   done
5246 IFS=$as_save_IFS
5247
5248 fi
5249 fi
5250 DUMPBIN=$ac_cv_prog_DUMPBIN
5251 if test -n "$DUMPBIN"; then
5252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5253 $as_echo "$DUMPBIN" >&6; }
5254 else
5255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5256 $as_echo "no" >&6; }
5257 fi
5258
5259
5260     test -n "$DUMPBIN" && break
5261   done
5262 fi
5263 if test -z "$DUMPBIN"; then
5264   ac_ct_DUMPBIN=$DUMPBIN
5265   for ac_prog in dumpbin "link -dump"
5266 do
5267   # Extract the first word of "$ac_prog", so it can be a program name with args.
5268 set dummy $ac_prog; ac_word=$2
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5270 $as_echo_n "checking for $ac_word... " >&6; }
5271 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5272   $as_echo_n "(cached) " >&6
5273 else
5274   if test -n "$ac_ct_DUMPBIN"; then
5275   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5276 else
5277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5278 for as_dir in $PATH
5279 do
5280   IFS=$as_save_IFS
5281   test -z "$as_dir" && as_dir=.
5282     for ac_exec_ext in '' $ac_executable_extensions; do
5283   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5284     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5285     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5286     break 2
5287   fi
5288 done
5289   done
5290 IFS=$as_save_IFS
5291
5292 fi
5293 fi
5294 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5295 if test -n "$ac_ct_DUMPBIN"; then
5296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5297 $as_echo "$ac_ct_DUMPBIN" >&6; }
5298 else
5299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5300 $as_echo "no" >&6; }
5301 fi
5302
5303
5304   test -n "$ac_ct_DUMPBIN" && break
5305 done
5306
5307   if test "x$ac_ct_DUMPBIN" = x; then
5308     DUMPBIN=":"
5309   else
5310     case $cross_compiling:$ac_tool_warned in
5311 yes:)
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5313 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5314 ac_tool_warned=yes ;;
5315 esac
5316     DUMPBIN=$ac_ct_DUMPBIN
5317   fi
5318 fi
5319
5320     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5321     *COFF*)
5322       DUMPBIN="$DUMPBIN -symbols"
5323       ;;
5324     *)
5325       DUMPBIN=:
5326       ;;
5327     esac
5328   fi
5329
5330   if test "$DUMPBIN" != ":"; then
5331     NM="$DUMPBIN"
5332   fi
5333 fi
5334 test -z "$NM" && NM=nm
5335
5336
5337
5338
5339
5340
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5342 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5343 if ${lt_cv_nm_interface+:} false; then :
5344   $as_echo_n "(cached) " >&6
5345 else
5346   lt_cv_nm_interface="BSD nm"
5347   echo "int some_variable = 0;" > conftest.$ac_ext
5348   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5349   (eval "$ac_compile" 2>conftest.err)
5350   cat conftest.err >&5
5351   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5352   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5353   cat conftest.err >&5
5354   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5355   cat conftest.out >&5
5356   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5357     lt_cv_nm_interface="MS dumpbin"
5358   fi
5359   rm -f conftest*
5360 fi
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5362 $as_echo "$lt_cv_nm_interface" >&6; }
5363
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5365 $as_echo_n "checking whether ln -s works... " >&6; }
5366 LN_S=$as_ln_s
5367 if test "$LN_S" = "ln -s"; then
5368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5369 $as_echo "yes" >&6; }
5370 else
5371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5372 $as_echo "no, using $LN_S" >&6; }
5373 fi
5374
5375 # find the maximum length of command line arguments
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5377 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5378 if ${lt_cv_sys_max_cmd_len+:} false; then :
5379   $as_echo_n "(cached) " >&6
5380 else
5381     i=0
5382   teststring="ABCD"
5383
5384   case $build_os in
5385   msdosdjgpp*)
5386     # On DJGPP, this test can blow up pretty badly due to problems in libc
5387     # (any single argument exceeding 2000 bytes causes a buffer overrun
5388     # during glob expansion).  Even if it were fixed, the result of this
5389     # check would be larger than it should be.
5390     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5391     ;;
5392
5393   gnu*)
5394     # Under GNU Hurd, this test is not required because there is
5395     # no limit to the length of command line arguments.
5396     # Libtool will interpret -1 as no limit whatsoever
5397     lt_cv_sys_max_cmd_len=-1;
5398     ;;
5399
5400   cygwin* | mingw* | cegcc*)
5401     # On Win9x/ME, this test blows up -- it succeeds, but takes
5402     # about 5 minutes as the teststring grows exponentially.
5403     # Worse, since 9x/ME are not pre-emptively multitasking,
5404     # you end up with a "frozen" computer, even though with patience
5405     # the test eventually succeeds (with a max line length of 256k).
5406     # Instead, let's just punt: use the minimum linelength reported by
5407     # all of the supported platforms: 8192 (on NT/2K/XP).
5408     lt_cv_sys_max_cmd_len=8192;
5409     ;;
5410
5411   mint*)
5412     # On MiNT this can take a long time and run out of memory.
5413     lt_cv_sys_max_cmd_len=8192;
5414     ;;
5415
5416   amigaos*)
5417     # On AmigaOS with pdksh, this test takes hours, literally.
5418     # So we just punt and use a minimum line length of 8192.
5419     lt_cv_sys_max_cmd_len=8192;
5420     ;;
5421
5422   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5423     # This has been around since 386BSD, at least.  Likely further.
5424     if test -x /sbin/sysctl; then
5425       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5426     elif test -x /usr/sbin/sysctl; then
5427       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5428     else
5429       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5430     fi
5431     # And add a safety zone
5432     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5433     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5434     ;;
5435
5436   interix*)
5437     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5438     lt_cv_sys_max_cmd_len=196608
5439     ;;
5440
5441   os2*)
5442     # The test takes a long time on OS/2.
5443     lt_cv_sys_max_cmd_len=8192
5444     ;;
5445
5446   osf*)
5447     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5448     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5449     # nice to cause kernel panics so lets avoid the loop below.
5450     # First set a reasonable default.
5451     lt_cv_sys_max_cmd_len=16384
5452     #
5453     if test -x /sbin/sysconfig; then
5454       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5455         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5456       esac
5457     fi
5458     ;;
5459   sco3.2v5*)
5460     lt_cv_sys_max_cmd_len=102400
5461     ;;
5462   sysv5* | sco5v6* | sysv4.2uw2*)
5463     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5464     if test -n "$kargmax"; then
5465       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5466     else
5467       lt_cv_sys_max_cmd_len=32768
5468     fi
5469     ;;
5470   *)
5471     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5472     if test -n "$lt_cv_sys_max_cmd_len" && \
5473         test undefined != "$lt_cv_sys_max_cmd_len"; then
5474       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5475       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5476     else
5477       # Make teststring a little bigger before we do anything with it.
5478       # a 1K string should be a reasonable start.
5479       for i in 1 2 3 4 5 6 7 8 ; do
5480         teststring=$teststring$teststring
5481       done
5482       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5483       # If test is not a shell built-in, we'll probably end up computing a
5484       # maximum length that is only half of the actual maximum length, but
5485       # we can't tell.
5486       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5487                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5488               test $i != 17 # 1/2 MB should be enough
5489       do
5490         i=`expr $i + 1`
5491         teststring=$teststring$teststring
5492       done
5493       # Only check the string length outside the loop.
5494       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5495       teststring=
5496       # Add a significant safety factor because C++ compilers can tack on
5497       # massive amounts of additional arguments before passing them to the
5498       # linker.  It appears as though 1/2 is a usable value.
5499       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5500     fi
5501     ;;
5502   esac
5503
5504 fi
5505
5506 if test -n $lt_cv_sys_max_cmd_len ; then
5507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5508 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5509 else
5510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5511 $as_echo "none" >&6; }
5512 fi
5513 max_cmd_len=$lt_cv_sys_max_cmd_len
5514
5515
5516
5517
5518
5519
5520 : ${CP="cp -f"}
5521 : ${MV="mv -f"}
5522 : ${RM="rm -f"}
5523
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5525 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5526 # Try some XSI features
5527 xsi_shell=no
5528 ( _lt_dummy="a/b/c"
5529   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5530       = c,a/b,b/c, \
5531     && eval 'test $(( 1 + 1 )) -eq 2 \
5532     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5533   && xsi_shell=yes
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5535 $as_echo "$xsi_shell" >&6; }
5536
5537
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5539 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5540 lt_shell_append=no
5541 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5542     >/dev/null 2>&1 \
5543   && lt_shell_append=yes
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5545 $as_echo "$lt_shell_append" >&6; }
5546
5547
5548 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5549   lt_unset=unset
5550 else
5551   lt_unset=false
5552 fi
5553
5554
5555
5556
5557
5558 # test EBCDIC or ASCII
5559 case `echo X|tr X '\101'` in
5560  A) # ASCII based system
5561     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5562   lt_SP2NL='tr \040 \012'
5563   lt_NL2SP='tr \015\012 \040\040'
5564   ;;
5565  *) # EBCDIC based system
5566   lt_SP2NL='tr \100 \n'
5567   lt_NL2SP='tr \r\n \100\100'
5568   ;;
5569 esac
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5580 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5581 if ${lt_cv_to_host_file_cmd+:} false; then :
5582   $as_echo_n "(cached) " >&6
5583 else
5584   case $host in
5585   *-*-mingw* )
5586     case $build in
5587       *-*-mingw* ) # actually msys
5588         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5589         ;;
5590       *-*-cygwin* )
5591         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5592         ;;
5593       * ) # otherwise, assume *nix
5594         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5595         ;;
5596     esac
5597     ;;
5598   *-*-cygwin* )
5599     case $build in
5600       *-*-mingw* ) # actually msys
5601         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5602         ;;
5603       *-*-cygwin* )
5604         lt_cv_to_host_file_cmd=func_convert_file_noop
5605         ;;
5606       * ) # otherwise, assume *nix
5607         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5608         ;;
5609     esac
5610     ;;
5611   * ) # unhandled hosts (and "normal" native builds)
5612     lt_cv_to_host_file_cmd=func_convert_file_noop
5613     ;;
5614 esac
5615
5616 fi
5617
5618 to_host_file_cmd=$lt_cv_to_host_file_cmd
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5620 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5621
5622
5623
5624
5625
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5627 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5628 if ${lt_cv_to_tool_file_cmd+:} false; then :
5629   $as_echo_n "(cached) " >&6
5630 else
5631   #assume ordinary cross tools, or native build.
5632 lt_cv_to_tool_file_cmd=func_convert_file_noop
5633 case $host in
5634   *-*-mingw* )
5635     case $build in
5636       *-*-mingw* ) # actually msys
5637         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5638         ;;
5639     esac
5640     ;;
5641 esac
5642
5643 fi
5644
5645 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5647 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5648
5649
5650
5651
5652
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5654 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5655 if ${lt_cv_ld_reload_flag+:} false; then :
5656   $as_echo_n "(cached) " >&6
5657 else
5658   lt_cv_ld_reload_flag='-r'
5659 fi
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5661 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5662 reload_flag=$lt_cv_ld_reload_flag
5663 case $reload_flag in
5664 "" | " "*) ;;
5665 *) reload_flag=" $reload_flag" ;;
5666 esac
5667 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5668 case $host_os in
5669   cygwin* | mingw* | pw32* | cegcc*)
5670     if test "$GCC" != yes; then
5671       reload_cmds=false
5672     fi
5673     ;;
5674   darwin*)
5675     if test "$GCC" = yes; then
5676       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5677     else
5678       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5679     fi
5680     ;;
5681 esac
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691 if test -n "$ac_tool_prefix"; then
5692   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5693 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5695 $as_echo_n "checking for $ac_word... " >&6; }
5696 if ${ac_cv_prog_OBJDUMP+:} false; then :
5697   $as_echo_n "(cached) " >&6
5698 else
5699   if test -n "$OBJDUMP"; then
5700   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5701 else
5702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5703 for as_dir in $PATH
5704 do
5705   IFS=$as_save_IFS
5706   test -z "$as_dir" && as_dir=.
5707     for ac_exec_ext in '' $ac_executable_extensions; do
5708   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5709     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5710     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5711     break 2
5712   fi
5713 done
5714   done
5715 IFS=$as_save_IFS
5716
5717 fi
5718 fi
5719 OBJDUMP=$ac_cv_prog_OBJDUMP
5720 if test -n "$OBJDUMP"; then
5721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5722 $as_echo "$OBJDUMP" >&6; }
5723 else
5724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5725 $as_echo "no" >&6; }
5726 fi
5727
5728
5729 fi
5730 if test -z "$ac_cv_prog_OBJDUMP"; then
5731   ac_ct_OBJDUMP=$OBJDUMP
5732   # Extract the first word of "objdump", so it can be a program name with args.
5733 set dummy objdump; ac_word=$2
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5735 $as_echo_n "checking for $ac_word... " >&6; }
5736 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5737   $as_echo_n "(cached) " >&6
5738 else
5739   if test -n "$ac_ct_OBJDUMP"; then
5740   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5741 else
5742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5743 for as_dir in $PATH
5744 do
5745   IFS=$as_save_IFS
5746   test -z "$as_dir" && as_dir=.
5747     for ac_exec_ext in '' $ac_executable_extensions; do
5748   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5749     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5750     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5751     break 2
5752   fi
5753 done
5754   done
5755 IFS=$as_save_IFS
5756
5757 fi
5758 fi
5759 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5760 if test -n "$ac_ct_OBJDUMP"; then
5761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5762 $as_echo "$ac_ct_OBJDUMP" >&6; }
5763 else
5764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5765 $as_echo "no" >&6; }
5766 fi
5767
5768   if test "x$ac_ct_OBJDUMP" = x; then
5769     OBJDUMP="false"
5770   else
5771     case $cross_compiling:$ac_tool_warned in
5772 yes:)
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5774 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5775 ac_tool_warned=yes ;;
5776 esac
5777     OBJDUMP=$ac_ct_OBJDUMP
5778   fi
5779 else
5780   OBJDUMP="$ac_cv_prog_OBJDUMP"
5781 fi
5782
5783 test -z "$OBJDUMP" && OBJDUMP=objdump
5784
5785
5786
5787
5788
5789
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5791 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5792 if ${lt_cv_deplibs_check_method+:} false; then :
5793   $as_echo_n "(cached) " >&6
5794 else
5795   lt_cv_file_magic_cmd='$MAGIC_CMD'
5796 lt_cv_file_magic_test_file=
5797 lt_cv_deplibs_check_method='unknown'
5798 # Need to set the preceding variable on all platforms that support
5799 # interlibrary dependencies.
5800 # 'none' -- dependencies not supported.
5801 # `unknown' -- same as none, but documents that we really don't know.
5802 # 'pass_all' -- all dependencies passed with no checks.
5803 # 'test_compile' -- check by making test program.
5804 # 'file_magic [[regex]]' -- check by looking for files in library path
5805 # which responds to the $file_magic_cmd with a given extended regex.
5806 # If you have `file' or equivalent on your system and you're not sure
5807 # whether `pass_all' will *always* work, you probably want this one.
5808
5809 case $host_os in
5810 aix[4-9]*)
5811   lt_cv_deplibs_check_method=pass_all
5812   ;;
5813
5814 beos*)
5815   lt_cv_deplibs_check_method=pass_all
5816   ;;
5817
5818 bsdi[45]*)
5819   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5820   lt_cv_file_magic_cmd='/usr/bin/file -L'
5821   lt_cv_file_magic_test_file=/shlib/libc.so
5822   ;;
5823
5824 cygwin*)
5825   # func_win32_libid is a shell function defined in ltmain.sh
5826   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5827   lt_cv_file_magic_cmd='func_win32_libid'
5828   ;;
5829
5830 mingw* | pw32*)
5831   # Base MSYS/MinGW do not provide the 'file' command needed by
5832   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5833   # unless we find 'file', for example because we are cross-compiling.
5834   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5835   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5836     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5837     lt_cv_file_magic_cmd='func_win32_libid'
5838   else
5839     # Keep this pattern in sync with the one in func_win32_libid.
5840     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5841     lt_cv_file_magic_cmd='$OBJDUMP -f'
5842   fi
5843   ;;
5844
5845 cegcc*)
5846   # use the weaker test based on 'objdump'. See mingw*.
5847   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5848   lt_cv_file_magic_cmd='$OBJDUMP -f'
5849   ;;
5850
5851 darwin* | rhapsody*)
5852   lt_cv_deplibs_check_method=pass_all
5853   ;;
5854
5855 freebsd* | dragonfly*)
5856   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5857     case $host_cpu in
5858     i*86 )
5859       # Not sure whether the presence of OpenBSD here was a mistake.
5860       # Let's accept both of them until this is cleared up.
5861       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5862       lt_cv_file_magic_cmd=/usr/bin/file
5863       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5864       ;;
5865     esac
5866   else
5867     lt_cv_deplibs_check_method=pass_all
5868   fi
5869   ;;
5870
5871 haiku*)
5872   lt_cv_deplibs_check_method=pass_all
5873   ;;
5874
5875 hpux10.20* | hpux11*)
5876   lt_cv_file_magic_cmd=/usr/bin/file
5877   case $host_cpu in
5878   ia64*)
5879     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5880     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5881     ;;
5882   hppa*64*)
5883     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]'
5884     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5885     ;;
5886   *)
5887     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5888     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5889     ;;
5890   esac
5891   ;;
5892
5893 interix[3-9]*)
5894   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5895   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5896   ;;
5897
5898 irix5* | irix6* | nonstopux*)
5899   case $LD in
5900   *-32|*"-32 ") libmagic=32-bit;;
5901   *-n32|*"-n32 ") libmagic=N32;;
5902   *-64|*"-64 ") libmagic=64-bit;;
5903   *) libmagic=never-match;;
5904   esac
5905   lt_cv_deplibs_check_method=pass_all
5906   ;;
5907
5908 # This must be glibc/ELF.
5909 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5910   lt_cv_deplibs_check_method=pass_all
5911   ;;
5912
5913 netbsd* | netbsdelf*-gnu)
5914   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5915     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5916   else
5917     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5918   fi
5919   ;;
5920
5921 newos6*)
5922   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5923   lt_cv_file_magic_cmd=/usr/bin/file
5924   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5925   ;;
5926
5927 *nto* | *qnx*)
5928   lt_cv_deplibs_check_method=pass_all
5929   ;;
5930
5931 openbsd*)
5932   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5933     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5934   else
5935     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5936   fi
5937   ;;
5938
5939 osf3* | osf4* | osf5*)
5940   lt_cv_deplibs_check_method=pass_all
5941   ;;
5942
5943 rdos*)
5944   lt_cv_deplibs_check_method=pass_all
5945   ;;
5946
5947 solaris*)
5948   lt_cv_deplibs_check_method=pass_all
5949   ;;
5950
5951 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5952   lt_cv_deplibs_check_method=pass_all
5953   ;;
5954
5955 sysv4 | sysv4.3*)
5956   case $host_vendor in
5957   motorola)
5958     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]'
5959     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5960     ;;
5961   ncr)
5962     lt_cv_deplibs_check_method=pass_all
5963     ;;
5964   sequent)
5965     lt_cv_file_magic_cmd='/bin/file'
5966     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5967     ;;
5968   sni)
5969     lt_cv_file_magic_cmd='/bin/file'
5970     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5971     lt_cv_file_magic_test_file=/lib/libc.so
5972     ;;
5973   siemens)
5974     lt_cv_deplibs_check_method=pass_all
5975     ;;
5976   pc)
5977     lt_cv_deplibs_check_method=pass_all
5978     ;;
5979   esac
5980   ;;
5981
5982 tpf*)
5983   lt_cv_deplibs_check_method=pass_all
5984   ;;
5985 esac
5986
5987 fi
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5989 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5990
5991 file_magic_glob=
5992 want_nocaseglob=no
5993 if test "$build" = "$host"; then
5994   case $host_os in
5995   mingw* | pw32*)
5996     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5997       want_nocaseglob=yes
5998     else
5999       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6000     fi
6001     ;;
6002   esac
6003 fi
6004
6005 file_magic_cmd=$lt_cv_file_magic_cmd
6006 deplibs_check_method=$lt_cv_deplibs_check_method
6007 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030 if test -n "$ac_tool_prefix"; then
6031   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6032 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6034 $as_echo_n "checking for $ac_word... " >&6; }
6035 if ${ac_cv_prog_DLLTOOL+:} false; then :
6036   $as_echo_n "(cached) " >&6
6037 else
6038   if test -n "$DLLTOOL"; then
6039   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6040 else
6041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6042 for as_dir in $PATH
6043 do
6044   IFS=$as_save_IFS
6045   test -z "$as_dir" && as_dir=.
6046     for ac_exec_ext in '' $ac_executable_extensions; do
6047   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6048     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6049     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6050     break 2
6051   fi
6052 done
6053   done
6054 IFS=$as_save_IFS
6055
6056 fi
6057 fi
6058 DLLTOOL=$ac_cv_prog_DLLTOOL
6059 if test -n "$DLLTOOL"; then
6060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6061 $as_echo "$DLLTOOL" >&6; }
6062 else
6063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6064 $as_echo "no" >&6; }
6065 fi
6066
6067
6068 fi
6069 if test -z "$ac_cv_prog_DLLTOOL"; then
6070   ac_ct_DLLTOOL=$DLLTOOL
6071   # Extract the first word of "dlltool", so it can be a program name with args.
6072 set dummy dlltool; ac_word=$2
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6074 $as_echo_n "checking for $ac_word... " >&6; }
6075 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6076   $as_echo_n "(cached) " >&6
6077 else
6078   if test -n "$ac_ct_DLLTOOL"; then
6079   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6080 else
6081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6082 for as_dir in $PATH
6083 do
6084   IFS=$as_save_IFS
6085   test -z "$as_dir" && as_dir=.
6086     for ac_exec_ext in '' $ac_executable_extensions; do
6087   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6088     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6089     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6090     break 2
6091   fi
6092 done
6093   done
6094 IFS=$as_save_IFS
6095
6096 fi
6097 fi
6098 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6099 if test -n "$ac_ct_DLLTOOL"; then
6100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6101 $as_echo "$ac_ct_DLLTOOL" >&6; }
6102 else
6103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6104 $as_echo "no" >&6; }
6105 fi
6106
6107   if test "x$ac_ct_DLLTOOL" = x; then
6108     DLLTOOL="false"
6109   else
6110     case $cross_compiling:$ac_tool_warned in
6111 yes:)
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6113 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6114 ac_tool_warned=yes ;;
6115 esac
6116     DLLTOOL=$ac_ct_DLLTOOL
6117   fi
6118 else
6119   DLLTOOL="$ac_cv_prog_DLLTOOL"
6120 fi
6121
6122 test -z "$DLLTOOL" && DLLTOOL=dlltool
6123
6124
6125
6126
6127
6128
6129
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6131 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6132 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6133   $as_echo_n "(cached) " >&6
6134 else
6135   lt_cv_sharedlib_from_linklib_cmd='unknown'
6136
6137 case $host_os in
6138 cygwin* | mingw* | pw32* | cegcc*)
6139   # two different shell functions defined in ltmain.sh
6140   # decide which to use based on capabilities of $DLLTOOL
6141   case `$DLLTOOL --help 2>&1` in
6142   *--identify-strict*)
6143     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6144     ;;
6145   *)
6146     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6147     ;;
6148   esac
6149   ;;
6150 *)
6151   # fallback: assume linklib IS sharedlib
6152   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6153   ;;
6154 esac
6155
6156 fi
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6158 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6159 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6160 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6161
6162
6163
6164
6165
6166
6167
6168 if test -n "$ac_tool_prefix"; then
6169   for ac_prog in ar
6170   do
6171     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6172 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6174 $as_echo_n "checking for $ac_word... " >&6; }
6175 if ${ac_cv_prog_AR+:} false; then :
6176   $as_echo_n "(cached) " >&6
6177 else
6178   if test -n "$AR"; then
6179   ac_cv_prog_AR="$AR" # Let the user override the test.
6180 else
6181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6182 for as_dir in $PATH
6183 do
6184   IFS=$as_save_IFS
6185   test -z "$as_dir" && as_dir=.
6186     for ac_exec_ext in '' $ac_executable_extensions; do
6187   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6188     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6189     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6190     break 2
6191   fi
6192 done
6193   done
6194 IFS=$as_save_IFS
6195
6196 fi
6197 fi
6198 AR=$ac_cv_prog_AR
6199 if test -n "$AR"; then
6200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6201 $as_echo "$AR" >&6; }
6202 else
6203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6204 $as_echo "no" >&6; }
6205 fi
6206
6207
6208     test -n "$AR" && break
6209   done
6210 fi
6211 if test -z "$AR"; then
6212   ac_ct_AR=$AR
6213   for ac_prog in ar
6214 do
6215   # Extract the first word of "$ac_prog", so it can be a program name with args.
6216 set dummy $ac_prog; ac_word=$2
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6218 $as_echo_n "checking for $ac_word... " >&6; }
6219 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6220   $as_echo_n "(cached) " >&6
6221 else
6222   if test -n "$ac_ct_AR"; then
6223   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6224 else
6225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6226 for as_dir in $PATH
6227 do
6228   IFS=$as_save_IFS
6229   test -z "$as_dir" && as_dir=.
6230     for ac_exec_ext in '' $ac_executable_extensions; do
6231   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6232     ac_cv_prog_ac_ct_AR="$ac_prog"
6233     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6234     break 2
6235   fi
6236 done
6237   done
6238 IFS=$as_save_IFS
6239
6240 fi
6241 fi
6242 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6243 if test -n "$ac_ct_AR"; then
6244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6245 $as_echo "$ac_ct_AR" >&6; }
6246 else
6247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6248 $as_echo "no" >&6; }
6249 fi
6250
6251
6252   test -n "$ac_ct_AR" && break
6253 done
6254
6255   if test "x$ac_ct_AR" = x; then
6256     AR="false"
6257   else
6258     case $cross_compiling:$ac_tool_warned in
6259 yes:)
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6261 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6262 ac_tool_warned=yes ;;
6263 esac
6264     AR=$ac_ct_AR
6265   fi
6266 fi
6267
6268 : ${AR=ar}
6269 : ${AR_FLAGS=cru}
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6282 $as_echo_n "checking for archiver @FILE support... " >&6; }
6283 if ${lt_cv_ar_at_file+:} false; then :
6284   $as_echo_n "(cached) " >&6
6285 else
6286   lt_cv_ar_at_file=no
6287    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6288 /* end confdefs.h.  */
6289
6290 int
6291 main ()
6292 {
6293
6294   ;
6295   return 0;
6296 }
6297 _ACEOF
6298 if ac_fn_c_try_compile "$LINENO"; then :
6299   echo conftest.$ac_objext > conftest.lst
6300       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6301       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6302   (eval $lt_ar_try) 2>&5
6303   ac_status=$?
6304   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6305   test $ac_status = 0; }
6306       if test "$ac_status" -eq 0; then
6307         # Ensure the archiver fails upon bogus file names.
6308         rm -f conftest.$ac_objext libconftest.a
6309         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6310   (eval $lt_ar_try) 2>&5
6311   ac_status=$?
6312   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6313   test $ac_status = 0; }
6314         if test "$ac_status" -ne 0; then
6315           lt_cv_ar_at_file=@
6316         fi
6317       fi
6318       rm -f conftest.* libconftest.a
6319
6320 fi
6321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6322
6323 fi
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6325 $as_echo "$lt_cv_ar_at_file" >&6; }
6326
6327 if test "x$lt_cv_ar_at_file" = xno; then
6328   archiver_list_spec=
6329 else
6330   archiver_list_spec=$lt_cv_ar_at_file
6331 fi
6332
6333
6334
6335
6336
6337
6338
6339 if test -n "$ac_tool_prefix"; then
6340   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6341 set dummy ${ac_tool_prefix}strip; ac_word=$2
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6343 $as_echo_n "checking for $ac_word... " >&6; }
6344 if ${ac_cv_prog_STRIP+:} false; then :
6345   $as_echo_n "(cached) " >&6
6346 else
6347   if test -n "$STRIP"; then
6348   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6349 else
6350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6351 for as_dir in $PATH
6352 do
6353   IFS=$as_save_IFS
6354   test -z "$as_dir" && as_dir=.
6355     for ac_exec_ext in '' $ac_executable_extensions; do
6356   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6357     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6358     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6359     break 2
6360   fi
6361 done
6362   done
6363 IFS=$as_save_IFS
6364
6365 fi
6366 fi
6367 STRIP=$ac_cv_prog_STRIP
6368 if test -n "$STRIP"; then
6369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6370 $as_echo "$STRIP" >&6; }
6371 else
6372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6373 $as_echo "no" >&6; }
6374 fi
6375
6376
6377 fi
6378 if test -z "$ac_cv_prog_STRIP"; then
6379   ac_ct_STRIP=$STRIP
6380   # Extract the first word of "strip", so it can be a program name with args.
6381 set dummy strip; ac_word=$2
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6383 $as_echo_n "checking for $ac_word... " >&6; }
6384 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6385   $as_echo_n "(cached) " >&6
6386 else
6387   if test -n "$ac_ct_STRIP"; then
6388   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6389 else
6390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6391 for as_dir in $PATH
6392 do
6393   IFS=$as_save_IFS
6394   test -z "$as_dir" && as_dir=.
6395     for ac_exec_ext in '' $ac_executable_extensions; do
6396   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6397     ac_cv_prog_ac_ct_STRIP="strip"
6398     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6399     break 2
6400   fi
6401 done
6402   done
6403 IFS=$as_save_IFS
6404
6405 fi
6406 fi
6407 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6408 if test -n "$ac_ct_STRIP"; then
6409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6410 $as_echo "$ac_ct_STRIP" >&6; }
6411 else
6412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6413 $as_echo "no" >&6; }
6414 fi
6415
6416   if test "x$ac_ct_STRIP" = x; then
6417     STRIP=":"
6418   else
6419     case $cross_compiling:$ac_tool_warned in
6420 yes:)
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6422 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6423 ac_tool_warned=yes ;;
6424 esac
6425     STRIP=$ac_ct_STRIP
6426   fi
6427 else
6428   STRIP="$ac_cv_prog_STRIP"
6429 fi
6430
6431 test -z "$STRIP" && STRIP=:
6432
6433
6434
6435
6436
6437
6438 if test -n "$ac_tool_prefix"; then
6439   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6440 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6442 $as_echo_n "checking for $ac_word... " >&6; }
6443 if ${ac_cv_prog_RANLIB+:} false; then :
6444   $as_echo_n "(cached) " >&6
6445 else
6446   if test -n "$RANLIB"; then
6447   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6448 else
6449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6450 for as_dir in $PATH
6451 do
6452   IFS=$as_save_IFS
6453   test -z "$as_dir" && as_dir=.
6454     for ac_exec_ext in '' $ac_executable_extensions; do
6455   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6456     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6457     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6458     break 2
6459   fi
6460 done
6461   done
6462 IFS=$as_save_IFS
6463
6464 fi
6465 fi
6466 RANLIB=$ac_cv_prog_RANLIB
6467 if test -n "$RANLIB"; then
6468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6469 $as_echo "$RANLIB" >&6; }
6470 else
6471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6472 $as_echo "no" >&6; }
6473 fi
6474
6475
6476 fi
6477 if test -z "$ac_cv_prog_RANLIB"; then
6478   ac_ct_RANLIB=$RANLIB
6479   # Extract the first word of "ranlib", so it can be a program name with args.
6480 set dummy ranlib; ac_word=$2
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6482 $as_echo_n "checking for $ac_word... " >&6; }
6483 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6484   $as_echo_n "(cached) " >&6
6485 else
6486   if test -n "$ac_ct_RANLIB"; then
6487   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6488 else
6489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6490 for as_dir in $PATH
6491 do
6492   IFS=$as_save_IFS
6493   test -z "$as_dir" && as_dir=.
6494     for ac_exec_ext in '' $ac_executable_extensions; do
6495   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6496     ac_cv_prog_ac_ct_RANLIB="ranlib"
6497     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6498     break 2
6499   fi
6500 done
6501   done
6502 IFS=$as_save_IFS
6503
6504 fi
6505 fi
6506 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6507 if test -n "$ac_ct_RANLIB"; then
6508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6509 $as_echo "$ac_ct_RANLIB" >&6; }
6510 else
6511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6512 $as_echo "no" >&6; }
6513 fi
6514
6515   if test "x$ac_ct_RANLIB" = x; then
6516     RANLIB=":"
6517   else
6518     case $cross_compiling:$ac_tool_warned in
6519 yes:)
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6521 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6522 ac_tool_warned=yes ;;
6523 esac
6524     RANLIB=$ac_ct_RANLIB
6525   fi
6526 else
6527   RANLIB="$ac_cv_prog_RANLIB"
6528 fi
6529
6530 test -z "$RANLIB" && RANLIB=:
6531
6532
6533
6534
6535
6536
6537 # Determine commands to create old-style static archives.
6538 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6539 old_postinstall_cmds='chmod 644 $oldlib'
6540 old_postuninstall_cmds=
6541
6542 if test -n "$RANLIB"; then
6543   case $host_os in
6544   openbsd*)
6545     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6546     ;;
6547   *)
6548     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6549     ;;
6550   esac
6551   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6552 fi
6553
6554 case $host_os in
6555   darwin*)
6556     lock_old_archive_extraction=yes ;;
6557   *)
6558     lock_old_archive_extraction=no ;;
6559 esac
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599 # If no C compiler was specified, use CC.
6600 LTCC=${LTCC-"$CC"}
6601
6602 # If no C compiler flags were specified, use CFLAGS.
6603 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6604
6605 # Allow CC to be a program name with arguments.
6606 compiler=$CC
6607
6608
6609 # Check for command to grab the raw symbol name followed by C symbol from nm.
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6611 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6612 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6613   $as_echo_n "(cached) " >&6
6614 else
6615
6616 # These are sane defaults that work on at least a few old systems.
6617 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6618
6619 # Character class describing NM global symbol codes.
6620 symcode='[BCDEGRST]'
6621
6622 # Regexp to match symbols that can be accessed directly from C.
6623 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6624
6625 # Define system-specific variables.
6626 case $host_os in
6627 aix*)
6628   symcode='[BCDT]'
6629   ;;
6630 cygwin* | mingw* | pw32* | cegcc*)
6631   symcode='[ABCDGISTW]'
6632   ;;
6633 hpux*)
6634   if test "$host_cpu" = ia64; then
6635     symcode='[ABCDEGRST]'
6636   fi
6637   ;;
6638 irix* | nonstopux*)
6639   symcode='[BCDEGRST]'
6640   ;;
6641 osf*)
6642   symcode='[BCDEGQRST]'
6643   ;;
6644 solaris*)
6645   symcode='[BDRT]'
6646   ;;
6647 sco3.2v5*)
6648   symcode='[DT]'
6649   ;;
6650 sysv4.2uw2*)
6651   symcode='[DT]'
6652   ;;
6653 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6654   symcode='[ABDT]'
6655   ;;
6656 sysv4)
6657   symcode='[DFNSTU]'
6658   ;;
6659 esac
6660
6661 # If we're using GNU nm, then use its standard symbol codes.
6662 case `$NM -V 2>&1` in
6663 *GNU* | *'with BFD'*)
6664   symcode='[ABCDGIRSTW]' ;;
6665 esac
6666
6667 # Transform an extracted symbol line into a proper C declaration.
6668 # Some systems (esp. on ia64) link data and code symbols differently,
6669 # so use this general approach.
6670 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6671
6672 # Transform an extracted symbol line into symbol name and symbol address
6673 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6674 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'"
6675
6676 # Handle CRLF in mingw tool chain
6677 opt_cr=
6678 case $build_os in
6679 mingw*)
6680   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6681   ;;
6682 esac
6683
6684 # Try without a prefix underscore, then with it.
6685 for ac_symprfx in "" "_"; do
6686
6687   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6688   symxfrm="\\1 $ac_symprfx\\2 \\2"
6689
6690   # Write the raw and C identifiers.
6691   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6692     # Fake it for dumpbin and say T for any non-static function
6693     # and D for any global variable.
6694     # Also find C++ and __fastcall symbols from MSVC++,
6695     # which start with @ or ?.
6696     lt_cv_sys_global_symbol_pipe="$AWK '"\
6697 "     {last_section=section; section=\$ 3};"\
6698 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6699 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6700 "     \$ 0!~/External *\|/{next};"\
6701 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6702 "     {if(hide[section]) next};"\
6703 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6704 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6705 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6706 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6707 "     ' prfx=^$ac_symprfx"
6708   else
6709     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6710   fi
6711   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6712
6713   # Check to see that the pipe works correctly.
6714   pipe_works=no
6715
6716   rm -f conftest*
6717   cat > conftest.$ac_ext <<_LT_EOF
6718 #ifdef __cplusplus
6719 extern "C" {
6720 #endif
6721 char nm_test_var;
6722 void nm_test_func(void);
6723 void nm_test_func(void){}
6724 #ifdef __cplusplus
6725 }
6726 #endif
6727 int main(){nm_test_var='a';nm_test_func();return(0);}
6728 _LT_EOF
6729
6730   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6731   (eval $ac_compile) 2>&5
6732   ac_status=$?
6733   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6734   test $ac_status = 0; }; then
6735     # Now try to grab the symbols.
6736     nlist=conftest.nm
6737     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6738   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6739   ac_status=$?
6740   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6741   test $ac_status = 0; } && test -s "$nlist"; then
6742       # Try sorting and uniquifying the output.
6743       if sort "$nlist" | uniq > "$nlist"T; then
6744         mv -f "$nlist"T "$nlist"
6745       else
6746         rm -f "$nlist"T
6747       fi
6748
6749       # Make sure that we snagged all the symbols we need.
6750       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6751         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6752           cat <<_LT_EOF > conftest.$ac_ext
6753 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6754 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6755 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6756    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6757 # define LT_DLSYM_CONST
6758 #elif defined(__osf__)
6759 /* This system does not cope well with relocations in const data.  */
6760 # define LT_DLSYM_CONST
6761 #else
6762 # define LT_DLSYM_CONST const
6763 #endif
6764
6765 #ifdef __cplusplus
6766 extern "C" {
6767 #endif
6768
6769 _LT_EOF
6770           # Now generate the symbol file.
6771           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6772
6773           cat <<_LT_EOF >> conftest.$ac_ext
6774
6775 /* The mapping between symbol names and symbols.  */
6776 LT_DLSYM_CONST struct {
6777   const char *name;
6778   void       *address;
6779 }
6780 lt__PROGRAM__LTX_preloaded_symbols[] =
6781 {
6782   { "@PROGRAM@", (void *) 0 },
6783 _LT_EOF
6784           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6785           cat <<\_LT_EOF >> conftest.$ac_ext
6786   {0, (void *) 0}
6787 };
6788
6789 /* This works around a problem in FreeBSD linker */
6790 #ifdef FREEBSD_WORKAROUND
6791 static const void *lt_preloaded_setup() {
6792   return lt__PROGRAM__LTX_preloaded_symbols;
6793 }
6794 #endif
6795
6796 #ifdef __cplusplus
6797 }
6798 #endif
6799 _LT_EOF
6800           # Now try linking the two files.
6801           mv conftest.$ac_objext conftstm.$ac_objext
6802           lt_globsym_save_LIBS=$LIBS
6803           lt_globsym_save_CFLAGS=$CFLAGS
6804           LIBS="conftstm.$ac_objext"
6805           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6806           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6807   (eval $ac_link) 2>&5
6808   ac_status=$?
6809   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6810   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6811             pipe_works=yes
6812           fi
6813           LIBS=$lt_globsym_save_LIBS
6814           CFLAGS=$lt_globsym_save_CFLAGS
6815         else
6816           echo "cannot find nm_test_func in $nlist" >&5
6817         fi
6818       else
6819         echo "cannot find nm_test_var in $nlist" >&5
6820       fi
6821     else
6822       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6823     fi
6824   else
6825     echo "$progname: failed program was:" >&5
6826     cat conftest.$ac_ext >&5
6827   fi
6828   rm -rf conftest* conftst*
6829
6830   # Do not use the global_symbol_pipe unless it works.
6831   if test "$pipe_works" = yes; then
6832     break
6833   else
6834     lt_cv_sys_global_symbol_pipe=
6835   fi
6836 done
6837
6838 fi
6839
6840 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6841   lt_cv_sys_global_symbol_to_cdecl=
6842 fi
6843 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6845 $as_echo "failed" >&6; }
6846 else
6847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6848 $as_echo "ok" >&6; }
6849 fi
6850
6851 # Response file support.
6852 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6853   nm_file_list_spec='@'
6854 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6855   nm_file_list_spec='@'
6856 fi
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6885 $as_echo_n "checking for sysroot... " >&6; }
6886
6887 # Check whether --with-sysroot was given.
6888 if test "${with_sysroot+set}" = set; then :
6889   withval=$with_sysroot;
6890 else
6891   with_sysroot=no
6892 fi
6893
6894
6895 lt_sysroot=
6896 case ${with_sysroot} in #(
6897  yes)
6898    if test "$GCC" = yes; then
6899      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6900    fi
6901    ;; #(
6902  /*)
6903    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6904    ;; #(
6905  no|'')
6906    ;; #(
6907  *)
6908    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6909 $as_echo "${with_sysroot}" >&6; }
6910    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6911    ;;
6912 esac
6913
6914  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6915 $as_echo "${lt_sysroot:-no}" >&6; }
6916
6917
6918
6919
6920
6921 # Check whether --enable-libtool-lock was given.
6922 if test "${enable_libtool_lock+set}" = set; then :
6923   enableval=$enable_libtool_lock;
6924 fi
6925
6926 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6927
6928 # Some flags need to be propagated to the compiler or linker for good
6929 # libtool support.
6930 case $host in
6931 ia64-*-hpux*)
6932   # Find out which ABI we are using.
6933   echo 'int i;' > conftest.$ac_ext
6934   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6935   (eval $ac_compile) 2>&5
6936   ac_status=$?
6937   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6938   test $ac_status = 0; }; then
6939     case `/usr/bin/file conftest.$ac_objext` in
6940       *ELF-32*)
6941         HPUX_IA64_MODE="32"
6942         ;;
6943       *ELF-64*)
6944         HPUX_IA64_MODE="64"
6945         ;;
6946     esac
6947   fi
6948   rm -rf conftest*
6949   ;;
6950 *-*-irix6*)
6951   # Find out which ABI we are using.
6952   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6953   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6954   (eval $ac_compile) 2>&5
6955   ac_status=$?
6956   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6957   test $ac_status = 0; }; then
6958     if test "$lt_cv_prog_gnu_ld" = yes; then
6959       case `/usr/bin/file conftest.$ac_objext` in
6960         *32-bit*)
6961           LD="${LD-ld} -melf32bsmip"
6962           ;;
6963         *N32*)
6964           LD="${LD-ld} -melf32bmipn32"
6965           ;;
6966         *64-bit*)
6967           LD="${LD-ld} -melf64bmip"
6968         ;;
6969       esac
6970     else
6971       case `/usr/bin/file conftest.$ac_objext` in
6972         *32-bit*)
6973           LD="${LD-ld} -32"
6974           ;;
6975         *N32*)
6976           LD="${LD-ld} -n32"
6977           ;;
6978         *64-bit*)
6979           LD="${LD-ld} -64"
6980           ;;
6981       esac
6982     fi
6983   fi
6984   rm -rf conftest*
6985   ;;
6986
6987 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6988 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6989   # Find out which ABI we are using.
6990   echo 'int i;' > conftest.$ac_ext
6991   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6992   (eval $ac_compile) 2>&5
6993   ac_status=$?
6994   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6995   test $ac_status = 0; }; then
6996     case `/usr/bin/file conftest.o` in
6997       *32-bit*)
6998         case $host in
6999           x86_64-*kfreebsd*-gnu)
7000             LD="${LD-ld} -m elf_i386_fbsd"
7001             ;;
7002           x86_64-*linux*)
7003             case `/usr/bin/file conftest.o` in
7004               *x86-64*)
7005                 LD="${LD-ld} -m elf32_x86_64"
7006                 ;;
7007               *)
7008                 LD="${LD-ld} -m elf_i386"
7009                 ;;
7010             esac
7011             ;;
7012           ppc64-*linux*|powerpc64-*linux*)
7013             LD="${LD-ld} -m elf32ppclinux"
7014             ;;
7015           s390x-*linux*)
7016             LD="${LD-ld} -m elf_s390"
7017             ;;
7018           sparc64-*linux*)
7019             LD="${LD-ld} -m elf32_sparc"
7020             ;;
7021         esac
7022         ;;
7023       *64-bit*)
7024         case $host in
7025           x86_64-*kfreebsd*-gnu)
7026             LD="${LD-ld} -m elf_x86_64_fbsd"
7027             ;;
7028           x86_64-*linux*)
7029             LD="${LD-ld} -m elf_x86_64"
7030             ;;
7031           ppc*-*linux*|powerpc*-*linux*)
7032             LD="${LD-ld} -m elf64ppc"
7033             ;;
7034           s390*-*linux*|s390*-*tpf*)
7035             LD="${LD-ld} -m elf64_s390"
7036             ;;
7037           sparc*-*linux*)
7038             LD="${LD-ld} -m elf64_sparc"
7039             ;;
7040         esac
7041         ;;
7042     esac
7043   fi
7044   rm -rf conftest*
7045   ;;
7046
7047 *-*-sco3.2v5*)
7048   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7049   SAVE_CFLAGS="$CFLAGS"
7050   CFLAGS="$CFLAGS -belf"
7051   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7052 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7053 if ${lt_cv_cc_needs_belf+:} false; then :
7054   $as_echo_n "(cached) " >&6
7055 else
7056   ac_ext=c
7057 ac_cpp='$CPP $CPPFLAGS'
7058 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7059 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7060 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7061
7062      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7063 /* end confdefs.h.  */
7064
7065 int
7066 main ()
7067 {
7068
7069   ;
7070   return 0;
7071 }
7072 _ACEOF
7073 if ac_fn_c_try_link "$LINENO"; then :
7074   lt_cv_cc_needs_belf=yes
7075 else
7076   lt_cv_cc_needs_belf=no
7077 fi
7078 rm -f core conftest.err conftest.$ac_objext \
7079     conftest$ac_exeext conftest.$ac_ext
7080      ac_ext=c
7081 ac_cpp='$CPP $CPPFLAGS'
7082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7085
7086 fi
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7088 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7089   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7090     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7091     CFLAGS="$SAVE_CFLAGS"
7092   fi
7093   ;;
7094 *-*solaris*)
7095   # Find out which ABI we are using.
7096   echo 'int i;' > conftest.$ac_ext
7097   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7098   (eval $ac_compile) 2>&5
7099   ac_status=$?
7100   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7101   test $ac_status = 0; }; then
7102     case `/usr/bin/file conftest.o` in
7103     *64-bit*)
7104       case $lt_cv_prog_gnu_ld in
7105       yes*)
7106         case $host in
7107         i?86-*-solaris*)
7108           LD="${LD-ld} -m elf_x86_64"
7109           ;;
7110         sparc*-*-solaris*)
7111           LD="${LD-ld} -m elf64_sparc"
7112           ;;
7113         esac
7114         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7115         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7116           LD="${LD-ld}_sol2"
7117         fi
7118         ;;
7119       *)
7120         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7121           LD="${LD-ld} -64"
7122         fi
7123         ;;
7124       esac
7125       ;;
7126     esac
7127   fi
7128   rm -rf conftest*
7129   ;;
7130 esac
7131
7132 need_locks="$enable_libtool_lock"
7133
7134 if test -n "$ac_tool_prefix"; then
7135   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7136 set dummy ${ac_tool_prefix}mt; ac_word=$2
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7138 $as_echo_n "checking for $ac_word... " >&6; }
7139 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7140   $as_echo_n "(cached) " >&6
7141 else
7142   if test -n "$MANIFEST_TOOL"; then
7143   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7144 else
7145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7146 for as_dir in $PATH
7147 do
7148   IFS=$as_save_IFS
7149   test -z "$as_dir" && as_dir=.
7150     for ac_exec_ext in '' $ac_executable_extensions; do
7151   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7152     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7153     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7154     break 2
7155   fi
7156 done
7157   done
7158 IFS=$as_save_IFS
7159
7160 fi
7161 fi
7162 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7163 if test -n "$MANIFEST_TOOL"; then
7164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7165 $as_echo "$MANIFEST_TOOL" >&6; }
7166 else
7167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7168 $as_echo "no" >&6; }
7169 fi
7170
7171
7172 fi
7173 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7174   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7175   # Extract the first word of "mt", so it can be a program name with args.
7176 set dummy mt; ac_word=$2
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7178 $as_echo_n "checking for $ac_word... " >&6; }
7179 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7180   $as_echo_n "(cached) " >&6
7181 else
7182   if test -n "$ac_ct_MANIFEST_TOOL"; then
7183   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7184 else
7185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7186 for as_dir in $PATH
7187 do
7188   IFS=$as_save_IFS
7189   test -z "$as_dir" && as_dir=.
7190     for ac_exec_ext in '' $ac_executable_extensions; do
7191   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7192     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7193     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7194     break 2
7195   fi
7196 done
7197   done
7198 IFS=$as_save_IFS
7199
7200 fi
7201 fi
7202 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7203 if test -n "$ac_ct_MANIFEST_TOOL"; then
7204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7205 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7206 else
7207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7208 $as_echo "no" >&6; }
7209 fi
7210
7211   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7212     MANIFEST_TOOL=":"
7213   else
7214     case $cross_compiling:$ac_tool_warned in
7215 yes:)
7216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7217 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7218 ac_tool_warned=yes ;;
7219 esac
7220     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7221   fi
7222 else
7223   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7224 fi
7225
7226 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7228 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7229 if ${lt_cv_path_mainfest_tool+:} false; then :
7230   $as_echo_n "(cached) " >&6
7231 else
7232   lt_cv_path_mainfest_tool=no
7233   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7234   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7235   cat conftest.err >&5
7236   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7237     lt_cv_path_mainfest_tool=yes
7238   fi
7239   rm -f conftest*
7240 fi
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7242 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7243 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7244   MANIFEST_TOOL=:
7245 fi
7246
7247
7248
7249
7250
7251
7252   case $host_os in
7253     rhapsody* | darwin*)
7254     if test -n "$ac_tool_prefix"; then
7255   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7256 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7258 $as_echo_n "checking for $ac_word... " >&6; }
7259 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7260   $as_echo_n "(cached) " >&6
7261 else
7262   if test -n "$DSYMUTIL"; then
7263   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7264 else
7265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7266 for as_dir in $PATH
7267 do
7268   IFS=$as_save_IFS
7269   test -z "$as_dir" && as_dir=.
7270     for ac_exec_ext in '' $ac_executable_extensions; do
7271   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7272     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7273     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7274     break 2
7275   fi
7276 done
7277   done
7278 IFS=$as_save_IFS
7279
7280 fi
7281 fi
7282 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7283 if test -n "$DSYMUTIL"; then
7284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7285 $as_echo "$DSYMUTIL" >&6; }
7286 else
7287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7288 $as_echo "no" >&6; }
7289 fi
7290
7291
7292 fi
7293 if test -z "$ac_cv_prog_DSYMUTIL"; then
7294   ac_ct_DSYMUTIL=$DSYMUTIL
7295   # Extract the first word of "dsymutil", so it can be a program name with args.
7296 set dummy dsymutil; ac_word=$2
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7298 $as_echo_n "checking for $ac_word... " >&6; }
7299 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7300   $as_echo_n "(cached) " >&6
7301 else
7302   if test -n "$ac_ct_DSYMUTIL"; then
7303   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7304 else
7305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7306 for as_dir in $PATH
7307 do
7308   IFS=$as_save_IFS
7309   test -z "$as_dir" && as_dir=.
7310     for ac_exec_ext in '' $ac_executable_extensions; do
7311   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7312     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7313     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7314     break 2
7315   fi
7316 done
7317   done
7318 IFS=$as_save_IFS
7319
7320 fi
7321 fi
7322 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7323 if test -n "$ac_ct_DSYMUTIL"; then
7324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7325 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7326 else
7327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7328 $as_echo "no" >&6; }
7329 fi
7330
7331   if test "x$ac_ct_DSYMUTIL" = x; then
7332     DSYMUTIL=":"
7333   else
7334     case $cross_compiling:$ac_tool_warned in
7335 yes:)
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7337 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7338 ac_tool_warned=yes ;;
7339 esac
7340     DSYMUTIL=$ac_ct_DSYMUTIL
7341   fi
7342 else
7343   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7344 fi
7345
7346     if test -n "$ac_tool_prefix"; then
7347   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7348 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7350 $as_echo_n "checking for $ac_word... " >&6; }
7351 if ${ac_cv_prog_NMEDIT+:} false; then :
7352   $as_echo_n "(cached) " >&6
7353 else
7354   if test -n "$NMEDIT"; then
7355   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7356 else
7357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7358 for as_dir in $PATH
7359 do
7360   IFS=$as_save_IFS
7361   test -z "$as_dir" && as_dir=.
7362     for ac_exec_ext in '' $ac_executable_extensions; do
7363   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7364     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7365     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7366     break 2
7367   fi
7368 done
7369   done
7370 IFS=$as_save_IFS
7371
7372 fi
7373 fi
7374 NMEDIT=$ac_cv_prog_NMEDIT
7375 if test -n "$NMEDIT"; then
7376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7377 $as_echo "$NMEDIT" >&6; }
7378 else
7379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7380 $as_echo "no" >&6; }
7381 fi
7382
7383
7384 fi
7385 if test -z "$ac_cv_prog_NMEDIT"; then
7386   ac_ct_NMEDIT=$NMEDIT
7387   # Extract the first word of "nmedit", so it can be a program name with args.
7388 set dummy nmedit; ac_word=$2
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7390 $as_echo_n "checking for $ac_word... " >&6; }
7391 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7392   $as_echo_n "(cached) " >&6
7393 else
7394   if test -n "$ac_ct_NMEDIT"; then
7395   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7396 else
7397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7398 for as_dir in $PATH
7399 do
7400   IFS=$as_save_IFS
7401   test -z "$as_dir" && as_dir=.
7402     for ac_exec_ext in '' $ac_executable_extensions; do
7403   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7404     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7405     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7406     break 2
7407   fi
7408 done
7409   done
7410 IFS=$as_save_IFS
7411
7412 fi
7413 fi
7414 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7415 if test -n "$ac_ct_NMEDIT"; then
7416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7417 $as_echo "$ac_ct_NMEDIT" >&6; }
7418 else
7419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7420 $as_echo "no" >&6; }
7421 fi
7422
7423   if test "x$ac_ct_NMEDIT" = x; then
7424     NMEDIT=":"
7425   else
7426     case $cross_compiling:$ac_tool_warned in
7427 yes:)
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7429 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7430 ac_tool_warned=yes ;;
7431 esac
7432     NMEDIT=$ac_ct_NMEDIT
7433   fi
7434 else
7435   NMEDIT="$ac_cv_prog_NMEDIT"
7436 fi
7437
7438     if test -n "$ac_tool_prefix"; then
7439   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7440 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7442 $as_echo_n "checking for $ac_word... " >&6; }
7443 if ${ac_cv_prog_LIPO+:} false; then :
7444   $as_echo_n "(cached) " >&6
7445 else
7446   if test -n "$LIPO"; then
7447   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7448 else
7449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7450 for as_dir in $PATH
7451 do
7452   IFS=$as_save_IFS
7453   test -z "$as_dir" && as_dir=.
7454     for ac_exec_ext in '' $ac_executable_extensions; do
7455   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7456     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7457     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7458     break 2
7459   fi
7460 done
7461   done
7462 IFS=$as_save_IFS
7463
7464 fi
7465 fi
7466 LIPO=$ac_cv_prog_LIPO
7467 if test -n "$LIPO"; then
7468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7469 $as_echo "$LIPO" >&6; }
7470 else
7471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7472 $as_echo "no" >&6; }
7473 fi
7474
7475
7476 fi
7477 if test -z "$ac_cv_prog_LIPO"; then
7478   ac_ct_LIPO=$LIPO
7479   # Extract the first word of "lipo", so it can be a program name with args.
7480 set dummy lipo; ac_word=$2
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7482 $as_echo_n "checking for $ac_word... " >&6; }
7483 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7484   $as_echo_n "(cached) " >&6
7485 else
7486   if test -n "$ac_ct_LIPO"; then
7487   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7488 else
7489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7490 for as_dir in $PATH
7491 do
7492   IFS=$as_save_IFS
7493   test -z "$as_dir" && as_dir=.
7494     for ac_exec_ext in '' $ac_executable_extensions; do
7495   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7496     ac_cv_prog_ac_ct_LIPO="lipo"
7497     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7498     break 2
7499   fi
7500 done
7501   done
7502 IFS=$as_save_IFS
7503
7504 fi
7505 fi
7506 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7507 if test -n "$ac_ct_LIPO"; then
7508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7509 $as_echo "$ac_ct_LIPO" >&6; }
7510 else
7511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7512 $as_echo "no" >&6; }
7513 fi
7514
7515   if test "x$ac_ct_LIPO" = x; then
7516     LIPO=":"
7517   else
7518     case $cross_compiling:$ac_tool_warned in
7519 yes:)
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7521 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7522 ac_tool_warned=yes ;;
7523 esac
7524     LIPO=$ac_ct_LIPO
7525   fi
7526 else
7527   LIPO="$ac_cv_prog_LIPO"
7528 fi
7529
7530     if test -n "$ac_tool_prefix"; then
7531   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7532 set dummy ${ac_tool_prefix}otool; ac_word=$2
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7534 $as_echo_n "checking for $ac_word... " >&6; }
7535 if ${ac_cv_prog_OTOOL+:} false; then :
7536   $as_echo_n "(cached) " >&6
7537 else
7538   if test -n "$OTOOL"; then
7539   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7540 else
7541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7542 for as_dir in $PATH
7543 do
7544   IFS=$as_save_IFS
7545   test -z "$as_dir" && as_dir=.
7546     for ac_exec_ext in '' $ac_executable_extensions; do
7547   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7548     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7549     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7550     break 2
7551   fi
7552 done
7553   done
7554 IFS=$as_save_IFS
7555
7556 fi
7557 fi
7558 OTOOL=$ac_cv_prog_OTOOL
7559 if test -n "$OTOOL"; then
7560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7561 $as_echo "$OTOOL" >&6; }
7562 else
7563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7564 $as_echo "no" >&6; }
7565 fi
7566
7567
7568 fi
7569 if test -z "$ac_cv_prog_OTOOL"; then
7570   ac_ct_OTOOL=$OTOOL
7571   # Extract the first word of "otool", so it can be a program name with args.
7572 set dummy otool; ac_word=$2
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7574 $as_echo_n "checking for $ac_word... " >&6; }
7575 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7576   $as_echo_n "(cached) " >&6
7577 else
7578   if test -n "$ac_ct_OTOOL"; then
7579   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7580 else
7581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7582 for as_dir in $PATH
7583 do
7584   IFS=$as_save_IFS
7585   test -z "$as_dir" && as_dir=.
7586     for ac_exec_ext in '' $ac_executable_extensions; do
7587   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7588     ac_cv_prog_ac_ct_OTOOL="otool"
7589     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7590     break 2
7591   fi
7592 done
7593   done
7594 IFS=$as_save_IFS
7595
7596 fi
7597 fi
7598 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7599 if test -n "$ac_ct_OTOOL"; then
7600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7601 $as_echo "$ac_ct_OTOOL" >&6; }
7602 else
7603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7604 $as_echo "no" >&6; }
7605 fi
7606
7607   if test "x$ac_ct_OTOOL" = x; then
7608     OTOOL=":"
7609   else
7610     case $cross_compiling:$ac_tool_warned in
7611 yes:)
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7613 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7614 ac_tool_warned=yes ;;
7615 esac
7616     OTOOL=$ac_ct_OTOOL
7617   fi
7618 else
7619   OTOOL="$ac_cv_prog_OTOOL"
7620 fi
7621
7622     if test -n "$ac_tool_prefix"; then
7623   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7624 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7626 $as_echo_n "checking for $ac_word... " >&6; }
7627 if ${ac_cv_prog_OTOOL64+:} false; then :
7628   $as_echo_n "(cached) " >&6
7629 else
7630   if test -n "$OTOOL64"; then
7631   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7632 else
7633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7634 for as_dir in $PATH
7635 do
7636   IFS=$as_save_IFS
7637   test -z "$as_dir" && as_dir=.
7638     for ac_exec_ext in '' $ac_executable_extensions; do
7639   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7640     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7641     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7642     break 2
7643   fi
7644 done
7645   done
7646 IFS=$as_save_IFS
7647
7648 fi
7649 fi
7650 OTOOL64=$ac_cv_prog_OTOOL64
7651 if test -n "$OTOOL64"; then
7652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7653 $as_echo "$OTOOL64" >&6; }
7654 else
7655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7656 $as_echo "no" >&6; }
7657 fi
7658
7659
7660 fi
7661 if test -z "$ac_cv_prog_OTOOL64"; then
7662   ac_ct_OTOOL64=$OTOOL64
7663   # Extract the first word of "otool64", so it can be a program name with args.
7664 set dummy otool64; ac_word=$2
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7666 $as_echo_n "checking for $ac_word... " >&6; }
7667 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7668   $as_echo_n "(cached) " >&6
7669 else
7670   if test -n "$ac_ct_OTOOL64"; then
7671   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7672 else
7673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7674 for as_dir in $PATH
7675 do
7676   IFS=$as_save_IFS
7677   test -z "$as_dir" && as_dir=.
7678     for ac_exec_ext in '' $ac_executable_extensions; do
7679   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7680     ac_cv_prog_ac_ct_OTOOL64="otool64"
7681     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7682     break 2
7683   fi
7684 done
7685   done
7686 IFS=$as_save_IFS
7687
7688 fi
7689 fi
7690 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7691 if test -n "$ac_ct_OTOOL64"; then
7692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7693 $as_echo "$ac_ct_OTOOL64" >&6; }
7694 else
7695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7696 $as_echo "no" >&6; }
7697 fi
7698
7699   if test "x$ac_ct_OTOOL64" = x; then
7700     OTOOL64=":"
7701   else
7702     case $cross_compiling:$ac_tool_warned in
7703 yes:)
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7705 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7706 ac_tool_warned=yes ;;
7707 esac
7708     OTOOL64=$ac_ct_OTOOL64
7709   fi
7710 else
7711   OTOOL64="$ac_cv_prog_OTOOL64"
7712 fi
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7741 $as_echo_n "checking for -single_module linker flag... " >&6; }
7742 if ${lt_cv_apple_cc_single_mod+:} false; then :
7743   $as_echo_n "(cached) " >&6
7744 else
7745   lt_cv_apple_cc_single_mod=no
7746       if test -z "${LT_MULTI_MODULE}"; then
7747         # By default we will add the -single_module flag. You can override
7748         # by either setting the environment variable LT_MULTI_MODULE
7749         # non-empty at configure time, or by adding -multi_module to the
7750         # link flags.
7751         rm -rf libconftest.dylib*
7752         echo "int foo(void){return 1;}" > conftest.c
7753         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7754 -dynamiclib -Wl,-single_module conftest.c" >&5
7755         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7756           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7757         _lt_result=$?
7758         # If there is a non-empty error log, and "single_module"
7759         # appears in it, assume the flag caused a linker warning
7760         if test -s conftest.err && $GREP single_module conftest.err; then
7761           cat conftest.err >&5
7762         # Otherwise, if the output was created with a 0 exit code from
7763         # the compiler, it worked.
7764         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7765           lt_cv_apple_cc_single_mod=yes
7766         else
7767           cat conftest.err >&5
7768         fi
7769         rm -rf libconftest.dylib*
7770         rm -f conftest.*
7771       fi
7772 fi
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7774 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7775
7776     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7777 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7778 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7779   $as_echo_n "(cached) " >&6
7780 else
7781   lt_cv_ld_exported_symbols_list=no
7782       save_LDFLAGS=$LDFLAGS
7783       echo "_main" > conftest.sym
7784       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7785       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7786 /* end confdefs.h.  */
7787
7788 int
7789 main ()
7790 {
7791
7792   ;
7793   return 0;
7794 }
7795 _ACEOF
7796 if ac_fn_c_try_link "$LINENO"; then :
7797   lt_cv_ld_exported_symbols_list=yes
7798 else
7799   lt_cv_ld_exported_symbols_list=no
7800 fi
7801 rm -f core conftest.err conftest.$ac_objext \
7802     conftest$ac_exeext conftest.$ac_ext
7803         LDFLAGS="$save_LDFLAGS"
7804
7805 fi
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7807 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7808
7809     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7810 $as_echo_n "checking for -force_load linker flag... " >&6; }
7811 if ${lt_cv_ld_force_load+:} false; then :
7812   $as_echo_n "(cached) " >&6
7813 else
7814   lt_cv_ld_force_load=no
7815       cat > conftest.c << _LT_EOF
7816 int forced_loaded() { return 2;}
7817 _LT_EOF
7818       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7819       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7820       echo "$AR cru libconftest.a conftest.o" >&5
7821       $AR cru libconftest.a conftest.o 2>&5
7822       echo "$RANLIB libconftest.a" >&5
7823       $RANLIB libconftest.a 2>&5
7824       cat > conftest.c << _LT_EOF
7825 int main() { return 0;}
7826 _LT_EOF
7827       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7828       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7829       _lt_result=$?
7830       if test -s conftest.err && $GREP force_load conftest.err; then
7831         cat conftest.err >&5
7832       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7833         lt_cv_ld_force_load=yes
7834       else
7835         cat conftest.err >&5
7836       fi
7837         rm -f conftest.err libconftest.a conftest conftest.c
7838         rm -rf conftest.dSYM
7839
7840 fi
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7842 $as_echo "$lt_cv_ld_force_load" >&6; }
7843     case $host_os in
7844     rhapsody* | darwin1.[012])
7845       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7846     darwin1.*)
7847       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7848     darwin*) # darwin 5.x on
7849       # if running on 10.5 or later, the deployment target defaults
7850       # to the OS version, if on x86, and 10.4, the deployment
7851       # target defaults to 10.4. Don't you love it?
7852       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7853         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7854           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7855         10.[012]*)
7856           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7857         10.*)
7858           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7859       esac
7860     ;;
7861   esac
7862     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7863       _lt_dar_single_mod='$single_module'
7864     fi
7865     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7866       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7867     else
7868       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7869     fi
7870     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7871       _lt_dsymutil='~$DSYMUTIL $lib || :'
7872     else
7873       _lt_dsymutil=
7874     fi
7875     ;;
7876   esac
7877
7878 for ac_header in dlfcn.h
7879 do :
7880   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7881 "
7882 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7883   cat >>confdefs.h <<_ACEOF
7884 #define HAVE_DLFCN_H 1
7885 _ACEOF
7886
7887 fi
7888
7889 done
7890
7891
7892
7893
7894
7895 # Set options
7896 enable_win32_dll=yes
7897
7898 case $host in
7899 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7900   if test -n "$ac_tool_prefix"; then
7901   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7902 set dummy ${ac_tool_prefix}as; ac_word=$2
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7904 $as_echo_n "checking for $ac_word... " >&6; }
7905 if ${ac_cv_prog_AS+:} false; then :
7906   $as_echo_n "(cached) " >&6
7907 else
7908   if test -n "$AS"; then
7909   ac_cv_prog_AS="$AS" # Let the user override the test.
7910 else
7911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7912 for as_dir in $PATH
7913 do
7914   IFS=$as_save_IFS
7915   test -z "$as_dir" && as_dir=.
7916     for ac_exec_ext in '' $ac_executable_extensions; do
7917   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7918     ac_cv_prog_AS="${ac_tool_prefix}as"
7919     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7920     break 2
7921   fi
7922 done
7923   done
7924 IFS=$as_save_IFS
7925
7926 fi
7927 fi
7928 AS=$ac_cv_prog_AS
7929 if test -n "$AS"; then
7930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7931 $as_echo "$AS" >&6; }
7932 else
7933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7934 $as_echo "no" >&6; }
7935 fi
7936
7937
7938 fi
7939 if test -z "$ac_cv_prog_AS"; then
7940   ac_ct_AS=$AS
7941   # Extract the first word of "as", so it can be a program name with args.
7942 set dummy as; ac_word=$2
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7944 $as_echo_n "checking for $ac_word... " >&6; }
7945 if ${ac_cv_prog_ac_ct_AS+:} false; then :
7946   $as_echo_n "(cached) " >&6
7947 else
7948   if test -n "$ac_ct_AS"; then
7949   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7950 else
7951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7952 for as_dir in $PATH
7953 do
7954   IFS=$as_save_IFS
7955   test -z "$as_dir" && as_dir=.
7956     for ac_exec_ext in '' $ac_executable_extensions; do
7957   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7958     ac_cv_prog_ac_ct_AS="as"
7959     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7960     break 2
7961   fi
7962 done
7963   done
7964 IFS=$as_save_IFS
7965
7966 fi
7967 fi
7968 ac_ct_AS=$ac_cv_prog_ac_ct_AS
7969 if test -n "$ac_ct_AS"; then
7970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7971 $as_echo "$ac_ct_AS" >&6; }
7972 else
7973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7974 $as_echo "no" >&6; }
7975 fi
7976
7977   if test "x$ac_ct_AS" = x; then
7978     AS="false"
7979   else
7980     case $cross_compiling:$ac_tool_warned in
7981 yes:)
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7983 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7984 ac_tool_warned=yes ;;
7985 esac
7986     AS=$ac_ct_AS
7987   fi
7988 else
7989   AS="$ac_cv_prog_AS"
7990 fi
7991
7992   if test -n "$ac_tool_prefix"; then
7993   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7994 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7996 $as_echo_n "checking for $ac_word... " >&6; }
7997 if ${ac_cv_prog_DLLTOOL+:} false; then :
7998   $as_echo_n "(cached) " >&6
7999 else
8000   if test -n "$DLLTOOL"; then
8001   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8002 else
8003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8004 for as_dir in $PATH
8005 do
8006   IFS=$as_save_IFS
8007   test -z "$as_dir" && as_dir=.
8008     for ac_exec_ext in '' $ac_executable_extensions; do
8009   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8010     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8011     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8012     break 2
8013   fi
8014 done
8015   done
8016 IFS=$as_save_IFS
8017
8018 fi
8019 fi
8020 DLLTOOL=$ac_cv_prog_DLLTOOL
8021 if test -n "$DLLTOOL"; then
8022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8023 $as_echo "$DLLTOOL" >&6; }
8024 else
8025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8026 $as_echo "no" >&6; }
8027 fi
8028
8029
8030 fi
8031 if test -z "$ac_cv_prog_DLLTOOL"; then
8032   ac_ct_DLLTOOL=$DLLTOOL
8033   # Extract the first word of "dlltool", so it can be a program name with args.
8034 set dummy dlltool; ac_word=$2
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8036 $as_echo_n "checking for $ac_word... " >&6; }
8037 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8038   $as_echo_n "(cached) " >&6
8039 else
8040   if test -n "$ac_ct_DLLTOOL"; then
8041   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8042 else
8043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8044 for as_dir in $PATH
8045 do
8046   IFS=$as_save_IFS
8047   test -z "$as_dir" && as_dir=.
8048     for ac_exec_ext in '' $ac_executable_extensions; do
8049   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8050     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8051     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8052     break 2
8053   fi
8054 done
8055   done
8056 IFS=$as_save_IFS
8057
8058 fi
8059 fi
8060 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8061 if test -n "$ac_ct_DLLTOOL"; then
8062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8063 $as_echo "$ac_ct_DLLTOOL" >&6; }
8064 else
8065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8066 $as_echo "no" >&6; }
8067 fi
8068
8069   if test "x$ac_ct_DLLTOOL" = x; then
8070     DLLTOOL="false"
8071   else
8072     case $cross_compiling:$ac_tool_warned in
8073 yes:)
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8075 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8076 ac_tool_warned=yes ;;
8077 esac
8078     DLLTOOL=$ac_ct_DLLTOOL
8079   fi
8080 else
8081   DLLTOOL="$ac_cv_prog_DLLTOOL"
8082 fi
8083
8084   if test -n "$ac_tool_prefix"; then
8085   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8086 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8088 $as_echo_n "checking for $ac_word... " >&6; }
8089 if ${ac_cv_prog_OBJDUMP+:} false; then :
8090   $as_echo_n "(cached) " >&6
8091 else
8092   if test -n "$OBJDUMP"; then
8093   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8094 else
8095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8096 for as_dir in $PATH
8097 do
8098   IFS=$as_save_IFS
8099   test -z "$as_dir" && as_dir=.
8100     for ac_exec_ext in '' $ac_executable_extensions; do
8101   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8102     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8103     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8104     break 2
8105   fi
8106 done
8107   done
8108 IFS=$as_save_IFS
8109
8110 fi
8111 fi
8112 OBJDUMP=$ac_cv_prog_OBJDUMP
8113 if test -n "$OBJDUMP"; then
8114   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8115 $as_echo "$OBJDUMP" >&6; }
8116 else
8117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8118 $as_echo "no" >&6; }
8119 fi
8120
8121
8122 fi
8123 if test -z "$ac_cv_prog_OBJDUMP"; then
8124   ac_ct_OBJDUMP=$OBJDUMP
8125   # Extract the first word of "objdump", so it can be a program name with args.
8126 set dummy objdump; ac_word=$2
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8128 $as_echo_n "checking for $ac_word... " >&6; }
8129 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8130   $as_echo_n "(cached) " >&6
8131 else
8132   if test -n "$ac_ct_OBJDUMP"; then
8133   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8134 else
8135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8136 for as_dir in $PATH
8137 do
8138   IFS=$as_save_IFS
8139   test -z "$as_dir" && as_dir=.
8140     for ac_exec_ext in '' $ac_executable_extensions; do
8141   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8142     ac_cv_prog_ac_ct_OBJDUMP="objdump"
8143     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8144     break 2
8145   fi
8146 done
8147   done
8148 IFS=$as_save_IFS
8149
8150 fi
8151 fi
8152 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8153 if test -n "$ac_ct_OBJDUMP"; then
8154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8155 $as_echo "$ac_ct_OBJDUMP" >&6; }
8156 else
8157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8158 $as_echo "no" >&6; }
8159 fi
8160
8161   if test "x$ac_ct_OBJDUMP" = x; then
8162     OBJDUMP="false"
8163   else
8164     case $cross_compiling:$ac_tool_warned in
8165 yes:)
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8167 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8168 ac_tool_warned=yes ;;
8169 esac
8170     OBJDUMP=$ac_ct_OBJDUMP
8171   fi
8172 else
8173   OBJDUMP="$ac_cv_prog_OBJDUMP"
8174 fi
8175
8176   ;;
8177 esac
8178
8179 test -z "$AS" && AS=as
8180
8181
8182
8183
8184
8185 test -z "$DLLTOOL" && DLLTOOL=dlltool
8186
8187
8188
8189
8190
8191 test -z "$OBJDUMP" && OBJDUMP=objdump
8192
8193
8194
8195
8196
8197
8198
8199         enable_dlopen=no
8200
8201
8202
8203             # Check whether --enable-shared was given.
8204 if test "${enable_shared+set}" = set; then :
8205   enableval=$enable_shared; p=${PACKAGE-default}
8206     case $enableval in
8207     yes) enable_shared=yes ;;
8208     no) enable_shared=no ;;
8209     *)
8210       enable_shared=no
8211       # Look at the argument we got.  We use all the common list separators.
8212       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8213       for pkg in $enableval; do
8214         IFS="$lt_save_ifs"
8215         if test "X$pkg" = "X$p"; then
8216           enable_shared=yes
8217         fi
8218       done
8219       IFS="$lt_save_ifs"
8220       ;;
8221     esac
8222 else
8223   enable_shared=yes
8224 fi
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234   # Check whether --enable-static was given.
8235 if test "${enable_static+set}" = set; then :
8236   enableval=$enable_static; p=${PACKAGE-default}
8237     case $enableval in
8238     yes) enable_static=yes ;;
8239     no) enable_static=no ;;
8240     *)
8241      enable_static=no
8242       # Look at the argument we got.  We use all the common list separators.
8243       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8244       for pkg in $enableval; do
8245         IFS="$lt_save_ifs"
8246         if test "X$pkg" = "X$p"; then
8247           enable_static=yes
8248         fi
8249       done
8250       IFS="$lt_save_ifs"
8251       ;;
8252     esac
8253 else
8254   enable_static=yes
8255 fi
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266 # Check whether --with-pic was given.
8267 if test "${with_pic+set}" = set; then :
8268   withval=$with_pic; lt_p=${PACKAGE-default}
8269     case $withval in
8270     yes|no) pic_mode=$withval ;;
8271     *)
8272       pic_mode=default
8273       # Look at the argument we got.  We use all the common list separators.
8274       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8275       for lt_pkg in $withval; do
8276         IFS="$lt_save_ifs"
8277         if test "X$lt_pkg" = "X$lt_p"; then
8278           pic_mode=yes
8279         fi
8280       done
8281       IFS="$lt_save_ifs"
8282       ;;
8283     esac
8284 else
8285   pic_mode=default
8286 fi
8287
8288
8289 test -z "$pic_mode" && pic_mode=default
8290
8291
8292
8293
8294
8295
8296
8297   # Check whether --enable-fast-install was given.
8298 if test "${enable_fast_install+set}" = set; then :
8299   enableval=$enable_fast_install; p=${PACKAGE-default}
8300     case $enableval in
8301     yes) enable_fast_install=yes ;;
8302     no) enable_fast_install=no ;;
8303     *)
8304       enable_fast_install=no
8305       # Look at the argument we got.  We use all the common list separators.
8306       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8307       for pkg in $enableval; do
8308         IFS="$lt_save_ifs"
8309         if test "X$pkg" = "X$p"; then
8310           enable_fast_install=yes
8311         fi
8312       done
8313       IFS="$lt_save_ifs"
8314       ;;
8315     esac
8316 else
8317   enable_fast_install=yes
8318 fi
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330 # This can be used to rebuild libtool when needed
8331 LIBTOOL_DEPS="$ltmain"
8332
8333 # Always use our own libtool.
8334 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365 test -z "$LN_S" && LN_S="ln -s"
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380 if test -n "${ZSH_VERSION+set}" ; then
8381    setopt NO_GLOB_SUBST
8382 fi
8383
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8385 $as_echo_n "checking for objdir... " >&6; }
8386 if ${lt_cv_objdir+:} false; then :
8387   $as_echo_n "(cached) " >&6
8388 else
8389   rm -f .libs 2>/dev/null
8390 mkdir .libs 2>/dev/null
8391 if test -d .libs; then
8392   lt_cv_objdir=.libs
8393 else
8394   # MS-DOS does not allow filenames that begin with a dot.
8395   lt_cv_objdir=_libs
8396 fi
8397 rmdir .libs 2>/dev/null
8398 fi
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8400 $as_echo "$lt_cv_objdir" >&6; }
8401 objdir=$lt_cv_objdir
8402
8403
8404
8405
8406
8407 cat >>confdefs.h <<_ACEOF
8408 #define LT_OBJDIR "$lt_cv_objdir/"
8409 _ACEOF
8410
8411
8412
8413
8414 case $host_os in
8415 aix3*)
8416   # AIX sometimes has problems with the GCC collect2 program.  For some
8417   # reason, if we set the COLLECT_NAMES environment variable, the problems
8418   # vanish in a puff of smoke.
8419   if test "X${COLLECT_NAMES+set}" != Xset; then
8420     COLLECT_NAMES=
8421     export COLLECT_NAMES
8422   fi
8423   ;;
8424 esac
8425
8426 # Global variables:
8427 ofile=libtool
8428 can_build_shared=yes
8429
8430 # All known linkers require a `.a' archive for static linking (except MSVC,
8431 # which needs '.lib').
8432 libext=a
8433
8434 with_gnu_ld="$lt_cv_prog_gnu_ld"
8435
8436 old_CC="$CC"
8437 old_CFLAGS="$CFLAGS"
8438
8439 # Set sane defaults for various variables
8440 test -z "$CC" && CC=cc
8441 test -z "$LTCC" && LTCC=$CC
8442 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8443 test -z "$LD" && LD=ld
8444 test -z "$ac_objext" && ac_objext=o
8445
8446 for cc_temp in $compiler""; do
8447   case $cc_temp in
8448     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8449     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8450     \-*) ;;
8451     *) break;;
8452   esac
8453 done
8454 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8455
8456
8457 # Only perform the check for file, if the check method requires it
8458 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8459 case $deplibs_check_method in
8460 file_magic*)
8461   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8462     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8463 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8464 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8465   $as_echo_n "(cached) " >&6
8466 else
8467   case $MAGIC_CMD in
8468 [\\/*] |  ?:[\\/]*)
8469   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8470   ;;
8471 *)
8472   lt_save_MAGIC_CMD="$MAGIC_CMD"
8473   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8474   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8475   for ac_dir in $ac_dummy; do
8476     IFS="$lt_save_ifs"
8477     test -z "$ac_dir" && ac_dir=.
8478     if test -f $ac_dir/${ac_tool_prefix}file; then
8479       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8480       if test -n "$file_magic_test_file"; then
8481         case $deplibs_check_method in
8482         "file_magic "*)
8483           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8484           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8485           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8486             $EGREP "$file_magic_regex" > /dev/null; then
8487             :
8488           else
8489             cat <<_LT_EOF 1>&2
8490
8491 *** Warning: the command libtool uses to detect shared libraries,
8492 *** $file_magic_cmd, produces output that libtool cannot recognize.
8493 *** The result is that libtool may fail to recognize shared libraries
8494 *** as such.  This will affect the creation of libtool libraries that
8495 *** depend on shared libraries, but programs linked with such libtool
8496 *** libraries will work regardless of this problem.  Nevertheless, you
8497 *** may want to report the problem to your system manager and/or to
8498 *** bug-libtool@gnu.org
8499
8500 _LT_EOF
8501           fi ;;
8502         esac
8503       fi
8504       break
8505     fi
8506   done
8507   IFS="$lt_save_ifs"
8508   MAGIC_CMD="$lt_save_MAGIC_CMD"
8509   ;;
8510 esac
8511 fi
8512
8513 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8514 if test -n "$MAGIC_CMD"; then
8515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8516 $as_echo "$MAGIC_CMD" >&6; }
8517 else
8518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8519 $as_echo "no" >&6; }
8520 fi
8521
8522
8523
8524
8525
8526 if test -z "$lt_cv_path_MAGIC_CMD"; then
8527   if test -n "$ac_tool_prefix"; then
8528     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8529 $as_echo_n "checking for file... " >&6; }
8530 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8531   $as_echo_n "(cached) " >&6
8532 else
8533   case $MAGIC_CMD in
8534 [\\/*] |  ?:[\\/]*)
8535   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8536   ;;
8537 *)
8538   lt_save_MAGIC_CMD="$MAGIC_CMD"
8539   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8540   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8541   for ac_dir in $ac_dummy; do
8542     IFS="$lt_save_ifs"
8543     test -z "$ac_dir" && ac_dir=.
8544     if test -f $ac_dir/file; then
8545       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8546       if test -n "$file_magic_test_file"; then
8547         case $deplibs_check_method in
8548         "file_magic "*)
8549           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8550           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8551           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8552             $EGREP "$file_magic_regex" > /dev/null; then
8553             :
8554           else
8555             cat <<_LT_EOF 1>&2
8556
8557 *** Warning: the command libtool uses to detect shared libraries,
8558 *** $file_magic_cmd, produces output that libtool cannot recognize.
8559 *** The result is that libtool may fail to recognize shared libraries
8560 *** as such.  This will affect the creation of libtool libraries that
8561 *** depend on shared libraries, but programs linked with such libtool
8562 *** libraries will work regardless of this problem.  Nevertheless, you
8563 *** may want to report the problem to your system manager and/or to
8564 *** bug-libtool@gnu.org
8565
8566 _LT_EOF
8567           fi ;;
8568         esac
8569       fi
8570       break
8571     fi
8572   done
8573   IFS="$lt_save_ifs"
8574   MAGIC_CMD="$lt_save_MAGIC_CMD"
8575   ;;
8576 esac
8577 fi
8578
8579 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8580 if test -n "$MAGIC_CMD"; then
8581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8582 $as_echo "$MAGIC_CMD" >&6; }
8583 else
8584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8585 $as_echo "no" >&6; }
8586 fi
8587
8588
8589   else
8590     MAGIC_CMD=:
8591   fi
8592 fi
8593
8594   fi
8595   ;;
8596 esac
8597
8598 # Use C for the default configuration in the libtool script
8599
8600 lt_save_CC="$CC"
8601 ac_ext=c
8602 ac_cpp='$CPP $CPPFLAGS'
8603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8606
8607
8608 # Source file extension for C test sources.
8609 ac_ext=c
8610
8611 # Object file extension for compiled C test sources.
8612 objext=o
8613 objext=$objext
8614
8615 # Code to be used in simple compile tests
8616 lt_simple_compile_test_code="int some_variable = 0;"
8617
8618 # Code to be used in simple link tests
8619 lt_simple_link_test_code='int main(){return(0);}'
8620
8621
8622
8623
8624
8625
8626
8627 # If no C compiler was specified, use CC.
8628 LTCC=${LTCC-"$CC"}
8629
8630 # If no C compiler flags were specified, use CFLAGS.
8631 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8632
8633 # Allow CC to be a program name with arguments.
8634 compiler=$CC
8635
8636 # Save the default compiler, since it gets overwritten when the other
8637 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8638 compiler_DEFAULT=$CC
8639
8640 # save warnings/boilerplate of simple test code
8641 ac_outfile=conftest.$ac_objext
8642 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8643 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8644 _lt_compiler_boilerplate=`cat conftest.err`
8645 $RM conftest*
8646
8647 ac_outfile=conftest.$ac_objext
8648 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8649 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8650 _lt_linker_boilerplate=`cat conftest.err`
8651 $RM -r conftest*
8652
8653
8654 ## CAVEAT EMPTOR:
8655 ## There is no encapsulation within the following macros, do not change
8656 ## the running order or otherwise move them around unless you know exactly
8657 ## what you are doing...
8658 if test -n "$compiler"; then
8659
8660 lt_prog_compiler_no_builtin_flag=
8661
8662 if test "$GCC" = yes; then
8663   case $cc_basename in
8664   nvcc*)
8665     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8666   *)
8667     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8668   esac
8669
8670   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8671 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8672 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8673   $as_echo_n "(cached) " >&6
8674 else
8675   lt_cv_prog_compiler_rtti_exceptions=no
8676    ac_outfile=conftest.$ac_objext
8677    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8678    lt_compiler_flag="-fno-rtti -fno-exceptions"
8679    # Insert the option either (1) after the last *FLAGS variable, or
8680    # (2) before a word containing "conftest.", or (3) at the end.
8681    # Note that $ac_compile itself does not contain backslashes and begins
8682    # with a dollar sign (not a hyphen), so the echo should work correctly.
8683    # The option is referenced via a variable to avoid confusing sed.
8684    lt_compile=`echo "$ac_compile" | $SED \
8685    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8686    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8687    -e 's:$: $lt_compiler_flag:'`
8688    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8689    (eval "$lt_compile" 2>conftest.err)
8690    ac_status=$?
8691    cat conftest.err >&5
8692    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8693    if (exit $ac_status) && test -s "$ac_outfile"; then
8694      # The compiler can only warn and ignore the option if not recognized
8695      # So say no if there are warnings other than the usual output.
8696      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8697      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8698      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8699        lt_cv_prog_compiler_rtti_exceptions=yes
8700      fi
8701    fi
8702    $RM conftest*
8703
8704 fi
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8706 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8707
8708 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8709     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8710 else
8711     :
8712 fi
8713
8714 fi
8715
8716
8717
8718
8719
8720
8721   lt_prog_compiler_wl=
8722 lt_prog_compiler_pic=
8723 lt_prog_compiler_static=
8724
8725
8726   if test "$GCC" = yes; then
8727     lt_prog_compiler_wl='-Wl,'
8728     lt_prog_compiler_static='-static'
8729
8730     case $host_os in
8731       aix*)
8732       # All AIX code is PIC.
8733       if test "$host_cpu" = ia64; then
8734         # AIX 5 now supports IA64 processor
8735         lt_prog_compiler_static='-Bstatic'
8736       fi
8737       ;;
8738
8739     amigaos*)
8740       case $host_cpu in
8741       powerpc)
8742             # see comment about AmigaOS4 .so support
8743             lt_prog_compiler_pic='-fPIC'
8744         ;;
8745       m68k)
8746             # FIXME: we need at least 68020 code to build shared libraries, but
8747             # adding the `-m68020' flag to GCC prevents building anything better,
8748             # like `-m68040'.
8749             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8750         ;;
8751       esac
8752       ;;
8753
8754     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8755       # PIC is the default for these OSes.
8756       ;;
8757
8758     mingw* | cygwin* | pw32* | os2* | cegcc*)
8759       # This hack is so that the source file can tell whether it is being
8760       # built for inclusion in a dll (and should export symbols for example).
8761       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8762       # (--disable-auto-import) libraries
8763       lt_prog_compiler_pic='-DDLL_EXPORT'
8764       ;;
8765
8766     darwin* | rhapsody*)
8767       # PIC is the default on this platform
8768       # Common symbols not allowed in MH_DYLIB files
8769       lt_prog_compiler_pic='-fno-common'
8770       ;;
8771
8772     haiku*)
8773       # PIC is the default for Haiku.
8774       # The "-static" flag exists, but is broken.
8775       lt_prog_compiler_static=
8776       ;;
8777
8778     hpux*)
8779       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8780       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8781       # sets the default TLS model and affects inlining.
8782       case $host_cpu in
8783       hppa*64*)
8784         # +Z the default
8785         ;;
8786       *)
8787         lt_prog_compiler_pic='-fPIC'
8788         ;;
8789       esac
8790       ;;
8791
8792     interix[3-9]*)
8793       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8794       # Instead, we relocate shared libraries at runtime.
8795       ;;
8796
8797     msdosdjgpp*)
8798       # Just because we use GCC doesn't mean we suddenly get shared libraries
8799       # on systems that don't support them.
8800       lt_prog_compiler_can_build_shared=no
8801       enable_shared=no
8802       ;;
8803
8804     *nto* | *qnx*)
8805       # QNX uses GNU C++, but need to define -shared option too, otherwise
8806       # it will coredump.
8807       lt_prog_compiler_pic='-fPIC -shared'
8808       ;;
8809
8810     sysv4*MP*)
8811       if test -d /usr/nec; then
8812         lt_prog_compiler_pic=-Kconform_pic
8813       fi
8814       ;;
8815
8816     *)
8817       lt_prog_compiler_pic='-fPIC'
8818       ;;
8819     esac
8820
8821     case $cc_basename in
8822     nvcc*) # Cuda Compiler Driver 2.2
8823       lt_prog_compiler_wl='-Xlinker '
8824       if test -n "$lt_prog_compiler_pic"; then
8825         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8826       fi
8827       ;;
8828     esac
8829   else
8830     # PORTME Check for flag to pass linker flags through the system compiler.
8831     case $host_os in
8832     aix*)
8833       lt_prog_compiler_wl='-Wl,'
8834       if test "$host_cpu" = ia64; then
8835         # AIX 5 now supports IA64 processor
8836         lt_prog_compiler_static='-Bstatic'
8837       else
8838         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8839       fi
8840       ;;
8841
8842     mingw* | cygwin* | pw32* | os2* | cegcc*)
8843       # This hack is so that the source file can tell whether it is being
8844       # built for inclusion in a dll (and should export symbols for example).
8845       lt_prog_compiler_pic='-DDLL_EXPORT'
8846       ;;
8847
8848     hpux9* | hpux10* | hpux11*)
8849       lt_prog_compiler_wl='-Wl,'
8850       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8851       # not for PA HP-UX.
8852       case $host_cpu in
8853       hppa*64*|ia64*)
8854         # +Z the default
8855         ;;
8856       *)
8857         lt_prog_compiler_pic='+Z'
8858         ;;
8859       esac
8860       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8861       lt_prog_compiler_static='${wl}-a ${wl}archive'
8862       ;;
8863
8864     irix5* | irix6* | nonstopux*)
8865       lt_prog_compiler_wl='-Wl,'
8866       # PIC (with -KPIC) is the default.
8867       lt_prog_compiler_static='-non_shared'
8868       ;;
8869
8870     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8871       case $cc_basename in
8872       # old Intel for x86_64 which still supported -KPIC.
8873       ecc*)
8874         lt_prog_compiler_wl='-Wl,'
8875         lt_prog_compiler_pic='-KPIC'
8876         lt_prog_compiler_static='-static'
8877         ;;
8878       # icc used to be incompatible with GCC.
8879       # ICC 10 doesn't accept -KPIC any more.
8880       icc* | ifort*)
8881         lt_prog_compiler_wl='-Wl,'
8882         lt_prog_compiler_pic='-fPIC'
8883         lt_prog_compiler_static='-static'
8884         ;;
8885       # Lahey Fortran 8.1.
8886       lf95*)
8887         lt_prog_compiler_wl='-Wl,'
8888         lt_prog_compiler_pic='--shared'
8889         lt_prog_compiler_static='--static'
8890         ;;
8891       nagfor*)
8892         # NAG Fortran compiler
8893         lt_prog_compiler_wl='-Wl,-Wl,,'
8894         lt_prog_compiler_pic='-PIC'
8895         lt_prog_compiler_static='-Bstatic'
8896         ;;
8897       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8898         # Portland Group compilers (*not* the Pentium gcc compiler,
8899         # which looks to be a dead project)
8900         lt_prog_compiler_wl='-Wl,'
8901         lt_prog_compiler_pic='-fpic'
8902         lt_prog_compiler_static='-Bstatic'
8903         ;;
8904       ccc*)
8905         lt_prog_compiler_wl='-Wl,'
8906         # All Alpha code is PIC.
8907         lt_prog_compiler_static='-non_shared'
8908         ;;
8909       xl* | bgxl* | bgf* | mpixl*)
8910         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8911         lt_prog_compiler_wl='-Wl,'
8912         lt_prog_compiler_pic='-qpic'
8913         lt_prog_compiler_static='-qstaticlink'
8914         ;;
8915       *)
8916         case `$CC -V 2>&1 | sed 5q` in
8917         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8918           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8919           lt_prog_compiler_pic='-KPIC'
8920           lt_prog_compiler_static='-Bstatic'
8921           lt_prog_compiler_wl=''
8922           ;;
8923         *Sun\ F* | *Sun*Fortran*)
8924           lt_prog_compiler_pic='-KPIC'
8925           lt_prog_compiler_static='-Bstatic'
8926           lt_prog_compiler_wl='-Qoption ld '
8927           ;;
8928         *Sun\ C*)
8929           # Sun C 5.9
8930           lt_prog_compiler_pic='-KPIC'
8931           lt_prog_compiler_static='-Bstatic'
8932           lt_prog_compiler_wl='-Wl,'
8933           ;;
8934         *Intel*\ [CF]*Compiler*)
8935           lt_prog_compiler_wl='-Wl,'
8936           lt_prog_compiler_pic='-fPIC'
8937           lt_prog_compiler_static='-static'
8938           ;;
8939         *Portland\ Group*)
8940           lt_prog_compiler_wl='-Wl,'
8941           lt_prog_compiler_pic='-fpic'
8942           lt_prog_compiler_static='-Bstatic'
8943           ;;
8944         esac
8945         ;;
8946       esac
8947       ;;
8948
8949     newsos6)
8950       lt_prog_compiler_pic='-KPIC'
8951       lt_prog_compiler_static='-Bstatic'
8952       ;;
8953
8954     *nto* | *qnx*)
8955       # QNX uses GNU C++, but need to define -shared option too, otherwise
8956       # it will coredump.
8957       lt_prog_compiler_pic='-fPIC -shared'
8958       ;;
8959
8960     osf3* | osf4* | osf5*)
8961       lt_prog_compiler_wl='-Wl,'
8962       # All OSF/1 code is PIC.
8963       lt_prog_compiler_static='-non_shared'
8964       ;;
8965
8966     rdos*)
8967       lt_prog_compiler_static='-non_shared'
8968       ;;
8969
8970     solaris*)
8971       lt_prog_compiler_pic='-KPIC'
8972       lt_prog_compiler_static='-Bstatic'
8973       case $cc_basename in
8974       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8975         lt_prog_compiler_wl='-Qoption ld ';;
8976       *)
8977         lt_prog_compiler_wl='-Wl,';;
8978       esac
8979       ;;
8980
8981     sunos4*)
8982       lt_prog_compiler_wl='-Qoption ld '
8983       lt_prog_compiler_pic='-PIC'
8984       lt_prog_compiler_static='-Bstatic'
8985       ;;
8986
8987     sysv4 | sysv4.2uw2* | sysv4.3*)
8988       lt_prog_compiler_wl='-Wl,'
8989       lt_prog_compiler_pic='-KPIC'
8990       lt_prog_compiler_static='-Bstatic'
8991       ;;
8992
8993     sysv4*MP*)
8994       if test -d /usr/nec ;then
8995         lt_prog_compiler_pic='-Kconform_pic'
8996         lt_prog_compiler_static='-Bstatic'
8997       fi
8998       ;;
8999
9000     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9001       lt_prog_compiler_wl='-Wl,'
9002       lt_prog_compiler_pic='-KPIC'
9003       lt_prog_compiler_static='-Bstatic'
9004       ;;
9005
9006     unicos*)
9007       lt_prog_compiler_wl='-Wl,'
9008       lt_prog_compiler_can_build_shared=no
9009       ;;
9010
9011     uts4*)
9012       lt_prog_compiler_pic='-pic'
9013       lt_prog_compiler_static='-Bstatic'
9014       ;;
9015
9016     *)
9017       lt_prog_compiler_can_build_shared=no
9018       ;;
9019     esac
9020   fi
9021
9022 case $host_os in
9023   # For platforms which do not support PIC, -DPIC is meaningless:
9024   *djgpp*)
9025     lt_prog_compiler_pic=
9026     ;;
9027   *)
9028     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9029     ;;
9030 esac
9031
9032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9033 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9034 if ${lt_cv_prog_compiler_pic+:} false; then :
9035   $as_echo_n "(cached) " >&6
9036 else
9037   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9038 fi
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9040 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9041 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9042
9043 #
9044 # Check to make sure the PIC flag actually works.
9045 #
9046 if test -n "$lt_prog_compiler_pic"; then
9047   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9048 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9049 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9050   $as_echo_n "(cached) " >&6
9051 else
9052   lt_cv_prog_compiler_pic_works=no
9053    ac_outfile=conftest.$ac_objext
9054    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9055    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9056    # Insert the option either (1) after the last *FLAGS variable, or
9057    # (2) before a word containing "conftest.", or (3) at the end.
9058    # Note that $ac_compile itself does not contain backslashes and begins
9059    # with a dollar sign (not a hyphen), so the echo should work correctly.
9060    # The option is referenced via a variable to avoid confusing sed.
9061    lt_compile=`echo "$ac_compile" | $SED \
9062    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9063    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9064    -e 's:$: $lt_compiler_flag:'`
9065    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9066    (eval "$lt_compile" 2>conftest.err)
9067    ac_status=$?
9068    cat conftest.err >&5
9069    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9070    if (exit $ac_status) && test -s "$ac_outfile"; then
9071      # The compiler can only warn and ignore the option if not recognized
9072      # So say no if there are warnings other than the usual output.
9073      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9074      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9075      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9076        lt_cv_prog_compiler_pic_works=yes
9077      fi
9078    fi
9079    $RM conftest*
9080
9081 fi
9082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9083 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9084
9085 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9086     case $lt_prog_compiler_pic in
9087      "" | " "*) ;;
9088      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9089      esac
9090 else
9091     lt_prog_compiler_pic=
9092      lt_prog_compiler_can_build_shared=no
9093 fi
9094
9095 fi
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107 #
9108 # Check to make sure the static flag actually works.
9109 #
9110 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9112 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9113 if ${lt_cv_prog_compiler_static_works+:} false; then :
9114   $as_echo_n "(cached) " >&6
9115 else
9116   lt_cv_prog_compiler_static_works=no
9117    save_LDFLAGS="$LDFLAGS"
9118    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9119    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9120    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9121      # The linker can only warn and ignore the option if not recognized
9122      # So say no if there are warnings
9123      if test -s conftest.err; then
9124        # Append any errors to the config.log.
9125        cat conftest.err 1>&5
9126        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9127        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9128        if diff conftest.exp conftest.er2 >/dev/null; then
9129          lt_cv_prog_compiler_static_works=yes
9130        fi
9131      else
9132        lt_cv_prog_compiler_static_works=yes
9133      fi
9134    fi
9135    $RM -r conftest*
9136    LDFLAGS="$save_LDFLAGS"
9137
9138 fi
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9140 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9141
9142 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9143     :
9144 else
9145     lt_prog_compiler_static=
9146 fi
9147
9148
9149
9150
9151
9152
9153
9154   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9155 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9156 if ${lt_cv_prog_compiler_c_o+:} false; then :
9157   $as_echo_n "(cached) " >&6
9158 else
9159   lt_cv_prog_compiler_c_o=no
9160    $RM -r conftest 2>/dev/null
9161    mkdir conftest
9162    cd conftest
9163    mkdir out
9164    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9165
9166    lt_compiler_flag="-o out/conftest2.$ac_objext"
9167    # Insert the option either (1) after the last *FLAGS variable, or
9168    # (2) before a word containing "conftest.", or (3) at the end.
9169    # Note that $ac_compile itself does not contain backslashes and begins
9170    # with a dollar sign (not a hyphen), so the echo should work correctly.
9171    lt_compile=`echo "$ac_compile" | $SED \
9172    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9173    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9174    -e 's:$: $lt_compiler_flag:'`
9175    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9176    (eval "$lt_compile" 2>out/conftest.err)
9177    ac_status=$?
9178    cat out/conftest.err >&5
9179    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9180    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9181    then
9182      # The compiler can only warn and ignore the option if not recognized
9183      # So say no if there are warnings
9184      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9185      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9186      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9187        lt_cv_prog_compiler_c_o=yes
9188      fi
9189    fi
9190    chmod u+w . 2>&5
9191    $RM conftest*
9192    # SGI C++ compiler will create directory out/ii_files/ for
9193    # template instantiation
9194    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9195    $RM out/* && rmdir out
9196    cd ..
9197    $RM -r conftest
9198    $RM conftest*
9199
9200 fi
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9202 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9203
9204
9205
9206
9207
9208
9209   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9210 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9211 if ${lt_cv_prog_compiler_c_o+:} false; then :
9212   $as_echo_n "(cached) " >&6
9213 else
9214   lt_cv_prog_compiler_c_o=no
9215    $RM -r conftest 2>/dev/null
9216    mkdir conftest
9217    cd conftest
9218    mkdir out
9219    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9220
9221    lt_compiler_flag="-o out/conftest2.$ac_objext"
9222    # Insert the option either (1) after the last *FLAGS variable, or
9223    # (2) before a word containing "conftest.", or (3) at the end.
9224    # Note that $ac_compile itself does not contain backslashes and begins
9225    # with a dollar sign (not a hyphen), so the echo should work correctly.
9226    lt_compile=`echo "$ac_compile" | $SED \
9227    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9228    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9229    -e 's:$: $lt_compiler_flag:'`
9230    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9231    (eval "$lt_compile" 2>out/conftest.err)
9232    ac_status=$?
9233    cat out/conftest.err >&5
9234    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9235    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9236    then
9237      # The compiler can only warn and ignore the option if not recognized
9238      # So say no if there are warnings
9239      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9240      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9241      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9242        lt_cv_prog_compiler_c_o=yes
9243      fi
9244    fi
9245    chmod u+w . 2>&5
9246    $RM conftest*
9247    # SGI C++ compiler will create directory out/ii_files/ for
9248    # template instantiation
9249    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9250    $RM out/* && rmdir out
9251    cd ..
9252    $RM -r conftest
9253    $RM conftest*
9254
9255 fi
9256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9257 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9258
9259
9260
9261
9262 hard_links="nottested"
9263 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9264   # do not overwrite the value of need_locks provided by the user
9265   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9266 $as_echo_n "checking if we can lock with hard links... " >&6; }
9267   hard_links=yes
9268   $RM conftest*
9269   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9270   touch conftest.a
9271   ln conftest.a conftest.b 2>&5 || hard_links=no
9272   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9274 $as_echo "$hard_links" >&6; }
9275   if test "$hard_links" = no; then
9276     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9277 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9278     need_locks=warn
9279   fi
9280 else
9281   need_locks=no
9282 fi
9283
9284
9285
9286
9287
9288
9289   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9290 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9291
9292   runpath_var=
9293   allow_undefined_flag=
9294   always_export_symbols=no
9295   archive_cmds=
9296   archive_expsym_cmds=
9297   compiler_needs_object=no
9298   enable_shared_with_static_runtimes=no
9299   export_dynamic_flag_spec=
9300   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9301   hardcode_automatic=no
9302   hardcode_direct=no
9303   hardcode_direct_absolute=no
9304   hardcode_libdir_flag_spec=
9305   hardcode_libdir_separator=
9306   hardcode_minus_L=no
9307   hardcode_shlibpath_var=unsupported
9308   inherit_rpath=no
9309   link_all_deplibs=unknown
9310   module_cmds=
9311   module_expsym_cmds=
9312   old_archive_from_new_cmds=
9313   old_archive_from_expsyms_cmds=
9314   thread_safe_flag_spec=
9315   whole_archive_flag_spec=
9316   # include_expsyms should be a list of space-separated symbols to be *always*
9317   # included in the symbol list
9318   include_expsyms=
9319   # exclude_expsyms can be an extended regexp of symbols to exclude
9320   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9321   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9322   # as well as any symbol that contains `d'.
9323   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9324   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9325   # platforms (ab)use it in PIC code, but their linkers get confused if
9326   # the symbol is explicitly referenced.  Since portable code cannot
9327   # rely on this symbol name, it's probably fine to never include it in
9328   # preloaded symbol tables.
9329   # Exclude shared library initialization/finalization symbols.
9330   extract_expsyms_cmds=
9331
9332   case $host_os in
9333   cygwin* | mingw* | pw32* | cegcc*)
9334     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9335     # When not using gcc, we currently assume that we are using
9336     # Microsoft Visual C++.
9337     if test "$GCC" != yes; then
9338       with_gnu_ld=no
9339     fi
9340     ;;
9341   interix*)
9342     # we just hope/assume this is gcc and not c89 (= MSVC++)
9343     with_gnu_ld=yes
9344     ;;
9345   openbsd*)
9346     with_gnu_ld=no
9347     ;;
9348   linux* | k*bsd*-gnu | gnu*)
9349     link_all_deplibs=no
9350     ;;
9351   esac
9352
9353   ld_shlibs=yes
9354
9355   # On some targets, GNU ld is compatible enough with the native linker
9356   # that we're better off using the native interface for both.
9357   lt_use_gnu_ld_interface=no
9358   if test "$with_gnu_ld" = yes; then
9359     case $host_os in
9360       aix*)
9361         # The AIX port of GNU ld has always aspired to compatibility
9362         # with the native linker.  However, as the warning in the GNU ld
9363         # block says, versions before 2.19.5* couldn't really create working
9364         # shared libraries, regardless of the interface used.
9365         case `$LD -v 2>&1` in
9366           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9367           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9368           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9369           *)
9370             lt_use_gnu_ld_interface=yes
9371             ;;
9372         esac
9373         ;;
9374       *)
9375         lt_use_gnu_ld_interface=yes
9376         ;;
9377     esac
9378   fi
9379
9380   if test "$lt_use_gnu_ld_interface" = yes; then
9381     # If archive_cmds runs LD, not CC, wlarc should be empty
9382     wlarc='${wl}'
9383
9384     # Set some defaults for GNU ld with shared library support. These
9385     # are reset later if shared libraries are not supported. Putting them
9386     # here allows them to be overridden if necessary.
9387     runpath_var=LD_RUN_PATH
9388     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9389     export_dynamic_flag_spec='${wl}--export-dynamic'
9390     # ancient GNU ld didn't support --whole-archive et. al.
9391     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9392       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9393     else
9394       whole_archive_flag_spec=
9395     fi
9396     supports_anon_versioning=no
9397     case `$LD -v 2>&1` in
9398       *GNU\ gold*) supports_anon_versioning=yes ;;
9399       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9400       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9401       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9402       *\ 2.11.*) ;; # other 2.11 versions
9403       *) supports_anon_versioning=yes ;;
9404     esac
9405
9406     # See if GNU ld supports shared libraries.
9407     case $host_os in
9408     aix[3-9]*)
9409       # On AIX/PPC, the GNU linker is very broken
9410       if test "$host_cpu" != ia64; then
9411         ld_shlibs=no
9412         cat <<_LT_EOF 1>&2
9413
9414 *** Warning: the GNU linker, at least up to release 2.19, is reported
9415 *** to be unable to reliably create shared libraries on AIX.
9416 *** Therefore, libtool is disabling shared libraries support.  If you
9417 *** really care for shared libraries, you may want to install binutils
9418 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9419 *** You will then need to restart the configuration process.
9420
9421 _LT_EOF
9422       fi
9423       ;;
9424
9425     amigaos*)
9426       case $host_cpu in
9427       powerpc)
9428             # see comment about AmigaOS4 .so support
9429             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9430             archive_expsym_cmds=''
9431         ;;
9432       m68k)
9433             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)'
9434             hardcode_libdir_flag_spec='-L$libdir'
9435             hardcode_minus_L=yes
9436         ;;
9437       esac
9438       ;;
9439
9440     beos*)
9441       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9442         allow_undefined_flag=unsupported
9443         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9444         # support --undefined.  This deserves some investigation.  FIXME
9445         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9446       else
9447         ld_shlibs=no
9448       fi
9449       ;;
9450
9451     cygwin* | mingw* | pw32* | cegcc*)
9452       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9453       # as there is no search path for DLLs.
9454       hardcode_libdir_flag_spec='-L$libdir'
9455       export_dynamic_flag_spec='${wl}--export-all-symbols'
9456       allow_undefined_flag=unsupported
9457       always_export_symbols=no
9458       enable_shared_with_static_runtimes=yes
9459       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'
9460       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9461
9462       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9463         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9464         # If the export-symbols file already is a .def file (1st line
9465         # is EXPORTS), use it as is; otherwise, prepend...
9466         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9467           cp $export_symbols $output_objdir/$soname.def;
9468         else
9469           echo EXPORTS > $output_objdir/$soname.def;
9470           cat $export_symbols >> $output_objdir/$soname.def;
9471         fi~
9472         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9473       else
9474         ld_shlibs=no
9475       fi
9476       ;;
9477
9478     haiku*)
9479       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9480       link_all_deplibs=yes
9481       ;;
9482
9483     interix[3-9]*)
9484       hardcode_direct=no
9485       hardcode_shlibpath_var=no
9486       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9487       export_dynamic_flag_spec='${wl}-E'
9488       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9489       # Instead, shared libraries are loaded at an image base (0x10000000 by
9490       # default) and relocated if they conflict, which is a slow very memory
9491       # consuming and fragmenting process.  To avoid this, we pick a random,
9492       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9493       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9494       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9495       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'
9496       ;;
9497
9498     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9499       tmp_diet=no
9500       if test "$host_os" = linux-dietlibc; then
9501         case $cc_basename in
9502           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9503         esac
9504       fi
9505       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9506          && test "$tmp_diet" = no
9507       then
9508         tmp_addflag=' $pic_flag'
9509         tmp_sharedflag='-shared'
9510         case $cc_basename,$host_cpu in
9511         pgcc*)                          # Portland Group C compiler
9512           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'
9513           tmp_addflag=' $pic_flag'
9514           ;;
9515         pgf77* | pgf90* | pgf95* | pgfortran*)
9516                                         # Portland Group f77 and f90 compilers
9517           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'
9518           tmp_addflag=' $pic_flag -Mnomain' ;;
9519         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9520           tmp_addflag=' -i_dynamic' ;;
9521         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9522           tmp_addflag=' -i_dynamic -nofor_main' ;;
9523         ifc* | ifort*)                  # Intel Fortran compiler
9524           tmp_addflag=' -nofor_main' ;;
9525         lf95*)                          # Lahey Fortran 8.1
9526           whole_archive_flag_spec=
9527           tmp_sharedflag='--shared' ;;
9528         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9529           tmp_sharedflag='-qmkshrobj'
9530           tmp_addflag= ;;
9531         nvcc*)  # Cuda Compiler Driver 2.2
9532           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'
9533           compiler_needs_object=yes
9534           ;;
9535         esac
9536         case `$CC -V 2>&1 | sed 5q` in
9537         *Sun\ C*)                       # Sun C 5.9
9538           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'
9539           compiler_needs_object=yes
9540           tmp_sharedflag='-G' ;;
9541         *Sun\ F*)                       # Sun Fortran 8.3
9542           tmp_sharedflag='-G' ;;
9543         esac
9544         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9545
9546         if test "x$supports_anon_versioning" = xyes; then
9547           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9548             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9549             echo "local: *; };" >> $output_objdir/$libname.ver~
9550             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9551         fi
9552
9553         case $cc_basename in
9554         xlf* | bgf* | bgxlf* | mpixlf*)
9555           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9556           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9557           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9558           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9559           if test "x$supports_anon_versioning" = xyes; then
9560             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9561               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9562               echo "local: *; };" >> $output_objdir/$libname.ver~
9563               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9564           fi
9565           ;;
9566         esac
9567       else
9568         ld_shlibs=no
9569       fi
9570       ;;
9571
9572     netbsd* | netbsdelf*-gnu)
9573       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9574         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9575         wlarc=
9576       else
9577         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9578         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9579       fi
9580       ;;
9581
9582     solaris*)
9583       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9584         ld_shlibs=no
9585         cat <<_LT_EOF 1>&2
9586
9587 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9588 *** create shared libraries on Solaris systems.  Therefore, libtool
9589 *** is disabling shared libraries support.  We urge you to upgrade GNU
9590 *** binutils to release 2.9.1 or newer.  Another option is to modify
9591 *** your PATH or compiler configuration so that the native linker is
9592 *** used, and then restart.
9593
9594 _LT_EOF
9595       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9596         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9597         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9598       else
9599         ld_shlibs=no
9600       fi
9601       ;;
9602
9603     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9604       case `$LD -v 2>&1` in
9605         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9606         ld_shlibs=no
9607         cat <<_LT_EOF 1>&2
9608
9609 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9610 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9611 *** is disabling shared libraries support.  We urge you to upgrade GNU
9612 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9613 *** your PATH or compiler configuration so that the native linker is
9614 *** used, and then restart.
9615
9616 _LT_EOF
9617         ;;
9618         *)
9619           # For security reasons, it is highly recommended that you always
9620           # use absolute paths for naming shared libraries, and exclude the
9621           # DT_RUNPATH tag from executables and libraries.  But doing so
9622           # requires that you compile everything twice, which is a pain.
9623           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9624             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9625             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9626             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9627           else
9628             ld_shlibs=no
9629           fi
9630         ;;
9631       esac
9632       ;;
9633
9634     sunos4*)
9635       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9636       wlarc=
9637       hardcode_direct=yes
9638       hardcode_shlibpath_var=no
9639       ;;
9640
9641     *)
9642       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9643         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9644         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9645       else
9646         ld_shlibs=no
9647       fi
9648       ;;
9649     esac
9650
9651     if test "$ld_shlibs" = no; then
9652       runpath_var=
9653       hardcode_libdir_flag_spec=
9654       export_dynamic_flag_spec=
9655       whole_archive_flag_spec=
9656     fi
9657   else
9658     # PORTME fill in a description of your system's linker (not GNU ld)
9659     case $host_os in
9660     aix3*)
9661       allow_undefined_flag=unsupported
9662       always_export_symbols=yes
9663       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'
9664       # Note: this linker hardcodes the directories in LIBPATH if there
9665       # are no directories specified by -L.
9666       hardcode_minus_L=yes
9667       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9668         # Neither direct hardcoding nor static linking is supported with a
9669         # broken collect2.
9670         hardcode_direct=unsupported
9671       fi
9672       ;;
9673
9674     aix[4-9]*)
9675       if test "$host_cpu" = ia64; then
9676         # On IA64, the linker does run time linking by default, so we don't
9677         # have to do anything special.
9678         aix_use_runtimelinking=no
9679         exp_sym_flag='-Bexport'
9680         no_entry_flag=""
9681       else
9682         # If we're using GNU nm, then we don't want the "-C" option.
9683         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9684         # Also, AIX nm treats weak defined symbols like other global
9685         # defined symbols, whereas GNU nm marks them as "W".
9686         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9687           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'
9688         else
9689           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'
9690         fi
9691         aix_use_runtimelinking=no
9692
9693         # Test if we are trying to use run time linking or normal
9694         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9695         # need to do runtime linking.
9696         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9697           for ld_flag in $LDFLAGS; do
9698           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9699             aix_use_runtimelinking=yes
9700             break
9701           fi
9702           done
9703           ;;
9704         esac
9705
9706         exp_sym_flag='-bexport'
9707         no_entry_flag='-bnoentry'
9708       fi
9709
9710       # When large executables or shared objects are built, AIX ld can
9711       # have problems creating the table of contents.  If linking a library
9712       # or program results in "error TOC overflow" add -mminimal-toc to
9713       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9714       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9715
9716       archive_cmds=''
9717       hardcode_direct=yes
9718       hardcode_direct_absolute=yes
9719       hardcode_libdir_separator=':'
9720       link_all_deplibs=yes
9721       file_list_spec='${wl}-f,'
9722
9723       if test "$GCC" = yes; then
9724         case $host_os in aix4.[012]|aix4.[012].*)
9725         # We only want to do this on AIX 4.2 and lower, the check
9726         # below for broken collect2 doesn't work under 4.3+
9727           collect2name=`${CC} -print-prog-name=collect2`
9728           if test -f "$collect2name" &&
9729            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9730           then
9731           # We have reworked collect2
9732           :
9733           else
9734           # We have old collect2
9735           hardcode_direct=unsupported
9736           # It fails to find uninstalled libraries when the uninstalled
9737           # path is not listed in the libpath.  Setting hardcode_minus_L
9738           # to unsupported forces relinking
9739           hardcode_minus_L=yes
9740           hardcode_libdir_flag_spec='-L$libdir'
9741           hardcode_libdir_separator=
9742           fi
9743           ;;
9744         esac
9745         shared_flag='-shared'
9746         if test "$aix_use_runtimelinking" = yes; then
9747           shared_flag="$shared_flag "'${wl}-G'
9748         fi
9749         link_all_deplibs=no
9750       else
9751         # not using gcc
9752         if test "$host_cpu" = ia64; then
9753         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9754         # chokes on -Wl,-G. The following line is correct:
9755           shared_flag='-G'
9756         else
9757           if test "$aix_use_runtimelinking" = yes; then
9758             shared_flag='${wl}-G'
9759           else
9760             shared_flag='${wl}-bM:SRE'
9761           fi
9762         fi
9763       fi
9764
9765       export_dynamic_flag_spec='${wl}-bexpall'
9766       # It seems that -bexpall does not export symbols beginning with
9767       # underscore (_), so it is better to generate a list of symbols to export.
9768       always_export_symbols=yes
9769       if test "$aix_use_runtimelinking" = yes; then
9770         # Warning - without using the other runtime loading flags (-brtl),
9771         # -berok will link without error, but may produce a broken library.
9772         allow_undefined_flag='-berok'
9773         # Determine the default libpath from the value encoded in an
9774         # empty executable.
9775         if test "${lt_cv_aix_libpath+set}" = set; then
9776   aix_libpath=$lt_cv_aix_libpath
9777 else
9778   if ${lt_cv_aix_libpath_+:} false; then :
9779   $as_echo_n "(cached) " >&6
9780 else
9781   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9782 /* end confdefs.h.  */
9783
9784 int
9785 main ()
9786 {
9787
9788   ;
9789   return 0;
9790 }
9791 _ACEOF
9792 if ac_fn_c_try_link "$LINENO"; then :
9793
9794   lt_aix_libpath_sed='
9795       /Import File Strings/,/^$/ {
9796           /^0/ {
9797               s/^0  *\([^ ]*\) *$/\1/
9798               p
9799           }
9800       }'
9801   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9802   # Check for a 64-bit object if we didn't find anything.
9803   if test -z "$lt_cv_aix_libpath_"; then
9804     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9805   fi
9806 fi
9807 rm -f core conftest.err conftest.$ac_objext \
9808     conftest$ac_exeext conftest.$ac_ext
9809   if test -z "$lt_cv_aix_libpath_"; then
9810     lt_cv_aix_libpath_="/usr/lib:/lib"
9811   fi
9812
9813 fi
9814
9815   aix_libpath=$lt_cv_aix_libpath_
9816 fi
9817
9818         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9819         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"
9820       else
9821         if test "$host_cpu" = ia64; then
9822           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9823           allow_undefined_flag="-z nodefs"
9824           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"
9825         else
9826          # Determine the default libpath from the value encoded in an
9827          # empty executable.
9828          if test "${lt_cv_aix_libpath+set}" = set; then
9829   aix_libpath=$lt_cv_aix_libpath
9830 else
9831   if ${lt_cv_aix_libpath_+:} false; then :
9832   $as_echo_n "(cached) " >&6
9833 else
9834   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9835 /* end confdefs.h.  */
9836
9837 int
9838 main ()
9839 {
9840
9841   ;
9842   return 0;
9843 }
9844 _ACEOF
9845 if ac_fn_c_try_link "$LINENO"; then :
9846
9847   lt_aix_libpath_sed='
9848       /Import File Strings/,/^$/ {
9849           /^0/ {
9850               s/^0  *\([^ ]*\) *$/\1/
9851               p
9852           }
9853       }'
9854   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9855   # Check for a 64-bit object if we didn't find anything.
9856   if test -z "$lt_cv_aix_libpath_"; then
9857     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9858   fi
9859 fi
9860 rm -f core conftest.err conftest.$ac_objext \
9861     conftest$ac_exeext conftest.$ac_ext
9862   if test -z "$lt_cv_aix_libpath_"; then
9863     lt_cv_aix_libpath_="/usr/lib:/lib"
9864   fi
9865
9866 fi
9867
9868   aix_libpath=$lt_cv_aix_libpath_
9869 fi
9870
9871          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9872           # Warning - without using the other run time loading flags,
9873           # -berok will link without error, but may produce a broken library.
9874           no_undefined_flag=' ${wl}-bernotok'
9875           allow_undefined_flag=' ${wl}-berok'
9876           if test "$with_gnu_ld" = yes; then
9877             # We only use this code for GNU lds that support --whole-archive.
9878             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9879           else
9880             # Exported symbols can be pulled into shared objects from archives
9881             whole_archive_flag_spec='$convenience'
9882           fi
9883           archive_cmds_need_lc=yes
9884           # This is similar to how AIX traditionally builds its shared libraries.
9885           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'
9886         fi
9887       fi
9888       ;;
9889
9890     amigaos*)
9891       case $host_cpu in
9892       powerpc)
9893             # see comment about AmigaOS4 .so support
9894             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9895             archive_expsym_cmds=''
9896         ;;
9897       m68k)
9898             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)'
9899             hardcode_libdir_flag_spec='-L$libdir'
9900             hardcode_minus_L=yes
9901         ;;
9902       esac
9903       ;;
9904
9905     bsdi[45]*)
9906       export_dynamic_flag_spec=-rdynamic
9907       ;;
9908
9909     cygwin* | mingw* | pw32* | cegcc*)
9910       # When not using gcc, we currently assume that we are using
9911       # Microsoft Visual C++.
9912       # hardcode_libdir_flag_spec is actually meaningless, as there is
9913       # no search path for DLLs.
9914       case $cc_basename in
9915       cl*)
9916         # Native MSVC
9917         hardcode_libdir_flag_spec=' '
9918         allow_undefined_flag=unsupported
9919         always_export_symbols=yes
9920         file_list_spec='@'
9921         # Tell ltmain to make .lib files, not .a files.
9922         libext=lib
9923         # Tell ltmain to make .dll files, not .so files.
9924         shrext_cmds=".dll"
9925         # FIXME: Setting linknames here is a bad hack.
9926         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9927         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9928             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9929           else
9930             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9931           fi~
9932           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9933           linknames='
9934         # The linker will not automatically build a static lib if we build a DLL.
9935         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9936         enable_shared_with_static_runtimes=yes
9937         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9938         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9939         # Don't use ranlib
9940         old_postinstall_cmds='chmod 644 $oldlib'
9941         postlink_cmds='lt_outputfile="@OUTPUT@"~
9942           lt_tool_outputfile="@TOOL_OUTPUT@"~
9943           case $lt_outputfile in
9944             *.exe|*.EXE) ;;
9945             *)
9946               lt_outputfile="$lt_outputfile.exe"
9947               lt_tool_outputfile="$lt_tool_outputfile.exe"
9948               ;;
9949           esac~
9950           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9951             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9952             $RM "$lt_outputfile.manifest";
9953           fi'
9954         ;;
9955       *)
9956         # Assume MSVC wrapper
9957         hardcode_libdir_flag_spec=' '
9958         allow_undefined_flag=unsupported
9959         # Tell ltmain to make .lib files, not .a files.
9960         libext=lib
9961         # Tell ltmain to make .dll files, not .so files.
9962         shrext_cmds=".dll"
9963         # FIXME: Setting linknames here is a bad hack.
9964         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9965         # The linker will automatically build a .lib file if we build a DLL.
9966         old_archive_from_new_cmds='true'
9967         # FIXME: Should let the user specify the lib program.
9968         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9969         enable_shared_with_static_runtimes=yes
9970         ;;
9971       esac
9972       ;;
9973
9974     darwin* | rhapsody*)
9975
9976
9977   archive_cmds_need_lc=no
9978   hardcode_direct=no
9979   hardcode_automatic=yes
9980   hardcode_shlibpath_var=unsupported
9981   if test "$lt_cv_ld_force_load" = "yes"; then
9982     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\"`'
9983
9984   else
9985     whole_archive_flag_spec=''
9986   fi
9987   link_all_deplibs=yes
9988   allow_undefined_flag="$_lt_dar_allow_undefined"
9989   case $cc_basename in
9990      ifort*) _lt_dar_can_shared=yes ;;
9991      *) _lt_dar_can_shared=$GCC ;;
9992   esac
9993   if test "$_lt_dar_can_shared" = "yes"; then
9994     output_verbose_link_cmd=func_echo_all
9995     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9996     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9997     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}"
9998     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}"
9999
10000   else
10001   ld_shlibs=no
10002   fi
10003
10004       ;;
10005
10006     dgux*)
10007       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10008       hardcode_libdir_flag_spec='-L$libdir'
10009       hardcode_shlibpath_var=no
10010       ;;
10011
10012     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10013     # support.  Future versions do this automatically, but an explicit c++rt0.o
10014     # does not break anything, and helps significantly (at the cost of a little
10015     # extra space).
10016     freebsd2.2*)
10017       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10018       hardcode_libdir_flag_spec='-R$libdir'
10019       hardcode_direct=yes
10020       hardcode_shlibpath_var=no
10021       ;;
10022
10023     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10024     freebsd2.*)
10025       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10026       hardcode_direct=yes
10027       hardcode_minus_L=yes
10028       hardcode_shlibpath_var=no
10029       ;;
10030
10031     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10032     freebsd* | dragonfly*)
10033       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10034       hardcode_libdir_flag_spec='-R$libdir'
10035       hardcode_direct=yes
10036       hardcode_shlibpath_var=no
10037       ;;
10038
10039     hpux9*)
10040       if test "$GCC" = yes; then
10041         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'
10042       else
10043         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'
10044       fi
10045       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10046       hardcode_libdir_separator=:
10047       hardcode_direct=yes
10048
10049       # hardcode_minus_L: Not really in the search PATH,
10050       # but as the default location of the library.
10051       hardcode_minus_L=yes
10052       export_dynamic_flag_spec='${wl}-E'
10053       ;;
10054
10055     hpux10*)
10056       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10057         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10058       else
10059         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10060       fi
10061       if test "$with_gnu_ld" = no; then
10062         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10063         hardcode_libdir_separator=:
10064         hardcode_direct=yes
10065         hardcode_direct_absolute=yes
10066         export_dynamic_flag_spec='${wl}-E'
10067         # hardcode_minus_L: Not really in the search PATH,
10068         # but as the default location of the library.
10069         hardcode_minus_L=yes
10070       fi
10071       ;;
10072
10073     hpux11*)
10074       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10075         case $host_cpu in
10076         hppa*64*)
10077           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10078           ;;
10079         ia64*)
10080           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10081           ;;
10082         *)
10083           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10084           ;;
10085         esac
10086       else
10087         case $host_cpu in
10088         hppa*64*)
10089           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10090           ;;
10091         ia64*)
10092           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10093           ;;
10094         *)
10095
10096           # Older versions of the 11.00 compiler do not understand -b yet
10097           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10098           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10099 $as_echo_n "checking if $CC understands -b... " >&6; }
10100 if ${lt_cv_prog_compiler__b+:} false; then :
10101   $as_echo_n "(cached) " >&6
10102 else
10103   lt_cv_prog_compiler__b=no
10104    save_LDFLAGS="$LDFLAGS"
10105    LDFLAGS="$LDFLAGS -b"
10106    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10107    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10108      # The linker can only warn and ignore the option if not recognized
10109      # So say no if there are warnings
10110      if test -s conftest.err; then
10111        # Append any errors to the config.log.
10112        cat conftest.err 1>&5
10113        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10114        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10115        if diff conftest.exp conftest.er2 >/dev/null; then
10116          lt_cv_prog_compiler__b=yes
10117        fi
10118      else
10119        lt_cv_prog_compiler__b=yes
10120      fi
10121    fi
10122    $RM -r conftest*
10123    LDFLAGS="$save_LDFLAGS"
10124
10125 fi
10126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10127 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10128
10129 if test x"$lt_cv_prog_compiler__b" = xyes; then
10130     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10131 else
10132     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10133 fi
10134
10135           ;;
10136         esac
10137       fi
10138       if test "$with_gnu_ld" = no; then
10139         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10140         hardcode_libdir_separator=:
10141
10142         case $host_cpu in
10143         hppa*64*|ia64*)
10144           hardcode_direct=no
10145           hardcode_shlibpath_var=no
10146           ;;
10147         *)
10148           hardcode_direct=yes
10149           hardcode_direct_absolute=yes
10150           export_dynamic_flag_spec='${wl}-E'
10151
10152           # hardcode_minus_L: Not really in the search PATH,
10153           # but as the default location of the library.
10154           hardcode_minus_L=yes
10155           ;;
10156         esac
10157       fi
10158       ;;
10159
10160     irix5* | irix6* | nonstopux*)
10161       if test "$GCC" = yes; then
10162         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'
10163         # Try to use the -exported_symbol ld option, if it does not
10164         # work, assume that -exports_file does not work either and
10165         # implicitly export all symbols.
10166         # This should be the same for all languages, so no per-tag cache variable.
10167         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10168 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10169 if ${lt_cv_irix_exported_symbol+:} false; then :
10170   $as_echo_n "(cached) " >&6
10171 else
10172   save_LDFLAGS="$LDFLAGS"
10173            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10174            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10175 /* end confdefs.h.  */
10176 int foo (void) { return 0; }
10177 _ACEOF
10178 if ac_fn_c_try_link "$LINENO"; then :
10179   lt_cv_irix_exported_symbol=yes
10180 else
10181   lt_cv_irix_exported_symbol=no
10182 fi
10183 rm -f core conftest.err conftest.$ac_objext \
10184     conftest$ac_exeext conftest.$ac_ext
10185            LDFLAGS="$save_LDFLAGS"
10186 fi
10187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10188 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10189         if test "$lt_cv_irix_exported_symbol" = yes; then
10190           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'
10191         fi
10192       else
10193         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10194         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10195       fi
10196       archive_cmds_need_lc='no'
10197       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10198       hardcode_libdir_separator=:
10199       inherit_rpath=yes
10200       link_all_deplibs=yes
10201       ;;
10202
10203     netbsd* | netbsdelf*-gnu)
10204       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10205         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10206       else
10207         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10208       fi
10209       hardcode_libdir_flag_spec='-R$libdir'
10210       hardcode_direct=yes
10211       hardcode_shlibpath_var=no
10212       ;;
10213
10214     newsos6)
10215       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10216       hardcode_direct=yes
10217       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10218       hardcode_libdir_separator=:
10219       hardcode_shlibpath_var=no
10220       ;;
10221
10222     *nto* | *qnx*)
10223       ;;
10224
10225     openbsd*)
10226       if test -f /usr/libexec/ld.so; then
10227         hardcode_direct=yes
10228         hardcode_shlibpath_var=no
10229         hardcode_direct_absolute=yes
10230         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10231           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10232           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10233           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10234           export_dynamic_flag_spec='${wl}-E'
10235         else
10236           case $host_os in
10237            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10238              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10239              hardcode_libdir_flag_spec='-R$libdir'
10240              ;;
10241            *)
10242              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10243              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10244              ;;
10245           esac
10246         fi
10247       else
10248         ld_shlibs=no
10249       fi
10250       ;;
10251
10252     os2*)
10253       hardcode_libdir_flag_spec='-L$libdir'
10254       hardcode_minus_L=yes
10255       allow_undefined_flag=unsupported
10256       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'
10257       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10258       ;;
10259
10260     osf3*)
10261       if test "$GCC" = yes; then
10262         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10263         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'
10264       else
10265         allow_undefined_flag=' -expect_unresolved \*'
10266         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'
10267       fi
10268       archive_cmds_need_lc='no'
10269       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10270       hardcode_libdir_separator=:
10271       ;;
10272
10273     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10274       if test "$GCC" = yes; then
10275         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10276         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'
10277         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10278       else
10279         allow_undefined_flag=' -expect_unresolved \*'
10280         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'
10281         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~
10282         $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'
10283
10284         # Both c and cxx compiler support -rpath directly
10285         hardcode_libdir_flag_spec='-rpath $libdir'
10286       fi
10287       archive_cmds_need_lc='no'
10288       hardcode_libdir_separator=:
10289       ;;
10290
10291     solaris*)
10292       no_undefined_flag=' -z defs'
10293       if test "$GCC" = yes; then
10294         wlarc='${wl}'
10295         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10296         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10297           $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'
10298       else
10299         case `$CC -V 2>&1` in
10300         *"Compilers 5.0"*)
10301           wlarc=''
10302           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10303           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10304           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10305           ;;
10306         *)
10307           wlarc='${wl}'
10308           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10309           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10310           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10311           ;;
10312         esac
10313       fi
10314       hardcode_libdir_flag_spec='-R$libdir'
10315       hardcode_shlibpath_var=no
10316       case $host_os in
10317       solaris2.[0-5] | solaris2.[0-5].*) ;;
10318       *)
10319         # The compiler driver will combine and reorder linker options,
10320         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10321         # but is careful enough not to reorder.
10322         # Supported since Solaris 2.6 (maybe 2.5.1?)
10323         if test "$GCC" = yes; then
10324           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10325         else
10326           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10327         fi
10328         ;;
10329       esac
10330       link_all_deplibs=yes
10331       ;;
10332
10333     sunos4*)
10334       if test "x$host_vendor" = xsequent; then
10335         # Use $CC to link under sequent, because it throws in some extra .o
10336         # files that make .init and .fini sections work.
10337         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10338       else
10339         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10340       fi
10341       hardcode_libdir_flag_spec='-L$libdir'
10342       hardcode_direct=yes
10343       hardcode_minus_L=yes
10344       hardcode_shlibpath_var=no
10345       ;;
10346
10347     sysv4)
10348       case $host_vendor in
10349         sni)
10350           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10351           hardcode_direct=yes # is this really true???
10352         ;;
10353         siemens)
10354           ## LD is ld it makes a PLAMLIB
10355           ## CC just makes a GrossModule.
10356           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10357           reload_cmds='$CC -r -o $output$reload_objs'
10358           hardcode_direct=no
10359         ;;
10360         motorola)
10361           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10362           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10363         ;;
10364       esac
10365       runpath_var='LD_RUN_PATH'
10366       hardcode_shlibpath_var=no
10367       ;;
10368
10369     sysv4.3*)
10370       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10371       hardcode_shlibpath_var=no
10372       export_dynamic_flag_spec='-Bexport'
10373       ;;
10374
10375     sysv4*MP*)
10376       if test -d /usr/nec; then
10377         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10378         hardcode_shlibpath_var=no
10379         runpath_var=LD_RUN_PATH
10380         hardcode_runpath_var=yes
10381         ld_shlibs=yes
10382       fi
10383       ;;
10384
10385     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10386       no_undefined_flag='${wl}-z,text'
10387       archive_cmds_need_lc=no
10388       hardcode_shlibpath_var=no
10389       runpath_var='LD_RUN_PATH'
10390
10391       if test "$GCC" = yes; then
10392         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10393         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10394       else
10395         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10396         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10397       fi
10398       ;;
10399
10400     sysv5* | sco3.2v5* | sco5v6*)
10401       # Note: We can NOT use -z defs as we might desire, because we do not
10402       # link with -lc, and that would cause any symbols used from libc to
10403       # always be unresolved, which means just about no library would
10404       # ever link correctly.  If we're not using GNU ld we use -z text
10405       # though, which does catch some bad symbols but isn't as heavy-handed
10406       # as -z defs.
10407       no_undefined_flag='${wl}-z,text'
10408       allow_undefined_flag='${wl}-z,nodefs'
10409       archive_cmds_need_lc=no
10410       hardcode_shlibpath_var=no
10411       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10412       hardcode_libdir_separator=':'
10413       link_all_deplibs=yes
10414       export_dynamic_flag_spec='${wl}-Bexport'
10415       runpath_var='LD_RUN_PATH'
10416
10417       if test "$GCC" = yes; then
10418         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10419         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10420       else
10421         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10422         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10423       fi
10424       ;;
10425
10426     uts4*)
10427       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10428       hardcode_libdir_flag_spec='-L$libdir'
10429       hardcode_shlibpath_var=no
10430       ;;
10431
10432     *)
10433       ld_shlibs=no
10434       ;;
10435     esac
10436
10437     if test x$host_vendor = xsni; then
10438       case $host in
10439       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10440         export_dynamic_flag_spec='${wl}-Blargedynsym'
10441         ;;
10442       esac
10443     fi
10444   fi
10445
10446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10447 $as_echo "$ld_shlibs" >&6; }
10448 test "$ld_shlibs" = no && can_build_shared=no
10449
10450 with_gnu_ld=$with_gnu_ld
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466 #
10467 # Do we need to explicitly link libc?
10468 #
10469 case "x$archive_cmds_need_lc" in
10470 x|xyes)
10471   # Assume -lc should be added
10472   archive_cmds_need_lc=yes
10473
10474   if test "$enable_shared" = yes && test "$GCC" = yes; then
10475     case $archive_cmds in
10476     *'~'*)
10477       # FIXME: we may have to deal with multi-command sequences.
10478       ;;
10479     '$CC '*)
10480       # Test whether the compiler implicitly links with -lc since on some
10481       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10482       # to ld, don't add -lc before -lgcc.
10483       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10484 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10485 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10486   $as_echo_n "(cached) " >&6
10487 else
10488   $RM conftest*
10489         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10490
10491         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10492   (eval $ac_compile) 2>&5
10493   ac_status=$?
10494   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10495   test $ac_status = 0; } 2>conftest.err; then
10496           soname=conftest
10497           lib=conftest
10498           libobjs=conftest.$ac_objext
10499           deplibs=
10500           wl=$lt_prog_compiler_wl
10501           pic_flag=$lt_prog_compiler_pic
10502           compiler_flags=-v
10503           linker_flags=-v
10504           verstring=
10505           output_objdir=.
10506           libname=conftest
10507           lt_save_allow_undefined_flag=$allow_undefined_flag
10508           allow_undefined_flag=
10509           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10510   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10511   ac_status=$?
10512   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10513   test $ac_status = 0; }
10514           then
10515             lt_cv_archive_cmds_need_lc=no
10516           else
10517             lt_cv_archive_cmds_need_lc=yes
10518           fi
10519           allow_undefined_flag=$lt_save_allow_undefined_flag
10520         else
10521           cat conftest.err 1>&5
10522         fi
10523         $RM conftest*
10524
10525 fi
10526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10527 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10528       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10529       ;;
10530     esac
10531   fi
10532   ;;
10533 esac
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10687 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10688
10689 if test "$GCC" = yes; then
10690   case $host_os in
10691     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10692     *) lt_awk_arg="/^libraries:/" ;;
10693   esac
10694   case $host_os in
10695     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10696     *) lt_sed_strip_eq="s,=/,/,g" ;;
10697   esac
10698   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10699   case $lt_search_path_spec in
10700   *\;*)
10701     # if the path contains ";" then we assume it to be the separator
10702     # otherwise default to the standard path separator (i.e. ":") - it is
10703     # assumed that no part of a normal pathname contains ";" but that should
10704     # okay in the real world where ";" in dirpaths is itself problematic.
10705     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10706     ;;
10707   *)
10708     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10709     ;;
10710   esac
10711   # Ok, now we have the path, separated by spaces, we can step through it
10712   # and add multilib dir if necessary.
10713   lt_tmp_lt_search_path_spec=
10714   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10715   for lt_sys_path in $lt_search_path_spec; do
10716     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10717       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10718     else
10719       test -d "$lt_sys_path" && \
10720         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10721     fi
10722   done
10723   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10724 BEGIN {RS=" "; FS="/|\n";} {
10725   lt_foo="";
10726   lt_count=0;
10727   for (lt_i = NF; lt_i > 0; lt_i--) {
10728     if ($lt_i != "" && $lt_i != ".") {
10729       if ($lt_i == "..") {
10730         lt_count++;
10731       } else {
10732         if (lt_count == 0) {
10733           lt_foo="/" $lt_i lt_foo;
10734         } else {
10735           lt_count--;
10736         }
10737       }
10738     }
10739   }
10740   if (lt_foo != "") { lt_freq[lt_foo]++; }
10741   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10742 }'`
10743   # AWK program above erroneously prepends '/' to C:/dos/paths
10744   # for these hosts.
10745   case $host_os in
10746     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10747       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10748   esac
10749   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10750 else
10751   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10752 fi
10753 library_names_spec=
10754 libname_spec='lib$name'
10755 soname_spec=
10756 shrext_cmds=".so"
10757 postinstall_cmds=
10758 postuninstall_cmds=
10759 finish_cmds=
10760 finish_eval=
10761 shlibpath_var=
10762 shlibpath_overrides_runpath=unknown
10763 version_type=none
10764 dynamic_linker="$host_os ld.so"
10765 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10766 need_lib_prefix=unknown
10767 hardcode_into_libs=no
10768
10769 # when you set need_version to no, make sure it does not cause -set_version
10770 # flags to be left without arguments
10771 need_version=unknown
10772
10773 case $host_os in
10774 aix3*)
10775   version_type=linux # correct to gnu/linux during the next big refactor
10776   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10777   shlibpath_var=LIBPATH
10778
10779   # AIX 3 has no versioning support, so we append a major version to the name.
10780   soname_spec='${libname}${release}${shared_ext}$major'
10781   ;;
10782
10783 aix[4-9]*)
10784   version_type=linux # correct to gnu/linux during the next big refactor
10785   need_lib_prefix=no
10786   need_version=no
10787   hardcode_into_libs=yes
10788   if test "$host_cpu" = ia64; then
10789     # AIX 5 supports IA64
10790     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10791     shlibpath_var=LD_LIBRARY_PATH
10792   else
10793     # With GCC up to 2.95.x, collect2 would create an import file
10794     # for dependence libraries.  The import file would start with
10795     # the line `#! .'.  This would cause the generated library to
10796     # depend on `.', always an invalid library.  This was fixed in
10797     # development snapshots of GCC prior to 3.0.
10798     case $host_os in
10799       aix4 | aix4.[01] | aix4.[01].*)
10800       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10801            echo ' yes '
10802            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10803         :
10804       else
10805         can_build_shared=no
10806       fi
10807       ;;
10808     esac
10809     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10810     # soname into executable. Probably we can add versioning support to
10811     # collect2, so additional links can be useful in future.
10812     if test "$aix_use_runtimelinking" = yes; then
10813       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10814       # instead of lib<name>.a to let people know that these are not
10815       # typical AIX shared libraries.
10816       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10817     else
10818       # We preserve .a as extension for shared libraries through AIX4.2
10819       # and later when we are not doing run time linking.
10820       library_names_spec='${libname}${release}.a $libname.a'
10821       soname_spec='${libname}${release}${shared_ext}$major'
10822     fi
10823     shlibpath_var=LIBPATH
10824   fi
10825   ;;
10826
10827 amigaos*)
10828   case $host_cpu in
10829   powerpc)
10830     # Since July 2007 AmigaOS4 officially supports .so libraries.
10831     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10832     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10833     ;;
10834   m68k)
10835     library_names_spec='$libname.ixlibrary $libname.a'
10836     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10837     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'
10838     ;;
10839   esac
10840   ;;
10841
10842 beos*)
10843   library_names_spec='${libname}${shared_ext}'
10844   dynamic_linker="$host_os ld.so"
10845   shlibpath_var=LIBRARY_PATH
10846   ;;
10847
10848 bsdi[45]*)
10849   version_type=linux # correct to gnu/linux during the next big refactor
10850   need_version=no
10851   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10852   soname_spec='${libname}${release}${shared_ext}$major'
10853   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10854   shlibpath_var=LD_LIBRARY_PATH
10855   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10856   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10857   # the default ld.so.conf also contains /usr/contrib/lib and
10858   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10859   # libtool to hard-code these into programs
10860   ;;
10861
10862 cygwin* | mingw* | pw32* | cegcc*)
10863   version_type=windows
10864   shrext_cmds=".dll"
10865   need_version=no
10866   need_lib_prefix=no
10867
10868   case $GCC,$cc_basename in
10869   yes,*)
10870     # gcc
10871     library_names_spec='$libname.dll.a'
10872     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10873     postinstall_cmds='base_file=`basename \${file}`~
10874       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10875       dldir=$destdir/`dirname \$dlpath`~
10876       test -d \$dldir || mkdir -p \$dldir~
10877       $install_prog $dir/$dlname \$dldir/$dlname~
10878       chmod a+x \$dldir/$dlname~
10879       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10880         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10881       fi'
10882     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10883       dlpath=$dir/\$dldll~
10884        $RM \$dlpath'
10885     shlibpath_overrides_runpath=yes
10886
10887     case $host_os in
10888     cygwin*)
10889       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10890       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10891
10892       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10893       ;;
10894     mingw* | cegcc*)
10895       # MinGW DLLs use traditional 'lib' prefix
10896       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10897       ;;
10898     pw32*)
10899       # pw32 DLLs use 'pw' prefix rather than 'lib'
10900       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10901       ;;
10902     esac
10903     dynamic_linker='Win32 ld.exe'
10904     ;;
10905
10906   *,cl*)
10907     # Native MSVC
10908     libname_spec='$name'
10909     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10910     library_names_spec='${libname}.dll.lib'
10911
10912     case $build_os in
10913     mingw*)
10914       sys_lib_search_path_spec=
10915       lt_save_ifs=$IFS
10916       IFS=';'
10917       for lt_path in $LIB
10918       do
10919         IFS=$lt_save_ifs
10920         # Let DOS variable expansion print the short 8.3 style file name.
10921         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10922         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10923       done
10924       IFS=$lt_save_ifs
10925       # Convert to MSYS style.
10926       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10927       ;;
10928     cygwin*)
10929       # Convert to unix form, then to dos form, then back to unix form
10930       # but this time dos style (no spaces!) so that the unix form looks
10931       # like /cygdrive/c/PROGRA~1:/cygdr...
10932       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10933       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10934       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10935       ;;
10936     *)
10937       sys_lib_search_path_spec="$LIB"
10938       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10939         # It is most probably a Windows format PATH.
10940         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10941       else
10942         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10943       fi
10944       # FIXME: find the short name or the path components, as spaces are
10945       # common. (e.g. "Program Files" -> "PROGRA~1")
10946       ;;
10947     esac
10948
10949     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10950     postinstall_cmds='base_file=`basename \${file}`~
10951       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10952       dldir=$destdir/`dirname \$dlpath`~
10953       test -d \$dldir || mkdir -p \$dldir~
10954       $install_prog $dir/$dlname \$dldir/$dlname'
10955     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10956       dlpath=$dir/\$dldll~
10957        $RM \$dlpath'
10958     shlibpath_overrides_runpath=yes
10959     dynamic_linker='Win32 link.exe'
10960     ;;
10961
10962   *)
10963     # Assume MSVC wrapper
10964     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10965     dynamic_linker='Win32 ld.exe'
10966     ;;
10967   esac
10968   # FIXME: first we should search . and the directory the executable is in
10969   shlibpath_var=PATH
10970   ;;
10971
10972 darwin* | rhapsody*)
10973   dynamic_linker="$host_os dyld"
10974   version_type=darwin
10975   need_lib_prefix=no
10976   need_version=no
10977   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10978   soname_spec='${libname}${release}${major}$shared_ext'
10979   shlibpath_overrides_runpath=yes
10980   shlibpath_var=DYLD_LIBRARY_PATH
10981   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10982
10983   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10984   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10985   ;;
10986
10987 dgux*)
10988   version_type=linux # correct to gnu/linux during the next big refactor
10989   need_lib_prefix=no
10990   need_version=no
10991   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10992   soname_spec='${libname}${release}${shared_ext}$major'
10993   shlibpath_var=LD_LIBRARY_PATH
10994   ;;
10995
10996 freebsd* | dragonfly*)
10997   # DragonFly does not have aout.  When/if they implement a new
10998   # versioning mechanism, adjust this.
10999   if test -x /usr/bin/objformat; then
11000     objformat=`/usr/bin/objformat`
11001   else
11002     case $host_os in
11003     freebsd[23].*) objformat=aout ;;
11004     *) objformat=elf ;;
11005     esac
11006   fi
11007   version_type=freebsd-$objformat
11008   case $version_type in
11009     freebsd-elf*)
11010       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11011       need_version=no
11012       need_lib_prefix=no
11013       ;;
11014     freebsd-*)
11015       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11016       need_version=yes
11017       ;;
11018   esac
11019   shlibpath_var=LD_LIBRARY_PATH
11020   case $host_os in
11021   freebsd2.*)
11022     shlibpath_overrides_runpath=yes
11023     ;;
11024   freebsd3.[01]* | freebsdelf3.[01]*)
11025     shlibpath_overrides_runpath=yes
11026     hardcode_into_libs=yes
11027     ;;
11028   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11029   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11030     shlibpath_overrides_runpath=no
11031     hardcode_into_libs=yes
11032     ;;
11033   *) # from 4.6 on, and DragonFly
11034     shlibpath_overrides_runpath=yes
11035     hardcode_into_libs=yes
11036     ;;
11037   esac
11038   ;;
11039
11040 haiku*)
11041   version_type=linux # correct to gnu/linux during the next big refactor
11042   need_lib_prefix=no
11043   need_version=no
11044   dynamic_linker="$host_os runtime_loader"
11045   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11046   soname_spec='${libname}${release}${shared_ext}$major'
11047   shlibpath_var=LIBRARY_PATH
11048   shlibpath_overrides_runpath=yes
11049   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11050   hardcode_into_libs=yes
11051   ;;
11052
11053 hpux9* | hpux10* | hpux11*)
11054   # Give a soname corresponding to the major version so that dld.sl refuses to
11055   # link against other versions.
11056   version_type=sunos
11057   need_lib_prefix=no
11058   need_version=no
11059   case $host_cpu in
11060   ia64*)
11061     shrext_cmds='.so'
11062     hardcode_into_libs=yes
11063     dynamic_linker="$host_os dld.so"
11064     shlibpath_var=LD_LIBRARY_PATH
11065     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11066     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11067     soname_spec='${libname}${release}${shared_ext}$major'
11068     if test "X$HPUX_IA64_MODE" = X32; then
11069       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11070     else
11071       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11072     fi
11073     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11074     ;;
11075   hppa*64*)
11076     shrext_cmds='.sl'
11077     hardcode_into_libs=yes
11078     dynamic_linker="$host_os dld.sl"
11079     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11080     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11081     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11082     soname_spec='${libname}${release}${shared_ext}$major'
11083     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11084     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11085     ;;
11086   *)
11087     shrext_cmds='.sl'
11088     dynamic_linker="$host_os dld.sl"
11089     shlibpath_var=SHLIB_PATH
11090     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11091     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11092     soname_spec='${libname}${release}${shared_ext}$major'
11093     ;;
11094   esac
11095   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11096   postinstall_cmds='chmod 555 $lib'
11097   # or fails outright, so override atomically:
11098   install_override_mode=555
11099   ;;
11100
11101 interix[3-9]*)
11102   version_type=linux # correct to gnu/linux during the next big refactor
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   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11108   shlibpath_var=LD_LIBRARY_PATH
11109   shlibpath_overrides_runpath=no
11110   hardcode_into_libs=yes
11111   ;;
11112
11113 irix5* | irix6* | nonstopux*)
11114   case $host_os in
11115     nonstopux*) version_type=nonstopux ;;
11116     *)
11117         if test "$lt_cv_prog_gnu_ld" = yes; then
11118                 version_type=linux # correct to gnu/linux during the next big refactor
11119         else
11120                 version_type=irix
11121         fi ;;
11122   esac
11123   need_lib_prefix=no
11124   need_version=no
11125   soname_spec='${libname}${release}${shared_ext}$major'
11126   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11127   case $host_os in
11128   irix5* | nonstopux*)
11129     libsuff= shlibsuff=
11130     ;;
11131   *)
11132     case $LD in # libtool.m4 will add one of these switches to LD
11133     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11134       libsuff= shlibsuff= libmagic=32-bit;;
11135     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11136       libsuff=32 shlibsuff=N32 libmagic=N32;;
11137     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11138       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11139     *) libsuff= shlibsuff= libmagic=never-match;;
11140     esac
11141     ;;
11142   esac
11143   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11144   shlibpath_overrides_runpath=no
11145   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11146   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11147   hardcode_into_libs=yes
11148   ;;
11149
11150 # No shared lib support for Linux oldld, aout, or coff.
11151 linux*oldld* | linux*aout* | linux*coff*)
11152   dynamic_linker=no
11153   ;;
11154
11155 # This must be glibc/ELF.
11156 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11157   version_type=linux # correct to gnu/linux during the next big refactor
11158   need_lib_prefix=no
11159   need_version=no
11160   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11161   soname_spec='${libname}${release}${shared_ext}$major'
11162   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11163   shlibpath_var=LD_LIBRARY_PATH
11164   shlibpath_overrides_runpath=no
11165
11166   # Some binutils ld are patched to set DT_RUNPATH
11167   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11168   $as_echo_n "(cached) " >&6
11169 else
11170   lt_cv_shlibpath_overrides_runpath=no
11171     save_LDFLAGS=$LDFLAGS
11172     save_libdir=$libdir
11173     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11174          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11175     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11176 /* end confdefs.h.  */
11177
11178 int
11179 main ()
11180 {
11181
11182   ;
11183   return 0;
11184 }
11185 _ACEOF
11186 if ac_fn_c_try_link "$LINENO"; then :
11187   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11188   lt_cv_shlibpath_overrides_runpath=yes
11189 fi
11190 fi
11191 rm -f core conftest.err conftest.$ac_objext \
11192     conftest$ac_exeext conftest.$ac_ext
11193     LDFLAGS=$save_LDFLAGS
11194     libdir=$save_libdir
11195
11196 fi
11197
11198   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11199
11200   # This implies no fast_install, which is unacceptable.
11201   # Some rework will be needed to allow for fast_install
11202   # before this can be enabled.
11203   hardcode_into_libs=yes
11204
11205   # Append ld.so.conf contents to the search path
11206   if test -f /etc/ld.so.conf; then
11207     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' ' '`
11208     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11209   fi
11210
11211   # We used to test for /lib/ld.so.1 and disable shared libraries on
11212   # powerpc, because MkLinux only supported shared libraries with the
11213   # GNU dynamic linker.  Since this was broken with cross compilers,
11214   # most powerpc-linux boxes support dynamic linking these days and
11215   # people can always --disable-shared, the test was removed, and we
11216   # assume the GNU/Linux dynamic linker is in use.
11217   dynamic_linker='GNU/Linux ld.so'
11218   ;;
11219
11220 netbsdelf*-gnu)
11221   version_type=linux
11222   need_lib_prefix=no
11223   need_version=no
11224   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11225   soname_spec='${libname}${release}${shared_ext}$major'
11226   shlibpath_var=LD_LIBRARY_PATH
11227   shlibpath_overrides_runpath=no
11228   hardcode_into_libs=yes
11229   dynamic_linker='NetBSD ld.elf_so'
11230   ;;
11231
11232 netbsd*)
11233   version_type=sunos
11234   need_lib_prefix=no
11235   need_version=no
11236   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11237     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11238     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11239     dynamic_linker='NetBSD (a.out) ld.so'
11240   else
11241     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11242     soname_spec='${libname}${release}${shared_ext}$major'
11243     dynamic_linker='NetBSD ld.elf_so'
11244   fi
11245   shlibpath_var=LD_LIBRARY_PATH
11246   shlibpath_overrides_runpath=yes
11247   hardcode_into_libs=yes
11248   ;;
11249
11250 newsos6)
11251   version_type=linux # correct to gnu/linux during the next big refactor
11252   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11253   shlibpath_var=LD_LIBRARY_PATH
11254   shlibpath_overrides_runpath=yes
11255   ;;
11256
11257 *nto* | *qnx*)
11258   version_type=qnx
11259   need_lib_prefix=no
11260   need_version=no
11261   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11262   soname_spec='${libname}${release}${shared_ext}$major'
11263   shlibpath_var=LD_LIBRARY_PATH
11264   shlibpath_overrides_runpath=no
11265   hardcode_into_libs=yes
11266   dynamic_linker='ldqnx.so'
11267   ;;
11268
11269 openbsd*)
11270   version_type=sunos
11271   sys_lib_dlsearch_path_spec="/usr/lib"
11272   need_lib_prefix=no
11273   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11274   case $host_os in
11275     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11276     *)                          need_version=no  ;;
11277   esac
11278   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11279   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11280   shlibpath_var=LD_LIBRARY_PATH
11281   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11282     case $host_os in
11283       openbsd2.[89] | openbsd2.[89].*)
11284         shlibpath_overrides_runpath=no
11285         ;;
11286       *)
11287         shlibpath_overrides_runpath=yes
11288         ;;
11289       esac
11290   else
11291     shlibpath_overrides_runpath=yes
11292   fi
11293   ;;
11294
11295 os2*)
11296   libname_spec='$name'
11297   shrext_cmds=".dll"
11298   need_lib_prefix=no
11299   library_names_spec='$libname${shared_ext} $libname.a'
11300   dynamic_linker='OS/2 ld.exe'
11301   shlibpath_var=LIBPATH
11302   ;;
11303
11304 osf3* | osf4* | osf5*)
11305   version_type=osf
11306   need_lib_prefix=no
11307   need_version=no
11308   soname_spec='${libname}${release}${shared_ext}$major'
11309   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11310   shlibpath_var=LD_LIBRARY_PATH
11311   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11312   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11313   ;;
11314
11315 rdos*)
11316   dynamic_linker=no
11317   ;;
11318
11319 solaris*)
11320   version_type=linux # correct to gnu/linux during the next big refactor
11321   need_lib_prefix=no
11322   need_version=no
11323   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11324   soname_spec='${libname}${release}${shared_ext}$major'
11325   shlibpath_var=LD_LIBRARY_PATH
11326   shlibpath_overrides_runpath=yes
11327   hardcode_into_libs=yes
11328   # ldd complains unless libraries are executable
11329   postinstall_cmds='chmod +x $lib'
11330   ;;
11331
11332 sunos4*)
11333   version_type=sunos
11334   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11335   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11336   shlibpath_var=LD_LIBRARY_PATH
11337   shlibpath_overrides_runpath=yes
11338   if test "$with_gnu_ld" = yes; then
11339     need_lib_prefix=no
11340   fi
11341   need_version=yes
11342   ;;
11343
11344 sysv4 | sysv4.3*)
11345   version_type=linux # correct to gnu/linux during the next big refactor
11346   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11347   soname_spec='${libname}${release}${shared_ext}$major'
11348   shlibpath_var=LD_LIBRARY_PATH
11349   case $host_vendor in
11350     sni)
11351       shlibpath_overrides_runpath=no
11352       need_lib_prefix=no
11353       runpath_var=LD_RUN_PATH
11354       ;;
11355     siemens)
11356       need_lib_prefix=no
11357       ;;
11358     motorola)
11359       need_lib_prefix=no
11360       need_version=no
11361       shlibpath_overrides_runpath=no
11362       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11363       ;;
11364   esac
11365   ;;
11366
11367 sysv4*MP*)
11368   if test -d /usr/nec ;then
11369     version_type=linux # correct to gnu/linux during the next big refactor
11370     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11371     soname_spec='$libname${shared_ext}.$major'
11372     shlibpath_var=LD_LIBRARY_PATH
11373   fi
11374   ;;
11375
11376 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11377   version_type=freebsd-elf
11378   need_lib_prefix=no
11379   need_version=no
11380   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11381   soname_spec='${libname}${release}${shared_ext}$major'
11382   shlibpath_var=LD_LIBRARY_PATH
11383   shlibpath_overrides_runpath=yes
11384   hardcode_into_libs=yes
11385   if test "$with_gnu_ld" = yes; then
11386     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11387   else
11388     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11389     case $host_os in
11390       sco3.2v5*)
11391         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11392         ;;
11393     esac
11394   fi
11395   sys_lib_dlsearch_path_spec='/usr/lib'
11396   ;;
11397
11398 tpf*)
11399   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11400   version_type=linux # correct to gnu/linux during the next big refactor
11401   need_lib_prefix=no
11402   need_version=no
11403   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11404   shlibpath_var=LD_LIBRARY_PATH
11405   shlibpath_overrides_runpath=no
11406   hardcode_into_libs=yes
11407   ;;
11408
11409 uts4*)
11410   version_type=linux # correct to gnu/linux during the next big refactor
11411   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11412   soname_spec='${libname}${release}${shared_ext}$major'
11413   shlibpath_var=LD_LIBRARY_PATH
11414   ;;
11415
11416 *)
11417   dynamic_linker=no
11418   ;;
11419 esac
11420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11421 $as_echo "$dynamic_linker" >&6; }
11422 test "$dynamic_linker" = no && can_build_shared=no
11423
11424 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11425 if test "$GCC" = yes; then
11426   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11427 fi
11428
11429 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11430   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11431 fi
11432 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11433   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11434 fi
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11528 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11529 hardcode_action=
11530 if test -n "$hardcode_libdir_flag_spec" ||
11531    test -n "$runpath_var" ||
11532    test "X$hardcode_automatic" = "Xyes" ; then
11533
11534   # We can hardcode non-existent directories.
11535   if test "$hardcode_direct" != no &&
11536      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11537      # have to relink, otherwise we might link with an installed library
11538      # when we should be linking with a yet-to-be-installed one
11539      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11540      test "$hardcode_minus_L" != no; then
11541     # Linking always hardcodes the temporary library directory.
11542     hardcode_action=relink
11543   else
11544     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11545     hardcode_action=immediate
11546   fi
11547 else
11548   # We cannot hardcode anything, or else we can only hardcode existing
11549   # directories.
11550   hardcode_action=unsupported
11551 fi
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11553 $as_echo "$hardcode_action" >&6; }
11554
11555 if test "$hardcode_action" = relink ||
11556    test "$inherit_rpath" = yes; then
11557   # Fast installation is not supported
11558   enable_fast_install=no
11559 elif test "$shlibpath_overrides_runpath" = yes ||
11560      test "$enable_shared" = no; then
11561   # Fast installation is not necessary
11562   enable_fast_install=needless
11563 fi
11564
11565
11566
11567
11568
11569
11570   if test "x$enable_dlopen" != xyes; then
11571   enable_dlopen=unknown
11572   enable_dlopen_self=unknown
11573   enable_dlopen_self_static=unknown
11574 else
11575   lt_cv_dlopen=no
11576   lt_cv_dlopen_libs=
11577
11578   case $host_os in
11579   beos*)
11580     lt_cv_dlopen="load_add_on"
11581     lt_cv_dlopen_libs=
11582     lt_cv_dlopen_self=yes
11583     ;;
11584
11585   mingw* | pw32* | cegcc*)
11586     lt_cv_dlopen="LoadLibrary"
11587     lt_cv_dlopen_libs=
11588     ;;
11589
11590   cygwin*)
11591     lt_cv_dlopen="dlopen"
11592     lt_cv_dlopen_libs=
11593     ;;
11594
11595   darwin*)
11596   # if libdl is installed we need to link against it
11597     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11598 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11599 if ${ac_cv_lib_dl_dlopen+:} false; then :
11600   $as_echo_n "(cached) " >&6
11601 else
11602   ac_check_lib_save_LIBS=$LIBS
11603 LIBS="-ldl  $LIBS"
11604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11605 /* end confdefs.h.  */
11606
11607 /* Override any GCC internal prototype to avoid an error.
11608    Use char because int might match the return type of a GCC
11609    builtin and then its argument prototype would still apply.  */
11610 #ifdef __cplusplus
11611 extern "C"
11612 #endif
11613 char dlopen ();
11614 int
11615 main ()
11616 {
11617 return dlopen ();
11618   ;
11619   return 0;
11620 }
11621 _ACEOF
11622 if ac_fn_c_try_link "$LINENO"; then :
11623   ac_cv_lib_dl_dlopen=yes
11624 else
11625   ac_cv_lib_dl_dlopen=no
11626 fi
11627 rm -f core conftest.err conftest.$ac_objext \
11628     conftest$ac_exeext conftest.$ac_ext
11629 LIBS=$ac_check_lib_save_LIBS
11630 fi
11631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11632 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11633 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11634   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11635 else
11636
11637     lt_cv_dlopen="dyld"
11638     lt_cv_dlopen_libs=
11639     lt_cv_dlopen_self=yes
11640
11641 fi
11642
11643     ;;
11644
11645   *)
11646     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11647 if test "x$ac_cv_func_shl_load" = xyes; then :
11648   lt_cv_dlopen="shl_load"
11649 else
11650   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11651 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11652 if ${ac_cv_lib_dld_shl_load+:} false; then :
11653   $as_echo_n "(cached) " >&6
11654 else
11655   ac_check_lib_save_LIBS=$LIBS
11656 LIBS="-ldld  $LIBS"
11657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11658 /* end confdefs.h.  */
11659
11660 /* Override any GCC internal prototype to avoid an error.
11661    Use char because int might match the return type of a GCC
11662    builtin and then its argument prototype would still apply.  */
11663 #ifdef __cplusplus
11664 extern "C"
11665 #endif
11666 char shl_load ();
11667 int
11668 main ()
11669 {
11670 return shl_load ();
11671   ;
11672   return 0;
11673 }
11674 _ACEOF
11675 if ac_fn_c_try_link "$LINENO"; then :
11676   ac_cv_lib_dld_shl_load=yes
11677 else
11678   ac_cv_lib_dld_shl_load=no
11679 fi
11680 rm -f core conftest.err conftest.$ac_objext \
11681     conftest$ac_exeext conftest.$ac_ext
11682 LIBS=$ac_check_lib_save_LIBS
11683 fi
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11685 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11686 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11687   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11688 else
11689   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11690 if test "x$ac_cv_func_dlopen" = xyes; then :
11691   lt_cv_dlopen="dlopen"
11692 else
11693   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11694 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11695 if ${ac_cv_lib_dl_dlopen+:} false; then :
11696   $as_echo_n "(cached) " >&6
11697 else
11698   ac_check_lib_save_LIBS=$LIBS
11699 LIBS="-ldl  $LIBS"
11700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11701 /* end confdefs.h.  */
11702
11703 /* Override any GCC internal prototype to avoid an error.
11704    Use char because int might match the return type of a GCC
11705    builtin and then its argument prototype would still apply.  */
11706 #ifdef __cplusplus
11707 extern "C"
11708 #endif
11709 char dlopen ();
11710 int
11711 main ()
11712 {
11713 return dlopen ();
11714   ;
11715   return 0;
11716 }
11717 _ACEOF
11718 if ac_fn_c_try_link "$LINENO"; then :
11719   ac_cv_lib_dl_dlopen=yes
11720 else
11721   ac_cv_lib_dl_dlopen=no
11722 fi
11723 rm -f core conftest.err conftest.$ac_objext \
11724     conftest$ac_exeext conftest.$ac_ext
11725 LIBS=$ac_check_lib_save_LIBS
11726 fi
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11728 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11729 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11730   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11731 else
11732   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11733 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11734 if ${ac_cv_lib_svld_dlopen+:} false; then :
11735   $as_echo_n "(cached) " >&6
11736 else
11737   ac_check_lib_save_LIBS=$LIBS
11738 LIBS="-lsvld  $LIBS"
11739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11740 /* end confdefs.h.  */
11741
11742 /* Override any GCC internal prototype to avoid an error.
11743    Use char because int might match the return type of a GCC
11744    builtin and then its argument prototype would still apply.  */
11745 #ifdef __cplusplus
11746 extern "C"
11747 #endif
11748 char dlopen ();
11749 int
11750 main ()
11751 {
11752 return dlopen ();
11753   ;
11754   return 0;
11755 }
11756 _ACEOF
11757 if ac_fn_c_try_link "$LINENO"; then :
11758   ac_cv_lib_svld_dlopen=yes
11759 else
11760   ac_cv_lib_svld_dlopen=no
11761 fi
11762 rm -f core conftest.err conftest.$ac_objext \
11763     conftest$ac_exeext conftest.$ac_ext
11764 LIBS=$ac_check_lib_save_LIBS
11765 fi
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11767 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11768 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11769   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11770 else
11771   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11772 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11773 if ${ac_cv_lib_dld_dld_link+:} false; then :
11774   $as_echo_n "(cached) " >&6
11775 else
11776   ac_check_lib_save_LIBS=$LIBS
11777 LIBS="-ldld  $LIBS"
11778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11779 /* end confdefs.h.  */
11780
11781 /* Override any GCC internal prototype to avoid an error.
11782    Use char because int might match the return type of a GCC
11783    builtin and then its argument prototype would still apply.  */
11784 #ifdef __cplusplus
11785 extern "C"
11786 #endif
11787 char dld_link ();
11788 int
11789 main ()
11790 {
11791 return dld_link ();
11792   ;
11793   return 0;
11794 }
11795 _ACEOF
11796 if ac_fn_c_try_link "$LINENO"; then :
11797   ac_cv_lib_dld_dld_link=yes
11798 else
11799   ac_cv_lib_dld_dld_link=no
11800 fi
11801 rm -f core conftest.err conftest.$ac_objext \
11802     conftest$ac_exeext conftest.$ac_ext
11803 LIBS=$ac_check_lib_save_LIBS
11804 fi
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11806 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11807 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11808   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11809 fi
11810
11811
11812 fi
11813
11814
11815 fi
11816
11817
11818 fi
11819
11820
11821 fi
11822
11823
11824 fi
11825
11826     ;;
11827   esac
11828
11829   if test "x$lt_cv_dlopen" != xno; then
11830     enable_dlopen=yes
11831   else
11832     enable_dlopen=no
11833   fi
11834
11835   case $lt_cv_dlopen in
11836   dlopen)
11837     save_CPPFLAGS="$CPPFLAGS"
11838     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11839
11840     save_LDFLAGS="$LDFLAGS"
11841     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11842
11843     save_LIBS="$LIBS"
11844     LIBS="$lt_cv_dlopen_libs $LIBS"
11845
11846     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11847 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11848 if ${lt_cv_dlopen_self+:} false; then :
11849   $as_echo_n "(cached) " >&6
11850 else
11851           if test "$cross_compiling" = yes; then :
11852   lt_cv_dlopen_self=cross
11853 else
11854   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11855   lt_status=$lt_dlunknown
11856   cat > conftest.$ac_ext <<_LT_EOF
11857 #line $LINENO "configure"
11858 #include "confdefs.h"
11859
11860 #if HAVE_DLFCN_H
11861 #include <dlfcn.h>
11862 #endif
11863
11864 #include <stdio.h>
11865
11866 #ifdef RTLD_GLOBAL
11867 #  define LT_DLGLOBAL           RTLD_GLOBAL
11868 #else
11869 #  ifdef DL_GLOBAL
11870 #    define LT_DLGLOBAL         DL_GLOBAL
11871 #  else
11872 #    define LT_DLGLOBAL         0
11873 #  endif
11874 #endif
11875
11876 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11877    find out it does not work in some platform. */
11878 #ifndef LT_DLLAZY_OR_NOW
11879 #  ifdef RTLD_LAZY
11880 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11881 #  else
11882 #    ifdef DL_LAZY
11883 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11884 #    else
11885 #      ifdef RTLD_NOW
11886 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11887 #      else
11888 #        ifdef DL_NOW
11889 #          define LT_DLLAZY_OR_NOW      DL_NOW
11890 #        else
11891 #          define LT_DLLAZY_OR_NOW      0
11892 #        endif
11893 #      endif
11894 #    endif
11895 #  endif
11896 #endif
11897
11898 /* When -fvisbility=hidden is used, assume the code has been annotated
11899    correspondingly for the symbols needed.  */
11900 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11901 int fnord () __attribute__((visibility("default")));
11902 #endif
11903
11904 int fnord () { return 42; }
11905 int main ()
11906 {
11907   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11908   int status = $lt_dlunknown;
11909
11910   if (self)
11911     {
11912       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11913       else
11914         {
11915           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11916           else puts (dlerror ());
11917         }
11918       /* dlclose (self); */
11919     }
11920   else
11921     puts (dlerror ());
11922
11923   return status;
11924 }
11925 _LT_EOF
11926   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11927   (eval $ac_link) 2>&5
11928   ac_status=$?
11929   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11930   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11931     (./conftest; exit; ) >&5 2>/dev/null
11932     lt_status=$?
11933     case x$lt_status in
11934       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11935       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11936       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11937     esac
11938   else :
11939     # compilation failed
11940     lt_cv_dlopen_self=no
11941   fi
11942 fi
11943 rm -fr conftest*
11944
11945
11946 fi
11947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11948 $as_echo "$lt_cv_dlopen_self" >&6; }
11949
11950     if test "x$lt_cv_dlopen_self" = xyes; then
11951       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11952       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11953 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11954 if ${lt_cv_dlopen_self_static+:} false; then :
11955   $as_echo_n "(cached) " >&6
11956 else
11957           if test "$cross_compiling" = yes; then :
11958   lt_cv_dlopen_self_static=cross
11959 else
11960   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11961   lt_status=$lt_dlunknown
11962   cat > conftest.$ac_ext <<_LT_EOF
11963 #line $LINENO "configure"
11964 #include "confdefs.h"
11965
11966 #if HAVE_DLFCN_H
11967 #include <dlfcn.h>
11968 #endif
11969
11970 #include <stdio.h>
11971
11972 #ifdef RTLD_GLOBAL
11973 #  define LT_DLGLOBAL           RTLD_GLOBAL
11974 #else
11975 #  ifdef DL_GLOBAL
11976 #    define LT_DLGLOBAL         DL_GLOBAL
11977 #  else
11978 #    define LT_DLGLOBAL         0
11979 #  endif
11980 #endif
11981
11982 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11983    find out it does not work in some platform. */
11984 #ifndef LT_DLLAZY_OR_NOW
11985 #  ifdef RTLD_LAZY
11986 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11987 #  else
11988 #    ifdef DL_LAZY
11989 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11990 #    else
11991 #      ifdef RTLD_NOW
11992 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11993 #      else
11994 #        ifdef DL_NOW
11995 #          define LT_DLLAZY_OR_NOW      DL_NOW
11996 #        else
11997 #          define LT_DLLAZY_OR_NOW      0
11998 #        endif
11999 #      endif
12000 #    endif
12001 #  endif
12002 #endif
12003
12004 /* When -fvisbility=hidden is used, assume the code has been annotated
12005    correspondingly for the symbols needed.  */
12006 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12007 int fnord () __attribute__((visibility("default")));
12008 #endif
12009
12010 int fnord () { return 42; }
12011 int main ()
12012 {
12013   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12014   int status = $lt_dlunknown;
12015
12016   if (self)
12017     {
12018       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12019       else
12020         {
12021           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12022           else puts (dlerror ());
12023         }
12024       /* dlclose (self); */
12025     }
12026   else
12027     puts (dlerror ());
12028
12029   return status;
12030 }
12031 _LT_EOF
12032   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12033   (eval $ac_link) 2>&5
12034   ac_status=$?
12035   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12036   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12037     (./conftest; exit; ) >&5 2>/dev/null
12038     lt_status=$?
12039     case x$lt_status in
12040       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12041       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12042       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12043     esac
12044   else :
12045     # compilation failed
12046     lt_cv_dlopen_self_static=no
12047   fi
12048 fi
12049 rm -fr conftest*
12050
12051
12052 fi
12053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12054 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12055     fi
12056
12057     CPPFLAGS="$save_CPPFLAGS"
12058     LDFLAGS="$save_LDFLAGS"
12059     LIBS="$save_LIBS"
12060     ;;
12061   esac
12062
12063   case $lt_cv_dlopen_self in
12064   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12065   *) enable_dlopen_self=unknown ;;
12066   esac
12067
12068   case $lt_cv_dlopen_self_static in
12069   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12070   *) enable_dlopen_self_static=unknown ;;
12071   esac
12072 fi
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090 striplib=
12091 old_striplib=
12092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12093 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12094 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12095   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12096   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12098 $as_echo "yes" >&6; }
12099 else
12100 # FIXME - insert some real tests, host_os isn't really good enough
12101   case $host_os in
12102   darwin*)
12103     if test -n "$STRIP" ; then
12104       striplib="$STRIP -x"
12105       old_striplib="$STRIP -S"
12106       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12107 $as_echo "yes" >&6; }
12108     else
12109       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12110 $as_echo "no" >&6; }
12111     fi
12112     ;;
12113   *)
12114     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12115 $as_echo "no" >&6; }
12116     ;;
12117   esac
12118 fi
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131   # Report which library types will actually be built
12132   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12133 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12135 $as_echo "$can_build_shared" >&6; }
12136
12137   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12138 $as_echo_n "checking whether to build shared libraries... " >&6; }
12139   test "$can_build_shared" = "no" && enable_shared=no
12140
12141   # On AIX, shared libraries and static libraries use the same namespace, and
12142   # are all built from PIC.
12143   case $host_os in
12144   aix3*)
12145     test "$enable_shared" = yes && enable_static=no
12146     if test -n "$RANLIB"; then
12147       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12148       postinstall_cmds='$RANLIB $lib'
12149     fi
12150     ;;
12151
12152   aix[4-9]*)
12153     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12154       test "$enable_shared" = yes && enable_static=no
12155     fi
12156     ;;
12157   esac
12158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12159 $as_echo "$enable_shared" >&6; }
12160
12161   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12162 $as_echo_n "checking whether to build static libraries... " >&6; }
12163   # Make sure either enable_shared or enable_static is yes.
12164   test "$enable_shared" = yes || enable_static=yes
12165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12166 $as_echo "$enable_static" >&6; }
12167
12168
12169
12170
12171 fi
12172 ac_ext=c
12173 ac_cpp='$CPP $CPPFLAGS'
12174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12177
12178 CC="$lt_save_CC"
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194         ac_config_commands="$ac_config_commands libtool"
12195
12196
12197
12198
12199 # Only expand once:
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12211         if test -n "$ac_tool_prefix"; then
12212   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12213 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12215 $as_echo_n "checking for $ac_word... " >&6; }
12216 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12217   $as_echo_n "(cached) " >&6
12218 else
12219   case $PKG_CONFIG in
12220   [\\/]* | ?:[\\/]*)
12221   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12222   ;;
12223   *)
12224   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12225 for as_dir in $PATH
12226 do
12227   IFS=$as_save_IFS
12228   test -z "$as_dir" && as_dir=.
12229     for ac_exec_ext in '' $ac_executable_extensions; do
12230   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12231     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12232     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12233     break 2
12234   fi
12235 done
12236   done
12237 IFS=$as_save_IFS
12238
12239   ;;
12240 esac
12241 fi
12242 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12243 if test -n "$PKG_CONFIG"; then
12244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12245 $as_echo "$PKG_CONFIG" >&6; }
12246 else
12247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12248 $as_echo "no" >&6; }
12249 fi
12250
12251
12252 fi
12253 if test -z "$ac_cv_path_PKG_CONFIG"; then
12254   ac_pt_PKG_CONFIG=$PKG_CONFIG
12255   # Extract the first word of "pkg-config", so it can be a program name with args.
12256 set dummy pkg-config; ac_word=$2
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12258 $as_echo_n "checking for $ac_word... " >&6; }
12259 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12260   $as_echo_n "(cached) " >&6
12261 else
12262   case $ac_pt_PKG_CONFIG in
12263   [\\/]* | ?:[\\/]*)
12264   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12265   ;;
12266   *)
12267   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12268 for as_dir in $PATH
12269 do
12270   IFS=$as_save_IFS
12271   test -z "$as_dir" && as_dir=.
12272     for ac_exec_ext in '' $ac_executable_extensions; do
12273   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12274     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12275     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12276     break 2
12277   fi
12278 done
12279   done
12280 IFS=$as_save_IFS
12281
12282   ;;
12283 esac
12284 fi
12285 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12286 if test -n "$ac_pt_PKG_CONFIG"; then
12287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12288 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12289 else
12290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12291 $as_echo "no" >&6; }
12292 fi
12293
12294   if test "x$ac_pt_PKG_CONFIG" = x; then
12295     PKG_CONFIG=""
12296   else
12297     case $cross_compiling:$ac_tool_warned in
12298 yes:)
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12300 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12301 ac_tool_warned=yes ;;
12302 esac
12303     PKG_CONFIG=$ac_pt_PKG_CONFIG
12304   fi
12305 else
12306   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12307 fi
12308
12309 fi
12310 if test -n "$PKG_CONFIG"; then
12311         _pkg_min_version=0.9.0
12312         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12313 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12314         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12315                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12316 $as_echo "yes" >&6; }
12317         else
12318                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12319 $as_echo "no" >&6; }
12320                 PKG_CONFIG=""
12321         fi
12322 fi
12323
12324 pkg_failed=no
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGUPNP" >&5
12326 $as_echo_n "checking for LIBGUPNP... " >&6; }
12327
12328 if test -n "$LIBGUPNP_CFLAGS"; then
12329     pkg_cv_LIBGUPNP_CFLAGS="$LIBGUPNP_CFLAGS"
12330  elif test -n "$PKG_CONFIG"; then
12331     if test -n "$PKG_CONFIG" && \
12332     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gupnp-1.0 >= 0.19.0 \\
12333                             gobject-2.0 \\
12334                             libxml-2.0\""; } >&5
12335   ($PKG_CONFIG --exists --print-errors "gupnp-1.0 >= 0.19.0 \
12336                             gobject-2.0 \
12337                             libxml-2.0") 2>&5
12338   ac_status=$?
12339   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12340   test $ac_status = 0; }; then
12341   pkg_cv_LIBGUPNP_CFLAGS=`$PKG_CONFIG --cflags "gupnp-1.0 >= 0.19.0 \
12342                             gobject-2.0 \
12343                             libxml-2.0" 2>/dev/null`
12344                       test "x$?" != "x0" && pkg_failed=yes
12345 else
12346   pkg_failed=yes
12347 fi
12348  else
12349     pkg_failed=untried
12350 fi
12351 if test -n "$LIBGUPNP_LIBS"; then
12352     pkg_cv_LIBGUPNP_LIBS="$LIBGUPNP_LIBS"
12353  elif test -n "$PKG_CONFIG"; then
12354     if test -n "$PKG_CONFIG" && \
12355     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gupnp-1.0 >= 0.19.0 \\
12356                             gobject-2.0 \\
12357                             libxml-2.0\""; } >&5
12358   ($PKG_CONFIG --exists --print-errors "gupnp-1.0 >= 0.19.0 \
12359                             gobject-2.0 \
12360                             libxml-2.0") 2>&5
12361   ac_status=$?
12362   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12363   test $ac_status = 0; }; then
12364   pkg_cv_LIBGUPNP_LIBS=`$PKG_CONFIG --libs "gupnp-1.0 >= 0.19.0 \
12365                             gobject-2.0 \
12366                             libxml-2.0" 2>/dev/null`
12367                       test "x$?" != "x0" && pkg_failed=yes
12368 else
12369   pkg_failed=yes
12370 fi
12371  else
12372     pkg_failed=untried
12373 fi
12374
12375
12376
12377 if test $pkg_failed = yes; then
12378         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12379 $as_echo "no" >&6; }
12380
12381 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12382         _pkg_short_errors_supported=yes
12383 else
12384         _pkg_short_errors_supported=no
12385 fi
12386         if test $_pkg_short_errors_supported = yes; then
12387                 LIBGUPNP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gupnp-1.0 >= 0.19.0 \
12388                             gobject-2.0 \
12389                             libxml-2.0" 2>&1`
12390         else
12391                 LIBGUPNP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gupnp-1.0 >= 0.19.0 \
12392                             gobject-2.0 \
12393                             libxml-2.0" 2>&1`
12394         fi
12395         # Put the nasty error message in config.log where it belongs
12396         echo "$LIBGUPNP_PKG_ERRORS" >&5
12397
12398         as_fn_error $? "Package requirements (gupnp-1.0 >= 0.19.0 \
12399                             gobject-2.0 \
12400                             libxml-2.0) were not met:
12401
12402 $LIBGUPNP_PKG_ERRORS
12403
12404 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12405 installed software in a non-standard prefix.
12406
12407 Alternatively, you may set the environment variables LIBGUPNP_CFLAGS
12408 and LIBGUPNP_LIBS to avoid the need to call pkg-config.
12409 See the pkg-config man page for more details." "$LINENO" 5
12410 elif test $pkg_failed = untried; then
12411         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12412 $as_echo "no" >&6; }
12413         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12414 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12415 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
12416 is in your PATH or set the PKG_CONFIG environment variable to the full
12417 path to pkg-config.
12418
12419 Alternatively, you may set the environment variables LIBGUPNP_CFLAGS
12420 and LIBGUPNP_LIBS to avoid the need to call pkg-config.
12421 See the pkg-config man page for more details.
12422
12423 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12424 See \`config.log' for more details" "$LINENO" 5; }
12425 else
12426         LIBGUPNP_CFLAGS=$pkg_cv_LIBGUPNP_CFLAGS
12427         LIBGUPNP_LIBS=$pkg_cv_LIBGUPNP_LIBS
12428         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12429 $as_echo "yes" >&6; }
12430
12431 fi
12432
12433 # glib-genmarshal
12434 GLIB_GENMARSHAL=`pkg-config --variable=glib_genmarshal glib-2.0`
12435
12436
12437 # Debugging
12438 # Check whether --enable-debug was given.
12439 if test "${enable_debug+set}" = set; then :
12440   enableval=$enable_debug;
12441 else
12442   enable_debug=no
12443 fi
12444
12445 if test "x$enable_debug" = "xyes"; then
12446         CFLAGS="$CFLAGS -g -Wall"
12447 fi
12448
12449
12450
12451
12452                 # Check whether --enable-introspection was given.
12453 if test "${enable_introspection+set}" = set; then :
12454   enableval=$enable_introspection;
12455 else
12456   enable_introspection=auto
12457 fi
12458
12459
12460     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-introspection" >&5
12461 $as_echo_n "checking for gobject-introspection... " >&6; }
12462
12463         case $enable_introspection in #(
12464   no) :
12465             found_introspection="no (disabled, use --enable-introspection to enable)"
12466      ;; #(
12467       yes) :
12468             if test -n "$PKG_CONFIG" && \
12469     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0\""; } >&5
12470   ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0") 2>&5
12471   ac_status=$?
12472   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12473   test $ac_status = 0; }; then
12474   :
12475 else
12476   as_fn_error $? "gobject-introspection-1.0 is not installed" "$LINENO" 5
12477 fi
12478         if test -n "$PKG_CONFIG" && \
12479     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 0.9.5\""; } >&5
12480   ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 0.9.5") 2>&5
12481   ac_status=$?
12482   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12483   test $ac_status = 0; }; then
12484   found_introspection=yes
12485 else
12486   as_fn_error $? "You need to have gobject-introspection >= 0.9.5 installed to build gupnp-av" "$LINENO" 5
12487 fi
12488      ;; #(
12489       auto) :
12490             if test -n "$PKG_CONFIG" && \
12491     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 0.9.5\""; } >&5
12492   ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 0.9.5") 2>&5
12493   ac_status=$?
12494   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12495   test $ac_status = 0; }; then
12496   found_introspection=yes
12497 else
12498   found_introspection=no
12499 fi
12500      ;; #(
12501   *) :
12502                 as_fn_error $? "invalid argument passed to --enable-introspection, should be one of [no/auto/yes]" "$LINENO" 5
12503      ;;
12504 esac
12505     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_introspection" >&5
12506 $as_echo "$found_introspection" >&6; }
12507
12508     INTROSPECTION_SCANNER=
12509     INTROSPECTION_COMPILER=
12510     INTROSPECTION_GENERATE=
12511     INTROSPECTION_GIRDIR=
12512     INTROSPECTION_TYPELIBDIR=
12513     if test "x$found_introspection" = "xyes"; then
12514        INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
12515        INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
12516        INTROSPECTION_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0`
12517        INTROSPECTION_GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0`
12518        INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)"
12519        INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0`
12520        INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0`
12521        INTROSPECTION_MAKEFILE=`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection
12522     fi
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532      if test "x$found_introspection" = "xyes"; then
12533   HAVE_INTROSPECTION_TRUE=
12534   HAVE_INTROSPECTION_FALSE='#'
12535 else
12536   HAVE_INTROSPECTION_TRUE='#'
12537   HAVE_INTROSPECTION_FALSE=
12538 fi
12539
12540
12541
12542
12543 # vapigen
12544 have_vapigen=no
12545 if test "x$found_introspection" = "xyes"; then :
12546
12547               { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether G-I is 1.36 or newer" >&5
12548 $as_echo_n "checking whether G-I is 1.36 or newer... " >&6; }
12549        VAPIGEN_MIN_VERSION=0.14
12550        if pkg-config --atleast-version=1.36.0 gobject-introspection-1.0; then :
12551
12552               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12553 $as_echo "yes" >&6; }
12554               VAPIGEN_MIN_VERSION=0.20
12555
12556 else
12557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12558 $as_echo "no" >&6; }
12559
12560 fi
12561        # Extract the first word of "vapigen", so it can be a program name with args.
12562 set dummy vapigen; ac_word=$2
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12564 $as_echo_n "checking for $ac_word... " >&6; }
12565 if ${ac_cv_path_VAPIGEN+:} false; then :
12566   $as_echo_n "(cached) " >&6
12567 else
12568   case $VAPIGEN in
12569   [\\/]* | ?:[\\/]*)
12570   ac_cv_path_VAPIGEN="$VAPIGEN" # Let the user override the test with a path.
12571   ;;
12572   *)
12573   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12574 for as_dir in $PATH
12575 do
12576   IFS=$as_save_IFS
12577   test -z "$as_dir" && as_dir=.
12578     for ac_exec_ext in '' $ac_executable_extensions; do
12579   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12580     ac_cv_path_VAPIGEN="$as_dir/$ac_word$ac_exec_ext"
12581     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12582     break 2
12583   fi
12584 done
12585   done
12586 IFS=$as_save_IFS
12587
12588   ;;
12589 esac
12590 fi
12591 VAPIGEN=$ac_cv_path_VAPIGEN
12592 if test -n "$VAPIGEN"; then
12593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VAPIGEN" >&5
12594 $as_echo "$VAPIGEN" >&6; }
12595 else
12596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12597 $as_echo "no" >&6; }
12598 fi
12599
12600
12601   if test -z "$VAPIGEN"; then :
12602   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No Vala API Generator found. You will not be able to generate .vapi files." >&5
12603 $as_echo "$as_me: WARNING: No Vala API Generator found. You will not be able to generate .vapi files." >&2;}
12604 else
12605   if test -n "$VAPIGEN_MIN_VERSION"; then :
12606   { $as_echo "$as_me:${as_lineno-$LINENO}: checking $VAPIGEN is at least version $VAPIGEN_MIN_VERSION" >&5
12607 $as_echo_n "checking $VAPIGEN is at least version $VAPIGEN_MIN_VERSION... " >&6; }
12608          am__vapigen_version=`$VAPIGEN --version | sed 's/Vala API Generator  *//'`
12609          as_arg_v1=$VAPIGEN_MIN_VERSION
12610 as_arg_v2="$am__vapigen_version"
12611 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
12612 case $? in #(
12613   1) :
12614     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12615 $as_echo "yes" >&6; } ;; #(
12616   0) :
12617     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12618 $as_echo "yes" >&6; } ;; #(
12619   2) :
12620     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12621 $as_echo "no" >&6; }
12622             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Vala API Generator $VAPIGEN_MIN_VERSION not found." >&5
12623 $as_echo "$as_me: WARNING: Vala API Generator $VAPIGEN_MIN_VERSION not found." >&2;}
12624             VAPIGEN=""
12625             ;; #(
12626   *) :
12627      ;;
12628 esac
12629 fi
12630 fi
12631
12632
12633
12634 fi
12635 if test "x$VAPIGEN" != "x"; then :
12636   have_vapigen=yes
12637 fi
12638  if test "x$VAPIGEN" != "x"; then
12639   HAVE_VAPIGEN_TRUE=
12640   HAVE_VAPIGEN_FALSE='#'
12641 else
12642   HAVE_VAPIGEN_TRUE='#'
12643   HAVE_VAPIGEN_FALSE=
12644 fi
12645
12646
12647
12648
12649
12650     # Extract the first word of "gtkdoc-check", so it can be a program name with args.
12651 set dummy gtkdoc-check; ac_word=$2
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12653 $as_echo_n "checking for $ac_word... " >&6; }
12654 if ${ac_cv_path_GTKDOC_CHECK+:} false; then :
12655   $as_echo_n "(cached) " >&6
12656 else
12657   case $GTKDOC_CHECK in
12658   [\\/]* | ?:[\\/]*)
12659   ac_cv_path_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test with a path.
12660   ;;
12661   *)
12662   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12663 for as_dir in $PATH
12664 do
12665   IFS=$as_save_IFS
12666   test -z "$as_dir" && as_dir=.
12667     for ac_exec_ext in '' $ac_executable_extensions; do
12668   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12669     ac_cv_path_GTKDOC_CHECK="$as_dir/$ac_word$ac_exec_ext"
12670     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12671     break 2
12672   fi
12673 done
12674   done
12675 IFS=$as_save_IFS
12676
12677   ;;
12678 esac
12679 fi
12680 GTKDOC_CHECK=$ac_cv_path_GTKDOC_CHECK
12681 if test -n "$GTKDOC_CHECK"; then
12682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
12683 $as_echo "$GTKDOC_CHECK" >&6; }
12684 else
12685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12686 $as_echo "no" >&6; }
12687 fi
12688
12689
12690   for ac_prog in gtkdoc-rebase
12691 do
12692   # Extract the first word of "$ac_prog", so it can be a program name with args.
12693 set dummy $ac_prog; ac_word=$2
12694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12695 $as_echo_n "checking for $ac_word... " >&6; }
12696 if ${ac_cv_path_GTKDOC_REBASE+:} false; then :
12697   $as_echo_n "(cached) " >&6
12698 else
12699   case $GTKDOC_REBASE in
12700   [\\/]* | ?:[\\/]*)
12701   ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path.
12702   ;;
12703   *)
12704   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12705 for as_dir in $PATH
12706 do
12707   IFS=$as_save_IFS
12708   test -z "$as_dir" && as_dir=.
12709     for ac_exec_ext in '' $ac_executable_extensions; do
12710   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12711     ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext"
12712     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12713     break 2
12714   fi
12715 done
12716   done
12717 IFS=$as_save_IFS
12718
12719   ;;
12720 esac
12721 fi
12722 GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE
12723 if test -n "$GTKDOC_REBASE"; then
12724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5
12725 $as_echo "$GTKDOC_REBASE" >&6; }
12726 else
12727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12728 $as_echo "no" >&6; }
12729 fi
12730
12731
12732   test -n "$GTKDOC_REBASE" && break
12733 done
12734 test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true"
12735
12736   # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args.
12737 set dummy gtkdoc-mkpdf; ac_word=$2
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12739 $as_echo_n "checking for $ac_word... " >&6; }
12740 if ${ac_cv_path_GTKDOC_MKPDF+:} false; then :
12741   $as_echo_n "(cached) " >&6
12742 else
12743   case $GTKDOC_MKPDF in
12744   [\\/]* | ?:[\\/]*)
12745   ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path.
12746   ;;
12747   *)
12748   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12749 for as_dir in $PATH
12750 do
12751   IFS=$as_save_IFS
12752   test -z "$as_dir" && as_dir=.
12753     for ac_exec_ext in '' $ac_executable_extensions; do
12754   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12755     ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext"
12756     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12757     break 2
12758   fi
12759 done
12760   done
12761 IFS=$as_save_IFS
12762
12763   ;;
12764 esac
12765 fi
12766 GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF
12767 if test -n "$GTKDOC_MKPDF"; then
12768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5
12769 $as_echo "$GTKDOC_MKPDF" >&6; }
12770 else
12771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12772 $as_echo "no" >&6; }
12773 fi
12774
12775
12776
12777
12778 # Check whether --with-html-dir was given.
12779 if test "${with_html_dir+set}" = set; then :
12780   withval=$with_html_dir;
12781 else
12782   with_html_dir='${datadir}/gtk-doc/html'
12783 fi
12784
12785   HTML_DIR="$with_html_dir"
12786
12787
12788     # Check whether --enable-gtk-doc was given.
12789 if test "${enable_gtk_doc+set}" = set; then :
12790   enableval=$enable_gtk_doc;
12791 else
12792   enable_gtk_doc=no
12793 fi
12794
12795
12796   if test x$enable_gtk_doc = xyes; then
12797     if test -n "$PKG_CONFIG" && \
12798     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-doc >= 1.10\""; } >&5
12799   ($PKG_CONFIG --exists --print-errors "gtk-doc >= 1.10") 2>&5
12800   ac_status=$?
12801   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12802   test $ac_status = 0; }; then
12803   :
12804 else
12805   as_fn_error $? "You need to have gtk-doc >= 1.10 installed to build $PACKAGE_NAME" "$LINENO" 5
12806 fi
12807         if test "x$PACKAGE_NAME" != "xglib"; then
12808
12809 pkg_failed=no
12810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTKDOC_DEPS" >&5
12811 $as_echo_n "checking for GTKDOC_DEPS... " >&6; }
12812
12813 if test -n "$GTKDOC_DEPS_CFLAGS"; then
12814     pkg_cv_GTKDOC_DEPS_CFLAGS="$GTKDOC_DEPS_CFLAGS"
12815  elif test -n "$PKG_CONFIG"; then
12816     if test -n "$PKG_CONFIG" && \
12817     { { $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
12818   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0") 2>&5
12819   ac_status=$?
12820   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12821   test $ac_status = 0; }; then
12822   pkg_cv_GTKDOC_DEPS_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>/dev/null`
12823                       test "x$?" != "x0" && pkg_failed=yes
12824 else
12825   pkg_failed=yes
12826 fi
12827  else
12828     pkg_failed=untried
12829 fi
12830 if test -n "$GTKDOC_DEPS_LIBS"; then
12831     pkg_cv_GTKDOC_DEPS_LIBS="$GTKDOC_DEPS_LIBS"
12832  elif test -n "$PKG_CONFIG"; then
12833     if test -n "$PKG_CONFIG" && \
12834     { { $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
12835   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0") 2>&5
12836   ac_status=$?
12837   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12838   test $ac_status = 0; }; then
12839   pkg_cv_GTKDOC_DEPS_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>/dev/null`
12840                       test "x$?" != "x0" && pkg_failed=yes
12841 else
12842   pkg_failed=yes
12843 fi
12844  else
12845     pkg_failed=untried
12846 fi
12847
12848
12849
12850 if test $pkg_failed = yes; then
12851         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12852 $as_echo "no" >&6; }
12853
12854 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12855         _pkg_short_errors_supported=yes
12856 else
12857         _pkg_short_errors_supported=no
12858 fi
12859         if test $_pkg_short_errors_supported = yes; then
12860                 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`
12861         else
12862                 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>&1`
12863         fi
12864         # Put the nasty error message in config.log where it belongs
12865         echo "$GTKDOC_DEPS_PKG_ERRORS" >&5
12866
12867         :
12868 elif test $pkg_failed = untried; then
12869         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12870 $as_echo "no" >&6; }
12871         :
12872 else
12873         GTKDOC_DEPS_CFLAGS=$pkg_cv_GTKDOC_DEPS_CFLAGS
12874         GTKDOC_DEPS_LIBS=$pkg_cv_GTKDOC_DEPS_LIBS
12875         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12876 $as_echo "yes" >&6; }
12877
12878 fi
12879     fi
12880   fi
12881
12882   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
12883 $as_echo_n "checking whether to build gtk-doc documentation... " >&6; }
12884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
12885 $as_echo "$enable_gtk_doc" >&6; }
12886
12887     # Check whether --enable-gtk-doc-html was given.
12888 if test "${enable_gtk_doc_html+set}" = set; then :
12889   enableval=$enable_gtk_doc_html;
12890 else
12891   enable_gtk_doc_html=yes
12892 fi
12893
12894     # Check whether --enable-gtk-doc-pdf was given.
12895 if test "${enable_gtk_doc_pdf+set}" = set; then :
12896   enableval=$enable_gtk_doc_pdf;
12897 else
12898   enable_gtk_doc_pdf=no
12899 fi
12900
12901
12902   if test -z "$GTKDOC_MKPDF"; then
12903     enable_gtk_doc_pdf=no
12904   fi
12905
12906   if test -z "$AM_DEFAULT_VERBOSITY"; then
12907     AM_DEFAULT_VERBOSITY=1
12908   fi
12909
12910
12911    if test x$enable_gtk_doc = xyes; then
12912   ENABLE_GTK_DOC_TRUE=
12913   ENABLE_GTK_DOC_FALSE='#'
12914 else
12915   ENABLE_GTK_DOC_TRUE='#'
12916   ENABLE_GTK_DOC_FALSE=
12917 fi
12918
12919    if test x$enable_gtk_doc_html = xyes; then
12920   GTK_DOC_BUILD_HTML_TRUE=
12921   GTK_DOC_BUILD_HTML_FALSE='#'
12922 else
12923   GTK_DOC_BUILD_HTML_TRUE='#'
12924   GTK_DOC_BUILD_HTML_FALSE=
12925 fi
12926
12927    if test x$enable_gtk_doc_pdf = xyes; then
12928   GTK_DOC_BUILD_PDF_TRUE=
12929   GTK_DOC_BUILD_PDF_FALSE='#'
12930 else
12931   GTK_DOC_BUILD_PDF_TRUE='#'
12932   GTK_DOC_BUILD_PDF_FALSE=
12933 fi
12934
12935    if test -n "$LIBTOOL"; then
12936   GTK_DOC_USE_LIBTOOL_TRUE=
12937   GTK_DOC_USE_LIBTOOL_FALSE='#'
12938 else
12939   GTK_DOC_USE_LIBTOOL_TRUE='#'
12940   GTK_DOC_USE_LIBTOOL_FALSE=
12941 fi
12942
12943    if test -n "$GTKDOC_REBASE"; then
12944   GTK_DOC_USE_REBASE_TRUE=
12945   GTK_DOC_USE_REBASE_FALSE='#'
12946 else
12947   GTK_DOC_USE_REBASE_TRUE='#'
12948   GTK_DOC_USE_REBASE_FALSE=
12949 fi
12950
12951
12952
12953 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"
12954
12955 cat >confcache <<\_ACEOF
12956 # This file is a shell script that caches the results of configure
12957 # tests run on this system so they can be shared between configure
12958 # scripts and configure runs, see configure's option --config-cache.
12959 # It is not useful on other systems.  If it contains results you don't
12960 # want to keep, you may remove or edit it.
12961 #
12962 # config.status only pays attention to the cache file if you give it
12963 # the --recheck option to rerun configure.
12964 #
12965 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12966 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12967 # following values.
12968
12969 _ACEOF
12970
12971 # The following way of writing the cache mishandles newlines in values,
12972 # but we know of no workaround that is simple, portable, and efficient.
12973 # So, we kill variables containing newlines.
12974 # Ultrix sh set writes to stderr and can't be redirected directly,
12975 # and sets the high bit in the cache file unless we assign to the vars.
12976 (
12977   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12978     eval ac_val=\$$ac_var
12979     case $ac_val in #(
12980     *${as_nl}*)
12981       case $ac_var in #(
12982       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12983 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12984       esac
12985       case $ac_var in #(
12986       _ | IFS | as_nl) ;; #(
12987       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12988       *) { eval $ac_var=; unset $ac_var;} ;;
12989       esac ;;
12990     esac
12991   done
12992
12993   (set) 2>&1 |
12994     case $as_nl`(ac_space=' '; set) 2>&1` in #(
12995     *${as_nl}ac_space=\ *)
12996       # `set' does not quote correctly, so add quotes: double-quote
12997       # substitution turns \\\\ into \\, and sed turns \\ into \.
12998       sed -n \
12999         "s/'/'\\\\''/g;
13000           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13001       ;; #(
13002     *)
13003       # `set' quotes correctly as required by POSIX, so do not add quotes.
13004       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13005       ;;
13006     esac |
13007     sort
13008 ) |
13009   sed '
13010      /^ac_cv_env_/b end
13011      t clear
13012      :clear
13013      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13014      t end
13015      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13016      :end' >>confcache
13017 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13018   if test -w "$cache_file"; then
13019     if test "x$cache_file" != "x/dev/null"; then
13020       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13021 $as_echo "$as_me: updating cache $cache_file" >&6;}
13022       if test ! -f "$cache_file" || test -h "$cache_file"; then
13023         cat confcache >"$cache_file"
13024       else
13025         case $cache_file in #(
13026         */* | ?:*)
13027           mv -f confcache "$cache_file"$$ &&
13028           mv -f "$cache_file"$$ "$cache_file" ;; #(
13029         *)
13030           mv -f confcache "$cache_file" ;;
13031         esac
13032       fi
13033     fi
13034   else
13035     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13036 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13037   fi
13038 fi
13039 rm -f confcache
13040
13041 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13042 # Let make expand exec_prefix.
13043 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13044
13045 DEFS=-DHAVE_CONFIG_H
13046
13047 ac_libobjs=
13048 ac_ltlibobjs=
13049 U=
13050 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13051   # 1. Remove the extension, and $U if already installed.
13052   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13053   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13054   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13055   #    will be set to the directory where LIBOBJS objects are built.
13056   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13057   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13058 done
13059 LIBOBJS=$ac_libobjs
13060
13061 LTLIBOBJS=$ac_ltlibobjs
13062
13063
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13065 $as_echo_n "checking that generated files are newer than configure... " >&6; }
13066    if test -n "$am_sleep_pid"; then
13067      # Hide warnings about reused PIDs.
13068      wait $am_sleep_pid 2>/dev/null
13069    fi
13070    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13071 $as_echo "done" >&6; }
13072  if test -n "$EXEEXT"; then
13073   am__EXEEXT_TRUE=
13074   am__EXEEXT_FALSE='#'
13075 else
13076   am__EXEEXT_TRUE='#'
13077   am__EXEEXT_FALSE=
13078 fi
13079
13080 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13081   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
13082 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13083 fi
13084 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13085   as_fn_error $? "conditional \"AMDEP\" was never defined.
13086 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13087 fi
13088 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13089   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13090 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13091 fi
13092 if test -z "${HAVE_INTROSPECTION_TRUE}" && test -z "${HAVE_INTROSPECTION_FALSE}"; then
13093   as_fn_error $? "conditional \"HAVE_INTROSPECTION\" was never defined.
13094 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13095 fi
13096 if test -z "${HAVE_VAPIGEN_TRUE}" && test -z "${HAVE_VAPIGEN_FALSE}"; then
13097   as_fn_error $? "conditional \"HAVE_VAPIGEN\" was never defined.
13098 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13099 fi
13100 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
13101   as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
13102 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13103 fi
13104 if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then
13105   as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined.
13106 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13107 fi
13108 if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then
13109   as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined.
13110 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13111 fi
13112 if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
13113   as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
13114 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13115 fi
13116 if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then
13117   as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined.
13118 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13119 fi
13120
13121 : "${CONFIG_STATUS=./config.status}"
13122 ac_write_fail=0
13123 ac_clean_files_save=$ac_clean_files
13124 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13126 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13127 as_write_fail=0
13128 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13129 #! $SHELL
13130 # Generated by $as_me.
13131 # Run this file to recreate the current configuration.
13132 # Compiler output produced by configure, useful for debugging
13133 # configure, is in config.log if it exists.
13134
13135 debug=false
13136 ac_cs_recheck=false
13137 ac_cs_silent=false
13138
13139 SHELL=\${CONFIG_SHELL-$SHELL}
13140 export SHELL
13141 _ASEOF
13142 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13143 ## -------------------- ##
13144 ## M4sh Initialization. ##
13145 ## -------------------- ##
13146
13147 # Be more Bourne compatible
13148 DUALCASE=1; export DUALCASE # for MKS sh
13149 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13150   emulate sh
13151   NULLCMD=:
13152   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13153   # is contrary to our usage.  Disable this feature.
13154   alias -g '${1+"$@"}'='"$@"'
13155   setopt NO_GLOB_SUBST
13156 else
13157   case `(set -o) 2>/dev/null` in #(
13158   *posix*) :
13159     set -o posix ;; #(
13160   *) :
13161      ;;
13162 esac
13163 fi
13164
13165
13166 as_nl='
13167 '
13168 export as_nl
13169 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13170 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13171 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13172 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13173 # Prefer a ksh shell builtin over an external printf program on Solaris,
13174 # but without wasting forks for bash or zsh.
13175 if test -z "$BASH_VERSION$ZSH_VERSION" \
13176     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13177   as_echo='print -r --'
13178   as_echo_n='print -rn --'
13179 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13180   as_echo='printf %s\n'
13181   as_echo_n='printf %s'
13182 else
13183   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13184     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13185     as_echo_n='/usr/ucb/echo -n'
13186   else
13187     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13188     as_echo_n_body='eval
13189       arg=$1;
13190       case $arg in #(
13191       *"$as_nl"*)
13192         expr "X$arg" : "X\\(.*\\)$as_nl";
13193         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13194       esac;
13195       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13196     '
13197     export as_echo_n_body
13198     as_echo_n='sh -c $as_echo_n_body as_echo'
13199   fi
13200   export as_echo_body
13201   as_echo='sh -c $as_echo_body as_echo'
13202 fi
13203
13204 # The user is always right.
13205 if test "${PATH_SEPARATOR+set}" != set; then
13206   PATH_SEPARATOR=:
13207   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13208     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13209       PATH_SEPARATOR=';'
13210   }
13211 fi
13212
13213
13214 # IFS
13215 # We need space, tab and new line, in precisely that order.  Quoting is
13216 # there to prevent editors from complaining about space-tab.
13217 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13218 # splitting by setting IFS to empty value.)
13219 IFS=" ""        $as_nl"
13220
13221 # Find who we are.  Look in the path if we contain no directory separator.
13222 as_myself=
13223 case $0 in #((
13224   *[\\/]* ) as_myself=$0 ;;
13225   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13226 for as_dir in $PATH
13227 do
13228   IFS=$as_save_IFS
13229   test -z "$as_dir" && as_dir=.
13230     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13231   done
13232 IFS=$as_save_IFS
13233
13234      ;;
13235 esac
13236 # We did not find ourselves, most probably we were run as `sh COMMAND'
13237 # in which case we are not to be found in the path.
13238 if test "x$as_myself" = x; then
13239   as_myself=$0
13240 fi
13241 if test ! -f "$as_myself"; then
13242   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13243   exit 1
13244 fi
13245
13246 # Unset variables that we do not need and which cause bugs (e.g. in
13247 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13248 # suppresses any "Segmentation fault" message there.  '((' could
13249 # trigger a bug in pdksh 5.2.14.
13250 for as_var in BASH_ENV ENV MAIL MAILPATH
13251 do eval test x\${$as_var+set} = xset \
13252   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13253 done
13254 PS1='$ '
13255 PS2='> '
13256 PS4='+ '
13257
13258 # NLS nuisances.
13259 LC_ALL=C
13260 export LC_ALL
13261 LANGUAGE=C
13262 export LANGUAGE
13263
13264 # CDPATH.
13265 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13266
13267
13268 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13269 # ----------------------------------------
13270 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13271 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13272 # script with STATUS, using 1 if that was 0.
13273 as_fn_error ()
13274 {
13275   as_status=$1; test $as_status -eq 0 && as_status=1
13276   if test "$4"; then
13277     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13278     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13279   fi
13280   $as_echo "$as_me: error: $2" >&2
13281   as_fn_exit $as_status
13282 } # as_fn_error
13283
13284
13285 # as_fn_set_status STATUS
13286 # -----------------------
13287 # Set $? to STATUS, without forking.
13288 as_fn_set_status ()
13289 {
13290   return $1
13291 } # as_fn_set_status
13292
13293 # as_fn_exit STATUS
13294 # -----------------
13295 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13296 as_fn_exit ()
13297 {
13298   set +e
13299   as_fn_set_status $1
13300   exit $1
13301 } # as_fn_exit
13302
13303 # as_fn_unset VAR
13304 # ---------------
13305 # Portably unset VAR.
13306 as_fn_unset ()
13307 {
13308   { eval $1=; unset $1;}
13309 }
13310 as_unset=as_fn_unset
13311 # as_fn_append VAR VALUE
13312 # ----------------------
13313 # Append the text in VALUE to the end of the definition contained in VAR. Take
13314 # advantage of any shell optimizations that allow amortized linear growth over
13315 # repeated appends, instead of the typical quadratic growth present in naive
13316 # implementations.
13317 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13318   eval 'as_fn_append ()
13319   {
13320     eval $1+=\$2
13321   }'
13322 else
13323   as_fn_append ()
13324   {
13325     eval $1=\$$1\$2
13326   }
13327 fi # as_fn_append
13328
13329 # as_fn_arith ARG...
13330 # ------------------
13331 # Perform arithmetic evaluation on the ARGs, and store the result in the
13332 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13333 # must be portable across $(()) and expr.
13334 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13335   eval 'as_fn_arith ()
13336   {
13337     as_val=$(( $* ))
13338   }'
13339 else
13340   as_fn_arith ()
13341   {
13342     as_val=`expr "$@" || test $? -eq 1`
13343   }
13344 fi # as_fn_arith
13345
13346
13347 if expr a : '\(a\)' >/dev/null 2>&1 &&
13348    test "X`expr 00001 : '.*\(...\)'`" = X001; then
13349   as_expr=expr
13350 else
13351   as_expr=false
13352 fi
13353
13354 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13355   as_basename=basename
13356 else
13357   as_basename=false
13358 fi
13359
13360 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13361   as_dirname=dirname
13362 else
13363   as_dirname=false
13364 fi
13365
13366 as_me=`$as_basename -- "$0" ||
13367 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13368          X"$0" : 'X\(//\)$' \| \
13369          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13370 $as_echo X/"$0" |
13371     sed '/^.*\/\([^/][^/]*\)\/*$/{
13372             s//\1/
13373             q
13374           }
13375           /^X\/\(\/\/\)$/{
13376             s//\1/
13377             q
13378           }
13379           /^X\/\(\/\).*/{
13380             s//\1/
13381             q
13382           }
13383           s/.*/./; q'`
13384
13385 # Avoid depending upon Character Ranges.
13386 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13387 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13388 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13389 as_cr_digits='0123456789'
13390 as_cr_alnum=$as_cr_Letters$as_cr_digits
13391
13392 ECHO_C= ECHO_N= ECHO_T=
13393 case `echo -n x` in #(((((
13394 -n*)
13395   case `echo 'xy\c'` in
13396   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
13397   xy)  ECHO_C='\c';;
13398   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13399        ECHO_T=' ';;
13400   esac;;
13401 *)
13402   ECHO_N='-n';;
13403 esac
13404
13405 rm -f conf$$ conf$$.exe conf$$.file
13406 if test -d conf$$.dir; then
13407   rm -f conf$$.dir/conf$$.file
13408 else
13409   rm -f conf$$.dir
13410   mkdir conf$$.dir 2>/dev/null
13411 fi
13412 if (echo >conf$$.file) 2>/dev/null; then
13413   if ln -s conf$$.file conf$$ 2>/dev/null; then
13414     as_ln_s='ln -s'
13415     # ... but there are two gotchas:
13416     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13417     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13418     # In both cases, we have to default to `cp -pR'.
13419     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13420       as_ln_s='cp -pR'
13421   elif ln conf$$.file conf$$ 2>/dev/null; then
13422     as_ln_s=ln
13423   else
13424     as_ln_s='cp -pR'
13425   fi
13426 else
13427   as_ln_s='cp -pR'
13428 fi
13429 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13430 rmdir conf$$.dir 2>/dev/null
13431
13432
13433 # as_fn_mkdir_p
13434 # -------------
13435 # Create "$as_dir" as a directory, including parents if necessary.
13436 as_fn_mkdir_p ()
13437 {
13438
13439   case $as_dir in #(
13440   -*) as_dir=./$as_dir;;
13441   esac
13442   test -d "$as_dir" || eval $as_mkdir_p || {
13443     as_dirs=
13444     while :; do
13445       case $as_dir in #(
13446       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13447       *) as_qdir=$as_dir;;
13448       esac
13449       as_dirs="'$as_qdir' $as_dirs"
13450       as_dir=`$as_dirname -- "$as_dir" ||
13451 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13452          X"$as_dir" : 'X\(//\)[^/]' \| \
13453          X"$as_dir" : 'X\(//\)$' \| \
13454          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13455 $as_echo X"$as_dir" |
13456     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13457             s//\1/
13458             q
13459           }
13460           /^X\(\/\/\)[^/].*/{
13461             s//\1/
13462             q
13463           }
13464           /^X\(\/\/\)$/{
13465             s//\1/
13466             q
13467           }
13468           /^X\(\/\).*/{
13469             s//\1/
13470             q
13471           }
13472           s/.*/./; q'`
13473       test -d "$as_dir" && break
13474     done
13475     test -z "$as_dirs" || eval "mkdir $as_dirs"
13476   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13477
13478
13479 } # as_fn_mkdir_p
13480 if mkdir -p . 2>/dev/null; then
13481   as_mkdir_p='mkdir -p "$as_dir"'
13482 else
13483   test -d ./-p && rmdir ./-p
13484   as_mkdir_p=false
13485 fi
13486
13487
13488 # as_fn_executable_p FILE
13489 # -----------------------
13490 # Test if FILE is an executable regular file.
13491 as_fn_executable_p ()
13492 {
13493   test -f "$1" && test -x "$1"
13494 } # as_fn_executable_p
13495 as_test_x='test -x'
13496 as_executable_p=as_fn_executable_p
13497
13498 # Sed expression to map a string onto a valid CPP name.
13499 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13500
13501 # Sed expression to map a string onto a valid variable name.
13502 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13503
13504
13505 exec 6>&1
13506 ## ----------------------------------- ##
13507 ## Main body of $CONFIG_STATUS script. ##
13508 ## ----------------------------------- ##
13509 _ASEOF
13510 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13511
13512 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13513 # Save the log message, to keep $0 and so on meaningful, and to
13514 # report actual input values of CONFIG_FILES etc. instead of their
13515 # values after options handling.
13516 ac_log="
13517 This file was extended by gupnp-av $as_me 0.12.4, which was
13518 generated by GNU Autoconf 2.69.  Invocation command line was
13519
13520   CONFIG_FILES    = $CONFIG_FILES
13521   CONFIG_HEADERS  = $CONFIG_HEADERS
13522   CONFIG_LINKS    = $CONFIG_LINKS
13523   CONFIG_COMMANDS = $CONFIG_COMMANDS
13524   $ $0 $@
13525
13526 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13527 "
13528
13529 _ACEOF
13530
13531 case $ac_config_files in *"
13532 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13533 esac
13534
13535 case $ac_config_headers in *"
13536 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13537 esac
13538
13539
13540 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13541 # Files that config.status was made for.
13542 config_files="$ac_config_files"
13543 config_headers="$ac_config_headers"
13544 config_commands="$ac_config_commands"
13545
13546 _ACEOF
13547
13548 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13549 ac_cs_usage="\
13550 \`$as_me' instantiates files and other configuration actions
13551 from templates according to the current configuration.  Unless the files
13552 and actions are specified as TAGs, all are instantiated by default.
13553
13554 Usage: $0 [OPTION]... [TAG]...
13555
13556   -h, --help       print this help, then exit
13557   -V, --version    print version number and configuration settings, then exit
13558       --config     print configuration, then exit
13559   -q, --quiet, --silent
13560                    do not print progress messages
13561   -d, --debug      don't remove temporary files
13562       --recheck    update $as_me by reconfiguring in the same conditions
13563       --file=FILE[:TEMPLATE]
13564                    instantiate the configuration file FILE
13565       --header=FILE[:TEMPLATE]
13566                    instantiate the configuration header FILE
13567
13568 Configuration files:
13569 $config_files
13570
13571 Configuration headers:
13572 $config_headers
13573
13574 Configuration commands:
13575 $config_commands
13576
13577 Report bugs to <https://bugzilla.gnome.org/enter_bug.cgi?product=GUPnP>.
13578 gupnp-av home page: <http://www.gupnp.org/>."
13579
13580 _ACEOF
13581 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13582 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13583 ac_cs_version="\\
13584 gupnp-av config.status 0.12.4
13585 configured by $0, generated by GNU Autoconf 2.69,
13586   with options \\"\$ac_cs_config\\"
13587
13588 Copyright (C) 2012 Free Software Foundation, Inc.
13589 This config.status script is free software; the Free Software Foundation
13590 gives unlimited permission to copy, distribute and modify it."
13591
13592 ac_pwd='$ac_pwd'
13593 srcdir='$srcdir'
13594 INSTALL='$INSTALL'
13595 MKDIR_P='$MKDIR_P'
13596 AWK='$AWK'
13597 test -n "\$AWK" || AWK=awk
13598 _ACEOF
13599
13600 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13601 # The default lists apply if the user does not specify any file.
13602 ac_need_defaults=:
13603 while test $# != 0
13604 do
13605   case $1 in
13606   --*=?*)
13607     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13608     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13609     ac_shift=:
13610     ;;
13611   --*=)
13612     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13613     ac_optarg=
13614     ac_shift=:
13615     ;;
13616   *)
13617     ac_option=$1
13618     ac_optarg=$2
13619     ac_shift=shift
13620     ;;
13621   esac
13622
13623   case $ac_option in
13624   # Handling of the options.
13625   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13626     ac_cs_recheck=: ;;
13627   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13628     $as_echo "$ac_cs_version"; exit ;;
13629   --config | --confi | --conf | --con | --co | --c )
13630     $as_echo "$ac_cs_config"; exit ;;
13631   --debug | --debu | --deb | --de | --d | -d )
13632     debug=: ;;
13633   --file | --fil | --fi | --f )
13634     $ac_shift
13635     case $ac_optarg in
13636     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13637     '') as_fn_error $? "missing file argument" ;;
13638     esac
13639     as_fn_append CONFIG_FILES " '$ac_optarg'"
13640     ac_need_defaults=false;;
13641   --header | --heade | --head | --hea )
13642     $ac_shift
13643     case $ac_optarg in
13644     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13645     esac
13646     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13647     ac_need_defaults=false;;
13648   --he | --h)
13649     # Conflict between --help and --header
13650     as_fn_error $? "ambiguous option: \`$1'
13651 Try \`$0 --help' for more information.";;
13652   --help | --hel | -h )
13653     $as_echo "$ac_cs_usage"; exit ;;
13654   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13655   | -silent | --silent | --silen | --sile | --sil | --si | --s)
13656     ac_cs_silent=: ;;
13657
13658   # This is an error.
13659   -*) as_fn_error $? "unrecognized option: \`$1'
13660 Try \`$0 --help' for more information." ;;
13661
13662   *) as_fn_append ac_config_targets " $1"
13663      ac_need_defaults=false ;;
13664
13665   esac
13666   shift
13667 done
13668
13669 ac_configure_extra_args=
13670
13671 if $ac_cs_silent; then
13672   exec 6>/dev/null
13673   ac_configure_extra_args="$ac_configure_extra_args --silent"
13674 fi
13675
13676 _ACEOF
13677 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13678 if \$ac_cs_recheck; then
13679   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13680   shift
13681   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13682   CONFIG_SHELL='$SHELL'
13683   export CONFIG_SHELL
13684   exec "\$@"
13685 fi
13686
13687 _ACEOF
13688 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13689 exec 5>>config.log
13690 {
13691   echo
13692   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13693 ## Running $as_me. ##
13694 _ASBOX
13695   $as_echo "$ac_log"
13696 } >&5
13697
13698 _ACEOF
13699 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13700 #
13701 # INIT-COMMANDS
13702 #
13703 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13704
13705
13706 # The HP-UX ksh and POSIX shell print the target directory to stdout
13707 # if CDPATH is set.
13708 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13709
13710 sed_quote_subst='$sed_quote_subst'
13711 double_quote_subst='$double_quote_subst'
13712 delay_variable_subst='$delay_variable_subst'
13713 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13714 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13715 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
13716 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13717 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13718 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13719 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13720 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13721 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13722 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13723 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13724 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13725 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13726 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13727 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13728 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13729 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13730 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13731 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13732 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13733 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13734 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13735 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13736 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13737 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13738 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13739 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13740 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13741 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13742 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13743 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13744 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13745 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13746 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13747 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13748 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13749 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13750 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13751 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13752 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13753 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13754 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13755 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13756 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13757 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13758 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13759 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13760 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13761 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13762 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13763 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13764 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13765 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13766 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13767 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13768 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13769 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13770 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"`'
13771 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13772 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13773 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13774 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13775 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13776 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13777 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13778 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13779 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13780 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13781 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13782 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13783 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13784 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13785 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13786 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13787 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13788 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13789 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13790 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13791 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13792 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13793 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13794 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13795 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13796 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13797 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13798 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13799 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13800 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13801 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13802 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13803 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13804 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13805 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13806 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13807 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13808 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13809 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13810 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13811 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13812 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13813 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13814 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13815 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13816 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13817 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13818 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13819 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13820 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13821 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13822 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13823 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13824 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13825 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13826 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13827 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13828 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13829 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13830 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13831 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13832 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13833 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13834 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13835 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13836 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13837 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13838 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13839 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13840 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13841 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13842 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13843 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13844
13845 LTCC='$LTCC'
13846 LTCFLAGS='$LTCFLAGS'
13847 compiler='$compiler_DEFAULT'
13848
13849 # A function that is used when there is no print builtin or printf.
13850 func_fallback_echo ()
13851 {
13852   eval 'cat <<_LTECHO_EOF
13853 \$1
13854 _LTECHO_EOF'
13855 }
13856
13857 # Quote evaled strings.
13858 for var in AS \
13859 DLLTOOL \
13860 OBJDUMP \
13861 SHELL \
13862 ECHO \
13863 PATH_SEPARATOR \
13864 SED \
13865 GREP \
13866 EGREP \
13867 FGREP \
13868 LD \
13869 NM \
13870 LN_S \
13871 lt_SP2NL \
13872 lt_NL2SP \
13873 reload_flag \
13874 deplibs_check_method \
13875 file_magic_cmd \
13876 file_magic_glob \
13877 want_nocaseglob \
13878 sharedlib_from_linklib_cmd \
13879 AR \
13880 AR_FLAGS \
13881 archiver_list_spec \
13882 STRIP \
13883 RANLIB \
13884 CC \
13885 CFLAGS \
13886 compiler \
13887 lt_cv_sys_global_symbol_pipe \
13888 lt_cv_sys_global_symbol_to_cdecl \
13889 lt_cv_sys_global_symbol_to_c_name_address \
13890 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13891 nm_file_list_spec \
13892 lt_prog_compiler_no_builtin_flag \
13893 lt_prog_compiler_pic \
13894 lt_prog_compiler_wl \
13895 lt_prog_compiler_static \
13896 lt_cv_prog_compiler_c_o \
13897 need_locks \
13898 MANIFEST_TOOL \
13899 DSYMUTIL \
13900 NMEDIT \
13901 LIPO \
13902 OTOOL \
13903 OTOOL64 \
13904 shrext_cmds \
13905 export_dynamic_flag_spec \
13906 whole_archive_flag_spec \
13907 compiler_needs_object \
13908 with_gnu_ld \
13909 allow_undefined_flag \
13910 no_undefined_flag \
13911 hardcode_libdir_flag_spec \
13912 hardcode_libdir_separator \
13913 exclude_expsyms \
13914 include_expsyms \
13915 file_list_spec \
13916 variables_saved_for_relink \
13917 libname_spec \
13918 library_names_spec \
13919 soname_spec \
13920 install_override_mode \
13921 finish_eval \
13922 old_striplib \
13923 striplib; do
13924     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13925     *[\\\\\\\`\\"\\\$]*)
13926       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13927       ;;
13928     *)
13929       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13930       ;;
13931     esac
13932 done
13933
13934 # Double-quote double-evaled strings.
13935 for var in reload_cmds \
13936 old_postinstall_cmds \
13937 old_postuninstall_cmds \
13938 old_archive_cmds \
13939 extract_expsyms_cmds \
13940 old_archive_from_new_cmds \
13941 old_archive_from_expsyms_cmds \
13942 archive_cmds \
13943 archive_expsym_cmds \
13944 module_cmds \
13945 module_expsym_cmds \
13946 export_symbols_cmds \
13947 prelink_cmds \
13948 postlink_cmds \
13949 postinstall_cmds \
13950 postuninstall_cmds \
13951 finish_cmds \
13952 sys_lib_search_path_spec \
13953 sys_lib_dlsearch_path_spec; do
13954     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13955     *[\\\\\\\`\\"\\\$]*)
13956       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13957       ;;
13958     *)
13959       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13960       ;;
13961     esac
13962 done
13963
13964 ac_aux_dir='$ac_aux_dir'
13965 xsi_shell='$xsi_shell'
13966 lt_shell_append='$lt_shell_append'
13967
13968 # See if we are running on zsh, and set the options which allow our
13969 # commands through without removal of \ escapes INIT.
13970 if test -n "\${ZSH_VERSION+set}" ; then
13971    setopt NO_GLOB_SUBST
13972 fi
13973
13974
13975     PACKAGE='$PACKAGE'
13976     VERSION='$VERSION'
13977     TIMESTAMP='$TIMESTAMP'
13978     RM='$RM'
13979     ofile='$ofile'
13980
13981
13982
13983
13984 _ACEOF
13985
13986 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13987
13988 # Handling of arguments.
13989 for ac_config_target in $ac_config_targets
13990 do
13991   case $ac_config_target in
13992     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13993     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13994     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13995     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13996     "libgupnp-av/Makefile") CONFIG_FILES="$CONFIG_FILES libgupnp-av/Makefile" ;;
13997     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
13998     "tests/gtest/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gtest/Makefile" ;;
13999     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14000     "doc/version.xml") CONFIG_FILES="$CONFIG_FILES doc/version.xml" ;;
14001     "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
14002     "vala/Makefile") CONFIG_FILES="$CONFIG_FILES vala/Makefile" ;;
14003     "gupnp-av-1.0.pc") CONFIG_FILES="$CONFIG_FILES gupnp-av-1.0.pc" ;;
14004     "gupnp-av-1.0-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES gupnp-av-1.0-uninstalled.pc" ;;
14005
14006   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14007   esac
14008 done
14009
14010
14011 # If the user did not use the arguments to specify the items to instantiate,
14012 # then the envvar interface is used.  Set only those that are not.
14013 # We use the long form for the default assignment because of an extremely
14014 # bizarre bug on SunOS 4.1.3.
14015 if $ac_need_defaults; then
14016   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14017   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14018   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14019 fi
14020
14021 # Have a temporary directory for convenience.  Make it in the build tree
14022 # simply because there is no reason against having it here, and in addition,
14023 # creating and moving files from /tmp can sometimes cause problems.
14024 # Hook for its removal unless debugging.
14025 # Note that there is a small window in which the directory will not be cleaned:
14026 # after its creation but before its name has been assigned to `$tmp'.
14027 $debug ||
14028 {
14029   tmp= ac_tmp=
14030   trap 'exit_status=$?
14031   : "${ac_tmp:=$tmp}"
14032   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14033 ' 0
14034   trap 'as_fn_exit 1' 1 2 13 15
14035 }
14036 # Create a (secure) tmp directory for tmp files.
14037
14038 {
14039   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14040   test -d "$tmp"
14041 }  ||
14042 {
14043   tmp=./conf$$-$RANDOM
14044   (umask 077 && mkdir "$tmp")
14045 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14046 ac_tmp=$tmp
14047
14048 # Set up the scripts for CONFIG_FILES section.
14049 # No need to generate them if there are no CONFIG_FILES.
14050 # This happens for instance with `./config.status config.h'.
14051 if test -n "$CONFIG_FILES"; then
14052
14053
14054 ac_cr=`echo X | tr X '\015'`
14055 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14056 # But we know of no other shell where ac_cr would be empty at this
14057 # point, so we can use a bashism as a fallback.
14058 if test "x$ac_cr" = x; then
14059   eval ac_cr=\$\'\\r\'
14060 fi
14061 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14062 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14063   ac_cs_awk_cr='\\r'
14064 else
14065   ac_cs_awk_cr=$ac_cr
14066 fi
14067
14068 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14069 _ACEOF
14070
14071
14072 {
14073   echo "cat >conf$$subs.awk <<_ACEOF" &&
14074   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14075   echo "_ACEOF"
14076 } >conf$$subs.sh ||
14077   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14078 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14079 ac_delim='%!_!# '
14080 for ac_last_try in false false false false false :; do
14081   . ./conf$$subs.sh ||
14082     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14083
14084   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14085   if test $ac_delim_n = $ac_delim_num; then
14086     break
14087   elif $ac_last_try; then
14088     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14089   else
14090     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14091   fi
14092 done
14093 rm -f conf$$subs.sh
14094
14095 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14096 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14097 _ACEOF
14098 sed -n '
14099 h
14100 s/^/S["/; s/!.*/"]=/
14101 p
14102 g
14103 s/^[^!]*!//
14104 :repl
14105 t repl
14106 s/'"$ac_delim"'$//
14107 t delim
14108 :nl
14109 h
14110 s/\(.\{148\}\)..*/\1/
14111 t more1
14112 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14113 p
14114 n
14115 b repl
14116 :more1
14117 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14118 p
14119 g
14120 s/.\{148\}//
14121 t nl
14122 :delim
14123 h
14124 s/\(.\{148\}\)..*/\1/
14125 t more2
14126 s/["\\]/\\&/g; s/^/"/; s/$/"/
14127 p
14128 b
14129 :more2
14130 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14131 p
14132 g
14133 s/.\{148\}//
14134 t delim
14135 ' <conf$$subs.awk | sed '
14136 /^[^""]/{
14137   N
14138   s/\n//
14139 }
14140 ' >>$CONFIG_STATUS || ac_write_fail=1
14141 rm -f conf$$subs.awk
14142 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14143 _ACAWK
14144 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14145   for (key in S) S_is_set[key] = 1
14146   FS = "\a"
14147
14148 }
14149 {
14150   line = $ 0
14151   nfields = split(line, field, "@")
14152   substed = 0
14153   len = length(field[1])
14154   for (i = 2; i < nfields; i++) {
14155     key = field[i]
14156     keylen = length(key)
14157     if (S_is_set[key]) {
14158       value = S[key]
14159       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14160       len += length(value) + length(field[++i])
14161       substed = 1
14162     } else
14163       len += 1 + keylen
14164   }
14165
14166   print line
14167 }
14168
14169 _ACAWK
14170 _ACEOF
14171 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14172 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14173   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14174 else
14175   cat
14176 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14177   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14178 _ACEOF
14179
14180 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14181 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14182 # trailing colons and then remove the whole line if VPATH becomes empty
14183 # (actually we leave an empty line to preserve line numbers).
14184 if test "x$srcdir" = x.; then
14185   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
14186 h
14187 s///
14188 s/^/:/
14189 s/[      ]*$/:/
14190 s/:\$(srcdir):/:/g
14191 s/:\${srcdir}:/:/g
14192 s/:@srcdir@:/:/g
14193 s/^:*//
14194 s/:*$//
14195 x
14196 s/\(=[   ]*\).*/\1/
14197 G
14198 s/\n//
14199 s/^[^=]*=[       ]*$//
14200 }'
14201 fi
14202
14203 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14204 fi # test -n "$CONFIG_FILES"
14205
14206 # Set up the scripts for CONFIG_HEADERS section.
14207 # No need to generate them if there are no CONFIG_HEADERS.
14208 # This happens for instance with `./config.status Makefile'.
14209 if test -n "$CONFIG_HEADERS"; then
14210 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14211 BEGIN {
14212 _ACEOF
14213
14214 # Transform confdefs.h into an awk script `defines.awk', embedded as
14215 # here-document in config.status, that substitutes the proper values into
14216 # config.h.in to produce config.h.
14217
14218 # Create a delimiter string that does not exist in confdefs.h, to ease
14219 # handling of long lines.
14220 ac_delim='%!_!# '
14221 for ac_last_try in false false :; do
14222   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14223   if test -z "$ac_tt"; then
14224     break
14225   elif $ac_last_try; then
14226     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14227   else
14228     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14229   fi
14230 done
14231
14232 # For the awk script, D is an array of macro values keyed by name,
14233 # likewise P contains macro parameters if any.  Preserve backslash
14234 # newline sequences.
14235
14236 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14237 sed -n '
14238 s/.\{148\}/&'"$ac_delim"'/g
14239 t rset
14240 :rset
14241 s/^[     ]*#[    ]*define[       ][      ]*/ /
14242 t def
14243 d
14244 :def
14245 s/\\$//
14246 t bsnl
14247 s/["\\]/\\&/g
14248 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14249 D["\1"]=" \3"/p
14250 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
14251 d
14252 :bsnl
14253 s/["\\]/\\&/g
14254 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14255 D["\1"]=" \3\\\\\\n"\\/p
14256 t cont
14257 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14258 t cont
14259 d
14260 :cont
14261 n
14262 s/.\{148\}/&'"$ac_delim"'/g
14263 t clear
14264 :clear
14265 s/\\$//
14266 t bsnlc
14267 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14268 d
14269 :bsnlc
14270 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14271 b cont
14272 ' <confdefs.h | sed '
14273 s/'"$ac_delim"'/"\\\
14274 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14275
14276 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14277   for (key in D) D_is_set[key] = 1
14278   FS = "\a"
14279 }
14280 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14281   line = \$ 0
14282   split(line, arg, " ")
14283   if (arg[1] == "#") {
14284     defundef = arg[2]
14285     mac1 = arg[3]
14286   } else {
14287     defundef = substr(arg[1], 2)
14288     mac1 = arg[2]
14289   }
14290   split(mac1, mac2, "(") #)
14291   macro = mac2[1]
14292   prefix = substr(line, 1, index(line, defundef) - 1)
14293   if (D_is_set[macro]) {
14294     # Preserve the white space surrounding the "#".
14295     print prefix "define", macro P[macro] D[macro]
14296     next
14297   } else {
14298     # Replace #undef with comments.  This is necessary, for example,
14299     # in the case of _POSIX_SOURCE, which is predefined and required
14300     # on some systems where configure will not decide to define it.
14301     if (defundef == "undef") {
14302       print "/*", prefix defundef, macro, "*/"
14303       next
14304     }
14305   }
14306 }
14307 { print }
14308 _ACAWK
14309 _ACEOF
14310 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14311   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14312 fi # test -n "$CONFIG_HEADERS"
14313
14314
14315 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14316 shift
14317 for ac_tag
14318 do
14319   case $ac_tag in
14320   :[FHLC]) ac_mode=$ac_tag; continue;;
14321   esac
14322   case $ac_mode$ac_tag in
14323   :[FHL]*:*);;
14324   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14325   :[FH]-) ac_tag=-:-;;
14326   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14327   esac
14328   ac_save_IFS=$IFS
14329   IFS=:
14330   set x $ac_tag
14331   IFS=$ac_save_IFS
14332   shift
14333   ac_file=$1
14334   shift
14335
14336   case $ac_mode in
14337   :L) ac_source=$1;;
14338   :[FH])
14339     ac_file_inputs=
14340     for ac_f
14341     do
14342       case $ac_f in
14343       -) ac_f="$ac_tmp/stdin";;
14344       *) # Look for the file first in the build tree, then in the source tree
14345          # (if the path is not absolute).  The absolute path cannot be DOS-style,
14346          # because $ac_f cannot contain `:'.
14347          test -f "$ac_f" ||
14348            case $ac_f in
14349            [\\/$]*) false;;
14350            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14351            esac ||
14352            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14353       esac
14354       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14355       as_fn_append ac_file_inputs " '$ac_f'"
14356     done
14357
14358     # Let's still pretend it is `configure' which instantiates (i.e., don't
14359     # use $as_me), people would be surprised to read:
14360     #    /* config.h.  Generated by config.status.  */
14361     configure_input='Generated from '`
14362           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14363         `' by configure.'
14364     if test x"$ac_file" != x-; then
14365       configure_input="$ac_file.  $configure_input"
14366       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14367 $as_echo "$as_me: creating $ac_file" >&6;}
14368     fi
14369     # Neutralize special characters interpreted by sed in replacement strings.
14370     case $configure_input in #(
14371     *\&* | *\|* | *\\* )
14372        ac_sed_conf_input=`$as_echo "$configure_input" |
14373        sed 's/[\\\\&|]/\\\\&/g'`;; #(
14374     *) ac_sed_conf_input=$configure_input;;
14375     esac
14376
14377     case $ac_tag in
14378     *:-:* | *:-) cat >"$ac_tmp/stdin" \
14379       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14380     esac
14381     ;;
14382   esac
14383
14384   ac_dir=`$as_dirname -- "$ac_file" ||
14385 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14386          X"$ac_file" : 'X\(//\)[^/]' \| \
14387          X"$ac_file" : 'X\(//\)$' \| \
14388          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14389 $as_echo X"$ac_file" |
14390     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14391             s//\1/
14392             q
14393           }
14394           /^X\(\/\/\)[^/].*/{
14395             s//\1/
14396             q
14397           }
14398           /^X\(\/\/\)$/{
14399             s//\1/
14400             q
14401           }
14402           /^X\(\/\).*/{
14403             s//\1/
14404             q
14405           }
14406           s/.*/./; q'`
14407   as_dir="$ac_dir"; as_fn_mkdir_p
14408   ac_builddir=.
14409
14410 case "$ac_dir" in
14411 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14412 *)
14413   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14414   # A ".." for each directory in $ac_dir_suffix.
14415   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14416   case $ac_top_builddir_sub in
14417   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14418   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14419   esac ;;
14420 esac
14421 ac_abs_top_builddir=$ac_pwd
14422 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14423 # for backward compatibility:
14424 ac_top_builddir=$ac_top_build_prefix
14425
14426 case $srcdir in
14427   .)  # We are building in place.
14428     ac_srcdir=.
14429     ac_top_srcdir=$ac_top_builddir_sub
14430     ac_abs_top_srcdir=$ac_pwd ;;
14431   [\\/]* | ?:[\\/]* )  # Absolute name.
14432     ac_srcdir=$srcdir$ac_dir_suffix;
14433     ac_top_srcdir=$srcdir
14434     ac_abs_top_srcdir=$srcdir ;;
14435   *) # Relative name.
14436     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14437     ac_top_srcdir=$ac_top_build_prefix$srcdir
14438     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14439 esac
14440 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14441
14442
14443   case $ac_mode in
14444   :F)
14445   #
14446   # CONFIG_FILE
14447   #
14448
14449   case $INSTALL in
14450   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14451   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14452   esac
14453   ac_MKDIR_P=$MKDIR_P
14454   case $MKDIR_P in
14455   [\\/$]* | ?:[\\/]* ) ;;
14456   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14457   esac
14458 _ACEOF
14459
14460 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14461 # If the template does not know about datarootdir, expand it.
14462 # FIXME: This hack should be removed a few years after 2.60.
14463 ac_datarootdir_hack=; ac_datarootdir_seen=
14464 ac_sed_dataroot='
14465 /datarootdir/ {
14466   p
14467   q
14468 }
14469 /@datadir@/p
14470 /@docdir@/p
14471 /@infodir@/p
14472 /@localedir@/p
14473 /@mandir@/p'
14474 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14475 *datarootdir*) ac_datarootdir_seen=yes;;
14476 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14477   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14478 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14479 _ACEOF
14480 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14481   ac_datarootdir_hack='
14482   s&@datadir@&$datadir&g
14483   s&@docdir@&$docdir&g
14484   s&@infodir@&$infodir&g
14485   s&@localedir@&$localedir&g
14486   s&@mandir@&$mandir&g
14487   s&\\\${datarootdir}&$datarootdir&g' ;;
14488 esac
14489 _ACEOF
14490
14491 # Neutralize VPATH when `$srcdir' = `.'.
14492 # Shell code in configure.ac might set extrasub.
14493 # FIXME: do we really want to maintain this feature?
14494 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14495 ac_sed_extra="$ac_vpsub
14496 $extrasub
14497 _ACEOF
14498 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14499 :t
14500 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14501 s|@configure_input@|$ac_sed_conf_input|;t t
14502 s&@top_builddir@&$ac_top_builddir_sub&;t t
14503 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14504 s&@srcdir@&$ac_srcdir&;t t
14505 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14506 s&@top_srcdir@&$ac_top_srcdir&;t t
14507 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14508 s&@builddir@&$ac_builddir&;t t
14509 s&@abs_builddir@&$ac_abs_builddir&;t t
14510 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14511 s&@INSTALL@&$ac_INSTALL&;t t
14512 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14513 $ac_datarootdir_hack
14514 "
14515 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14516   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14517
14518 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14519   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14520   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
14521       "$ac_tmp/out"`; test -z "$ac_out"; } &&
14522   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14523 which seems to be undefined.  Please make sure it is defined" >&5
14524 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14525 which seems to be undefined.  Please make sure it is defined" >&2;}
14526
14527   rm -f "$ac_tmp/stdin"
14528   case $ac_file in
14529   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14530   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14531   esac \
14532   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14533  ;;
14534   :H)
14535   #
14536   # CONFIG_HEADER
14537   #
14538   if test x"$ac_file" != x-; then
14539     {
14540       $as_echo "/* $configure_input  */" \
14541       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14542     } >"$ac_tmp/config.h" \
14543       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14544     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14545       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14546 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14547     else
14548       rm -f "$ac_file"
14549       mv "$ac_tmp/config.h" "$ac_file" \
14550         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14551     fi
14552   else
14553     $as_echo "/* $configure_input  */" \
14554       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14555       || as_fn_error $? "could not create -" "$LINENO" 5
14556   fi
14557 # Compute "$ac_file"'s index in $config_headers.
14558 _am_arg="$ac_file"
14559 _am_stamp_count=1
14560 for _am_header in $config_headers :; do
14561   case $_am_header in
14562     $_am_arg | $_am_arg:* )
14563       break ;;
14564     * )
14565       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14566   esac
14567 done
14568 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14569 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14570          X"$_am_arg" : 'X\(//\)[^/]' \| \
14571          X"$_am_arg" : 'X\(//\)$' \| \
14572          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14573 $as_echo X"$_am_arg" |
14574     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14575             s//\1/
14576             q
14577           }
14578           /^X\(\/\/\)[^/].*/{
14579             s//\1/
14580             q
14581           }
14582           /^X\(\/\/\)$/{
14583             s//\1/
14584             q
14585           }
14586           /^X\(\/\).*/{
14587             s//\1/
14588             q
14589           }
14590           s/.*/./; q'`/stamp-h$_am_stamp_count
14591  ;;
14592
14593   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14594 $as_echo "$as_me: executing $ac_file commands" >&6;}
14595  ;;
14596   esac
14597
14598
14599   case $ac_file$ac_mode in
14600     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14601   # Older Autoconf quotes --file arguments for eval, but not when files
14602   # are listed without --file.  Let's play safe and only enable the eval
14603   # if we detect the quoting.
14604   case $CONFIG_FILES in
14605   *\'*) eval set x "$CONFIG_FILES" ;;
14606   *)   set x $CONFIG_FILES ;;
14607   esac
14608   shift
14609   for mf
14610   do
14611     # Strip MF so we end up with the name of the file.
14612     mf=`echo "$mf" | sed -e 's/:.*$//'`
14613     # Check whether this is an Automake generated Makefile or not.
14614     # We used to match only the files named 'Makefile.in', but
14615     # some people rename them; so instead we look at the file content.
14616     # Grep'ing the first line is not enough: some people post-process
14617     # each Makefile.in and add a new line on top of each file to say so.
14618     # Grep'ing the whole file is not good either: AIX grep has a line
14619     # limit of 2048, but all sed's we know have understand at least 4000.
14620     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14621       dirpart=`$as_dirname -- "$mf" ||
14622 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14623          X"$mf" : 'X\(//\)[^/]' \| \
14624          X"$mf" : 'X\(//\)$' \| \
14625          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14626 $as_echo X"$mf" |
14627     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14628             s//\1/
14629             q
14630           }
14631           /^X\(\/\/\)[^/].*/{
14632             s//\1/
14633             q
14634           }
14635           /^X\(\/\/\)$/{
14636             s//\1/
14637             q
14638           }
14639           /^X\(\/\).*/{
14640             s//\1/
14641             q
14642           }
14643           s/.*/./; q'`
14644     else
14645       continue
14646     fi
14647     # Extract the definition of DEPDIR, am__include, and am__quote
14648     # from the Makefile without running 'make'.
14649     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14650     test -z "$DEPDIR" && continue
14651     am__include=`sed -n 's/^am__include = //p' < "$mf"`
14652     test -z "$am__include" && continue
14653     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14654     # Find all dependency output files, they are included files with
14655     # $(DEPDIR) in their names.  We invoke sed twice because it is the
14656     # simplest approach to changing $(DEPDIR) to its actual value in the
14657     # expansion.
14658     for file in `sed -n "
14659       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14660          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
14661       # Make sure the directory exists.
14662       test -f "$dirpart/$file" && continue
14663       fdir=`$as_dirname -- "$file" ||
14664 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14665          X"$file" : 'X\(//\)[^/]' \| \
14666          X"$file" : 'X\(//\)$' \| \
14667          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14668 $as_echo X"$file" |
14669     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14670             s//\1/
14671             q
14672           }
14673           /^X\(\/\/\)[^/].*/{
14674             s//\1/
14675             q
14676           }
14677           /^X\(\/\/\)$/{
14678             s//\1/
14679             q
14680           }
14681           /^X\(\/\).*/{
14682             s//\1/
14683             q
14684           }
14685           s/.*/./; q'`
14686       as_dir=$dirpart/$fdir; as_fn_mkdir_p
14687       # echo "creating $dirpart/$file"
14688       echo '# dummy' > "$dirpart/$file"
14689     done
14690   done
14691 }
14692  ;;
14693     "libtool":C)
14694
14695     # See if we are running on zsh, and set the options which allow our
14696     # commands through without removal of \ escapes.
14697     if test -n "${ZSH_VERSION+set}" ; then
14698       setopt NO_GLOB_SUBST
14699     fi
14700
14701     cfgfile="${ofile}T"
14702     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14703     $RM "$cfgfile"
14704
14705     cat <<_LT_EOF >> "$cfgfile"
14706 #! $SHELL
14707
14708 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14709 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14710 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14711 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14712 #
14713 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14714 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14715 #                 Foundation, Inc.
14716 #   Written by Gordon Matzigkeit, 1996
14717 #
14718 #   This file is part of GNU Libtool.
14719 #
14720 # GNU Libtool is free software; you can redistribute it and/or
14721 # modify it under the terms of the GNU General Public License as
14722 # published by the Free Software Foundation; either version 2 of
14723 # the License, or (at your option) any later version.
14724 #
14725 # As a special exception to the GNU General Public License,
14726 # if you distribute this file as part of a program or library that
14727 # is built using GNU Libtool, you may include this file under the
14728 # same distribution terms that you use for the rest of that program.
14729 #
14730 # GNU Libtool is distributed in the hope that it will be useful,
14731 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14732 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14733 # GNU General Public License for more details.
14734 #
14735 # You should have received a copy of the GNU General Public License
14736 # along with GNU Libtool; see the file COPYING.  If not, a copy
14737 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14738 # obtained by writing to the Free Software Foundation, Inc.,
14739 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14740
14741
14742 # The names of the tagged configurations supported by this script.
14743 available_tags=""
14744
14745 # ### BEGIN LIBTOOL CONFIG
14746
14747 # Which release of libtool.m4 was used?
14748 macro_version=$macro_version
14749 macro_revision=$macro_revision
14750
14751 # Assembler program.
14752 AS=$lt_AS
14753
14754 # DLL creation program.
14755 DLLTOOL=$lt_DLLTOOL
14756
14757 # Object dumper program.
14758 OBJDUMP=$lt_OBJDUMP
14759
14760 # Whether or not to build shared libraries.
14761 build_libtool_libs=$enable_shared
14762
14763 # Whether or not to build static libraries.
14764 build_old_libs=$enable_static
14765
14766 # What type of objects to build.
14767 pic_mode=$pic_mode
14768
14769 # Whether or not to optimize for fast installation.
14770 fast_install=$enable_fast_install
14771
14772 # Shell to use when invoking shell scripts.
14773 SHELL=$lt_SHELL
14774
14775 # An echo program that protects backslashes.
14776 ECHO=$lt_ECHO
14777
14778 # The PATH separator for the build system.
14779 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14780
14781 # The host system.
14782 host_alias=$host_alias
14783 host=$host
14784 host_os=$host_os
14785
14786 # The build system.
14787 build_alias=$build_alias
14788 build=$build
14789 build_os=$build_os
14790
14791 # A sed program that does not truncate output.
14792 SED=$lt_SED
14793
14794 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14795 Xsed="\$SED -e 1s/^X//"
14796
14797 # A grep program that handles long lines.
14798 GREP=$lt_GREP
14799
14800 # An ERE matcher.
14801 EGREP=$lt_EGREP
14802
14803 # A literal string matcher.
14804 FGREP=$lt_FGREP
14805
14806 # A BSD- or MS-compatible name lister.
14807 NM=$lt_NM
14808
14809 # Whether we need soft or hard links.
14810 LN_S=$lt_LN_S
14811
14812 # What is the maximum length of a command?
14813 max_cmd_len=$max_cmd_len
14814
14815 # Object file suffix (normally "o").
14816 objext=$ac_objext
14817
14818 # Executable file suffix (normally "").
14819 exeext=$exeext
14820
14821 # whether the shell understands "unset".
14822 lt_unset=$lt_unset
14823
14824 # turn spaces into newlines.
14825 SP2NL=$lt_lt_SP2NL
14826
14827 # turn newlines into spaces.
14828 NL2SP=$lt_lt_NL2SP
14829
14830 # convert \$build file names to \$host format.
14831 to_host_file_cmd=$lt_cv_to_host_file_cmd
14832
14833 # convert \$build files to toolchain format.
14834 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14835
14836 # Method to check whether dependent libraries are shared objects.
14837 deplibs_check_method=$lt_deplibs_check_method
14838
14839 # Command to use when deplibs_check_method = "file_magic".
14840 file_magic_cmd=$lt_file_magic_cmd
14841
14842 # How to find potential files when deplibs_check_method = "file_magic".
14843 file_magic_glob=$lt_file_magic_glob
14844
14845 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14846 want_nocaseglob=$lt_want_nocaseglob
14847
14848 # Command to associate shared and link libraries.
14849 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14850
14851 # The archiver.
14852 AR=$lt_AR
14853
14854 # Flags to create an archive.
14855 AR_FLAGS=$lt_AR_FLAGS
14856
14857 # How to feed a file listing to the archiver.
14858 archiver_list_spec=$lt_archiver_list_spec
14859
14860 # A symbol stripping program.
14861 STRIP=$lt_STRIP
14862
14863 # Commands used to install an old-style archive.
14864 RANLIB=$lt_RANLIB
14865 old_postinstall_cmds=$lt_old_postinstall_cmds
14866 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14867
14868 # Whether to use a lock for old archive extraction.
14869 lock_old_archive_extraction=$lock_old_archive_extraction
14870
14871 # A C compiler.
14872 LTCC=$lt_CC
14873
14874 # LTCC compiler flags.
14875 LTCFLAGS=$lt_CFLAGS
14876
14877 # Take the output of nm and produce a listing of raw symbols and C names.
14878 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14879
14880 # Transform the output of nm in a proper C declaration.
14881 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14882
14883 # Transform the output of nm in a C name address pair.
14884 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14885
14886 # Transform the output of nm in a C name address pair when lib prefix is needed.
14887 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14888
14889 # Specify filename containing input files for \$NM.
14890 nm_file_list_spec=$lt_nm_file_list_spec
14891
14892 # The root where to search for dependent libraries,and in which our libraries should be installed.
14893 lt_sysroot=$lt_sysroot
14894
14895 # The name of the directory that contains temporary libtool files.
14896 objdir=$objdir
14897
14898 # Used to examine libraries when file_magic_cmd begins with "file".
14899 MAGIC_CMD=$MAGIC_CMD
14900
14901 # Must we lock files when doing compilation?
14902 need_locks=$lt_need_locks
14903
14904 # Manifest tool.
14905 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14906
14907 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14908 DSYMUTIL=$lt_DSYMUTIL
14909
14910 # Tool to change global to local symbols on Mac OS X.
14911 NMEDIT=$lt_NMEDIT
14912
14913 # Tool to manipulate fat objects and archives on Mac OS X.
14914 LIPO=$lt_LIPO
14915
14916 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14917 OTOOL=$lt_OTOOL
14918
14919 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14920 OTOOL64=$lt_OTOOL64
14921
14922 # Old archive suffix (normally "a").
14923 libext=$libext
14924
14925 # Shared library suffix (normally ".so").
14926 shrext_cmds=$lt_shrext_cmds
14927
14928 # The commands to extract the exported symbol list from a shared archive.
14929 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14930
14931 # Variables whose values should be saved in libtool wrapper scripts and
14932 # restored at link time.
14933 variables_saved_for_relink=$lt_variables_saved_for_relink
14934
14935 # Do we need the "lib" prefix for modules?
14936 need_lib_prefix=$need_lib_prefix
14937
14938 # Do we need a version for libraries?
14939 need_version=$need_version
14940
14941 # Library versioning type.
14942 version_type=$version_type
14943
14944 # Shared library runtime path variable.
14945 runpath_var=$runpath_var
14946
14947 # Shared library path variable.
14948 shlibpath_var=$shlibpath_var
14949
14950 # Is shlibpath searched before the hard-coded library search path?
14951 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14952
14953 # Format of library name prefix.
14954 libname_spec=$lt_libname_spec
14955
14956 # List of archive names.  First name is the real one, the rest are links.
14957 # The last name is the one that the linker finds with -lNAME
14958 library_names_spec=$lt_library_names_spec
14959
14960 # The coded name of the library, if different from the real name.
14961 soname_spec=$lt_soname_spec
14962
14963 # Permission mode override for installation of shared libraries.
14964 install_override_mode=$lt_install_override_mode
14965
14966 # Command to use after installation of a shared archive.
14967 postinstall_cmds=$lt_postinstall_cmds
14968
14969 # Command to use after uninstallation of a shared archive.
14970 postuninstall_cmds=$lt_postuninstall_cmds
14971
14972 # Commands used to finish a libtool library installation in a directory.
14973 finish_cmds=$lt_finish_cmds
14974
14975 # As "finish_cmds", except a single script fragment to be evaled but
14976 # not shown.
14977 finish_eval=$lt_finish_eval
14978
14979 # Whether we should hardcode library paths into libraries.
14980 hardcode_into_libs=$hardcode_into_libs
14981
14982 # Compile-time system search path for libraries.
14983 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14984
14985 # Run-time system search path for libraries.
14986 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14987
14988 # Whether dlopen is supported.
14989 dlopen_support=$enable_dlopen
14990
14991 # Whether dlopen of programs is supported.
14992 dlopen_self=$enable_dlopen_self
14993
14994 # Whether dlopen of statically linked programs is supported.
14995 dlopen_self_static=$enable_dlopen_self_static
14996
14997 # Commands to strip libraries.
14998 old_striplib=$lt_old_striplib
14999 striplib=$lt_striplib
15000
15001
15002 # The linker used to build libraries.
15003 LD=$lt_LD
15004
15005 # How to create reloadable object files.
15006 reload_flag=$lt_reload_flag
15007 reload_cmds=$lt_reload_cmds
15008
15009 # Commands used to build an old-style archive.
15010 old_archive_cmds=$lt_old_archive_cmds
15011
15012 # A language specific compiler.
15013 CC=$lt_compiler
15014
15015 # Is the compiler the GNU compiler?
15016 with_gcc=$GCC
15017
15018 # Compiler flag to turn off builtin functions.
15019 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15020
15021 # Additional compiler flags for building library objects.
15022 pic_flag=$lt_lt_prog_compiler_pic
15023
15024 # How to pass a linker flag through the compiler.
15025 wl=$lt_lt_prog_compiler_wl
15026
15027 # Compiler flag to prevent dynamic linking.
15028 link_static_flag=$lt_lt_prog_compiler_static
15029
15030 # Does compiler simultaneously support -c and -o options?
15031 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15032
15033 # Whether or not to add -lc for building shared libraries.
15034 build_libtool_need_lc=$archive_cmds_need_lc
15035
15036 # Whether or not to disallow shared libs when runtime libs are static.
15037 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15038
15039 # Compiler flag to allow reflexive dlopens.
15040 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15041
15042 # Compiler flag to generate shared objects directly from archives.
15043 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15044
15045 # Whether the compiler copes with passing no objects directly.
15046 compiler_needs_object=$lt_compiler_needs_object
15047
15048 # Create an old-style archive from a shared archive.
15049 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15050
15051 # Create a temporary old-style archive to link instead of a shared archive.
15052 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15053
15054 # Commands used to build a shared archive.
15055 archive_cmds=$lt_archive_cmds
15056 archive_expsym_cmds=$lt_archive_expsym_cmds
15057
15058 # Commands used to build a loadable module if different from building
15059 # a shared archive.
15060 module_cmds=$lt_module_cmds
15061 module_expsym_cmds=$lt_module_expsym_cmds
15062
15063 # Whether we are building with GNU ld or not.
15064 with_gnu_ld=$lt_with_gnu_ld
15065
15066 # Flag that allows shared libraries with undefined symbols to be built.
15067 allow_undefined_flag=$lt_allow_undefined_flag
15068
15069 # Flag that enforces no undefined symbols.
15070 no_undefined_flag=$lt_no_undefined_flag
15071
15072 # Flag to hardcode \$libdir into a binary during linking.
15073 # This must work even if \$libdir does not exist
15074 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15075
15076 # Whether we need a single "-rpath" flag with a separated argument.
15077 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15078
15079 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15080 # DIR into the resulting binary.
15081 hardcode_direct=$hardcode_direct
15082
15083 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15084 # DIR into the resulting binary and the resulting library dependency is
15085 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15086 # library is relocated.
15087 hardcode_direct_absolute=$hardcode_direct_absolute
15088
15089 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15090 # into the resulting binary.
15091 hardcode_minus_L=$hardcode_minus_L
15092
15093 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15094 # into the resulting binary.
15095 hardcode_shlibpath_var=$hardcode_shlibpath_var
15096
15097 # Set to "yes" if building a shared library automatically hardcodes DIR
15098 # into the library and all subsequent libraries and executables linked
15099 # against it.
15100 hardcode_automatic=$hardcode_automatic
15101
15102 # Set to yes if linker adds runtime paths of dependent libraries
15103 # to runtime path list.
15104 inherit_rpath=$inherit_rpath
15105
15106 # Whether libtool must link a program against all its dependency libraries.
15107 link_all_deplibs=$link_all_deplibs
15108
15109 # Set to "yes" if exported symbols are required.
15110 always_export_symbols=$always_export_symbols
15111
15112 # The commands to list exported symbols.
15113 export_symbols_cmds=$lt_export_symbols_cmds
15114
15115 # Symbols that should not be listed in the preloaded symbols.
15116 exclude_expsyms=$lt_exclude_expsyms
15117
15118 # Symbols that must always be exported.
15119 include_expsyms=$lt_include_expsyms
15120
15121 # Commands necessary for linking programs (against libraries) with templates.
15122 prelink_cmds=$lt_prelink_cmds
15123
15124 # Commands necessary for finishing linking programs.
15125 postlink_cmds=$lt_postlink_cmds
15126
15127 # Specify filename containing input files.
15128 file_list_spec=$lt_file_list_spec
15129
15130 # How to hardcode a shared library path into an executable.
15131 hardcode_action=$hardcode_action
15132
15133 # ### END LIBTOOL CONFIG
15134
15135 _LT_EOF
15136
15137   case $host_os in
15138   aix3*)
15139     cat <<\_LT_EOF >> "$cfgfile"
15140 # AIX sometimes has problems with the GCC collect2 program.  For some
15141 # reason, if we set the COLLECT_NAMES environment variable, the problems
15142 # vanish in a puff of smoke.
15143 if test "X${COLLECT_NAMES+set}" != Xset; then
15144   COLLECT_NAMES=
15145   export COLLECT_NAMES
15146 fi
15147 _LT_EOF
15148     ;;
15149   esac
15150
15151
15152 ltmain="$ac_aux_dir/ltmain.sh"
15153
15154
15155   # We use sed instead of cat because bash on DJGPP gets confused if
15156   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15157   # text mode, it properly converts lines to CR/LF.  This bash problem
15158   # is reportedly fixed, but why not run on old versions too?
15159   sed '$q' "$ltmain" >> "$cfgfile" \
15160      || (rm -f "$cfgfile"; exit 1)
15161
15162   if test x"$xsi_shell" = xyes; then
15163   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
15164 func_dirname ()\
15165 {\
15166 \    case ${1} in\
15167 \      */*) func_dirname_result="${1%/*}${2}" ;;\
15168 \      *  ) func_dirname_result="${3}" ;;\
15169 \    esac\
15170 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
15171   && mv -f "$cfgfile.tmp" "$cfgfile" \
15172     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15173 test 0 -eq $? || _lt_function_replace_fail=:
15174
15175
15176   sed -e '/^func_basename ()$/,/^} # func_basename /c\
15177 func_basename ()\
15178 {\
15179 \    func_basename_result="${1##*/}"\
15180 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
15181   && mv -f "$cfgfile.tmp" "$cfgfile" \
15182     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15183 test 0 -eq $? || _lt_function_replace_fail=:
15184
15185
15186   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
15187 func_dirname_and_basename ()\
15188 {\
15189 \    case ${1} in\
15190 \      */*) func_dirname_result="${1%/*}${2}" ;;\
15191 \      *  ) func_dirname_result="${3}" ;;\
15192 \    esac\
15193 \    func_basename_result="${1##*/}"\
15194 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
15195   && mv -f "$cfgfile.tmp" "$cfgfile" \
15196     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15197 test 0 -eq $? || _lt_function_replace_fail=:
15198
15199
15200   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
15201 func_stripname ()\
15202 {\
15203 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
15204 \    # positional parameters, so assign one to ordinary parameter first.\
15205 \    func_stripname_result=${3}\
15206 \    func_stripname_result=${func_stripname_result#"${1}"}\
15207 \    func_stripname_result=${func_stripname_result%"${2}"}\
15208 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
15209   && mv -f "$cfgfile.tmp" "$cfgfile" \
15210     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15211 test 0 -eq $? || _lt_function_replace_fail=:
15212
15213
15214   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
15215 func_split_long_opt ()\
15216 {\
15217 \    func_split_long_opt_name=${1%%=*}\
15218 \    func_split_long_opt_arg=${1#*=}\
15219 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
15220   && mv -f "$cfgfile.tmp" "$cfgfile" \
15221     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15222 test 0 -eq $? || _lt_function_replace_fail=:
15223
15224
15225   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
15226 func_split_short_opt ()\
15227 {\
15228 \    func_split_short_opt_arg=${1#??}\
15229 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
15230 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
15231   && mv -f "$cfgfile.tmp" "$cfgfile" \
15232     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15233 test 0 -eq $? || _lt_function_replace_fail=:
15234
15235
15236   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
15237 func_lo2o ()\
15238 {\
15239 \    case ${1} in\
15240 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
15241 \      *)    func_lo2o_result=${1} ;;\
15242 \    esac\
15243 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
15244   && mv -f "$cfgfile.tmp" "$cfgfile" \
15245     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15246 test 0 -eq $? || _lt_function_replace_fail=:
15247
15248
15249   sed -e '/^func_xform ()$/,/^} # func_xform /c\
15250 func_xform ()\
15251 {\
15252     func_xform_result=${1%.*}.lo\
15253 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
15254   && mv -f "$cfgfile.tmp" "$cfgfile" \
15255     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15256 test 0 -eq $? || _lt_function_replace_fail=:
15257
15258
15259   sed -e '/^func_arith ()$/,/^} # func_arith /c\
15260 func_arith ()\
15261 {\
15262     func_arith_result=$(( $* ))\
15263 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
15264   && mv -f "$cfgfile.tmp" "$cfgfile" \
15265     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15266 test 0 -eq $? || _lt_function_replace_fail=:
15267
15268
15269   sed -e '/^func_len ()$/,/^} # func_len /c\
15270 func_len ()\
15271 {\
15272     func_len_result=${#1}\
15273 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
15274   && mv -f "$cfgfile.tmp" "$cfgfile" \
15275     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15276 test 0 -eq $? || _lt_function_replace_fail=:
15277
15278 fi
15279
15280 if test x"$lt_shell_append" = xyes; then
15281   sed -e '/^func_append ()$/,/^} # func_append /c\
15282 func_append ()\
15283 {\
15284     eval "${1}+=\\${2}"\
15285 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
15286   && mv -f "$cfgfile.tmp" "$cfgfile" \
15287     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15288 test 0 -eq $? || _lt_function_replace_fail=:
15289
15290
15291   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
15292 func_append_quoted ()\
15293 {\
15294 \    func_quote_for_eval "${2}"\
15295 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
15296 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
15297   && mv -f "$cfgfile.tmp" "$cfgfile" \
15298     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15299 test 0 -eq $? || _lt_function_replace_fail=:
15300
15301
15302   # Save a `func_append' function call where possible by direct use of '+='
15303   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
15304     && mv -f "$cfgfile.tmp" "$cfgfile" \
15305       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15306   test 0 -eq $? || _lt_function_replace_fail=:
15307 else
15308   # Save a `func_append' function call even when '+=' is not available
15309   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
15310     && mv -f "$cfgfile.tmp" "$cfgfile" \
15311       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15312   test 0 -eq $? || _lt_function_replace_fail=:
15313 fi
15314
15315 if test x"$_lt_function_replace_fail" = x":"; then
15316   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
15317 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
15318 fi
15319
15320
15321    mv -f "$cfgfile" "$ofile" ||
15322     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15323   chmod +x "$ofile"
15324
15325  ;;
15326
15327   esac
15328 done # for ac_tag
15329
15330
15331 as_fn_exit 0
15332 _ACEOF
15333 ac_clean_files=$ac_clean_files_save
15334
15335 test $ac_write_fail = 0 ||
15336   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15337
15338
15339 # configure is writing to config.log, and then calls config.status.
15340 # config.status does its own redirection, appending to config.log.
15341 # Unfortunately, on DOS this fails, as config.log is still kept open
15342 # by configure, so config.status won't be able to write to it; its
15343 # output is simply discarded.  So we exec the FD to /dev/null,
15344 # effectively closing config.log, so it can be properly (re)opened and
15345 # appended to by config.status.  When coming back to configure, we
15346 # need to make the FD available again.
15347 if test "$no_create" != yes; then
15348   ac_cs_success=:
15349   ac_config_status_args=
15350   test "$silent" = yes &&
15351     ac_config_status_args="$ac_config_status_args --quiet"
15352   exec 5>/dev/null
15353   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15354   exec 5>>config.log
15355   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15356   # would make configure fail if this is the last instruction.
15357   $ac_cs_success || as_fn_exit 1
15358 fi
15359 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15360   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15361 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15362 fi
15363
15364
15365 echo "
15366     ${PACKAGE} ${VERSION}
15367     ---------------------
15368
15369     Prefix:                ${prefix}
15370     GObject-Introspection: ${found_introspection}
15371     VALA bindings:         ${have_vapigen}
15372 "