Submit version 0.20.1 of GUPnP (4186015)
[profile/ivi/GUPnP.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for gupnp 0.20.1.
4 #
5 # Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=gupnp&component=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: http://bugzilla.gnome.org/enter_bug.cgi?product=gupnp&component=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'
653 PACKAGE_TARNAME='gupnp'
654 PACKAGE_VERSION='0.20.1'
655 PACKAGE_STRING='gupnp 0.20.1'
656 PACKAGE_BUGREPORT='http://bugzilla.gnome.org/enter_bug.cgi?product=gupnp&component=gupnp'
657 PACKAGE_URL='http://www.gupnp.org/'
658
659 ac_unique_file="libgupnp/gupnp.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 USE_NETLINK
732 USE_NETLINK_FALSE
733 USE_NETLINK_TRUE
734 CONNMAN_LIBS
735 CONNMAN_CFLAGS
736 USE_CONNMAN_FALSE
737 USE_CONNMAN_TRUE
738 GIO_LIBS
739 GIO_CFLAGS
740 USE_NETWORK_MANAGER_FALSE
741 USE_NETWORK_MANAGER_TRUE
742 HAVE_NETLINK
743 HAVE_NETLINK_FALSE
744 HAVE_NETLINK_TRUE
745 OS_WIN32_FALSE
746 OS_WIN32_TRUE
747 GTHREAD_LIBS
748 GTHREAD_CFLAGS
749 LIBGUPNP_LIBS
750 LIBGUPNP_CFLAGS
751 HAVE_GTEST_FALSE
752 HAVE_GTEST_TRUE
753 GTest_LIBS
754 GTest_CFLAGS
755 PKG_CONFIG_LIBDIR
756 PKG_CONFIG_PATH
757 PKG_CONFIG
758 OTOOL64
759 OTOOL
760 LIPO
761 NMEDIT
762 DSYMUTIL
763 MANIFEST_TOOL
764 RANLIB
765 ac_ct_AR
766 AR
767 DLLTOOL
768 OBJDUMP
769 LN_S
770 NM
771 ac_ct_DUMPBIN
772 DUMPBIN
773 LD
774 FGREP
775 SED
776 LIBTOOL
777 EGREP
778 GREP
779 CPP
780 am__fastdepCC_FALSE
781 am__fastdepCC_TRUE
782 CCDEPMODE
783 am__nodep
784 AMDEPBACKSLASH
785 AMDEP_FALSE
786 AMDEP_TRUE
787 am__quote
788 am__include
789 DEPDIR
790 OBJEXT
791 EXEEXT
792 ac_ct_CC
793 CPPFLAGS
794 LDFLAGS
795 CFLAGS
796 CC
797 AM_BACKSLASH
798 AM_DEFAULT_VERBOSITY
799 AM_DEFAULT_V
800 AM_V
801 MAINT
802 MAINTAINER_MODE_FALSE
803 MAINTAINER_MODE_TRUE
804 am__untar
805 am__tar
806 AMTAR
807 am__leading_dot
808 SET_MAKE
809 AWK
810 mkdir_p
811 MKDIR_P
812 INSTALL_STRIP_PROGRAM
813 STRIP
814 install_sh
815 MAKEINFO
816 AUTOHEADER
817 AUTOMAKE
818 AUTOCONF
819 ACLOCAL
820 VERSION
821 PACKAGE
822 CYGPATH_W
823 am__isrc
824 INSTALL_DATA
825 INSTALL_SCRIPT
826 INSTALL_PROGRAM
827 target_os
828 target_vendor
829 target_cpu
830 target
831 host_os
832 host_vendor
833 host_cpu
834 host
835 build_os
836 build_vendor
837 build_cpu
838 build
839 target_alias
840 host_alias
841 build_alias
842 LIBS
843 ECHO_T
844 ECHO_N
845 ECHO_C
846 DEFS
847 mandir
848 localedir
849 libdir
850 psdir
851 pdfdir
852 dvidir
853 htmldir
854 infodir
855 docdir
856 oldincludedir
857 includedir
858 localstatedir
859 sharedstatedir
860 sysconfdir
861 datadir
862 datarootdir
863 libexecdir
864 sbindir
865 bindir
866 program_transform_name
867 prefix
868 exec_prefix
869 PACKAGE_URL
870 PACKAGE_BUGREPORT
871 PACKAGE_STRING
872 PACKAGE_VERSION
873 PACKAGE_TARNAME
874 PACKAGE_NAME
875 PATH_SEPARATOR
876 SHELL'
877 ac_subst_files=''
878 ac_user_opts='
879 enable_option_checking
880 enable_maintainer_mode
881 enable_silent_rules
882 enable_dependency_tracking
883 enable_largefile
884 enable_shared
885 enable_static
886 with_pic
887 enable_fast_install
888 with_gnu_ld
889 with_sysroot
890 enable_libtool_lock
891 with_context_manager
892 enable_debug
893 enable_introspection
894 with_html_dir
895 enable_gtk_doc
896 enable_gtk_doc_html
897 enable_gtk_doc_pdf
898 '
899       ac_precious_vars='build_alias
900 host_alias
901 target_alias
902 CC
903 CFLAGS
904 LDFLAGS
905 LIBS
906 CPPFLAGS
907 CPP
908 PKG_CONFIG
909 PKG_CONFIG_PATH
910 PKG_CONFIG_LIBDIR
911 GTest_CFLAGS
912 GTest_LIBS
913 LIBGUPNP_CFLAGS
914 LIBGUPNP_LIBS
915 GTHREAD_CFLAGS
916 GTHREAD_LIBS
917 GIO_CFLAGS
918 GIO_LIBS
919 CONNMAN_CFLAGS
920 CONNMAN_LIBS
921 GTKDOC_DEPS_CFLAGS
922 GTKDOC_DEPS_LIBS'
923
924
925 # Initialize some variables set by options.
926 ac_init_help=
927 ac_init_version=false
928 ac_unrecognized_opts=
929 ac_unrecognized_sep=
930 # The variables have the same names as the options, with
931 # dashes changed to underlines.
932 cache_file=/dev/null
933 exec_prefix=NONE
934 no_create=
935 no_recursion=
936 prefix=NONE
937 program_prefix=NONE
938 program_suffix=NONE
939 program_transform_name=s,x,x,
940 silent=
941 site=
942 srcdir=
943 verbose=
944 x_includes=NONE
945 x_libraries=NONE
946
947 # Installation directory options.
948 # These are left unexpanded so users can "make install exec_prefix=/foo"
949 # and all the variables that are supposed to be based on exec_prefix
950 # by default will actually change.
951 # Use braces instead of parens because sh, perl, etc. also accept them.
952 # (The list follows the same order as the GNU Coding Standards.)
953 bindir='${exec_prefix}/bin'
954 sbindir='${exec_prefix}/sbin'
955 libexecdir='${exec_prefix}/libexec'
956 datarootdir='${prefix}/share'
957 datadir='${datarootdir}'
958 sysconfdir='${prefix}/etc'
959 sharedstatedir='${prefix}/com'
960 localstatedir='${prefix}/var'
961 includedir='${prefix}/include'
962 oldincludedir='/usr/include'
963 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
964 infodir='${datarootdir}/info'
965 htmldir='${docdir}'
966 dvidir='${docdir}'
967 pdfdir='${docdir}'
968 psdir='${docdir}'
969 libdir='${exec_prefix}/lib'
970 localedir='${datarootdir}/locale'
971 mandir='${datarootdir}/man'
972
973 ac_prev=
974 ac_dashdash=
975 for ac_option
976 do
977   # If the previous option needs an argument, assign it.
978   if test -n "$ac_prev"; then
979     eval $ac_prev=\$ac_option
980     ac_prev=
981     continue
982   fi
983
984   case $ac_option in
985   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
986   *=)   ac_optarg= ;;
987   *)    ac_optarg=yes ;;
988   esac
989
990   # Accept the important Cygnus configure options, so we can diagnose typos.
991
992   case $ac_dashdash$ac_option in
993   --)
994     ac_dashdash=yes ;;
995
996   -bindir | --bindir | --bindi | --bind | --bin | --bi)
997     ac_prev=bindir ;;
998   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
999     bindir=$ac_optarg ;;
1000
1001   -build | --build | --buil | --bui | --bu)
1002     ac_prev=build_alias ;;
1003   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1004     build_alias=$ac_optarg ;;
1005
1006   -cache-file | --cache-file | --cache-fil | --cache-fi \
1007   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1008     ac_prev=cache_file ;;
1009   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1010   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1011     cache_file=$ac_optarg ;;
1012
1013   --config-cache | -C)
1014     cache_file=config.cache ;;
1015
1016   -datadir | --datadir | --datadi | --datad)
1017     ac_prev=datadir ;;
1018   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1019     datadir=$ac_optarg ;;
1020
1021   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1022   | --dataroo | --dataro | --datar)
1023     ac_prev=datarootdir ;;
1024   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1025   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1026     datarootdir=$ac_optarg ;;
1027
1028   -disable-* | --disable-*)
1029     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1030     # Reject names that are not valid shell variable names.
1031     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1032       as_fn_error $? "invalid feature name: $ac_useropt"
1033     ac_useropt_orig=$ac_useropt
1034     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1035     case $ac_user_opts in
1036       *"
1037 "enable_$ac_useropt"
1038 "*) ;;
1039       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1040          ac_unrecognized_sep=', ';;
1041     esac
1042     eval enable_$ac_useropt=no ;;
1043
1044   -docdir | --docdir | --docdi | --doc | --do)
1045     ac_prev=docdir ;;
1046   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1047     docdir=$ac_optarg ;;
1048
1049   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1050     ac_prev=dvidir ;;
1051   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1052     dvidir=$ac_optarg ;;
1053
1054   -enable-* | --enable-*)
1055     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1056     # Reject names that are not valid shell variable names.
1057     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1058       as_fn_error $? "invalid feature name: $ac_useropt"
1059     ac_useropt_orig=$ac_useropt
1060     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1061     case $ac_user_opts in
1062       *"
1063 "enable_$ac_useropt"
1064 "*) ;;
1065       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1066          ac_unrecognized_sep=', ';;
1067     esac
1068     eval enable_$ac_useropt=\$ac_optarg ;;
1069
1070   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1071   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1072   | --exec | --exe | --ex)
1073     ac_prev=exec_prefix ;;
1074   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1075   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1076   | --exec=* | --exe=* | --ex=*)
1077     exec_prefix=$ac_optarg ;;
1078
1079   -gas | --gas | --ga | --g)
1080     # Obsolete; use --with-gas.
1081     with_gas=yes ;;
1082
1083   -help | --help | --hel | --he | -h)
1084     ac_init_help=long ;;
1085   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1086     ac_init_help=recursive ;;
1087   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1088     ac_init_help=short ;;
1089
1090   -host | --host | --hos | --ho)
1091     ac_prev=host_alias ;;
1092   -host=* | --host=* | --hos=* | --ho=*)
1093     host_alias=$ac_optarg ;;
1094
1095   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1096     ac_prev=htmldir ;;
1097   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1098   | --ht=*)
1099     htmldir=$ac_optarg ;;
1100
1101   -includedir | --includedir | --includedi | --included | --include \
1102   | --includ | --inclu | --incl | --inc)
1103     ac_prev=includedir ;;
1104   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1105   | --includ=* | --inclu=* | --incl=* | --inc=*)
1106     includedir=$ac_optarg ;;
1107
1108   -infodir | --infodir | --infodi | --infod | --info | --inf)
1109     ac_prev=infodir ;;
1110   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1111     infodir=$ac_optarg ;;
1112
1113   -libdir | --libdir | --libdi | --libd)
1114     ac_prev=libdir ;;
1115   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1116     libdir=$ac_optarg ;;
1117
1118   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1119   | --libexe | --libex | --libe)
1120     ac_prev=libexecdir ;;
1121   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1122   | --libexe=* | --libex=* | --libe=*)
1123     libexecdir=$ac_optarg ;;
1124
1125   -localedir | --localedir | --localedi | --localed | --locale)
1126     ac_prev=localedir ;;
1127   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1128     localedir=$ac_optarg ;;
1129
1130   -localstatedir | --localstatedir | --localstatedi | --localstated \
1131   | --localstate | --localstat | --localsta | --localst | --locals)
1132     ac_prev=localstatedir ;;
1133   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1134   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1135     localstatedir=$ac_optarg ;;
1136
1137   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1138     ac_prev=mandir ;;
1139   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1140     mandir=$ac_optarg ;;
1141
1142   -nfp | --nfp | --nf)
1143     # Obsolete; use --without-fp.
1144     with_fp=no ;;
1145
1146   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1147   | --no-cr | --no-c | -n)
1148     no_create=yes ;;
1149
1150   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1151   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1152     no_recursion=yes ;;
1153
1154   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1155   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1156   | --oldin | --oldi | --old | --ol | --o)
1157     ac_prev=oldincludedir ;;
1158   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1159   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1160   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1161     oldincludedir=$ac_optarg ;;
1162
1163   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1164     ac_prev=prefix ;;
1165   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1166     prefix=$ac_optarg ;;
1167
1168   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1169   | --program-pre | --program-pr | --program-p)
1170     ac_prev=program_prefix ;;
1171   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1172   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1173     program_prefix=$ac_optarg ;;
1174
1175   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1176   | --program-suf | --program-su | --program-s)
1177     ac_prev=program_suffix ;;
1178   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1179   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1180     program_suffix=$ac_optarg ;;
1181
1182   -program-transform-name | --program-transform-name \
1183   | --program-transform-nam | --program-transform-na \
1184   | --program-transform-n | --program-transform- \
1185   | --program-transform | --program-transfor \
1186   | --program-transfo | --program-transf \
1187   | --program-trans | --program-tran \
1188   | --progr-tra | --program-tr | --program-t)
1189     ac_prev=program_transform_name ;;
1190   -program-transform-name=* | --program-transform-name=* \
1191   | --program-transform-nam=* | --program-transform-na=* \
1192   | --program-transform-n=* | --program-transform-=* \
1193   | --program-transform=* | --program-transfor=* \
1194   | --program-transfo=* | --program-transf=* \
1195   | --program-trans=* | --program-tran=* \
1196   | --progr-tra=* | --program-tr=* | --program-t=*)
1197     program_transform_name=$ac_optarg ;;
1198
1199   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1200     ac_prev=pdfdir ;;
1201   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1202     pdfdir=$ac_optarg ;;
1203
1204   -psdir | --psdir | --psdi | --psd | --ps)
1205     ac_prev=psdir ;;
1206   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1207     psdir=$ac_optarg ;;
1208
1209   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1210   | -silent | --silent | --silen | --sile | --sil)
1211     silent=yes ;;
1212
1213   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1214     ac_prev=sbindir ;;
1215   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1216   | --sbi=* | --sb=*)
1217     sbindir=$ac_optarg ;;
1218
1219   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1220   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1221   | --sharedst | --shareds | --shared | --share | --shar \
1222   | --sha | --sh)
1223     ac_prev=sharedstatedir ;;
1224   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1225   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1226   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1227   | --sha=* | --sh=*)
1228     sharedstatedir=$ac_optarg ;;
1229
1230   -site | --site | --sit)
1231     ac_prev=site ;;
1232   -site=* | --site=* | --sit=*)
1233     site=$ac_optarg ;;
1234
1235   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1236     ac_prev=srcdir ;;
1237   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1238     srcdir=$ac_optarg ;;
1239
1240   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1241   | --syscon | --sysco | --sysc | --sys | --sy)
1242     ac_prev=sysconfdir ;;
1243   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1244   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1245     sysconfdir=$ac_optarg ;;
1246
1247   -target | --target | --targe | --targ | --tar | --ta | --t)
1248     ac_prev=target_alias ;;
1249   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1250     target_alias=$ac_optarg ;;
1251
1252   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1253     verbose=yes ;;
1254
1255   -version | --version | --versio | --versi | --vers | -V)
1256     ac_init_version=: ;;
1257
1258   -with-* | --with-*)
1259     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1260     # Reject names that are not valid shell variable names.
1261     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1262       as_fn_error $? "invalid package name: $ac_useropt"
1263     ac_useropt_orig=$ac_useropt
1264     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1265     case $ac_user_opts in
1266       *"
1267 "with_$ac_useropt"
1268 "*) ;;
1269       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1270          ac_unrecognized_sep=', ';;
1271     esac
1272     eval with_$ac_useropt=\$ac_optarg ;;
1273
1274   -without-* | --without-*)
1275     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1276     # Reject names that are not valid shell variable names.
1277     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1278       as_fn_error $? "invalid package name: $ac_useropt"
1279     ac_useropt_orig=$ac_useropt
1280     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1281     case $ac_user_opts in
1282       *"
1283 "with_$ac_useropt"
1284 "*) ;;
1285       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1286          ac_unrecognized_sep=', ';;
1287     esac
1288     eval with_$ac_useropt=no ;;
1289
1290   --x)
1291     # Obsolete; use --with-x.
1292     with_x=yes ;;
1293
1294   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1295   | --x-incl | --x-inc | --x-in | --x-i)
1296     ac_prev=x_includes ;;
1297   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1298   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1299     x_includes=$ac_optarg ;;
1300
1301   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1302   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1303     ac_prev=x_libraries ;;
1304   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1305   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1306     x_libraries=$ac_optarg ;;
1307
1308   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1309 Try \`$0 --help' for more information"
1310     ;;
1311
1312   *=*)
1313     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1314     # Reject names that are not valid shell variable names.
1315     case $ac_envvar in #(
1316       '' | [0-9]* | *[!_$as_cr_alnum]* )
1317       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1318     esac
1319     eval $ac_envvar=\$ac_optarg
1320     export $ac_envvar ;;
1321
1322   *)
1323     # FIXME: should be removed in autoconf 3.0.
1324     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1325     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1326       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1327     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1328     ;;
1329
1330   esac
1331 done
1332
1333 if test -n "$ac_prev"; then
1334   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1335   as_fn_error $? "missing argument to $ac_option"
1336 fi
1337
1338 if test -n "$ac_unrecognized_opts"; then
1339   case $enable_option_checking in
1340     no) ;;
1341     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1342     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1343   esac
1344 fi
1345
1346 # Check all directory arguments for consistency.
1347 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1348                 datadir sysconfdir sharedstatedir localstatedir includedir \
1349                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1350                 libdir localedir mandir
1351 do
1352   eval ac_val=\$$ac_var
1353   # Remove trailing slashes.
1354   case $ac_val in
1355     */ )
1356       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1357       eval $ac_var=\$ac_val;;
1358   esac
1359   # Be sure to have absolute directory names.
1360   case $ac_val in
1361     [\\/$]* | ?:[\\/]* )  continue;;
1362     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1363   esac
1364   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1365 done
1366
1367 # There might be people who depend on the old broken behavior: `$host'
1368 # used to hold the argument of --host etc.
1369 # FIXME: To remove some day.
1370 build=$build_alias
1371 host=$host_alias
1372 target=$target_alias
1373
1374 # FIXME: To remove some day.
1375 if test "x$host_alias" != x; then
1376   if test "x$build_alias" = x; then
1377     cross_compiling=maybe
1378   elif test "x$build_alias" != "x$host_alias"; then
1379     cross_compiling=yes
1380   fi
1381 fi
1382
1383 ac_tool_prefix=
1384 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1385
1386 test "$silent" = yes && exec 6>/dev/null
1387
1388
1389 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1390 ac_ls_di=`ls -di .` &&
1391 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1392   as_fn_error $? "working directory cannot be determined"
1393 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1394   as_fn_error $? "pwd does not report name of working directory"
1395
1396
1397 # Find the source files, if location was not specified.
1398 if test -z "$srcdir"; then
1399   ac_srcdir_defaulted=yes
1400   # Try the directory containing this script, then the parent directory.
1401   ac_confdir=`$as_dirname -- "$as_myself" ||
1402 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1403          X"$as_myself" : 'X\(//\)[^/]' \| \
1404          X"$as_myself" : 'X\(//\)$' \| \
1405          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1406 $as_echo X"$as_myself" |
1407     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1408             s//\1/
1409             q
1410           }
1411           /^X\(\/\/\)[^/].*/{
1412             s//\1/
1413             q
1414           }
1415           /^X\(\/\/\)$/{
1416             s//\1/
1417             q
1418           }
1419           /^X\(\/\).*/{
1420             s//\1/
1421             q
1422           }
1423           s/.*/./; q'`
1424   srcdir=$ac_confdir
1425   if test ! -r "$srcdir/$ac_unique_file"; then
1426     srcdir=..
1427   fi
1428 else
1429   ac_srcdir_defaulted=no
1430 fi
1431 if test ! -r "$srcdir/$ac_unique_file"; then
1432   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1433   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1434 fi
1435 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1436 ac_abs_confdir=`(
1437         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1438         pwd)`
1439 # When building in place, set srcdir=.
1440 if test "$ac_abs_confdir" = "$ac_pwd"; then
1441   srcdir=.
1442 fi
1443 # Remove unnecessary trailing slashes from srcdir.
1444 # Double slashes in file names in object file debugging info
1445 # mess up M-x gdb in Emacs.
1446 case $srcdir in
1447 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1448 esac
1449 for ac_var in $ac_precious_vars; do
1450   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1451   eval ac_env_${ac_var}_value=\$${ac_var}
1452   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1453   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1454 done
1455
1456 #
1457 # Report the --help message.
1458 #
1459 if test "$ac_init_help" = "long"; then
1460   # Omit some internal or obsolete options to make the list less imposing.
1461   # This message is too long to be a string in the A/UX 3.1 sh.
1462   cat <<_ACEOF
1463 \`configure' configures gupnp 0.20.1 to adapt to many kinds of systems.
1464
1465 Usage: $0 [OPTION]... [VAR=VALUE]...
1466
1467 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1468 VAR=VALUE.  See below for descriptions of some of the useful variables.
1469
1470 Defaults for the options are specified in brackets.
1471
1472 Configuration:
1473   -h, --help              display this help and exit
1474       --help=short        display options specific to this package
1475       --help=recursive    display the short help of all the included packages
1476   -V, --version           display version information and exit
1477   -q, --quiet, --silent   do not print \`checking ...' messages
1478       --cache-file=FILE   cache test results in FILE [disabled]
1479   -C, --config-cache      alias for \`--cache-file=config.cache'
1480   -n, --no-create         do not create output files
1481       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1482
1483 Installation directories:
1484   --prefix=PREFIX         install architecture-independent files in PREFIX
1485                           [$ac_default_prefix]
1486   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1487                           [PREFIX]
1488
1489 By default, \`make install' will install all the files in
1490 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1491 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1492 for instance \`--prefix=\$HOME'.
1493
1494 For better control, use the options below.
1495
1496 Fine tuning of the installation directories:
1497   --bindir=DIR            user executables [EPREFIX/bin]
1498   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1499   --libexecdir=DIR        program executables [EPREFIX/libexec]
1500   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1501   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1502   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1503   --libdir=DIR            object code libraries [EPREFIX/lib]
1504   --includedir=DIR        C header files [PREFIX/include]
1505   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1506   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1507   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1508   --infodir=DIR           info documentation [DATAROOTDIR/info]
1509   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1510   --mandir=DIR            man documentation [DATAROOTDIR/man]
1511   --docdir=DIR            documentation root [DATAROOTDIR/doc/gupnp]
1512   --htmldir=DIR           html documentation [DOCDIR]
1513   --dvidir=DIR            dvi documentation [DOCDIR]
1514   --pdfdir=DIR            pdf documentation [DOCDIR]
1515   --psdir=DIR             ps documentation [DOCDIR]
1516 _ACEOF
1517
1518   cat <<\_ACEOF
1519
1520 Program names:
1521   --program-prefix=PREFIX            prepend PREFIX to installed program names
1522   --program-suffix=SUFFIX            append SUFFIX to installed program names
1523   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1524
1525 System types:
1526   --build=BUILD     configure for building on BUILD [guessed]
1527   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1528   --target=TARGET   configure for building compilers for TARGET [HOST]
1529 _ACEOF
1530 fi
1531
1532 if test -n "$ac_init_help"; then
1533   case $ac_init_help in
1534      short | recursive ) echo "Configuration of gupnp 0.20.1:";;
1535    esac
1536   cat <<\_ACEOF
1537
1538 Optional Features:
1539   --disable-option-checking  ignore unrecognized --enable/--with options
1540   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1541   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1542   --disable-maintainer-mode  disable make rules and dependencies not useful
1543                           (and sometimes confusing) to the casual installer
1544   --enable-silent-rules          less verbose build output (undo: `make V=1')
1545   --disable-silent-rules         verbose build output (undo: `make V=0')
1546   --disable-dependency-tracking  speeds up one-time build
1547   --enable-dependency-tracking   do not reject slow dependency extractors
1548   --disable-largefile     omit support for large files
1549   --enable-shared[=PKGS]  build shared libraries [default=yes]
1550   --enable-static[=PKGS]  build static libraries [default=yes]
1551   --enable-fast-install[=PKGS]
1552                           optimize for fast installation [default=yes]
1553   --disable-libtool-lock  avoid locking (might break parallel builds)
1554   --enable-debug          enable debugging
1555   --enable-introspection=[no/auto/yes]
1556                           Enable introspection for this build
1557   --enable-gtk-doc        use gtk-doc to build documentation [[default=no]]
1558   --enable-gtk-doc-html   build documentation in html format [[default=yes]]
1559   --enable-gtk-doc-pdf    build documentation in pdf format [[default=no]]
1560
1561 Optional Packages:
1562   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1563   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1564   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1565                           both]
1566   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1567   --with-sysroot=DIR Search for dependent libraries within DIR
1568                         (or the compiler's sysroot if not specified).
1569   --with-context-manager=[network-manager/connman/unix/linux]
1570                           Context Manager backend to use
1571   --with-html-dir=PATH    path to installed docs
1572
1573 Some influential environment variables:
1574   CC          C compiler command
1575   CFLAGS      C compiler flags
1576   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1577               nonstandard directory <lib dir>
1578   LIBS        libraries to pass to the linker, e.g. -l<library>
1579   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1580               you have headers in a nonstandard directory <include dir>
1581   CPP         C preprocessor
1582   PKG_CONFIG  path to pkg-config utility
1583   PKG_CONFIG_PATH
1584               directories to add to pkg-config's search path
1585   PKG_CONFIG_LIBDIR
1586               path overriding pkg-config's built-in search path
1587   GTest_CFLAGS
1588               C compiler flags for GTest, overriding pkg-config
1589   GTest_LIBS  linker flags for GTest, overriding pkg-config
1590   LIBGUPNP_CFLAGS
1591               C compiler flags for LIBGUPNP, overriding pkg-config
1592   LIBGUPNP_LIBS
1593               linker flags for LIBGUPNP, overriding pkg-config
1594   GTHREAD_CFLAGS
1595               C compiler flags for GTHREAD, overriding pkg-config
1596   GTHREAD_LIBS
1597               linker flags for GTHREAD, overriding pkg-config
1598   GIO_CFLAGS  C compiler flags for GIO, overriding pkg-config
1599   GIO_LIBS    linker flags for GIO, overriding pkg-config
1600   CONNMAN_CFLAGS
1601               C compiler flags for CONNMAN, overriding pkg-config
1602   CONNMAN_LIBS
1603               linker flags for CONNMAN, overriding pkg-config
1604   GTKDOC_DEPS_CFLAGS
1605               C compiler flags for GTKDOC_DEPS, overriding pkg-config
1606   GTKDOC_DEPS_LIBS
1607               linker flags for GTKDOC_DEPS, overriding pkg-config
1608
1609 Use these variables to override the choices made by `configure' or to help
1610 it to find libraries and programs with nonstandard names/locations.
1611
1612 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=gupnp&component=gupnp>.
1613 gupnp home page: <http://www.gupnp.org/>.
1614 _ACEOF
1615 ac_status=$?
1616 fi
1617
1618 if test "$ac_init_help" = "recursive"; then
1619   # If there are subdirs, report their specific --help.
1620   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1621     test -d "$ac_dir" ||
1622       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1623       continue
1624     ac_builddir=.
1625
1626 case "$ac_dir" in
1627 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1628 *)
1629   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1630   # A ".." for each directory in $ac_dir_suffix.
1631   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1632   case $ac_top_builddir_sub in
1633   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1634   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1635   esac ;;
1636 esac
1637 ac_abs_top_builddir=$ac_pwd
1638 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1639 # for backward compatibility:
1640 ac_top_builddir=$ac_top_build_prefix
1641
1642 case $srcdir in
1643   .)  # We are building in place.
1644     ac_srcdir=.
1645     ac_top_srcdir=$ac_top_builddir_sub
1646     ac_abs_top_srcdir=$ac_pwd ;;
1647   [\\/]* | ?:[\\/]* )  # Absolute name.
1648     ac_srcdir=$srcdir$ac_dir_suffix;
1649     ac_top_srcdir=$srcdir
1650     ac_abs_top_srcdir=$srcdir ;;
1651   *) # Relative name.
1652     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1653     ac_top_srcdir=$ac_top_build_prefix$srcdir
1654     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1655 esac
1656 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1657
1658     cd "$ac_dir" || { ac_status=$?; continue; }
1659     # Check for guested configure.
1660     if test -f "$ac_srcdir/configure.gnu"; then
1661       echo &&
1662       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1663     elif test -f "$ac_srcdir/configure"; then
1664       echo &&
1665       $SHELL "$ac_srcdir/configure" --help=recursive
1666     else
1667       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1668     fi || ac_status=$?
1669     cd "$ac_pwd" || { ac_status=$?; break; }
1670   done
1671 fi
1672
1673 test -n "$ac_init_help" && exit $ac_status
1674 if $ac_init_version; then
1675   cat <<\_ACEOF
1676 gupnp configure 0.20.1
1677 generated by GNU Autoconf 2.69
1678
1679 Copyright (C) 2012 Free Software Foundation, Inc.
1680 This configure script is free software; the Free Software Foundation
1681 gives unlimited permission to copy, distribute and modify it.
1682 _ACEOF
1683   exit
1684 fi
1685
1686 ## ------------------------ ##
1687 ## Autoconf initialization. ##
1688 ## ------------------------ ##
1689
1690 # ac_fn_c_try_compile LINENO
1691 # --------------------------
1692 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1693 ac_fn_c_try_compile ()
1694 {
1695   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1696   rm -f conftest.$ac_objext
1697   if { { ac_try="$ac_compile"
1698 case "(($ac_try" in
1699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1700   *) ac_try_echo=$ac_try;;
1701 esac
1702 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1703 $as_echo "$ac_try_echo"; } >&5
1704   (eval "$ac_compile") 2>conftest.err
1705   ac_status=$?
1706   if test -s conftest.err; then
1707     grep -v '^ *+' conftest.err >conftest.er1
1708     cat conftest.er1 >&5
1709     mv -f conftest.er1 conftest.err
1710   fi
1711   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1712   test $ac_status = 0; } && {
1713          test -z "$ac_c_werror_flag" ||
1714          test ! -s conftest.err
1715        } && test -s conftest.$ac_objext; then :
1716   ac_retval=0
1717 else
1718   $as_echo "$as_me: failed program was:" >&5
1719 sed 's/^/| /' conftest.$ac_ext >&5
1720
1721         ac_retval=1
1722 fi
1723   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1724   as_fn_set_status $ac_retval
1725
1726 } # ac_fn_c_try_compile
1727
1728 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1729 # -------------------------------------------------------
1730 # Tests whether HEADER exists and can be compiled using the include files in
1731 # INCLUDES, setting the cache variable VAR accordingly.
1732 ac_fn_c_check_header_compile ()
1733 {
1734   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1736 $as_echo_n "checking for $2... " >&6; }
1737 if eval \${$3+:} false; then :
1738   $as_echo_n "(cached) " >&6
1739 else
1740   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1741 /* end confdefs.h.  */
1742 $4
1743 #include <$2>
1744 _ACEOF
1745 if ac_fn_c_try_compile "$LINENO"; then :
1746   eval "$3=yes"
1747 else
1748   eval "$3=no"
1749 fi
1750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1751 fi
1752 eval ac_res=\$$3
1753                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1754 $as_echo "$ac_res" >&6; }
1755   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1756
1757 } # ac_fn_c_check_header_compile
1758
1759 # ac_fn_c_try_cpp LINENO
1760 # ----------------------
1761 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1762 ac_fn_c_try_cpp ()
1763 {
1764   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1765   if { { ac_try="$ac_cpp conftest.$ac_ext"
1766 case "(($ac_try" in
1767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1768   *) ac_try_echo=$ac_try;;
1769 esac
1770 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1771 $as_echo "$ac_try_echo"; } >&5
1772   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1773   ac_status=$?
1774   if test -s conftest.err; then
1775     grep -v '^ *+' conftest.err >conftest.er1
1776     cat conftest.er1 >&5
1777     mv -f conftest.er1 conftest.err
1778   fi
1779   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1780   test $ac_status = 0; } > conftest.i && {
1781          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1782          test ! -s conftest.err
1783        }; then :
1784   ac_retval=0
1785 else
1786   $as_echo "$as_me: failed program was:" >&5
1787 sed 's/^/| /' conftest.$ac_ext >&5
1788
1789     ac_retval=1
1790 fi
1791   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1792   as_fn_set_status $ac_retval
1793
1794 } # ac_fn_c_try_cpp
1795
1796 # ac_fn_c_try_run LINENO
1797 # ----------------------
1798 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1799 # that executables *can* be run.
1800 ac_fn_c_try_run ()
1801 {
1802   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803   if { { ac_try="$ac_link"
1804 case "(($ac_try" in
1805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1806   *) ac_try_echo=$ac_try;;
1807 esac
1808 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1809 $as_echo "$ac_try_echo"; } >&5
1810   (eval "$ac_link") 2>&5
1811   ac_status=$?
1812   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1813   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1814   { { case "(($ac_try" in
1815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1816   *) ac_try_echo=$ac_try;;
1817 esac
1818 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1819 $as_echo "$ac_try_echo"; } >&5
1820   (eval "$ac_try") 2>&5
1821   ac_status=$?
1822   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1823   test $ac_status = 0; }; }; then :
1824   ac_retval=0
1825 else
1826   $as_echo "$as_me: program exited with status $ac_status" >&5
1827        $as_echo "$as_me: failed program was:" >&5
1828 sed 's/^/| /' conftest.$ac_ext >&5
1829
1830        ac_retval=$ac_status
1831 fi
1832   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1833   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1834   as_fn_set_status $ac_retval
1835
1836 } # ac_fn_c_try_run
1837
1838 # ac_fn_c_try_link LINENO
1839 # -----------------------
1840 # Try to link conftest.$ac_ext, and return whether this succeeded.
1841 ac_fn_c_try_link ()
1842 {
1843   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1844   rm -f conftest.$ac_objext conftest$ac_exeext
1845   if { { ac_try="$ac_link"
1846 case "(($ac_try" in
1847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1848   *) ac_try_echo=$ac_try;;
1849 esac
1850 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1851 $as_echo "$ac_try_echo"; } >&5
1852   (eval "$ac_link") 2>conftest.err
1853   ac_status=$?
1854   if test -s conftest.err; then
1855     grep -v '^ *+' conftest.err >conftest.er1
1856     cat conftest.er1 >&5
1857     mv -f conftest.er1 conftest.err
1858   fi
1859   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1860   test $ac_status = 0; } && {
1861          test -z "$ac_c_werror_flag" ||
1862          test ! -s conftest.err
1863        } && test -s conftest$ac_exeext && {
1864          test "$cross_compiling" = yes ||
1865          test -x conftest$ac_exeext
1866        }; then :
1867   ac_retval=0
1868 else
1869   $as_echo "$as_me: failed program was:" >&5
1870 sed 's/^/| /' conftest.$ac_ext >&5
1871
1872         ac_retval=1
1873 fi
1874   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1875   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1876   # interfere with the next link command; also delete a directory that is
1877   # left behind by Apple's compiler.  We do this before executing the actions.
1878   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1879   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1880   as_fn_set_status $ac_retval
1881
1882 } # ac_fn_c_try_link
1883
1884 # ac_fn_c_check_func LINENO FUNC VAR
1885 # ----------------------------------
1886 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1887 ac_fn_c_check_func ()
1888 {
1889   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1890   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1891 $as_echo_n "checking for $2... " >&6; }
1892 if eval \${$3+:} false; then :
1893   $as_echo_n "(cached) " >&6
1894 else
1895   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1896 /* end confdefs.h.  */
1897 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1898    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1899 #define $2 innocuous_$2
1900
1901 /* System header to define __stub macros and hopefully few prototypes,
1902     which can conflict with char $2 (); below.
1903     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1904     <limits.h> exists even on freestanding compilers.  */
1905
1906 #ifdef __STDC__
1907 # include <limits.h>
1908 #else
1909 # include <assert.h>
1910 #endif
1911
1912 #undef $2
1913
1914 /* Override any GCC internal prototype to avoid an error.
1915    Use char because int might match the return type of a GCC
1916    builtin and then its argument prototype would still apply.  */
1917 #ifdef __cplusplus
1918 extern "C"
1919 #endif
1920 char $2 ();
1921 /* The GNU C library defines this for functions which it implements
1922     to always fail with ENOSYS.  Some functions are actually named
1923     something starting with __ and the normal name is an alias.  */
1924 #if defined __stub_$2 || defined __stub___$2
1925 choke me
1926 #endif
1927
1928 int
1929 main ()
1930 {
1931 return $2 ();
1932   ;
1933   return 0;
1934 }
1935 _ACEOF
1936 if ac_fn_c_try_link "$LINENO"; then :
1937   eval "$3=yes"
1938 else
1939   eval "$3=no"
1940 fi
1941 rm -f core conftest.err conftest.$ac_objext \
1942     conftest$ac_exeext conftest.$ac_ext
1943 fi
1944 eval ac_res=\$$3
1945                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1946 $as_echo "$ac_res" >&6; }
1947   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1948
1949 } # ac_fn_c_check_func
1950 cat >config.log <<_ACEOF
1951 This file contains any messages produced by compilers while
1952 running configure, to aid debugging if configure makes a mistake.
1953
1954 It was created by gupnp $as_me 0.20.1, which was
1955 generated by GNU Autoconf 2.69.  Invocation command line was
1956
1957   $ $0 $@
1958
1959 _ACEOF
1960 exec 5>>config.log
1961 {
1962 cat <<_ASUNAME
1963 ## --------- ##
1964 ## Platform. ##
1965 ## --------- ##
1966
1967 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1968 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1969 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1970 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1971 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1972
1973 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1974 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1975
1976 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1977 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1978 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1979 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1980 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1981 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1982 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1983
1984 _ASUNAME
1985
1986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1987 for as_dir in $PATH
1988 do
1989   IFS=$as_save_IFS
1990   test -z "$as_dir" && as_dir=.
1991     $as_echo "PATH: $as_dir"
1992   done
1993 IFS=$as_save_IFS
1994
1995 } >&5
1996
1997 cat >&5 <<_ACEOF
1998
1999
2000 ## ----------- ##
2001 ## Core tests. ##
2002 ## ----------- ##
2003
2004 _ACEOF
2005
2006
2007 # Keep a trace of the command line.
2008 # Strip out --no-create and --no-recursion so they do not pile up.
2009 # Strip out --silent because we don't want to record it for future runs.
2010 # Also quote any args containing shell meta-characters.
2011 # Make two passes to allow for proper duplicate-argument suppression.
2012 ac_configure_args=
2013 ac_configure_args0=
2014 ac_configure_args1=
2015 ac_must_keep_next=false
2016 for ac_pass in 1 2
2017 do
2018   for ac_arg
2019   do
2020     case $ac_arg in
2021     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2022     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2023     | -silent | --silent | --silen | --sile | --sil)
2024       continue ;;
2025     *\'*)
2026       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2027     esac
2028     case $ac_pass in
2029     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2030     2)
2031       as_fn_append ac_configure_args1 " '$ac_arg'"
2032       if test $ac_must_keep_next = true; then
2033         ac_must_keep_next=false # Got value, back to normal.
2034       else
2035         case $ac_arg in
2036           *=* | --config-cache | -C | -disable-* | --disable-* \
2037           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2038           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2039           | -with-* | --with-* | -without-* | --without-* | --x)
2040             case "$ac_configure_args0 " in
2041               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2042             esac
2043             ;;
2044           -* ) ac_must_keep_next=true ;;
2045         esac
2046       fi
2047       as_fn_append ac_configure_args " '$ac_arg'"
2048       ;;
2049     esac
2050   done
2051 done
2052 { ac_configure_args0=; unset ac_configure_args0;}
2053 { ac_configure_args1=; unset ac_configure_args1;}
2054
2055 # When interrupted or exit'd, cleanup temporary files, and complete
2056 # config.log.  We remove comments because anyway the quotes in there
2057 # would cause problems or look ugly.
2058 # WARNING: Use '\'' to represent an apostrophe within the trap.
2059 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2060 trap 'exit_status=$?
2061   # Save into config.log some information that might help in debugging.
2062   {
2063     echo
2064
2065     $as_echo "## ---------------- ##
2066 ## Cache variables. ##
2067 ## ---------------- ##"
2068     echo
2069     # The following way of writing the cache mishandles newlines in values,
2070 (
2071   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2072     eval ac_val=\$$ac_var
2073     case $ac_val in #(
2074     *${as_nl}*)
2075       case $ac_var in #(
2076       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2077 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2078       esac
2079       case $ac_var in #(
2080       _ | IFS | as_nl) ;; #(
2081       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2082       *) { eval $ac_var=; unset $ac_var;} ;;
2083       esac ;;
2084     esac
2085   done
2086   (set) 2>&1 |
2087     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2088     *${as_nl}ac_space=\ *)
2089       sed -n \
2090         "s/'\''/'\''\\\\'\'''\''/g;
2091           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2092       ;; #(
2093     *)
2094       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2095       ;;
2096     esac |
2097     sort
2098 )
2099     echo
2100
2101     $as_echo "## ----------------- ##
2102 ## Output variables. ##
2103 ## ----------------- ##"
2104     echo
2105     for ac_var in $ac_subst_vars
2106     do
2107       eval ac_val=\$$ac_var
2108       case $ac_val in
2109       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2110       esac
2111       $as_echo "$ac_var='\''$ac_val'\''"
2112     done | sort
2113     echo
2114
2115     if test -n "$ac_subst_files"; then
2116       $as_echo "## ------------------- ##
2117 ## File substitutions. ##
2118 ## ------------------- ##"
2119       echo
2120       for ac_var in $ac_subst_files
2121       do
2122         eval ac_val=\$$ac_var
2123         case $ac_val in
2124         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2125         esac
2126         $as_echo "$ac_var='\''$ac_val'\''"
2127       done | sort
2128       echo
2129     fi
2130
2131     if test -s confdefs.h; then
2132       $as_echo "## ----------- ##
2133 ## confdefs.h. ##
2134 ## ----------- ##"
2135       echo
2136       cat confdefs.h
2137       echo
2138     fi
2139     test "$ac_signal" != 0 &&
2140       $as_echo "$as_me: caught signal $ac_signal"
2141     $as_echo "$as_me: exit $exit_status"
2142   } >&5
2143   rm -f core *.core core.conftest.* &&
2144     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2145     exit $exit_status
2146 ' 0
2147 for ac_signal in 1 2 13 15; do
2148   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2149 done
2150 ac_signal=0
2151
2152 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2153 rm -f -r conftest* confdefs.h
2154
2155 $as_echo "/* confdefs.h */" > confdefs.h
2156
2157 # Predefined preprocessor variables.
2158
2159 cat >>confdefs.h <<_ACEOF
2160 #define PACKAGE_NAME "$PACKAGE_NAME"
2161 _ACEOF
2162
2163 cat >>confdefs.h <<_ACEOF
2164 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2165 _ACEOF
2166
2167 cat >>confdefs.h <<_ACEOF
2168 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2169 _ACEOF
2170
2171 cat >>confdefs.h <<_ACEOF
2172 #define PACKAGE_STRING "$PACKAGE_STRING"
2173 _ACEOF
2174
2175 cat >>confdefs.h <<_ACEOF
2176 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2177 _ACEOF
2178
2179 cat >>confdefs.h <<_ACEOF
2180 #define PACKAGE_URL "$PACKAGE_URL"
2181 _ACEOF
2182
2183
2184 # Let the site file select an alternate cache file if it wants to.
2185 # Prefer an explicitly selected file to automatically selected ones.
2186 ac_site_file1=NONE
2187 ac_site_file2=NONE
2188 if test -n "$CONFIG_SITE"; then
2189   # We do not want a PATH search for config.site.
2190   case $CONFIG_SITE in #((
2191     -*)  ac_site_file1=./$CONFIG_SITE;;
2192     */*) ac_site_file1=$CONFIG_SITE;;
2193     *)   ac_site_file1=./$CONFIG_SITE;;
2194   esac
2195 elif test "x$prefix" != xNONE; then
2196   ac_site_file1=$prefix/share/config.site
2197   ac_site_file2=$prefix/etc/config.site
2198 else
2199   ac_site_file1=$ac_default_prefix/share/config.site
2200   ac_site_file2=$ac_default_prefix/etc/config.site
2201 fi
2202 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2203 do
2204   test "x$ac_site_file" = xNONE && continue
2205   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2206     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2207 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2208     sed 's/^/| /' "$ac_site_file" >&5
2209     . "$ac_site_file" \
2210       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2211 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2212 as_fn_error $? "failed to load site script $ac_site_file
2213 See \`config.log' for more details" "$LINENO" 5; }
2214   fi
2215 done
2216
2217 if test -r "$cache_file"; then
2218   # Some versions of bash will fail to source /dev/null (special files
2219   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2220   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2221     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2222 $as_echo "$as_me: loading cache $cache_file" >&6;}
2223     case $cache_file in
2224       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2225       *)                      . "./$cache_file";;
2226     esac
2227   fi
2228 else
2229   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2230 $as_echo "$as_me: creating cache $cache_file" >&6;}
2231   >$cache_file
2232 fi
2233
2234 as_fn_append ac_header_list " stdlib.h"
2235 as_fn_append ac_header_list " unistd.h"
2236 as_fn_append ac_header_list " sys/param.h"
2237 # Check that the precious variables saved in the cache have kept the same
2238 # value.
2239 ac_cache_corrupted=false
2240 for ac_var in $ac_precious_vars; do
2241   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2242   eval ac_new_set=\$ac_env_${ac_var}_set
2243   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2244   eval ac_new_val=\$ac_env_${ac_var}_value
2245   case $ac_old_set,$ac_new_set in
2246     set,)
2247       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2248 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2249       ac_cache_corrupted=: ;;
2250     ,set)
2251       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2252 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2253       ac_cache_corrupted=: ;;
2254     ,);;
2255     *)
2256       if test "x$ac_old_val" != "x$ac_new_val"; then
2257         # differences in whitespace do not lead to failure.
2258         ac_old_val_w=`echo x $ac_old_val`
2259         ac_new_val_w=`echo x $ac_new_val`
2260         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2261           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2262 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2263           ac_cache_corrupted=:
2264         else
2265           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2266 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2267           eval $ac_var=\$ac_old_val
2268         fi
2269         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2270 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2271         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2272 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2273       fi;;
2274   esac
2275   # Pass precious variables to config.status.
2276   if test "$ac_new_set" = set; then
2277     case $ac_new_val in
2278     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2279     *) ac_arg=$ac_var=$ac_new_val ;;
2280     esac
2281     case " $ac_configure_args " in
2282       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2283       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2284     esac
2285   fi
2286 done
2287 if $ac_cache_corrupted; then
2288   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2289 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2290   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2291 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2292   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2293 fi
2294 ## -------------------- ##
2295 ## Main body of script. ##
2296 ## -------------------- ##
2297
2298 ac_ext=c
2299 ac_cpp='$CPP $CPPFLAGS'
2300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2303
2304
2305
2306 ac_config_headers="$ac_config_headers config.h"
2307
2308
2309
2310 ac_aux_dir=
2311 for ac_dir in build-aux "$srcdir"/build-aux; do
2312   if test -f "$ac_dir/install-sh"; then
2313     ac_aux_dir=$ac_dir
2314     ac_install_sh="$ac_aux_dir/install-sh -c"
2315     break
2316   elif test -f "$ac_dir/install.sh"; then
2317     ac_aux_dir=$ac_dir
2318     ac_install_sh="$ac_aux_dir/install.sh -c"
2319     break
2320   elif test -f "$ac_dir/shtool"; then
2321     ac_aux_dir=$ac_dir
2322     ac_install_sh="$ac_aux_dir/shtool install -c"
2323     break
2324   fi
2325 done
2326 if test -z "$ac_aux_dir"; then
2327   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2328 fi
2329
2330 # These three variables are undocumented and unsupported,
2331 # and are intended to be withdrawn in a future Autoconf release.
2332 # They can cause serious problems if a builder's source tree is in a directory
2333 # whose full name contains unusual characters.
2334 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2335 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2336 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2337
2338
2339
2340 # Make sure we can run config.sub.
2341 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2342   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2343
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2345 $as_echo_n "checking build system type... " >&6; }
2346 if ${ac_cv_build+:} false; then :
2347   $as_echo_n "(cached) " >&6
2348 else
2349   ac_build_alias=$build_alias
2350 test "x$ac_build_alias" = x &&
2351   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2352 test "x$ac_build_alias" = x &&
2353   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2354 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2355   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2356
2357 fi
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2359 $as_echo "$ac_cv_build" >&6; }
2360 case $ac_cv_build in
2361 *-*-*) ;;
2362 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2363 esac
2364 build=$ac_cv_build
2365 ac_save_IFS=$IFS; IFS='-'
2366 set x $ac_cv_build
2367 shift
2368 build_cpu=$1
2369 build_vendor=$2
2370 shift; shift
2371 # Remember, the first character of IFS is used to create $*,
2372 # except with old shells:
2373 build_os=$*
2374 IFS=$ac_save_IFS
2375 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2376
2377
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2379 $as_echo_n "checking host system type... " >&6; }
2380 if ${ac_cv_host+:} false; then :
2381   $as_echo_n "(cached) " >&6
2382 else
2383   if test "x$host_alias" = x; then
2384   ac_cv_host=$ac_cv_build
2385 else
2386   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2387     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2388 fi
2389
2390 fi
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2392 $as_echo "$ac_cv_host" >&6; }
2393 case $ac_cv_host in
2394 *-*-*) ;;
2395 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2396 esac
2397 host=$ac_cv_host
2398 ac_save_IFS=$IFS; IFS='-'
2399 set x $ac_cv_host
2400 shift
2401 host_cpu=$1
2402 host_vendor=$2
2403 shift; shift
2404 # Remember, the first character of IFS is used to create $*,
2405 # except with old shells:
2406 host_os=$*
2407 IFS=$ac_save_IFS
2408 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2409
2410
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2412 $as_echo_n "checking target system type... " >&6; }
2413 if ${ac_cv_target+:} false; then :
2414   $as_echo_n "(cached) " >&6
2415 else
2416   if test "x$target_alias" = x; then
2417   ac_cv_target=$ac_cv_host
2418 else
2419   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2420     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2421 fi
2422
2423 fi
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2425 $as_echo "$ac_cv_target" >&6; }
2426 case $ac_cv_target in
2427 *-*-*) ;;
2428 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2429 esac
2430 target=$ac_cv_target
2431 ac_save_IFS=$IFS; IFS='-'
2432 set x $ac_cv_target
2433 shift
2434 target_cpu=$1
2435 target_vendor=$2
2436 shift; shift
2437 # Remember, the first character of IFS is used to create $*,
2438 # except with old shells:
2439 target_os=$*
2440 IFS=$ac_save_IFS
2441 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2442
2443
2444 # The aliases save the names the user supplied, while $host etc.
2445 # will get canonicalized.
2446 test -n "$target_alias" &&
2447   test "$program_prefix$program_suffix$program_transform_name" = \
2448     NONENONEs,x,x, &&
2449   program_prefix=${target_alias}-
2450
2451 am__api_version='1.11'
2452
2453 # Find a good install program.  We prefer a C program (faster),
2454 # so one script is as good as another.  But avoid the broken or
2455 # incompatible versions:
2456 # SysV /etc/install, /usr/sbin/install
2457 # SunOS /usr/etc/install
2458 # IRIX /sbin/install
2459 # AIX /bin/install
2460 # AmigaOS /C/install, which installs bootblocks on floppy discs
2461 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2462 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2463 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2464 # OS/2's system install, which has a completely different semantic
2465 # ./install, which can be erroneously created by make from ./install.sh.
2466 # Reject install programs that cannot install multiple files.
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2468 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2469 if test -z "$INSTALL"; then
2470 if ${ac_cv_path_install+:} false; then :
2471   $as_echo_n "(cached) " >&6
2472 else
2473   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2474 for as_dir in $PATH
2475 do
2476   IFS=$as_save_IFS
2477   test -z "$as_dir" && as_dir=.
2478     # Account for people who put trailing slashes in PATH elements.
2479 case $as_dir/ in #((
2480   ./ | .// | /[cC]/* | \
2481   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2482   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2483   /usr/ucb/* ) ;;
2484   *)
2485     # OSF1 and SCO ODT 3.0 have their own names for install.
2486     # Don't use installbsd from OSF since it installs stuff as root
2487     # by default.
2488     for ac_prog in ginstall scoinst install; do
2489       for ac_exec_ext in '' $ac_executable_extensions; do
2490         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2491           if test $ac_prog = install &&
2492             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2493             # AIX install.  It has an incompatible calling convention.
2494             :
2495           elif test $ac_prog = install &&
2496             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2497             # program-specific install script used by HP pwplus--don't use.
2498             :
2499           else
2500             rm -rf conftest.one conftest.two conftest.dir
2501             echo one > conftest.one
2502             echo two > conftest.two
2503             mkdir conftest.dir
2504             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2505               test -s conftest.one && test -s conftest.two &&
2506               test -s conftest.dir/conftest.one &&
2507               test -s conftest.dir/conftest.two
2508             then
2509               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2510               break 3
2511             fi
2512           fi
2513         fi
2514       done
2515     done
2516     ;;
2517 esac
2518
2519   done
2520 IFS=$as_save_IFS
2521
2522 rm -rf conftest.one conftest.two conftest.dir
2523
2524 fi
2525   if test "${ac_cv_path_install+set}" = set; then
2526     INSTALL=$ac_cv_path_install
2527   else
2528     # As a last resort, use the slow shell script.  Don't cache a
2529     # value for INSTALL within a source directory, because that will
2530     # break other packages using the cache if that directory is
2531     # removed, or if the value is a relative name.
2532     INSTALL=$ac_install_sh
2533   fi
2534 fi
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2536 $as_echo "$INSTALL" >&6; }
2537
2538 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2539 # It thinks the first close brace ends the variable substitution.
2540 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2541
2542 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2543
2544 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2545
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2547 $as_echo_n "checking whether build environment is sane... " >&6; }
2548 # Just in case
2549 sleep 1
2550 echo timestamp > conftest.file
2551 # Reject unsafe characters in $srcdir or the absolute working directory
2552 # name.  Accept space and tab only in the latter.
2553 am_lf='
2554 '
2555 case `pwd` in
2556   *[\\\"\#\$\&\'\`$am_lf]*)
2557     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2558 esac
2559 case $srcdir in
2560   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2561     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2562 esac
2563
2564 # Do `set' in a subshell so we don't clobber the current shell's
2565 # arguments.  Must try -L first in case configure is actually a
2566 # symlink; some systems play weird games with the mod time of symlinks
2567 # (eg FreeBSD returns the mod time of the symlink's containing
2568 # directory).
2569 if (
2570    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2571    if test "$*" = "X"; then
2572       # -L didn't work.
2573       set X `ls -t "$srcdir/configure" conftest.file`
2574    fi
2575    rm -f conftest.file
2576    if test "$*" != "X $srcdir/configure conftest.file" \
2577       && test "$*" != "X conftest.file $srcdir/configure"; then
2578
2579       # If neither matched, then we have a broken ls.  This can happen
2580       # if, for instance, CONFIG_SHELL is bash and it inherits a
2581       # broken ls alias from the environment.  This has actually
2582       # happened.  Such a system could not be considered "sane".
2583       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2584 alias in your environment" "$LINENO" 5
2585    fi
2586
2587    test "$2" = conftest.file
2588    )
2589 then
2590    # Ok.
2591    :
2592 else
2593    as_fn_error $? "newly created file is older than distributed files!
2594 Check your system clock" "$LINENO" 5
2595 fi
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2597 $as_echo "yes" >&6; }
2598 test "$program_prefix" != NONE &&
2599   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2600 # Use a double $ so make ignores it.
2601 test "$program_suffix" != NONE &&
2602   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2603 # Double any \ or $.
2604 # By default was `s,x,x', remove it if useless.
2605 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2606 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2607
2608 # expand $ac_aux_dir to an absolute path
2609 am_aux_dir=`cd $ac_aux_dir && pwd`
2610
2611 if test x"${MISSING+set}" != xset; then
2612   case $am_aux_dir in
2613   *\ * | *\     *)
2614     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2615   *)
2616     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2617   esac
2618 fi
2619 # Use eval to expand $SHELL
2620 if eval "$MISSING --run true"; then
2621   am_missing_run="$MISSING --run "
2622 else
2623   am_missing_run=
2624   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2625 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2626 fi
2627
2628 if test x"${install_sh}" != xset; then
2629   case $am_aux_dir in
2630   *\ * | *\     *)
2631     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2632   *)
2633     install_sh="\${SHELL} $am_aux_dir/install-sh"
2634   esac
2635 fi
2636
2637 # Installed binaries are usually stripped using `strip' when the user
2638 # run `make install-strip'.  However `strip' might not be the right
2639 # tool to use in cross-compilation environments, therefore Automake
2640 # will honor the `STRIP' environment variable to overrule this program.
2641 if test "$cross_compiling" != no; then
2642   if test -n "$ac_tool_prefix"; then
2643   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2644 set dummy ${ac_tool_prefix}strip; ac_word=$2
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2646 $as_echo_n "checking for $ac_word... " >&6; }
2647 if ${ac_cv_prog_STRIP+:} false; then :
2648   $as_echo_n "(cached) " >&6
2649 else
2650   if test -n "$STRIP"; then
2651   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2652 else
2653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2654 for as_dir in $PATH
2655 do
2656   IFS=$as_save_IFS
2657   test -z "$as_dir" && as_dir=.
2658     for ac_exec_ext in '' $ac_executable_extensions; do
2659   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2660     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2661     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2662     break 2
2663   fi
2664 done
2665   done
2666 IFS=$as_save_IFS
2667
2668 fi
2669 fi
2670 STRIP=$ac_cv_prog_STRIP
2671 if test -n "$STRIP"; then
2672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2673 $as_echo "$STRIP" >&6; }
2674 else
2675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2676 $as_echo "no" >&6; }
2677 fi
2678
2679
2680 fi
2681 if test -z "$ac_cv_prog_STRIP"; then
2682   ac_ct_STRIP=$STRIP
2683   # Extract the first word of "strip", so it can be a program name with args.
2684 set dummy strip; ac_word=$2
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2686 $as_echo_n "checking for $ac_word... " >&6; }
2687 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2688   $as_echo_n "(cached) " >&6
2689 else
2690   if test -n "$ac_ct_STRIP"; then
2691   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2692 else
2693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2694 for as_dir in $PATH
2695 do
2696   IFS=$as_save_IFS
2697   test -z "$as_dir" && as_dir=.
2698     for ac_exec_ext in '' $ac_executable_extensions; do
2699   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2700     ac_cv_prog_ac_ct_STRIP="strip"
2701     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2702     break 2
2703   fi
2704 done
2705   done
2706 IFS=$as_save_IFS
2707
2708 fi
2709 fi
2710 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2711 if test -n "$ac_ct_STRIP"; then
2712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2713 $as_echo "$ac_ct_STRIP" >&6; }
2714 else
2715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2716 $as_echo "no" >&6; }
2717 fi
2718
2719   if test "x$ac_ct_STRIP" = x; then
2720     STRIP=":"
2721   else
2722     case $cross_compiling:$ac_tool_warned in
2723 yes:)
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2725 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2726 ac_tool_warned=yes ;;
2727 esac
2728     STRIP=$ac_ct_STRIP
2729   fi
2730 else
2731   STRIP="$ac_cv_prog_STRIP"
2732 fi
2733
2734 fi
2735 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2736
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2738 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2739 if test -z "$MKDIR_P"; then
2740   if ${ac_cv_path_mkdir+:} false; then :
2741   $as_echo_n "(cached) " >&6
2742 else
2743   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2744 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2745 do
2746   IFS=$as_save_IFS
2747   test -z "$as_dir" && as_dir=.
2748     for ac_prog in mkdir gmkdir; do
2749          for ac_exec_ext in '' $ac_executable_extensions; do
2750            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2751            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2752              'mkdir (GNU coreutils) '* | \
2753              'mkdir (coreutils) '* | \
2754              'mkdir (fileutils) '4.1*)
2755                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2756                break 3;;
2757            esac
2758          done
2759        done
2760   done
2761 IFS=$as_save_IFS
2762
2763 fi
2764
2765   test -d ./--version && rmdir ./--version
2766   if test "${ac_cv_path_mkdir+set}" = set; then
2767     MKDIR_P="$ac_cv_path_mkdir -p"
2768   else
2769     # As a last resort, use the slow shell script.  Don't cache a
2770     # value for MKDIR_P within a source directory, because that will
2771     # break other packages using the cache if that directory is
2772     # removed, or if the value is a relative name.
2773     MKDIR_P="$ac_install_sh -d"
2774   fi
2775 fi
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2777 $as_echo "$MKDIR_P" >&6; }
2778
2779 mkdir_p="$MKDIR_P"
2780 case $mkdir_p in
2781   [\\/$]* | ?:[\\/]*) ;;
2782   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2783 esac
2784
2785 for ac_prog in gawk mawk nawk awk
2786 do
2787   # Extract the first word of "$ac_prog", so it can be a program name with args.
2788 set dummy $ac_prog; ac_word=$2
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2790 $as_echo_n "checking for $ac_word... " >&6; }
2791 if ${ac_cv_prog_AWK+:} false; then :
2792   $as_echo_n "(cached) " >&6
2793 else
2794   if test -n "$AWK"; then
2795   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2796 else
2797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2798 for as_dir in $PATH
2799 do
2800   IFS=$as_save_IFS
2801   test -z "$as_dir" && as_dir=.
2802     for ac_exec_ext in '' $ac_executable_extensions; do
2803   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2804     ac_cv_prog_AWK="$ac_prog"
2805     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2806     break 2
2807   fi
2808 done
2809   done
2810 IFS=$as_save_IFS
2811
2812 fi
2813 fi
2814 AWK=$ac_cv_prog_AWK
2815 if test -n "$AWK"; then
2816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2817 $as_echo "$AWK" >&6; }
2818 else
2819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2820 $as_echo "no" >&6; }
2821 fi
2822
2823
2824   test -n "$AWK" && break
2825 done
2826
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2828 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2829 set x ${MAKE-make}
2830 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2831 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2832   $as_echo_n "(cached) " >&6
2833 else
2834   cat >conftest.make <<\_ACEOF
2835 SHELL = /bin/sh
2836 all:
2837         @echo '@@@%%%=$(MAKE)=@@@%%%'
2838 _ACEOF
2839 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2840 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2841   *@@@%%%=?*=@@@%%%*)
2842     eval ac_cv_prog_make_${ac_make}_set=yes;;
2843   *)
2844     eval ac_cv_prog_make_${ac_make}_set=no;;
2845 esac
2846 rm -f conftest.make
2847 fi
2848 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2850 $as_echo "yes" >&6; }
2851   SET_MAKE=
2852 else
2853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2854 $as_echo "no" >&6; }
2855   SET_MAKE="MAKE=${MAKE-make}"
2856 fi
2857
2858 rm -rf .tst 2>/dev/null
2859 mkdir .tst 2>/dev/null
2860 if test -d .tst; then
2861   am__leading_dot=.
2862 else
2863   am__leading_dot=_
2864 fi
2865 rmdir .tst 2>/dev/null
2866
2867 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2868   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2869   # is not polluted with repeated "-I."
2870   am__isrc=' -I$(srcdir)'
2871   # test to see if srcdir already configured
2872   if test -f $srcdir/config.status; then
2873     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2874   fi
2875 fi
2876
2877 # test whether we have cygpath
2878 if test -z "$CYGPATH_W"; then
2879   if (cygpath --version) >/dev/null 2>/dev/null; then
2880     CYGPATH_W='cygpath -w'
2881   else
2882     CYGPATH_W=echo
2883   fi
2884 fi
2885
2886
2887 # Define the identity of the package.
2888  PACKAGE='gupnp'
2889  VERSION='0.20.1'
2890
2891
2892 cat >>confdefs.h <<_ACEOF
2893 #define PACKAGE "$PACKAGE"
2894 _ACEOF
2895
2896
2897 cat >>confdefs.h <<_ACEOF
2898 #define VERSION "$VERSION"
2899 _ACEOF
2900
2901 # Some tools Automake needs.
2902
2903 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2904
2905
2906 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2907
2908
2909 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2910
2911
2912 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2913
2914
2915 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2916
2917 # We need awk for the "check" target.  The system "awk" is bad on
2918 # some platforms.
2919 # Always define AMTAR for backward compatibility.  Yes, it's still used
2920 # in the wild :-(  We should find a proper way to deprecate it ...
2921 AMTAR='$${TAR-tar}'
2922
2923
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
2925 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
2926 # Loop over all known methods to create a tar archive until one works.
2927 _am_tools='gnutar plaintar pax cpio none'
2928 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
2929 # Do not fold the above two line into one, because Tru64 sh and
2930 # Solaris sh will not grok spaces in the rhs of `-'.
2931 for _am_tool in $_am_tools
2932 do
2933   case $_am_tool in
2934   gnutar)
2935     for _am_tar in tar gnutar gtar;
2936     do
2937       { echo "$as_me:$LINENO: $_am_tar --version" >&5
2938    ($_am_tar --version) >&5 2>&5
2939    ac_status=$?
2940    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941    (exit $ac_status); } && break
2942     done
2943     am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
2944     am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
2945     am__untar="$_am_tar -xf -"
2946     ;;
2947   plaintar)
2948     # Must skip GNU tar: if it does not support --format= it doesn't create
2949     # ustar tarball either.
2950     (tar --version) >/dev/null 2>&1 && continue
2951     am__tar='tar chf - "$$tardir"'
2952     am__tar_='tar chf - "$tardir"'
2953     am__untar='tar xf -'
2954     ;;
2955   pax)
2956     am__tar='pax -L -x ustar -w "$$tardir"'
2957     am__tar_='pax -L -x ustar -w "$tardir"'
2958     am__untar='pax -r'
2959     ;;
2960   cpio)
2961     am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
2962     am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
2963     am__untar='cpio -i -H ustar -d'
2964     ;;
2965   none)
2966     am__tar=false
2967     am__tar_=false
2968     am__untar=false
2969     ;;
2970   esac
2971
2972   # If the value was cached, stop now.  We just wanted to have am__tar
2973   # and am__untar set.
2974   test -n "${am_cv_prog_tar_ustar}" && break
2975
2976   # tar/untar a dummy directory, and stop if the command works
2977   rm -rf conftest.dir
2978   mkdir conftest.dir
2979   echo GrepMe > conftest.dir/file
2980   { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
2981    (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
2982    ac_status=$?
2983    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984    (exit $ac_status); }
2985   rm -rf conftest.dir
2986   if test -s conftest.tar; then
2987     { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
2988    ($am__untar <conftest.tar) >&5 2>&5
2989    ac_status=$?
2990    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991    (exit $ac_status); }
2992     grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
2993   fi
2994 done
2995 rm -rf conftest.dir
2996
2997 if ${am_cv_prog_tar_ustar+:} false; then :
2998   $as_echo_n "(cached) " >&6
2999 else
3000   am_cv_prog_tar_ustar=$_am_tool
3001 fi
3002
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3004 $as_echo "$am_cv_prog_tar_ustar" >&6; }
3005
3006
3007
3008
3009
3010
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3012 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3013     # Check whether --enable-maintainer-mode was given.
3014 if test "${enable_maintainer_mode+set}" = set; then :
3015   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3016 else
3017   USE_MAINTAINER_MODE=yes
3018 fi
3019
3020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3021 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3022    if test $USE_MAINTAINER_MODE = yes; then
3023   MAINTAINER_MODE_TRUE=
3024   MAINTAINER_MODE_FALSE='#'
3025 else
3026   MAINTAINER_MODE_TRUE='#'
3027   MAINTAINER_MODE_FALSE=
3028 fi
3029
3030   MAINT=$MAINTAINER_MODE_TRUE
3031
3032
3033
3034 # Check whether --enable-silent-rules was given.
3035 if test "${enable_silent_rules+set}" = set; then :
3036   enableval=$enable_silent_rules;
3037 fi
3038
3039 case $enable_silent_rules in
3040 yes) AM_DEFAULT_VERBOSITY=0;;
3041 no)  AM_DEFAULT_VERBOSITY=1;;
3042 *)   AM_DEFAULT_VERBOSITY=0;;
3043 esac
3044 am_make=${MAKE-make}
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3046 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3047 if ${am_cv_make_support_nested_variables+:} false; then :
3048   $as_echo_n "(cached) " >&6
3049 else
3050   if $as_echo 'TRUE=$(BAR$(V))
3051 BAR0=false
3052 BAR1=true
3053 V=1
3054 am__doit:
3055         @$(TRUE)
3056 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3057   am_cv_make_support_nested_variables=yes
3058 else
3059   am_cv_make_support_nested_variables=no
3060 fi
3061 fi
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3063 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3064 if test $am_cv_make_support_nested_variables = yes; then
3065     AM_V='$(V)'
3066   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3067 else
3068   AM_V=$AM_DEFAULT_VERBOSITY
3069   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3070 fi
3071 AM_BACKSLASH='\'
3072
3073
3074 # Check for programs
3075 ac_ext=c
3076 ac_cpp='$CPP $CPPFLAGS'
3077 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3078 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3079 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3080 if test -n "$ac_tool_prefix"; then
3081   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3082 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3084 $as_echo_n "checking for $ac_word... " >&6; }
3085 if ${ac_cv_prog_CC+:} false; then :
3086   $as_echo_n "(cached) " >&6
3087 else
3088   if test -n "$CC"; then
3089   ac_cv_prog_CC="$CC" # Let the user override the test.
3090 else
3091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3092 for as_dir in $PATH
3093 do
3094   IFS=$as_save_IFS
3095   test -z "$as_dir" && as_dir=.
3096     for ac_exec_ext in '' $ac_executable_extensions; do
3097   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3098     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3099     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3100     break 2
3101   fi
3102 done
3103   done
3104 IFS=$as_save_IFS
3105
3106 fi
3107 fi
3108 CC=$ac_cv_prog_CC
3109 if test -n "$CC"; then
3110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3111 $as_echo "$CC" >&6; }
3112 else
3113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3114 $as_echo "no" >&6; }
3115 fi
3116
3117
3118 fi
3119 if test -z "$ac_cv_prog_CC"; then
3120   ac_ct_CC=$CC
3121   # Extract the first word of "gcc", so it can be a program name with args.
3122 set dummy gcc; ac_word=$2
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3124 $as_echo_n "checking for $ac_word... " >&6; }
3125 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3126   $as_echo_n "(cached) " >&6
3127 else
3128   if test -n "$ac_ct_CC"; then
3129   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3130 else
3131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3132 for as_dir in $PATH
3133 do
3134   IFS=$as_save_IFS
3135   test -z "$as_dir" && as_dir=.
3136     for ac_exec_ext in '' $ac_executable_extensions; do
3137   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3138     ac_cv_prog_ac_ct_CC="gcc"
3139     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3140     break 2
3141   fi
3142 done
3143   done
3144 IFS=$as_save_IFS
3145
3146 fi
3147 fi
3148 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3149 if test -n "$ac_ct_CC"; then
3150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3151 $as_echo "$ac_ct_CC" >&6; }
3152 else
3153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3154 $as_echo "no" >&6; }
3155 fi
3156
3157   if test "x$ac_ct_CC" = x; then
3158     CC=""
3159   else
3160     case $cross_compiling:$ac_tool_warned in
3161 yes:)
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3163 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3164 ac_tool_warned=yes ;;
3165 esac
3166     CC=$ac_ct_CC
3167   fi
3168 else
3169   CC="$ac_cv_prog_CC"
3170 fi
3171
3172 if test -z "$CC"; then
3173           if test -n "$ac_tool_prefix"; then
3174     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3175 set dummy ${ac_tool_prefix}cc; ac_word=$2
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3177 $as_echo_n "checking for $ac_word... " >&6; }
3178 if ${ac_cv_prog_CC+:} false; then :
3179   $as_echo_n "(cached) " >&6
3180 else
3181   if test -n "$CC"; then
3182   ac_cv_prog_CC="$CC" # Let the user override the test.
3183 else
3184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3185 for as_dir in $PATH
3186 do
3187   IFS=$as_save_IFS
3188   test -z "$as_dir" && as_dir=.
3189     for ac_exec_ext in '' $ac_executable_extensions; do
3190   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3191     ac_cv_prog_CC="${ac_tool_prefix}cc"
3192     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3193     break 2
3194   fi
3195 done
3196   done
3197 IFS=$as_save_IFS
3198
3199 fi
3200 fi
3201 CC=$ac_cv_prog_CC
3202 if test -n "$CC"; then
3203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3204 $as_echo "$CC" >&6; }
3205 else
3206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3207 $as_echo "no" >&6; }
3208 fi
3209
3210
3211   fi
3212 fi
3213 if test -z "$CC"; then
3214   # Extract the first word of "cc", so it can be a program name with args.
3215 set dummy cc; ac_word=$2
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3217 $as_echo_n "checking for $ac_word... " >&6; }
3218 if ${ac_cv_prog_CC+:} false; then :
3219   $as_echo_n "(cached) " >&6
3220 else
3221   if test -n "$CC"; then
3222   ac_cv_prog_CC="$CC" # Let the user override the test.
3223 else
3224   ac_prog_rejected=no
3225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3226 for as_dir in $PATH
3227 do
3228   IFS=$as_save_IFS
3229   test -z "$as_dir" && as_dir=.
3230     for ac_exec_ext in '' $ac_executable_extensions; do
3231   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3232     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3233        ac_prog_rejected=yes
3234        continue
3235      fi
3236     ac_cv_prog_CC="cc"
3237     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3238     break 2
3239   fi
3240 done
3241   done
3242 IFS=$as_save_IFS
3243
3244 if test $ac_prog_rejected = yes; then
3245   # We found a bogon in the path, so make sure we never use it.
3246   set dummy $ac_cv_prog_CC
3247   shift
3248   if test $# != 0; then
3249     # We chose a different compiler from the bogus one.
3250     # However, it has the same basename, so the bogon will be chosen
3251     # first if we set CC to just the basename; use the full file name.
3252     shift
3253     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3254   fi
3255 fi
3256 fi
3257 fi
3258 CC=$ac_cv_prog_CC
3259 if test -n "$CC"; then
3260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3261 $as_echo "$CC" >&6; }
3262 else
3263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3264 $as_echo "no" >&6; }
3265 fi
3266
3267
3268 fi
3269 if test -z "$CC"; then
3270   if test -n "$ac_tool_prefix"; then
3271   for ac_prog in cl.exe
3272   do
3273     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3274 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3276 $as_echo_n "checking for $ac_word... " >&6; }
3277 if ${ac_cv_prog_CC+:} false; then :
3278   $as_echo_n "(cached) " >&6
3279 else
3280   if test -n "$CC"; then
3281   ac_cv_prog_CC="$CC" # Let the user override the test.
3282 else
3283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3284 for as_dir in $PATH
3285 do
3286   IFS=$as_save_IFS
3287   test -z "$as_dir" && as_dir=.
3288     for ac_exec_ext in '' $ac_executable_extensions; do
3289   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3290     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3291     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3292     break 2
3293   fi
3294 done
3295   done
3296 IFS=$as_save_IFS
3297
3298 fi
3299 fi
3300 CC=$ac_cv_prog_CC
3301 if test -n "$CC"; then
3302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3303 $as_echo "$CC" >&6; }
3304 else
3305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3306 $as_echo "no" >&6; }
3307 fi
3308
3309
3310     test -n "$CC" && break
3311   done
3312 fi
3313 if test -z "$CC"; then
3314   ac_ct_CC=$CC
3315   for ac_prog in cl.exe
3316 do
3317   # Extract the first word of "$ac_prog", so it can be a program name with args.
3318 set dummy $ac_prog; ac_word=$2
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3320 $as_echo_n "checking for $ac_word... " >&6; }
3321 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3322   $as_echo_n "(cached) " >&6
3323 else
3324   if test -n "$ac_ct_CC"; then
3325   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3326 else
3327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3328 for as_dir in $PATH
3329 do
3330   IFS=$as_save_IFS
3331   test -z "$as_dir" && as_dir=.
3332     for ac_exec_ext in '' $ac_executable_extensions; do
3333   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3334     ac_cv_prog_ac_ct_CC="$ac_prog"
3335     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3336     break 2
3337   fi
3338 done
3339   done
3340 IFS=$as_save_IFS
3341
3342 fi
3343 fi
3344 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3345 if test -n "$ac_ct_CC"; then
3346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3347 $as_echo "$ac_ct_CC" >&6; }
3348 else
3349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3350 $as_echo "no" >&6; }
3351 fi
3352
3353
3354   test -n "$ac_ct_CC" && break
3355 done
3356
3357   if test "x$ac_ct_CC" = x; then
3358     CC=""
3359   else
3360     case $cross_compiling:$ac_tool_warned in
3361 yes:)
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3363 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3364 ac_tool_warned=yes ;;
3365 esac
3366     CC=$ac_ct_CC
3367   fi
3368 fi
3369
3370 fi
3371
3372
3373 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3374 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3375 as_fn_error $? "no acceptable C compiler found in \$PATH
3376 See \`config.log' for more details" "$LINENO" 5; }
3377
3378 # Provide some information about the compiler.
3379 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3380 set X $ac_compile
3381 ac_compiler=$2
3382 for ac_option in --version -v -V -qversion; do
3383   { { ac_try="$ac_compiler $ac_option >&5"
3384 case "(($ac_try" in
3385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3386   *) ac_try_echo=$ac_try;;
3387 esac
3388 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3389 $as_echo "$ac_try_echo"; } >&5
3390   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3391   ac_status=$?
3392   if test -s conftest.err; then
3393     sed '10a\
3394 ... rest of stderr output deleted ...
3395          10q' conftest.err >conftest.er1
3396     cat conftest.er1 >&5
3397   fi
3398   rm -f conftest.er1 conftest.err
3399   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3400   test $ac_status = 0; }
3401 done
3402
3403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3404 /* end confdefs.h.  */
3405
3406 int
3407 main ()
3408 {
3409
3410   ;
3411   return 0;
3412 }
3413 _ACEOF
3414 ac_clean_files_save=$ac_clean_files
3415 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3416 # Try to create an executable without -o first, disregard a.out.
3417 # It will help us diagnose broken compilers, and finding out an intuition
3418 # of exeext.
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3420 $as_echo_n "checking whether the C compiler works... " >&6; }
3421 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3422
3423 # The possible output files:
3424 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3425
3426 ac_rmfiles=
3427 for ac_file in $ac_files
3428 do
3429   case $ac_file in
3430     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3431     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3432   esac
3433 done
3434 rm -f $ac_rmfiles
3435
3436 if { { ac_try="$ac_link_default"
3437 case "(($ac_try" in
3438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3439   *) ac_try_echo=$ac_try;;
3440 esac
3441 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3442 $as_echo "$ac_try_echo"; } >&5
3443   (eval "$ac_link_default") 2>&5
3444   ac_status=$?
3445   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3446   test $ac_status = 0; }; then :
3447   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3448 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3449 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3450 # so that the user can short-circuit this test for compilers unknown to
3451 # Autoconf.
3452 for ac_file in $ac_files ''
3453 do
3454   test -f "$ac_file" || continue
3455   case $ac_file in
3456     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3457         ;;
3458     [ab].out )
3459         # We found the default executable, but exeext='' is most
3460         # certainly right.
3461         break;;
3462     *.* )
3463         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3464         then :; else
3465            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3466         fi
3467         # We set ac_cv_exeext here because the later test for it is not
3468         # safe: cross compilers may not add the suffix if given an `-o'
3469         # argument, so we may need to know it at that point already.
3470         # Even if this section looks crufty: it has the advantage of
3471         # actually working.
3472         break;;
3473     * )
3474         break;;
3475   esac
3476 done
3477 test "$ac_cv_exeext" = no && ac_cv_exeext=
3478
3479 else
3480   ac_file=''
3481 fi
3482 if test -z "$ac_file"; then :
3483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3484 $as_echo "no" >&6; }
3485 $as_echo "$as_me: failed program was:" >&5
3486 sed 's/^/| /' conftest.$ac_ext >&5
3487
3488 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3489 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3490 as_fn_error 77 "C compiler cannot create executables
3491 See \`config.log' for more details" "$LINENO" 5; }
3492 else
3493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3494 $as_echo "yes" >&6; }
3495 fi
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3497 $as_echo_n "checking for C compiler default output file name... " >&6; }
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3499 $as_echo "$ac_file" >&6; }
3500 ac_exeext=$ac_cv_exeext
3501
3502 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3503 ac_clean_files=$ac_clean_files_save
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3505 $as_echo_n "checking for suffix of executables... " >&6; }
3506 if { { ac_try="$ac_link"
3507 case "(($ac_try" in
3508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3509   *) ac_try_echo=$ac_try;;
3510 esac
3511 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3512 $as_echo "$ac_try_echo"; } >&5
3513   (eval "$ac_link") 2>&5
3514   ac_status=$?
3515   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3516   test $ac_status = 0; }; then :
3517   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3518 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3519 # work properly (i.e., refer to `conftest.exe'), while it won't with
3520 # `rm'.
3521 for ac_file in conftest.exe conftest conftest.*; do
3522   test -f "$ac_file" || continue
3523   case $ac_file in
3524     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3525     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3526           break;;
3527     * ) break;;
3528   esac
3529 done
3530 else
3531   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3532 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3533 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3534 See \`config.log' for more details" "$LINENO" 5; }
3535 fi
3536 rm -f conftest conftest$ac_cv_exeext
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3538 $as_echo "$ac_cv_exeext" >&6; }
3539
3540 rm -f conftest.$ac_ext
3541 EXEEXT=$ac_cv_exeext
3542 ac_exeext=$EXEEXT
3543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3544 /* end confdefs.h.  */
3545 #include <stdio.h>
3546 int
3547 main ()
3548 {
3549 FILE *f = fopen ("conftest.out", "w");
3550  return ferror (f) || fclose (f) != 0;
3551
3552   ;
3553   return 0;
3554 }
3555 _ACEOF
3556 ac_clean_files="$ac_clean_files conftest.out"
3557 # Check that the compiler produces executables we can run.  If not, either
3558 # the compiler is broken, or we cross compile.
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3560 $as_echo_n "checking whether we are cross compiling... " >&6; }
3561 if test "$cross_compiling" != yes; then
3562   { { ac_try="$ac_link"
3563 case "(($ac_try" in
3564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3565   *) ac_try_echo=$ac_try;;
3566 esac
3567 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3568 $as_echo "$ac_try_echo"; } >&5
3569   (eval "$ac_link") 2>&5
3570   ac_status=$?
3571   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3572   test $ac_status = 0; }
3573   if { ac_try='./conftest$ac_cv_exeext'
3574   { { case "(($ac_try" in
3575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3576   *) ac_try_echo=$ac_try;;
3577 esac
3578 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3579 $as_echo "$ac_try_echo"; } >&5
3580   (eval "$ac_try") 2>&5
3581   ac_status=$?
3582   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3583   test $ac_status = 0; }; }; then
3584     cross_compiling=no
3585   else
3586     if test "$cross_compiling" = maybe; then
3587         cross_compiling=yes
3588     else
3589         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3590 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3591 as_fn_error $? "cannot run C compiled programs.
3592 If you meant to cross compile, use \`--host'.
3593 See \`config.log' for more details" "$LINENO" 5; }
3594     fi
3595   fi
3596 fi
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3598 $as_echo "$cross_compiling" >&6; }
3599
3600 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3601 ac_clean_files=$ac_clean_files_save
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3603 $as_echo_n "checking for suffix of object files... " >&6; }
3604 if ${ac_cv_objext+:} false; then :
3605   $as_echo_n "(cached) " >&6
3606 else
3607   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3608 /* end confdefs.h.  */
3609
3610 int
3611 main ()
3612 {
3613
3614   ;
3615   return 0;
3616 }
3617 _ACEOF
3618 rm -f conftest.o conftest.obj
3619 if { { ac_try="$ac_compile"
3620 case "(($ac_try" in
3621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3622   *) ac_try_echo=$ac_try;;
3623 esac
3624 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3625 $as_echo "$ac_try_echo"; } >&5
3626   (eval "$ac_compile") 2>&5
3627   ac_status=$?
3628   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3629   test $ac_status = 0; }; then :
3630   for ac_file in conftest.o conftest.obj conftest.*; do
3631   test -f "$ac_file" || continue;
3632   case $ac_file in
3633     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3634     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3635        break;;
3636   esac
3637 done
3638 else
3639   $as_echo "$as_me: failed program was:" >&5
3640 sed 's/^/| /' conftest.$ac_ext >&5
3641
3642 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3643 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3644 as_fn_error $? "cannot compute suffix of object files: cannot compile
3645 See \`config.log' for more details" "$LINENO" 5; }
3646 fi
3647 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3648 fi
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3650 $as_echo "$ac_cv_objext" >&6; }
3651 OBJEXT=$ac_cv_objext
3652 ac_objext=$OBJEXT
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3654 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3655 if ${ac_cv_c_compiler_gnu+:} false; then :
3656   $as_echo_n "(cached) " >&6
3657 else
3658   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3659 /* end confdefs.h.  */
3660
3661 int
3662 main ()
3663 {
3664 #ifndef __GNUC__
3665        choke me
3666 #endif
3667
3668   ;
3669   return 0;
3670 }
3671 _ACEOF
3672 if ac_fn_c_try_compile "$LINENO"; then :
3673   ac_compiler_gnu=yes
3674 else
3675   ac_compiler_gnu=no
3676 fi
3677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3678 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3679
3680 fi
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3682 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3683 if test $ac_compiler_gnu = yes; then
3684   GCC=yes
3685 else
3686   GCC=
3687 fi
3688 ac_test_CFLAGS=${CFLAGS+set}
3689 ac_save_CFLAGS=$CFLAGS
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3691 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3692 if ${ac_cv_prog_cc_g+:} false; then :
3693   $as_echo_n "(cached) " >&6
3694 else
3695   ac_save_c_werror_flag=$ac_c_werror_flag
3696    ac_c_werror_flag=yes
3697    ac_cv_prog_cc_g=no
3698    CFLAGS="-g"
3699    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3700 /* end confdefs.h.  */
3701
3702 int
3703 main ()
3704 {
3705
3706   ;
3707   return 0;
3708 }
3709 _ACEOF
3710 if ac_fn_c_try_compile "$LINENO"; then :
3711   ac_cv_prog_cc_g=yes
3712 else
3713   CFLAGS=""
3714       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3715 /* end confdefs.h.  */
3716
3717 int
3718 main ()
3719 {
3720
3721   ;
3722   return 0;
3723 }
3724 _ACEOF
3725 if ac_fn_c_try_compile "$LINENO"; then :
3726
3727 else
3728   ac_c_werror_flag=$ac_save_c_werror_flag
3729          CFLAGS="-g"
3730          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3731 /* end confdefs.h.  */
3732
3733 int
3734 main ()
3735 {
3736
3737   ;
3738   return 0;
3739 }
3740 _ACEOF
3741 if ac_fn_c_try_compile "$LINENO"; then :
3742   ac_cv_prog_cc_g=yes
3743 fi
3744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3745 fi
3746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3747 fi
3748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3749    ac_c_werror_flag=$ac_save_c_werror_flag
3750 fi
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3752 $as_echo "$ac_cv_prog_cc_g" >&6; }
3753 if test "$ac_test_CFLAGS" = set; then
3754   CFLAGS=$ac_save_CFLAGS
3755 elif test $ac_cv_prog_cc_g = yes; then
3756   if test "$GCC" = yes; then
3757     CFLAGS="-g -O2"
3758   else
3759     CFLAGS="-g"
3760   fi
3761 else
3762   if test "$GCC" = yes; then
3763     CFLAGS="-O2"
3764   else
3765     CFLAGS=
3766   fi
3767 fi
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3769 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3770 if ${ac_cv_prog_cc_c89+:} false; then :
3771   $as_echo_n "(cached) " >&6
3772 else
3773   ac_cv_prog_cc_c89=no
3774 ac_save_CC=$CC
3775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3776 /* end confdefs.h.  */
3777 #include <stdarg.h>
3778 #include <stdio.h>
3779 struct stat;
3780 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3781 struct buf { int x; };
3782 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3783 static char *e (p, i)
3784      char **p;
3785      int i;
3786 {
3787   return p[i];
3788 }
3789 static char *f (char * (*g) (char **, int), char **p, ...)
3790 {
3791   char *s;
3792   va_list v;
3793   va_start (v,p);
3794   s = g (p, va_arg (v,int));
3795   va_end (v);
3796   return s;
3797 }
3798
3799 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3800    function prototypes and stuff, but not '\xHH' hex character constants.
3801    These don't provoke an error unfortunately, instead are silently treated
3802    as 'x'.  The following induces an error, until -std is added to get
3803    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3804    array size at least.  It's necessary to write '\x00'==0 to get something
3805    that's true only with -std.  */
3806 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3807
3808 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3809    inside strings and character constants.  */
3810 #define FOO(x) 'x'
3811 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3812
3813 int test (int i, double x);
3814 struct s1 {int (*f) (int a);};
3815 struct s2 {int (*f) (double a);};
3816 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3817 int argc;
3818 char **argv;
3819 int
3820 main ()
3821 {
3822 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3823   ;
3824   return 0;
3825 }
3826 _ACEOF
3827 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3828         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3829 do
3830   CC="$ac_save_CC $ac_arg"
3831   if ac_fn_c_try_compile "$LINENO"; then :
3832   ac_cv_prog_cc_c89=$ac_arg
3833 fi
3834 rm -f core conftest.err conftest.$ac_objext
3835   test "x$ac_cv_prog_cc_c89" != "xno" && break
3836 done
3837 rm -f conftest.$ac_ext
3838 CC=$ac_save_CC
3839
3840 fi
3841 # AC_CACHE_VAL
3842 case "x$ac_cv_prog_cc_c89" in
3843   x)
3844     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3845 $as_echo "none needed" >&6; } ;;
3846   xno)
3847     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3848 $as_echo "unsupported" >&6; } ;;
3849   *)
3850     CC="$CC $ac_cv_prog_cc_c89"
3851     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3852 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3853 esac
3854 if test "x$ac_cv_prog_cc_c89" != xno; then :
3855
3856 fi
3857
3858 ac_ext=c
3859 ac_cpp='$CPP $CPPFLAGS'
3860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3863 DEPDIR="${am__leading_dot}deps"
3864
3865 ac_config_commands="$ac_config_commands depfiles"
3866
3867
3868 am_make=${MAKE-make}
3869 cat > confinc << 'END'
3870 am__doit:
3871         @echo this is the am__doit target
3872 .PHONY: am__doit
3873 END
3874 # If we don't find an include directive, just comment out the code.
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3876 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3877 am__include="#"
3878 am__quote=
3879 _am_result=none
3880 # First try GNU make style include.
3881 echo "include confinc" > confmf
3882 # Ignore all kinds of additional output from `make'.
3883 case `$am_make -s -f confmf 2> /dev/null` in #(
3884 *the\ am__doit\ target*)
3885   am__include=include
3886   am__quote=
3887   _am_result=GNU
3888   ;;
3889 esac
3890 # Now try BSD make style include.
3891 if test "$am__include" = "#"; then
3892    echo '.include "confinc"' > confmf
3893    case `$am_make -s -f confmf 2> /dev/null` in #(
3894    *the\ am__doit\ target*)
3895      am__include=.include
3896      am__quote="\""
3897      _am_result=BSD
3898      ;;
3899    esac
3900 fi
3901
3902
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3904 $as_echo "$_am_result" >&6; }
3905 rm -f confinc confmf
3906
3907 # Check whether --enable-dependency-tracking was given.
3908 if test "${enable_dependency_tracking+set}" = set; then :
3909   enableval=$enable_dependency_tracking;
3910 fi
3911
3912 if test "x$enable_dependency_tracking" != xno; then
3913   am_depcomp="$ac_aux_dir/depcomp"
3914   AMDEPBACKSLASH='\'
3915   am__nodep='_no'
3916 fi
3917  if test "x$enable_dependency_tracking" != xno; then
3918   AMDEP_TRUE=
3919   AMDEP_FALSE='#'
3920 else
3921   AMDEP_TRUE='#'
3922   AMDEP_FALSE=
3923 fi
3924
3925
3926
3927 depcc="$CC"   am_compiler_list=
3928
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3930 $as_echo_n "checking dependency style of $depcc... " >&6; }
3931 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3932   $as_echo_n "(cached) " >&6
3933 else
3934   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3935   # We make a subdir and do the tests there.  Otherwise we can end up
3936   # making bogus files that we don't know about and never remove.  For
3937   # instance it was reported that on HP-UX the gcc test will end up
3938   # making a dummy file named `D' -- because `-MD' means `put the output
3939   # in D'.
3940   rm -rf conftest.dir
3941   mkdir conftest.dir
3942   # Copy depcomp to subdir because otherwise we won't find it if we're
3943   # using a relative directory.
3944   cp "$am_depcomp" conftest.dir
3945   cd conftest.dir
3946   # We will build objects and dependencies in a subdirectory because
3947   # it helps to detect inapplicable dependency modes.  For instance
3948   # both Tru64's cc and ICC support -MD to output dependencies as a
3949   # side effect of compilation, but ICC will put the dependencies in
3950   # the current directory while Tru64 will put them in the object
3951   # directory.
3952   mkdir sub
3953
3954   am_cv_CC_dependencies_compiler_type=none
3955   if test "$am_compiler_list" = ""; then
3956      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3957   fi
3958   am__universal=false
3959   case " $depcc " in #(
3960      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3961      esac
3962
3963   for depmode in $am_compiler_list; do
3964     # Setup a source with many dependencies, because some compilers
3965     # like to wrap large dependency lists on column 80 (with \), and
3966     # we should not choose a depcomp mode which is confused by this.
3967     #
3968     # We need to recreate these files for each test, as the compiler may
3969     # overwrite some of them when testing with obscure command lines.
3970     # This happens at least with the AIX C compiler.
3971     : > sub/conftest.c
3972     for i in 1 2 3 4 5 6; do
3973       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3974       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3975       # Solaris 8's {/usr,}/bin/sh.
3976       touch sub/conftst$i.h
3977     done
3978     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3979
3980     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3981     # mode.  It turns out that the SunPro C++ compiler does not properly
3982     # handle `-M -o', and we need to detect this.  Also, some Intel
3983     # versions had trouble with output in subdirs
3984     am__obj=sub/conftest.${OBJEXT-o}
3985     am__minus_obj="-o $am__obj"
3986     case $depmode in
3987     gcc)
3988       # This depmode causes a compiler race in universal mode.
3989       test "$am__universal" = false || continue
3990       ;;
3991     nosideeffect)
3992       # after this tag, mechanisms are not by side-effect, so they'll
3993       # only be used when explicitly requested
3994       if test "x$enable_dependency_tracking" = xyes; then
3995         continue
3996       else
3997         break
3998       fi
3999       ;;
4000     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4001       # This compiler won't grok `-c -o', but also, the minuso test has
4002       # not run yet.  These depmodes are late enough in the game, and
4003       # so weak that their functioning should not be impacted.
4004       am__obj=conftest.${OBJEXT-o}
4005       am__minus_obj=
4006       ;;
4007     none) break ;;
4008     esac
4009     if depmode=$depmode \
4010        source=sub/conftest.c object=$am__obj \
4011        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4012        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4013          >/dev/null 2>conftest.err &&
4014        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4015        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4016        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4017        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4018       # icc doesn't choke on unknown options, it will just issue warnings
4019       # or remarks (even with -Werror).  So we grep stderr for any message
4020       # that says an option was ignored or not supported.
4021       # When given -MP, icc 7.0 and 7.1 complain thusly:
4022       #   icc: Command line warning: ignoring option '-M'; no argument required
4023       # The diagnosis changed in icc 8.0:
4024       #   icc: Command line remark: option '-MP' not supported
4025       if (grep 'ignoring option' conftest.err ||
4026           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4027         am_cv_CC_dependencies_compiler_type=$depmode
4028         break
4029       fi
4030     fi
4031   done
4032
4033   cd ..
4034   rm -rf conftest.dir
4035 else
4036   am_cv_CC_dependencies_compiler_type=none
4037 fi
4038
4039 fi
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4041 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4042 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4043
4044  if
4045   test "x$enable_dependency_tracking" != xno \
4046   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4047   am__fastdepCC_TRUE=
4048   am__fastdepCC_FALSE='#'
4049 else
4050   am__fastdepCC_TRUE='#'
4051   am__fastdepCC_FALSE=
4052 fi
4053
4054
4055
4056 ac_ext=c
4057 ac_cpp='$CPP $CPPFLAGS'
4058 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4059 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4060 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4062 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4063 # On Suns, sometimes $CPP names a directory.
4064 if test -n "$CPP" && test -d "$CPP"; then
4065   CPP=
4066 fi
4067 if test -z "$CPP"; then
4068   if ${ac_cv_prog_CPP+:} false; then :
4069   $as_echo_n "(cached) " >&6
4070 else
4071       # Double quotes because CPP needs to be expanded
4072     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4073     do
4074       ac_preproc_ok=false
4075 for ac_c_preproc_warn_flag in '' yes
4076 do
4077   # Use a header file that comes with gcc, so configuring glibc
4078   # with a fresh cross-compiler works.
4079   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4080   # <limits.h> exists even on freestanding compilers.
4081   # On the NeXT, cc -E runs the code through the compiler's parser,
4082   # not just through cpp. "Syntax error" is here to catch this case.
4083   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4084 /* end confdefs.h.  */
4085 #ifdef __STDC__
4086 # include <limits.h>
4087 #else
4088 # include <assert.h>
4089 #endif
4090                      Syntax error
4091 _ACEOF
4092 if ac_fn_c_try_cpp "$LINENO"; then :
4093
4094 else
4095   # Broken: fails on valid input.
4096 continue
4097 fi
4098 rm -f conftest.err conftest.i conftest.$ac_ext
4099
4100   # OK, works on sane cases.  Now check whether nonexistent headers
4101   # can be detected and how.
4102   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4103 /* end confdefs.h.  */
4104 #include <ac_nonexistent.h>
4105 _ACEOF
4106 if ac_fn_c_try_cpp "$LINENO"; then :
4107   # Broken: success on invalid input.
4108 continue
4109 else
4110   # Passes both tests.
4111 ac_preproc_ok=:
4112 break
4113 fi
4114 rm -f conftest.err conftest.i conftest.$ac_ext
4115
4116 done
4117 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4118 rm -f conftest.i conftest.err conftest.$ac_ext
4119 if $ac_preproc_ok; then :
4120   break
4121 fi
4122
4123     done
4124     ac_cv_prog_CPP=$CPP
4125
4126 fi
4127   CPP=$ac_cv_prog_CPP
4128 else
4129   ac_cv_prog_CPP=$CPP
4130 fi
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4132 $as_echo "$CPP" >&6; }
4133 ac_preproc_ok=false
4134 for ac_c_preproc_warn_flag in '' yes
4135 do
4136   # Use a header file that comes with gcc, so configuring glibc
4137   # with a fresh cross-compiler works.
4138   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4139   # <limits.h> exists even on freestanding compilers.
4140   # On the NeXT, cc -E runs the code through the compiler's parser,
4141   # not just through cpp. "Syntax error" is here to catch this case.
4142   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4143 /* end confdefs.h.  */
4144 #ifdef __STDC__
4145 # include <limits.h>
4146 #else
4147 # include <assert.h>
4148 #endif
4149                      Syntax error
4150 _ACEOF
4151 if ac_fn_c_try_cpp "$LINENO"; then :
4152
4153 else
4154   # Broken: fails on valid input.
4155 continue
4156 fi
4157 rm -f conftest.err conftest.i conftest.$ac_ext
4158
4159   # OK, works on sane cases.  Now check whether nonexistent headers
4160   # can be detected and how.
4161   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4162 /* end confdefs.h.  */
4163 #include <ac_nonexistent.h>
4164 _ACEOF
4165 if ac_fn_c_try_cpp "$LINENO"; then :
4166   # Broken: success on invalid input.
4167 continue
4168 else
4169   # Passes both tests.
4170 ac_preproc_ok=:
4171 break
4172 fi
4173 rm -f conftest.err conftest.i conftest.$ac_ext
4174
4175 done
4176 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4177 rm -f conftest.i conftest.err conftest.$ac_ext
4178 if $ac_preproc_ok; then :
4179
4180 else
4181   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4182 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4183 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4184 See \`config.log' for more details" "$LINENO" 5; }
4185 fi
4186
4187 ac_ext=c
4188 ac_cpp='$CPP $CPPFLAGS'
4189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4192
4193
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4195 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4196 if ${ac_cv_path_GREP+:} false; then :
4197   $as_echo_n "(cached) " >&6
4198 else
4199   if test -z "$GREP"; then
4200   ac_path_GREP_found=false
4201   # Loop through the user's path and test for each of PROGNAME-LIST
4202   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4203 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4204 do
4205   IFS=$as_save_IFS
4206   test -z "$as_dir" && as_dir=.
4207     for ac_prog in grep ggrep; do
4208     for ac_exec_ext in '' $ac_executable_extensions; do
4209       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4210       as_fn_executable_p "$ac_path_GREP" || continue
4211 # Check for GNU ac_path_GREP and select it if it is found.
4212   # Check for GNU $ac_path_GREP
4213 case `"$ac_path_GREP" --version 2>&1` in
4214 *GNU*)
4215   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4216 *)
4217   ac_count=0
4218   $as_echo_n 0123456789 >"conftest.in"
4219   while :
4220   do
4221     cat "conftest.in" "conftest.in" >"conftest.tmp"
4222     mv "conftest.tmp" "conftest.in"
4223     cp "conftest.in" "conftest.nl"
4224     $as_echo 'GREP' >> "conftest.nl"
4225     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4226     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4227     as_fn_arith $ac_count + 1 && ac_count=$as_val
4228     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4229       # Best one so far, save it but keep looking for a better one
4230       ac_cv_path_GREP="$ac_path_GREP"
4231       ac_path_GREP_max=$ac_count
4232     fi
4233     # 10*(2^10) chars as input seems more than enough
4234     test $ac_count -gt 10 && break
4235   done
4236   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4237 esac
4238
4239       $ac_path_GREP_found && break 3
4240     done
4241   done
4242   done
4243 IFS=$as_save_IFS
4244   if test -z "$ac_cv_path_GREP"; then
4245     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4246   fi
4247 else
4248   ac_cv_path_GREP=$GREP
4249 fi
4250
4251 fi
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4253 $as_echo "$ac_cv_path_GREP" >&6; }
4254  GREP="$ac_cv_path_GREP"
4255
4256
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4258 $as_echo_n "checking for egrep... " >&6; }
4259 if ${ac_cv_path_EGREP+:} false; then :
4260   $as_echo_n "(cached) " >&6
4261 else
4262   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4263    then ac_cv_path_EGREP="$GREP -E"
4264    else
4265      if test -z "$EGREP"; then
4266   ac_path_EGREP_found=false
4267   # Loop through the user's path and test for each of PROGNAME-LIST
4268   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4269 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4270 do
4271   IFS=$as_save_IFS
4272   test -z "$as_dir" && as_dir=.
4273     for ac_prog in egrep; do
4274     for ac_exec_ext in '' $ac_executable_extensions; do
4275       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4276       as_fn_executable_p "$ac_path_EGREP" || continue
4277 # Check for GNU ac_path_EGREP and select it if it is found.
4278   # Check for GNU $ac_path_EGREP
4279 case `"$ac_path_EGREP" --version 2>&1` in
4280 *GNU*)
4281   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4282 *)
4283   ac_count=0
4284   $as_echo_n 0123456789 >"conftest.in"
4285   while :
4286   do
4287     cat "conftest.in" "conftest.in" >"conftest.tmp"
4288     mv "conftest.tmp" "conftest.in"
4289     cp "conftest.in" "conftest.nl"
4290     $as_echo 'EGREP' >> "conftest.nl"
4291     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4292     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4293     as_fn_arith $ac_count + 1 && ac_count=$as_val
4294     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4295       # Best one so far, save it but keep looking for a better one
4296       ac_cv_path_EGREP="$ac_path_EGREP"
4297       ac_path_EGREP_max=$ac_count
4298     fi
4299     # 10*(2^10) chars as input seems more than enough
4300     test $ac_count -gt 10 && break
4301   done
4302   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4303 esac
4304
4305       $ac_path_EGREP_found && break 3
4306     done
4307   done
4308   done
4309 IFS=$as_save_IFS
4310   if test -z "$ac_cv_path_EGREP"; then
4311     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4312   fi
4313 else
4314   ac_cv_path_EGREP=$EGREP
4315 fi
4316
4317    fi
4318 fi
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4320 $as_echo "$ac_cv_path_EGREP" >&6; }
4321  EGREP="$ac_cv_path_EGREP"
4322
4323
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4325 $as_echo_n "checking for ANSI C header files... " >&6; }
4326 if ${ac_cv_header_stdc+:} false; then :
4327   $as_echo_n "(cached) " >&6
4328 else
4329   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4330 /* end confdefs.h.  */
4331 #include <stdlib.h>
4332 #include <stdarg.h>
4333 #include <string.h>
4334 #include <float.h>
4335
4336 int
4337 main ()
4338 {
4339
4340   ;
4341   return 0;
4342 }
4343 _ACEOF
4344 if ac_fn_c_try_compile "$LINENO"; then :
4345   ac_cv_header_stdc=yes
4346 else
4347   ac_cv_header_stdc=no
4348 fi
4349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4350
4351 if test $ac_cv_header_stdc = yes; then
4352   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4353   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4354 /* end confdefs.h.  */
4355 #include <string.h>
4356
4357 _ACEOF
4358 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4359   $EGREP "memchr" >/dev/null 2>&1; then :
4360
4361 else
4362   ac_cv_header_stdc=no
4363 fi
4364 rm -f conftest*
4365
4366 fi
4367
4368 if test $ac_cv_header_stdc = yes; then
4369   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4370   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4371 /* end confdefs.h.  */
4372 #include <stdlib.h>
4373
4374 _ACEOF
4375 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4376   $EGREP "free" >/dev/null 2>&1; then :
4377
4378 else
4379   ac_cv_header_stdc=no
4380 fi
4381 rm -f conftest*
4382
4383 fi
4384
4385 if test $ac_cv_header_stdc = yes; then
4386   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4387   if test "$cross_compiling" = yes; then :
4388   :
4389 else
4390   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4391 /* end confdefs.h.  */
4392 #include <ctype.h>
4393 #include <stdlib.h>
4394 #if ((' ' & 0x0FF) == 0x020)
4395 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4396 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4397 #else
4398 # define ISLOWER(c) \
4399                    (('a' <= (c) && (c) <= 'i') \
4400                      || ('j' <= (c) && (c) <= 'r') \
4401                      || ('s' <= (c) && (c) <= 'z'))
4402 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4403 #endif
4404
4405 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4406 int
4407 main ()
4408 {
4409   int i;
4410   for (i = 0; i < 256; i++)
4411     if (XOR (islower (i), ISLOWER (i))
4412         || toupper (i) != TOUPPER (i))
4413       return 2;
4414   return 0;
4415 }
4416 _ACEOF
4417 if ac_fn_c_try_run "$LINENO"; then :
4418
4419 else
4420   ac_cv_header_stdc=no
4421 fi
4422 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4423   conftest.$ac_objext conftest.beam conftest.$ac_ext
4424 fi
4425
4426 fi
4427 fi
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4429 $as_echo "$ac_cv_header_stdc" >&6; }
4430 if test $ac_cv_header_stdc = yes; then
4431
4432 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4433
4434 fi
4435
4436 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4437 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4438                   inttypes.h stdint.h unistd.h
4439 do :
4440   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4441 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4442 "
4443 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4444   cat >>confdefs.h <<_ACEOF
4445 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4446 _ACEOF
4447
4448 fi
4449
4450 done
4451
4452
4453
4454
4455
4456   for ac_header in $ac_header_list
4457 do :
4458   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4459 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4460 "
4461 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4462   cat >>confdefs.h <<_ACEOF
4463 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4464 _ACEOF
4465
4466 fi
4467
4468 done
4469
4470
4471
4472
4473
4474
4475
4476
4477 for ac_func in getpagesize
4478 do :
4479   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
4480 if test "x$ac_cv_func_getpagesize" = xyes; then :
4481   cat >>confdefs.h <<_ACEOF
4482 #define HAVE_GETPAGESIZE 1
4483 _ACEOF
4484
4485 fi
4486 done
4487
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
4489 $as_echo_n "checking for working mmap... " >&6; }
4490 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
4491   $as_echo_n "(cached) " >&6
4492 else
4493   if test "$cross_compiling" = yes; then :
4494   ac_cv_func_mmap_fixed_mapped=no
4495 else
4496   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4497 /* end confdefs.h.  */
4498 $ac_includes_default
4499 /* malloc might have been renamed as rpl_malloc. */
4500 #undef malloc
4501
4502 /* Thanks to Mike Haertel and Jim Avera for this test.
4503    Here is a matrix of mmap possibilities:
4504         mmap private not fixed
4505         mmap private fixed at somewhere currently unmapped
4506         mmap private fixed at somewhere already mapped
4507         mmap shared not fixed
4508         mmap shared fixed at somewhere currently unmapped
4509         mmap shared fixed at somewhere already mapped
4510    For private mappings, we should verify that changes cannot be read()
4511    back from the file, nor mmap's back from the file at a different
4512    address.  (There have been systems where private was not correctly
4513    implemented like the infamous i386 svr4.0, and systems where the
4514    VM page cache was not coherent with the file system buffer cache
4515    like early versions of FreeBSD and possibly contemporary NetBSD.)
4516    For shared mappings, we should conversely verify that changes get
4517    propagated back to all the places they're supposed to be.
4518
4519    Grep wants private fixed already mapped.
4520    The main things grep needs to know about mmap are:
4521    * does it exist and is it safe to write into the mmap'd area
4522    * how to use it (BSD variants)  */
4523
4524 #include <fcntl.h>
4525 #include <sys/mman.h>
4526
4527 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
4528 char *malloc ();
4529 #endif
4530
4531 /* This mess was copied from the GNU getpagesize.h.  */
4532 #ifndef HAVE_GETPAGESIZE
4533 # ifdef _SC_PAGESIZE
4534 #  define getpagesize() sysconf(_SC_PAGESIZE)
4535 # else /* no _SC_PAGESIZE */
4536 #  ifdef HAVE_SYS_PARAM_H
4537 #   include <sys/param.h>
4538 #   ifdef EXEC_PAGESIZE
4539 #    define getpagesize() EXEC_PAGESIZE
4540 #   else /* no EXEC_PAGESIZE */
4541 #    ifdef NBPG
4542 #     define getpagesize() NBPG * CLSIZE
4543 #     ifndef CLSIZE
4544 #      define CLSIZE 1
4545 #     endif /* no CLSIZE */
4546 #    else /* no NBPG */
4547 #     ifdef NBPC
4548 #      define getpagesize() NBPC
4549 #     else /* no NBPC */
4550 #      ifdef PAGESIZE
4551 #       define getpagesize() PAGESIZE
4552 #      endif /* PAGESIZE */
4553 #     endif /* no NBPC */
4554 #    endif /* no NBPG */
4555 #   endif /* no EXEC_PAGESIZE */
4556 #  else /* no HAVE_SYS_PARAM_H */
4557 #   define getpagesize() 8192   /* punt totally */
4558 #  endif /* no HAVE_SYS_PARAM_H */
4559 # endif /* no _SC_PAGESIZE */
4560
4561 #endif /* no HAVE_GETPAGESIZE */
4562
4563 int
4564 main ()
4565 {
4566   char *data, *data2, *data3;
4567   const char *cdata2;
4568   int i, pagesize;
4569   int fd, fd2;
4570
4571   pagesize = getpagesize ();
4572
4573   /* First, make a file with some known garbage in it. */
4574   data = (char *) malloc (pagesize);
4575   if (!data)
4576     return 1;
4577   for (i = 0; i < pagesize; ++i)
4578     *(data + i) = rand ();
4579   umask (0);
4580   fd = creat ("conftest.mmap", 0600);
4581   if (fd < 0)
4582     return 2;
4583   if (write (fd, data, pagesize) != pagesize)
4584     return 3;
4585   close (fd);
4586
4587   /* Next, check that the tail of a page is zero-filled.  File must have
4588      non-zero length, otherwise we risk SIGBUS for entire page.  */
4589   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
4590   if (fd2 < 0)
4591     return 4;
4592   cdata2 = "";
4593   if (write (fd2, cdata2, 1) != 1)
4594     return 5;
4595   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
4596   if (data2 == MAP_FAILED)
4597     return 6;
4598   for (i = 0; i < pagesize; ++i)
4599     if (*(data2 + i))
4600       return 7;
4601   close (fd2);
4602   if (munmap (data2, pagesize))
4603     return 8;
4604
4605   /* Next, try to mmap the file at a fixed address which already has
4606      something else allocated at it.  If we can, also make sure that
4607      we see the same garbage.  */
4608   fd = open ("conftest.mmap", O_RDWR);
4609   if (fd < 0)
4610     return 9;
4611   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4612                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
4613     return 10;
4614   for (i = 0; i < pagesize; ++i)
4615     if (*(data + i) != *(data2 + i))
4616       return 11;
4617
4618   /* Finally, make sure that changes to the mapped area do not
4619      percolate back to the file as seen by read().  (This is a bug on
4620      some variants of i386 svr4.0.)  */
4621   for (i = 0; i < pagesize; ++i)
4622     *(data2 + i) = *(data2 + i) + 1;
4623   data3 = (char *) malloc (pagesize);
4624   if (!data3)
4625     return 12;
4626   if (read (fd, data3, pagesize) != pagesize)
4627     return 13;
4628   for (i = 0; i < pagesize; ++i)
4629     if (*(data + i) != *(data3 + i))
4630       return 14;
4631   close (fd);
4632   return 0;
4633 }
4634 _ACEOF
4635 if ac_fn_c_try_run "$LINENO"; then :
4636   ac_cv_func_mmap_fixed_mapped=yes
4637 else
4638   ac_cv_func_mmap_fixed_mapped=no
4639 fi
4640 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4641   conftest.$ac_objext conftest.beam conftest.$ac_ext
4642 fi
4643
4644 fi
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
4646 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
4647 if test $ac_cv_func_mmap_fixed_mapped = yes; then
4648
4649 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
4650
4651 fi
4652 rm -f conftest.mmap conftest.txt
4653
4654 # Check whether --enable-largefile was given.
4655 if test "${enable_largefile+set}" = set; then :
4656   enableval=$enable_largefile;
4657 fi
4658
4659 if test "$enable_largefile" != no; then
4660
4661   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4662 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4663 if ${ac_cv_sys_largefile_CC+:} false; then :
4664   $as_echo_n "(cached) " >&6
4665 else
4666   ac_cv_sys_largefile_CC=no
4667      if test "$GCC" != yes; then
4668        ac_save_CC=$CC
4669        while :; do
4670          # IRIX 6.2 and later do not support large files by default,
4671          # so use the C compiler's -n32 option if that helps.
4672          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4673 /* end confdefs.h.  */
4674 #include <sys/types.h>
4675  /* Check that off_t can represent 2**63 - 1 correctly.
4676     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4677     since some C++ compilers masquerading as C compilers
4678     incorrectly reject 9223372036854775807.  */
4679 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4680   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4681                        && LARGE_OFF_T % 2147483647 == 1)
4682                       ? 1 : -1];
4683 int
4684 main ()
4685 {
4686
4687   ;
4688   return 0;
4689 }
4690 _ACEOF
4691          if ac_fn_c_try_compile "$LINENO"; then :
4692   break
4693 fi
4694 rm -f core conftest.err conftest.$ac_objext
4695          CC="$CC -n32"
4696          if ac_fn_c_try_compile "$LINENO"; then :
4697   ac_cv_sys_largefile_CC=' -n32'; break
4698 fi
4699 rm -f core conftest.err conftest.$ac_objext
4700          break
4701        done
4702        CC=$ac_save_CC
4703        rm -f conftest.$ac_ext
4704     fi
4705 fi
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4707 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4708   if test "$ac_cv_sys_largefile_CC" != no; then
4709     CC=$CC$ac_cv_sys_largefile_CC
4710   fi
4711
4712   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4713 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4714 if ${ac_cv_sys_file_offset_bits+:} false; then :
4715   $as_echo_n "(cached) " >&6
4716 else
4717   while :; do
4718   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4719 /* end confdefs.h.  */
4720 #include <sys/types.h>
4721  /* Check that off_t can represent 2**63 - 1 correctly.
4722     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4723     since some C++ compilers masquerading as C compilers
4724     incorrectly reject 9223372036854775807.  */
4725 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4726   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4727                        && LARGE_OFF_T % 2147483647 == 1)
4728                       ? 1 : -1];
4729 int
4730 main ()
4731 {
4732
4733   ;
4734   return 0;
4735 }
4736 _ACEOF
4737 if ac_fn_c_try_compile "$LINENO"; then :
4738   ac_cv_sys_file_offset_bits=no; break
4739 fi
4740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4741   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4742 /* end confdefs.h.  */
4743 #define _FILE_OFFSET_BITS 64
4744 #include <sys/types.h>
4745  /* Check that off_t can represent 2**63 - 1 correctly.
4746     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4747     since some C++ compilers masquerading as C compilers
4748     incorrectly reject 9223372036854775807.  */
4749 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4750   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4751                        && LARGE_OFF_T % 2147483647 == 1)
4752                       ? 1 : -1];
4753 int
4754 main ()
4755 {
4756
4757   ;
4758   return 0;
4759 }
4760 _ACEOF
4761 if ac_fn_c_try_compile "$LINENO"; then :
4762   ac_cv_sys_file_offset_bits=64; break
4763 fi
4764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4765   ac_cv_sys_file_offset_bits=unknown
4766   break
4767 done
4768 fi
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4770 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4771 case $ac_cv_sys_file_offset_bits in #(
4772   no | unknown) ;;
4773   *)
4774 cat >>confdefs.h <<_ACEOF
4775 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4776 _ACEOF
4777 ;;
4778 esac
4779 rm -rf conftest*
4780   if test $ac_cv_sys_file_offset_bits = unknown; then
4781     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4782 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4783 if ${ac_cv_sys_large_files+:} false; then :
4784   $as_echo_n "(cached) " >&6
4785 else
4786   while :; do
4787   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4788 /* end confdefs.h.  */
4789 #include <sys/types.h>
4790  /* Check that off_t can represent 2**63 - 1 correctly.
4791     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4792     since some C++ compilers masquerading as C compilers
4793     incorrectly reject 9223372036854775807.  */
4794 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4795   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4796                        && LARGE_OFF_T % 2147483647 == 1)
4797                       ? 1 : -1];
4798 int
4799 main ()
4800 {
4801
4802   ;
4803   return 0;
4804 }
4805 _ACEOF
4806 if ac_fn_c_try_compile "$LINENO"; then :
4807   ac_cv_sys_large_files=no; break
4808 fi
4809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4810   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4811 /* end confdefs.h.  */
4812 #define _LARGE_FILES 1
4813 #include <sys/types.h>
4814  /* Check that off_t can represent 2**63 - 1 correctly.
4815     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4816     since some C++ compilers masquerading as C compilers
4817     incorrectly reject 9223372036854775807.  */
4818 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4819   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4820                        && LARGE_OFF_T % 2147483647 == 1)
4821                       ? 1 : -1];
4822 int
4823 main ()
4824 {
4825
4826   ;
4827   return 0;
4828 }
4829 _ACEOF
4830 if ac_fn_c_try_compile "$LINENO"; then :
4831   ac_cv_sys_large_files=1; break
4832 fi
4833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4834   ac_cv_sys_large_files=unknown
4835   break
4836 done
4837 fi
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4839 $as_echo "$ac_cv_sys_large_files" >&6; }
4840 case $ac_cv_sys_large_files in #(
4841   no | unknown) ;;
4842   *)
4843 cat >>confdefs.h <<_ACEOF
4844 #define _LARGE_FILES $ac_cv_sys_large_files
4845 _ACEOF
4846 ;;
4847 esac
4848 rm -rf conftest*
4849   fi
4850
4851
4852 fi
4853
4854
4855 # Initialize libtool
4856
4857 case `pwd` in
4858   *\ * | *\     *)
4859     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4860 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4861 esac
4862
4863
4864
4865 macro_version='2.4.2'
4866 macro_revision='1.3337'
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880 ltmain="$ac_aux_dir/ltmain.sh"
4881
4882 # Backslashify metacharacters that are still active within
4883 # double-quoted strings.
4884 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4885
4886 # Same as above, but do not quote variable references.
4887 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4888
4889 # Sed substitution to delay expansion of an escaped shell variable in a
4890 # double_quote_subst'ed string.
4891 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4892
4893 # Sed substitution to delay expansion of an escaped single quote.
4894 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4895
4896 # Sed substitution to avoid accidental globbing in evaled expressions
4897 no_glob_subst='s/\*/\\\*/g'
4898
4899 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4900 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4901 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4902
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4904 $as_echo_n "checking how to print strings... " >&6; }
4905 # Test print first, because it will be a builtin if present.
4906 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4907    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4908   ECHO='print -r --'
4909 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4910   ECHO='printf %s\n'
4911 else
4912   # Use this function as a fallback that always works.
4913   func_fallback_echo ()
4914   {
4915     eval 'cat <<_LTECHO_EOF
4916 $1
4917 _LTECHO_EOF'
4918   }
4919   ECHO='func_fallback_echo'
4920 fi
4921
4922 # func_echo_all arg...
4923 # Invoke $ECHO with all args, space-separated.
4924 func_echo_all ()
4925 {
4926     $ECHO ""
4927 }
4928
4929 case "$ECHO" in
4930   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4931 $as_echo "printf" >&6; } ;;
4932   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4933 $as_echo "print -r" >&6; } ;;
4934   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4935 $as_echo "cat" >&6; } ;;
4936 esac
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4952 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4953 if ${ac_cv_path_SED+:} false; then :
4954   $as_echo_n "(cached) " >&6
4955 else
4956             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4957      for ac_i in 1 2 3 4 5 6 7; do
4958        ac_script="$ac_script$as_nl$ac_script"
4959      done
4960      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4961      { ac_script=; unset ac_script;}
4962      if test -z "$SED"; then
4963   ac_path_SED_found=false
4964   # Loop through the user's path and test for each of PROGNAME-LIST
4965   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4966 for as_dir in $PATH
4967 do
4968   IFS=$as_save_IFS
4969   test -z "$as_dir" && as_dir=.
4970     for ac_prog in sed gsed; do
4971     for ac_exec_ext in '' $ac_executable_extensions; do
4972       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4973       as_fn_executable_p "$ac_path_SED" || continue
4974 # Check for GNU ac_path_SED and select it if it is found.
4975   # Check for GNU $ac_path_SED
4976 case `"$ac_path_SED" --version 2>&1` in
4977 *GNU*)
4978   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4979 *)
4980   ac_count=0
4981   $as_echo_n 0123456789 >"conftest.in"
4982   while :
4983   do
4984     cat "conftest.in" "conftest.in" >"conftest.tmp"
4985     mv "conftest.tmp" "conftest.in"
4986     cp "conftest.in" "conftest.nl"
4987     $as_echo '' >> "conftest.nl"
4988     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4989     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4990     as_fn_arith $ac_count + 1 && ac_count=$as_val
4991     if test $ac_count -gt ${ac_path_SED_max-0}; then
4992       # Best one so far, save it but keep looking for a better one
4993       ac_cv_path_SED="$ac_path_SED"
4994       ac_path_SED_max=$ac_count
4995     fi
4996     # 10*(2^10) chars as input seems more than enough
4997     test $ac_count -gt 10 && break
4998   done
4999   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5000 esac
5001
5002       $ac_path_SED_found && break 3
5003     done
5004   done
5005   done
5006 IFS=$as_save_IFS
5007   if test -z "$ac_cv_path_SED"; then
5008     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5009   fi
5010 else
5011   ac_cv_path_SED=$SED
5012 fi
5013
5014 fi
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5016 $as_echo "$ac_cv_path_SED" >&6; }
5017  SED="$ac_cv_path_SED"
5018   rm -f conftest.sed
5019
5020 test -z "$SED" && SED=sed
5021 Xsed="$SED -e 1s/^X//"
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5034 $as_echo_n "checking for fgrep... " >&6; }
5035 if ${ac_cv_path_FGREP+:} false; then :
5036   $as_echo_n "(cached) " >&6
5037 else
5038   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5039    then ac_cv_path_FGREP="$GREP -F"
5040    else
5041      if test -z "$FGREP"; then
5042   ac_path_FGREP_found=false
5043   # Loop through the user's path and test for each of PROGNAME-LIST
5044   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5045 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5046 do
5047   IFS=$as_save_IFS
5048   test -z "$as_dir" && as_dir=.
5049     for ac_prog in fgrep; do
5050     for ac_exec_ext in '' $ac_executable_extensions; do
5051       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5052       as_fn_executable_p "$ac_path_FGREP" || continue
5053 # Check for GNU ac_path_FGREP and select it if it is found.
5054   # Check for GNU $ac_path_FGREP
5055 case `"$ac_path_FGREP" --version 2>&1` in
5056 *GNU*)
5057   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5058 *)
5059   ac_count=0
5060   $as_echo_n 0123456789 >"conftest.in"
5061   while :
5062   do
5063     cat "conftest.in" "conftest.in" >"conftest.tmp"
5064     mv "conftest.tmp" "conftest.in"
5065     cp "conftest.in" "conftest.nl"
5066     $as_echo 'FGREP' >> "conftest.nl"
5067     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5068     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5069     as_fn_arith $ac_count + 1 && ac_count=$as_val
5070     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5071       # Best one so far, save it but keep looking for a better one
5072       ac_cv_path_FGREP="$ac_path_FGREP"
5073       ac_path_FGREP_max=$ac_count
5074     fi
5075     # 10*(2^10) chars as input seems more than enough
5076     test $ac_count -gt 10 && break
5077   done
5078   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5079 esac
5080
5081       $ac_path_FGREP_found && break 3
5082     done
5083   done
5084   done
5085 IFS=$as_save_IFS
5086   if test -z "$ac_cv_path_FGREP"; then
5087     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5088   fi
5089 else
5090   ac_cv_path_FGREP=$FGREP
5091 fi
5092
5093    fi
5094 fi
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5096 $as_echo "$ac_cv_path_FGREP" >&6; }
5097  FGREP="$ac_cv_path_FGREP"
5098
5099
5100 test -z "$GREP" && GREP=grep
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120 # Check whether --with-gnu-ld was given.
5121 if test "${with_gnu_ld+set}" = set; then :
5122   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5123 else
5124   with_gnu_ld=no
5125 fi
5126
5127 ac_prog=ld
5128 if test "$GCC" = yes; then
5129   # Check if gcc -print-prog-name=ld gives a path.
5130   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5131 $as_echo_n "checking for ld used by $CC... " >&6; }
5132   case $host in
5133   *-*-mingw*)
5134     # gcc leaves a trailing carriage return which upsets mingw
5135     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5136   *)
5137     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5138   esac
5139   case $ac_prog in
5140     # Accept absolute paths.
5141     [\\/]* | ?:[\\/]*)
5142       re_direlt='/[^/][^/]*/\.\./'
5143       # Canonicalize the pathname of ld
5144       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5145       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5146         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5147       done
5148       test -z "$LD" && LD="$ac_prog"
5149       ;;
5150   "")
5151     # If it fails, then pretend we aren't using GCC.
5152     ac_prog=ld
5153     ;;
5154   *)
5155     # If it is relative, then search for the first ld in PATH.
5156     with_gnu_ld=unknown
5157     ;;
5158   esac
5159 elif test "$with_gnu_ld" = yes; then
5160   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5161 $as_echo_n "checking for GNU ld... " >&6; }
5162 else
5163   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5164 $as_echo_n "checking for non-GNU ld... " >&6; }
5165 fi
5166 if ${lt_cv_path_LD+:} false; then :
5167   $as_echo_n "(cached) " >&6
5168 else
5169   if test -z "$LD"; then
5170   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5171   for ac_dir in $PATH; do
5172     IFS="$lt_save_ifs"
5173     test -z "$ac_dir" && ac_dir=.
5174     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5175       lt_cv_path_LD="$ac_dir/$ac_prog"
5176       # Check to see if the program is GNU ld.  I'd rather use --version,
5177       # but apparently some variants of GNU ld only accept -v.
5178       # Break only if it was the GNU/non-GNU ld that we prefer.
5179       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5180       *GNU* | *'with BFD'*)
5181         test "$with_gnu_ld" != no && break
5182         ;;
5183       *)
5184         test "$with_gnu_ld" != yes && break
5185         ;;
5186       esac
5187     fi
5188   done
5189   IFS="$lt_save_ifs"
5190 else
5191   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5192 fi
5193 fi
5194
5195 LD="$lt_cv_path_LD"
5196 if test -n "$LD"; then
5197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5198 $as_echo "$LD" >&6; }
5199 else
5200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5201 $as_echo "no" >&6; }
5202 fi
5203 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5205 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5206 if ${lt_cv_prog_gnu_ld+:} false; then :
5207   $as_echo_n "(cached) " >&6
5208 else
5209   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5210 case `$LD -v 2>&1 </dev/null` in
5211 *GNU* | *'with BFD'*)
5212   lt_cv_prog_gnu_ld=yes
5213   ;;
5214 *)
5215   lt_cv_prog_gnu_ld=no
5216   ;;
5217 esac
5218 fi
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5220 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5221 with_gnu_ld=$lt_cv_prog_gnu_ld
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5232 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5233 if ${lt_cv_path_NM+:} false; then :
5234   $as_echo_n "(cached) " >&6
5235 else
5236   if test -n "$NM"; then
5237   # Let the user override the test.
5238   lt_cv_path_NM="$NM"
5239 else
5240   lt_nm_to_check="${ac_tool_prefix}nm"
5241   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5242     lt_nm_to_check="$lt_nm_to_check nm"
5243   fi
5244   for lt_tmp_nm in $lt_nm_to_check; do
5245     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5246     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5247       IFS="$lt_save_ifs"
5248       test -z "$ac_dir" && ac_dir=.
5249       tmp_nm="$ac_dir/$lt_tmp_nm"
5250       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5251         # Check to see if the nm accepts a BSD-compat flag.
5252         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5253         #   nm: unknown option "B" ignored
5254         # Tru64's nm complains that /dev/null is an invalid object file
5255         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5256         */dev/null* | *'Invalid file or object type'*)
5257           lt_cv_path_NM="$tmp_nm -B"
5258           break
5259           ;;
5260         *)
5261           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5262           */dev/null*)
5263             lt_cv_path_NM="$tmp_nm -p"
5264             break
5265             ;;
5266           *)
5267             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5268             continue # so that we can try to find one that supports BSD flags
5269             ;;
5270           esac
5271           ;;
5272         esac
5273       fi
5274     done
5275     IFS="$lt_save_ifs"
5276   done
5277   : ${lt_cv_path_NM=no}
5278 fi
5279 fi
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5281 $as_echo "$lt_cv_path_NM" >&6; }
5282 if test "$lt_cv_path_NM" != "no"; then
5283   NM="$lt_cv_path_NM"
5284 else
5285   # Didn't find any BSD compatible name lister, look for dumpbin.
5286   if test -n "$DUMPBIN"; then :
5287     # Let the user override the test.
5288   else
5289     if test -n "$ac_tool_prefix"; then
5290   for ac_prog in dumpbin "link -dump"
5291   do
5292     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5293 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5295 $as_echo_n "checking for $ac_word... " >&6; }
5296 if ${ac_cv_prog_DUMPBIN+:} false; then :
5297   $as_echo_n "(cached) " >&6
5298 else
5299   if test -n "$DUMPBIN"; then
5300   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5301 else
5302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5303 for as_dir in $PATH
5304 do
5305   IFS=$as_save_IFS
5306   test -z "$as_dir" && as_dir=.
5307     for ac_exec_ext in '' $ac_executable_extensions; do
5308   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5309     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5310     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5311     break 2
5312   fi
5313 done
5314   done
5315 IFS=$as_save_IFS
5316
5317 fi
5318 fi
5319 DUMPBIN=$ac_cv_prog_DUMPBIN
5320 if test -n "$DUMPBIN"; then
5321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5322 $as_echo "$DUMPBIN" >&6; }
5323 else
5324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5325 $as_echo "no" >&6; }
5326 fi
5327
5328
5329     test -n "$DUMPBIN" && break
5330   done
5331 fi
5332 if test -z "$DUMPBIN"; then
5333   ac_ct_DUMPBIN=$DUMPBIN
5334   for ac_prog in dumpbin "link -dump"
5335 do
5336   # Extract the first word of "$ac_prog", so it can be a program name with args.
5337 set dummy $ac_prog; ac_word=$2
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5339 $as_echo_n "checking for $ac_word... " >&6; }
5340 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5341   $as_echo_n "(cached) " >&6
5342 else
5343   if test -n "$ac_ct_DUMPBIN"; then
5344   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5345 else
5346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5347 for as_dir in $PATH
5348 do
5349   IFS=$as_save_IFS
5350   test -z "$as_dir" && as_dir=.
5351     for ac_exec_ext in '' $ac_executable_extensions; do
5352   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5353     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5354     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5355     break 2
5356   fi
5357 done
5358   done
5359 IFS=$as_save_IFS
5360
5361 fi
5362 fi
5363 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5364 if test -n "$ac_ct_DUMPBIN"; then
5365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5366 $as_echo "$ac_ct_DUMPBIN" >&6; }
5367 else
5368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5369 $as_echo "no" >&6; }
5370 fi
5371
5372
5373   test -n "$ac_ct_DUMPBIN" && break
5374 done
5375
5376   if test "x$ac_ct_DUMPBIN" = x; then
5377     DUMPBIN=":"
5378   else
5379     case $cross_compiling:$ac_tool_warned in
5380 yes:)
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5382 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5383 ac_tool_warned=yes ;;
5384 esac
5385     DUMPBIN=$ac_ct_DUMPBIN
5386   fi
5387 fi
5388
5389     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5390     *COFF*)
5391       DUMPBIN="$DUMPBIN -symbols"
5392       ;;
5393     *)
5394       DUMPBIN=:
5395       ;;
5396     esac
5397   fi
5398
5399   if test "$DUMPBIN" != ":"; then
5400     NM="$DUMPBIN"
5401   fi
5402 fi
5403 test -z "$NM" && NM=nm
5404
5405
5406
5407
5408
5409
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5411 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5412 if ${lt_cv_nm_interface+:} false; then :
5413   $as_echo_n "(cached) " >&6
5414 else
5415   lt_cv_nm_interface="BSD nm"
5416   echo "int some_variable = 0;" > conftest.$ac_ext
5417   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5418   (eval "$ac_compile" 2>conftest.err)
5419   cat conftest.err >&5
5420   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5421   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5422   cat conftest.err >&5
5423   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5424   cat conftest.out >&5
5425   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5426     lt_cv_nm_interface="MS dumpbin"
5427   fi
5428   rm -f conftest*
5429 fi
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5431 $as_echo "$lt_cv_nm_interface" >&6; }
5432
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5434 $as_echo_n "checking whether ln -s works... " >&6; }
5435 LN_S=$as_ln_s
5436 if test "$LN_S" = "ln -s"; then
5437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5438 $as_echo "yes" >&6; }
5439 else
5440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5441 $as_echo "no, using $LN_S" >&6; }
5442 fi
5443
5444 # find the maximum length of command line arguments
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5446 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5447 if ${lt_cv_sys_max_cmd_len+:} false; then :
5448   $as_echo_n "(cached) " >&6
5449 else
5450     i=0
5451   teststring="ABCD"
5452
5453   case $build_os in
5454   msdosdjgpp*)
5455     # On DJGPP, this test can blow up pretty badly due to problems in libc
5456     # (any single argument exceeding 2000 bytes causes a buffer overrun
5457     # during glob expansion).  Even if it were fixed, the result of this
5458     # check would be larger than it should be.
5459     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5460     ;;
5461
5462   gnu*)
5463     # Under GNU Hurd, this test is not required because there is
5464     # no limit to the length of command line arguments.
5465     # Libtool will interpret -1 as no limit whatsoever
5466     lt_cv_sys_max_cmd_len=-1;
5467     ;;
5468
5469   cygwin* | mingw* | cegcc*)
5470     # On Win9x/ME, this test blows up -- it succeeds, but takes
5471     # about 5 minutes as the teststring grows exponentially.
5472     # Worse, since 9x/ME are not pre-emptively multitasking,
5473     # you end up with a "frozen" computer, even though with patience
5474     # the test eventually succeeds (with a max line length of 256k).
5475     # Instead, let's just punt: use the minimum linelength reported by
5476     # all of the supported platforms: 8192 (on NT/2K/XP).
5477     lt_cv_sys_max_cmd_len=8192;
5478     ;;
5479
5480   mint*)
5481     # On MiNT this can take a long time and run out of memory.
5482     lt_cv_sys_max_cmd_len=8192;
5483     ;;
5484
5485   amigaos*)
5486     # On AmigaOS with pdksh, this test takes hours, literally.
5487     # So we just punt and use a minimum line length of 8192.
5488     lt_cv_sys_max_cmd_len=8192;
5489     ;;
5490
5491   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5492     # This has been around since 386BSD, at least.  Likely further.
5493     if test -x /sbin/sysctl; then
5494       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5495     elif test -x /usr/sbin/sysctl; then
5496       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5497     else
5498       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5499     fi
5500     # And add a safety zone
5501     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5502     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5503     ;;
5504
5505   interix*)
5506     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5507     lt_cv_sys_max_cmd_len=196608
5508     ;;
5509
5510   os2*)
5511     # The test takes a long time on OS/2.
5512     lt_cv_sys_max_cmd_len=8192
5513     ;;
5514
5515   osf*)
5516     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5517     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5518     # nice to cause kernel panics so lets avoid the loop below.
5519     # First set a reasonable default.
5520     lt_cv_sys_max_cmd_len=16384
5521     #
5522     if test -x /sbin/sysconfig; then
5523       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5524         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5525       esac
5526     fi
5527     ;;
5528   sco3.2v5*)
5529     lt_cv_sys_max_cmd_len=102400
5530     ;;
5531   sysv5* | sco5v6* | sysv4.2uw2*)
5532     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5533     if test -n "$kargmax"; then
5534       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5535     else
5536       lt_cv_sys_max_cmd_len=32768
5537     fi
5538     ;;
5539   *)
5540     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5541     if test -n "$lt_cv_sys_max_cmd_len"; then
5542       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5543       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5544     else
5545       # Make teststring a little bigger before we do anything with it.
5546       # a 1K string should be a reasonable start.
5547       for i in 1 2 3 4 5 6 7 8 ; do
5548         teststring=$teststring$teststring
5549       done
5550       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5551       # If test is not a shell built-in, we'll probably end up computing a
5552       # maximum length that is only half of the actual maximum length, but
5553       # we can't tell.
5554       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5555                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5556               test $i != 17 # 1/2 MB should be enough
5557       do
5558         i=`expr $i + 1`
5559         teststring=$teststring$teststring
5560       done
5561       # Only check the string length outside the loop.
5562       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5563       teststring=
5564       # Add a significant safety factor because C++ compilers can tack on
5565       # massive amounts of additional arguments before passing them to the
5566       # linker.  It appears as though 1/2 is a usable value.
5567       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5568     fi
5569     ;;
5570   esac
5571
5572 fi
5573
5574 if test -n $lt_cv_sys_max_cmd_len ; then
5575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5576 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5577 else
5578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5579 $as_echo "none" >&6; }
5580 fi
5581 max_cmd_len=$lt_cv_sys_max_cmd_len
5582
5583
5584
5585
5586
5587
5588 : ${CP="cp -f"}
5589 : ${MV="mv -f"}
5590 : ${RM="rm -f"}
5591
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5593 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5594 # Try some XSI features
5595 xsi_shell=no
5596 ( _lt_dummy="a/b/c"
5597   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5598       = c,a/b,b/c, \
5599     && eval 'test $(( 1 + 1 )) -eq 2 \
5600     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5601   && xsi_shell=yes
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5603 $as_echo "$xsi_shell" >&6; }
5604
5605
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5607 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5608 lt_shell_append=no
5609 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5610     >/dev/null 2>&1 \
5611   && lt_shell_append=yes
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5613 $as_echo "$lt_shell_append" >&6; }
5614
5615
5616 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5617   lt_unset=unset
5618 else
5619   lt_unset=false
5620 fi
5621
5622
5623
5624
5625
5626 # test EBCDIC or ASCII
5627 case `echo X|tr X '\101'` in
5628  A) # ASCII based system
5629     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5630   lt_SP2NL='tr \040 \012'
5631   lt_NL2SP='tr \015\012 \040\040'
5632   ;;
5633  *) # EBCDIC based system
5634   lt_SP2NL='tr \100 \n'
5635   lt_NL2SP='tr \r\n \100\100'
5636   ;;
5637 esac
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5648 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5649 if ${lt_cv_to_host_file_cmd+:} false; then :
5650   $as_echo_n "(cached) " >&6
5651 else
5652   case $host in
5653   *-*-mingw* )
5654     case $build in
5655       *-*-mingw* ) # actually msys
5656         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5657         ;;
5658       *-*-cygwin* )
5659         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5660         ;;
5661       * ) # otherwise, assume *nix
5662         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5663         ;;
5664     esac
5665     ;;
5666   *-*-cygwin* )
5667     case $build in
5668       *-*-mingw* ) # actually msys
5669         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5670         ;;
5671       *-*-cygwin* )
5672         lt_cv_to_host_file_cmd=func_convert_file_noop
5673         ;;
5674       * ) # otherwise, assume *nix
5675         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5676         ;;
5677     esac
5678     ;;
5679   * ) # unhandled hosts (and "normal" native builds)
5680     lt_cv_to_host_file_cmd=func_convert_file_noop
5681     ;;
5682 esac
5683
5684 fi
5685
5686 to_host_file_cmd=$lt_cv_to_host_file_cmd
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5688 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5689
5690
5691
5692
5693
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5695 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5696 if ${lt_cv_to_tool_file_cmd+:} false; then :
5697   $as_echo_n "(cached) " >&6
5698 else
5699   #assume ordinary cross tools, or native build.
5700 lt_cv_to_tool_file_cmd=func_convert_file_noop
5701 case $host in
5702   *-*-mingw* )
5703     case $build in
5704       *-*-mingw* ) # actually msys
5705         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5706         ;;
5707     esac
5708     ;;
5709 esac
5710
5711 fi
5712
5713 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5715 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5716
5717
5718
5719
5720
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5722 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5723 if ${lt_cv_ld_reload_flag+:} false; then :
5724   $as_echo_n "(cached) " >&6
5725 else
5726   lt_cv_ld_reload_flag='-r'
5727 fi
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5729 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5730 reload_flag=$lt_cv_ld_reload_flag
5731 case $reload_flag in
5732 "" | " "*) ;;
5733 *) reload_flag=" $reload_flag" ;;
5734 esac
5735 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5736 case $host_os in
5737   cygwin* | mingw* | pw32* | cegcc*)
5738     if test "$GCC" != yes; then
5739       reload_cmds=false
5740     fi
5741     ;;
5742   darwin*)
5743     if test "$GCC" = yes; then
5744       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5745     else
5746       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5747     fi
5748     ;;
5749 esac
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759 if test -n "$ac_tool_prefix"; then
5760   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5761 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5763 $as_echo_n "checking for $ac_word... " >&6; }
5764 if ${ac_cv_prog_OBJDUMP+:} false; then :
5765   $as_echo_n "(cached) " >&6
5766 else
5767   if test -n "$OBJDUMP"; then
5768   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5769 else
5770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5771 for as_dir in $PATH
5772 do
5773   IFS=$as_save_IFS
5774   test -z "$as_dir" && as_dir=.
5775     for ac_exec_ext in '' $ac_executable_extensions; do
5776   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5777     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5778     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5779     break 2
5780   fi
5781 done
5782   done
5783 IFS=$as_save_IFS
5784
5785 fi
5786 fi
5787 OBJDUMP=$ac_cv_prog_OBJDUMP
5788 if test -n "$OBJDUMP"; then
5789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5790 $as_echo "$OBJDUMP" >&6; }
5791 else
5792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5793 $as_echo "no" >&6; }
5794 fi
5795
5796
5797 fi
5798 if test -z "$ac_cv_prog_OBJDUMP"; then
5799   ac_ct_OBJDUMP=$OBJDUMP
5800   # Extract the first word of "objdump", so it can be a program name with args.
5801 set dummy objdump; ac_word=$2
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5803 $as_echo_n "checking for $ac_word... " >&6; }
5804 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5805   $as_echo_n "(cached) " >&6
5806 else
5807   if test -n "$ac_ct_OBJDUMP"; then
5808   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5809 else
5810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5811 for as_dir in $PATH
5812 do
5813   IFS=$as_save_IFS
5814   test -z "$as_dir" && as_dir=.
5815     for ac_exec_ext in '' $ac_executable_extensions; do
5816   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5817     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5818     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5819     break 2
5820   fi
5821 done
5822   done
5823 IFS=$as_save_IFS
5824
5825 fi
5826 fi
5827 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5828 if test -n "$ac_ct_OBJDUMP"; then
5829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5830 $as_echo "$ac_ct_OBJDUMP" >&6; }
5831 else
5832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5833 $as_echo "no" >&6; }
5834 fi
5835
5836   if test "x$ac_ct_OBJDUMP" = x; then
5837     OBJDUMP="false"
5838   else
5839     case $cross_compiling:$ac_tool_warned in
5840 yes:)
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5842 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5843 ac_tool_warned=yes ;;
5844 esac
5845     OBJDUMP=$ac_ct_OBJDUMP
5846   fi
5847 else
5848   OBJDUMP="$ac_cv_prog_OBJDUMP"
5849 fi
5850
5851 test -z "$OBJDUMP" && OBJDUMP=objdump
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5862 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5863 if ${lt_cv_deplibs_check_method+:} false; then :
5864   $as_echo_n "(cached) " >&6
5865 else
5866   lt_cv_file_magic_cmd='$MAGIC_CMD'
5867 lt_cv_file_magic_test_file=
5868 lt_cv_deplibs_check_method='unknown'
5869 # Need to set the preceding variable on all platforms that support
5870 # interlibrary dependencies.
5871 # 'none' -- dependencies not supported.
5872 # `unknown' -- same as none, but documents that we really don't know.
5873 # 'pass_all' -- all dependencies passed with no checks.
5874 # 'test_compile' -- check by making test program.
5875 # 'file_magic [[regex]]' -- check by looking for files in library path
5876 # which responds to the $file_magic_cmd with a given extended regex.
5877 # If you have `file' or equivalent on your system and you're not sure
5878 # whether `pass_all' will *always* work, you probably want this one.
5879
5880 case $host_os in
5881 aix[4-9]*)
5882   lt_cv_deplibs_check_method=pass_all
5883   ;;
5884
5885 beos*)
5886   lt_cv_deplibs_check_method=pass_all
5887   ;;
5888
5889 bsdi[45]*)
5890   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5891   lt_cv_file_magic_cmd='/usr/bin/file -L'
5892   lt_cv_file_magic_test_file=/shlib/libc.so
5893   ;;
5894
5895 cygwin*)
5896   # func_win32_libid is a shell function defined in ltmain.sh
5897   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5898   lt_cv_file_magic_cmd='func_win32_libid'
5899   ;;
5900
5901 mingw* | pw32*)
5902   # Base MSYS/MinGW do not provide the 'file' command needed by
5903   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5904   # unless we find 'file', for example because we are cross-compiling.
5905   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5906   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5907     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5908     lt_cv_file_magic_cmd='func_win32_libid'
5909   else
5910     # Keep this pattern in sync with the one in func_win32_libid.
5911     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5912     lt_cv_file_magic_cmd='$OBJDUMP -f'
5913   fi
5914   ;;
5915
5916 cegcc*)
5917   # use the weaker test based on 'objdump'. See mingw*.
5918   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5919   lt_cv_file_magic_cmd='$OBJDUMP -f'
5920   ;;
5921
5922 darwin* | rhapsody*)
5923   lt_cv_deplibs_check_method=pass_all
5924   ;;
5925
5926 freebsd* | dragonfly*)
5927   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5928     case $host_cpu in
5929     i*86 )
5930       # Not sure whether the presence of OpenBSD here was a mistake.
5931       # Let's accept both of them until this is cleared up.
5932       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5933       lt_cv_file_magic_cmd=/usr/bin/file
5934       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5935       ;;
5936     esac
5937   else
5938     lt_cv_deplibs_check_method=pass_all
5939   fi
5940   ;;
5941
5942 gnu*)
5943   lt_cv_deplibs_check_method=pass_all
5944   ;;
5945
5946 haiku*)
5947   lt_cv_deplibs_check_method=pass_all
5948   ;;
5949
5950 hpux10.20* | hpux11*)
5951   lt_cv_file_magic_cmd=/usr/bin/file
5952   case $host_cpu in
5953   ia64*)
5954     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5955     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5956     ;;
5957   hppa*64*)
5958     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]'
5959     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5960     ;;
5961   *)
5962     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5963     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5964     ;;
5965   esac
5966   ;;
5967
5968 interix[3-9]*)
5969   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5970   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5971   ;;
5972
5973 irix5* | irix6* | nonstopux*)
5974   case $LD in
5975   *-32|*"-32 ") libmagic=32-bit;;
5976   *-n32|*"-n32 ") libmagic=N32;;
5977   *-64|*"-64 ") libmagic=64-bit;;
5978   *) libmagic=never-match;;
5979   esac
5980   lt_cv_deplibs_check_method=pass_all
5981   ;;
5982
5983 # This must be glibc/ELF.
5984 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5985   lt_cv_deplibs_check_method=pass_all
5986   ;;
5987
5988 netbsd* | netbsdelf*-gnu)
5989   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5990     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5991   else
5992     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5993   fi
5994   ;;
5995
5996 newos6*)
5997   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5998   lt_cv_file_magic_cmd=/usr/bin/file
5999   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6000   ;;
6001
6002 *nto* | *qnx*)
6003   lt_cv_deplibs_check_method=pass_all
6004   ;;
6005
6006 openbsd*)
6007   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6008     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6009   else
6010     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6011   fi
6012   ;;
6013
6014 osf3* | osf4* | osf5*)
6015   lt_cv_deplibs_check_method=pass_all
6016   ;;
6017
6018 rdos*)
6019   lt_cv_deplibs_check_method=pass_all
6020   ;;
6021
6022 solaris*)
6023   lt_cv_deplibs_check_method=pass_all
6024   ;;
6025
6026 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6027   lt_cv_deplibs_check_method=pass_all
6028   ;;
6029
6030 sysv4 | sysv4.3*)
6031   case $host_vendor in
6032   motorola)
6033     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]'
6034     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6035     ;;
6036   ncr)
6037     lt_cv_deplibs_check_method=pass_all
6038     ;;
6039   sequent)
6040     lt_cv_file_magic_cmd='/bin/file'
6041     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6042     ;;
6043   sni)
6044     lt_cv_file_magic_cmd='/bin/file'
6045     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6046     lt_cv_file_magic_test_file=/lib/libc.so
6047     ;;
6048   siemens)
6049     lt_cv_deplibs_check_method=pass_all
6050     ;;
6051   pc)
6052     lt_cv_deplibs_check_method=pass_all
6053     ;;
6054   esac
6055   ;;
6056
6057 tpf*)
6058   lt_cv_deplibs_check_method=pass_all
6059   ;;
6060 esac
6061
6062 fi
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6064 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6065
6066 file_magic_glob=
6067 want_nocaseglob=no
6068 if test "$build" = "$host"; then
6069   case $host_os in
6070   mingw* | pw32*)
6071     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6072       want_nocaseglob=yes
6073     else
6074       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6075     fi
6076     ;;
6077   esac
6078 fi
6079
6080 file_magic_cmd=$lt_cv_file_magic_cmd
6081 deplibs_check_method=$lt_cv_deplibs_check_method
6082 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105 if test -n "$ac_tool_prefix"; then
6106   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6107 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6109 $as_echo_n "checking for $ac_word... " >&6; }
6110 if ${ac_cv_prog_DLLTOOL+:} false; then :
6111   $as_echo_n "(cached) " >&6
6112 else
6113   if test -n "$DLLTOOL"; then
6114   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6115 else
6116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6117 for as_dir in $PATH
6118 do
6119   IFS=$as_save_IFS
6120   test -z "$as_dir" && as_dir=.
6121     for ac_exec_ext in '' $ac_executable_extensions; do
6122   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6123     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6124     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6125     break 2
6126   fi
6127 done
6128   done
6129 IFS=$as_save_IFS
6130
6131 fi
6132 fi
6133 DLLTOOL=$ac_cv_prog_DLLTOOL
6134 if test -n "$DLLTOOL"; then
6135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6136 $as_echo "$DLLTOOL" >&6; }
6137 else
6138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6139 $as_echo "no" >&6; }
6140 fi
6141
6142
6143 fi
6144 if test -z "$ac_cv_prog_DLLTOOL"; then
6145   ac_ct_DLLTOOL=$DLLTOOL
6146   # Extract the first word of "dlltool", so it can be a program name with args.
6147 set dummy dlltool; ac_word=$2
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6149 $as_echo_n "checking for $ac_word... " >&6; }
6150 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6151   $as_echo_n "(cached) " >&6
6152 else
6153   if test -n "$ac_ct_DLLTOOL"; then
6154   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6155 else
6156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6157 for as_dir in $PATH
6158 do
6159   IFS=$as_save_IFS
6160   test -z "$as_dir" && as_dir=.
6161     for ac_exec_ext in '' $ac_executable_extensions; do
6162   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6163     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6164     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6165     break 2
6166   fi
6167 done
6168   done
6169 IFS=$as_save_IFS
6170
6171 fi
6172 fi
6173 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6174 if test -n "$ac_ct_DLLTOOL"; then
6175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6176 $as_echo "$ac_ct_DLLTOOL" >&6; }
6177 else
6178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6179 $as_echo "no" >&6; }
6180 fi
6181
6182   if test "x$ac_ct_DLLTOOL" = x; then
6183     DLLTOOL="false"
6184   else
6185     case $cross_compiling:$ac_tool_warned in
6186 yes:)
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6188 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6189 ac_tool_warned=yes ;;
6190 esac
6191     DLLTOOL=$ac_ct_DLLTOOL
6192   fi
6193 else
6194   DLLTOOL="$ac_cv_prog_DLLTOOL"
6195 fi
6196
6197 test -z "$DLLTOOL" && DLLTOOL=dlltool
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6209 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6210 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6211   $as_echo_n "(cached) " >&6
6212 else
6213   lt_cv_sharedlib_from_linklib_cmd='unknown'
6214
6215 case $host_os in
6216 cygwin* | mingw* | pw32* | cegcc*)
6217   # two different shell functions defined in ltmain.sh
6218   # decide which to use based on capabilities of $DLLTOOL
6219   case `$DLLTOOL --help 2>&1` in
6220   *--identify-strict*)
6221     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6222     ;;
6223   *)
6224     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6225     ;;
6226   esac
6227   ;;
6228 *)
6229   # fallback: assume linklib IS sharedlib
6230   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6231   ;;
6232 esac
6233
6234 fi
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6236 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6237 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6238 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6239
6240
6241
6242
6243
6244
6245
6246 if test -n "$ac_tool_prefix"; then
6247   for ac_prog in ar
6248   do
6249     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6250 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6252 $as_echo_n "checking for $ac_word... " >&6; }
6253 if ${ac_cv_prog_AR+:} false; then :
6254   $as_echo_n "(cached) " >&6
6255 else
6256   if test -n "$AR"; then
6257   ac_cv_prog_AR="$AR" # Let the user override the test.
6258 else
6259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6260 for as_dir in $PATH
6261 do
6262   IFS=$as_save_IFS
6263   test -z "$as_dir" && as_dir=.
6264     for ac_exec_ext in '' $ac_executable_extensions; do
6265   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6266     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6267     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6268     break 2
6269   fi
6270 done
6271   done
6272 IFS=$as_save_IFS
6273
6274 fi
6275 fi
6276 AR=$ac_cv_prog_AR
6277 if test -n "$AR"; then
6278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6279 $as_echo "$AR" >&6; }
6280 else
6281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6282 $as_echo "no" >&6; }
6283 fi
6284
6285
6286     test -n "$AR" && break
6287   done
6288 fi
6289 if test -z "$AR"; then
6290   ac_ct_AR=$AR
6291   for ac_prog in ar
6292 do
6293   # Extract the first word of "$ac_prog", so it can be a program name with args.
6294 set dummy $ac_prog; ac_word=$2
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6296 $as_echo_n "checking for $ac_word... " >&6; }
6297 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6298   $as_echo_n "(cached) " >&6
6299 else
6300   if test -n "$ac_ct_AR"; then
6301   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6302 else
6303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6304 for as_dir in $PATH
6305 do
6306   IFS=$as_save_IFS
6307   test -z "$as_dir" && as_dir=.
6308     for ac_exec_ext in '' $ac_executable_extensions; do
6309   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6310     ac_cv_prog_ac_ct_AR="$ac_prog"
6311     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6312     break 2
6313   fi
6314 done
6315   done
6316 IFS=$as_save_IFS
6317
6318 fi
6319 fi
6320 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6321 if test -n "$ac_ct_AR"; then
6322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6323 $as_echo "$ac_ct_AR" >&6; }
6324 else
6325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6326 $as_echo "no" >&6; }
6327 fi
6328
6329
6330   test -n "$ac_ct_AR" && break
6331 done
6332
6333   if test "x$ac_ct_AR" = x; then
6334     AR="false"
6335   else
6336     case $cross_compiling:$ac_tool_warned in
6337 yes:)
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6339 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6340 ac_tool_warned=yes ;;
6341 esac
6342     AR=$ac_ct_AR
6343   fi
6344 fi
6345
6346 : ${AR=ar}
6347 : ${AR_FLAGS=cru}
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6360 $as_echo_n "checking for archiver @FILE support... " >&6; }
6361 if ${lt_cv_ar_at_file+:} false; then :
6362   $as_echo_n "(cached) " >&6
6363 else
6364   lt_cv_ar_at_file=no
6365    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6366 /* end confdefs.h.  */
6367
6368 int
6369 main ()
6370 {
6371
6372   ;
6373   return 0;
6374 }
6375 _ACEOF
6376 if ac_fn_c_try_compile "$LINENO"; then :
6377   echo conftest.$ac_objext > conftest.lst
6378       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6379       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6380   (eval $lt_ar_try) 2>&5
6381   ac_status=$?
6382   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6383   test $ac_status = 0; }
6384       if test "$ac_status" -eq 0; then
6385         # Ensure the archiver fails upon bogus file names.
6386         rm -f conftest.$ac_objext libconftest.a
6387         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6388   (eval $lt_ar_try) 2>&5
6389   ac_status=$?
6390   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6391   test $ac_status = 0; }
6392         if test "$ac_status" -ne 0; then
6393           lt_cv_ar_at_file=@
6394         fi
6395       fi
6396       rm -f conftest.* libconftest.a
6397
6398 fi
6399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6400
6401 fi
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6403 $as_echo "$lt_cv_ar_at_file" >&6; }
6404
6405 if test "x$lt_cv_ar_at_file" = xno; then
6406   archiver_list_spec=
6407 else
6408   archiver_list_spec=$lt_cv_ar_at_file
6409 fi
6410
6411
6412
6413
6414
6415
6416
6417 if test -n "$ac_tool_prefix"; then
6418   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6419 set dummy ${ac_tool_prefix}strip; ac_word=$2
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6421 $as_echo_n "checking for $ac_word... " >&6; }
6422 if ${ac_cv_prog_STRIP+:} false; then :
6423   $as_echo_n "(cached) " >&6
6424 else
6425   if test -n "$STRIP"; then
6426   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6427 else
6428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6429 for as_dir in $PATH
6430 do
6431   IFS=$as_save_IFS
6432   test -z "$as_dir" && as_dir=.
6433     for ac_exec_ext in '' $ac_executable_extensions; do
6434   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6435     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6436     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6437     break 2
6438   fi
6439 done
6440   done
6441 IFS=$as_save_IFS
6442
6443 fi
6444 fi
6445 STRIP=$ac_cv_prog_STRIP
6446 if test -n "$STRIP"; then
6447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6448 $as_echo "$STRIP" >&6; }
6449 else
6450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6451 $as_echo "no" >&6; }
6452 fi
6453
6454
6455 fi
6456 if test -z "$ac_cv_prog_STRIP"; then
6457   ac_ct_STRIP=$STRIP
6458   # Extract the first word of "strip", so it can be a program name with args.
6459 set dummy strip; ac_word=$2
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6461 $as_echo_n "checking for $ac_word... " >&6; }
6462 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6463   $as_echo_n "(cached) " >&6
6464 else
6465   if test -n "$ac_ct_STRIP"; then
6466   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6467 else
6468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6469 for as_dir in $PATH
6470 do
6471   IFS=$as_save_IFS
6472   test -z "$as_dir" && as_dir=.
6473     for ac_exec_ext in '' $ac_executable_extensions; do
6474   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6475     ac_cv_prog_ac_ct_STRIP="strip"
6476     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6477     break 2
6478   fi
6479 done
6480   done
6481 IFS=$as_save_IFS
6482
6483 fi
6484 fi
6485 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6486 if test -n "$ac_ct_STRIP"; then
6487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6488 $as_echo "$ac_ct_STRIP" >&6; }
6489 else
6490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6491 $as_echo "no" >&6; }
6492 fi
6493
6494   if test "x$ac_ct_STRIP" = x; then
6495     STRIP=":"
6496   else
6497     case $cross_compiling:$ac_tool_warned in
6498 yes:)
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6500 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6501 ac_tool_warned=yes ;;
6502 esac
6503     STRIP=$ac_ct_STRIP
6504   fi
6505 else
6506   STRIP="$ac_cv_prog_STRIP"
6507 fi
6508
6509 test -z "$STRIP" && STRIP=:
6510
6511
6512
6513
6514
6515
6516 if test -n "$ac_tool_prefix"; then
6517   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6518 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6520 $as_echo_n "checking for $ac_word... " >&6; }
6521 if ${ac_cv_prog_RANLIB+:} false; then :
6522   $as_echo_n "(cached) " >&6
6523 else
6524   if test -n "$RANLIB"; then
6525   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6526 else
6527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6528 for as_dir in $PATH
6529 do
6530   IFS=$as_save_IFS
6531   test -z "$as_dir" && as_dir=.
6532     for ac_exec_ext in '' $ac_executable_extensions; do
6533   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6534     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6535     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6536     break 2
6537   fi
6538 done
6539   done
6540 IFS=$as_save_IFS
6541
6542 fi
6543 fi
6544 RANLIB=$ac_cv_prog_RANLIB
6545 if test -n "$RANLIB"; then
6546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6547 $as_echo "$RANLIB" >&6; }
6548 else
6549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6550 $as_echo "no" >&6; }
6551 fi
6552
6553
6554 fi
6555 if test -z "$ac_cv_prog_RANLIB"; then
6556   ac_ct_RANLIB=$RANLIB
6557   # Extract the first word of "ranlib", so it can be a program name with args.
6558 set dummy ranlib; ac_word=$2
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6560 $as_echo_n "checking for $ac_word... " >&6; }
6561 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6562   $as_echo_n "(cached) " >&6
6563 else
6564   if test -n "$ac_ct_RANLIB"; then
6565   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6566 else
6567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6568 for as_dir in $PATH
6569 do
6570   IFS=$as_save_IFS
6571   test -z "$as_dir" && as_dir=.
6572     for ac_exec_ext in '' $ac_executable_extensions; do
6573   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6574     ac_cv_prog_ac_ct_RANLIB="ranlib"
6575     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6576     break 2
6577   fi
6578 done
6579   done
6580 IFS=$as_save_IFS
6581
6582 fi
6583 fi
6584 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6585 if test -n "$ac_ct_RANLIB"; then
6586   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6587 $as_echo "$ac_ct_RANLIB" >&6; }
6588 else
6589   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6590 $as_echo "no" >&6; }
6591 fi
6592
6593   if test "x$ac_ct_RANLIB" = x; then
6594     RANLIB=":"
6595   else
6596     case $cross_compiling:$ac_tool_warned in
6597 yes:)
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6599 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6600 ac_tool_warned=yes ;;
6601 esac
6602     RANLIB=$ac_ct_RANLIB
6603   fi
6604 else
6605   RANLIB="$ac_cv_prog_RANLIB"
6606 fi
6607
6608 test -z "$RANLIB" && RANLIB=:
6609
6610
6611
6612
6613
6614
6615 # Determine commands to create old-style static archives.
6616 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6617 old_postinstall_cmds='chmod 644 $oldlib'
6618 old_postuninstall_cmds=
6619
6620 if test -n "$RANLIB"; then
6621   case $host_os in
6622   openbsd*)
6623     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6624     ;;
6625   *)
6626     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6627     ;;
6628   esac
6629   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6630 fi
6631
6632 case $host_os in
6633   darwin*)
6634     lock_old_archive_extraction=yes ;;
6635   *)
6636     lock_old_archive_extraction=no ;;
6637 esac
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677 # If no C compiler was specified, use CC.
6678 LTCC=${LTCC-"$CC"}
6679
6680 # If no C compiler flags were specified, use CFLAGS.
6681 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6682
6683 # Allow CC to be a program name with arguments.
6684 compiler=$CC
6685
6686
6687 # Check for command to grab the raw symbol name followed by C symbol from nm.
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6689 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6690 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6691   $as_echo_n "(cached) " >&6
6692 else
6693
6694 # These are sane defaults that work on at least a few old systems.
6695 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6696
6697 # Character class describing NM global symbol codes.
6698 symcode='[BCDEGRST]'
6699
6700 # Regexp to match symbols that can be accessed directly from C.
6701 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6702
6703 # Define system-specific variables.
6704 case $host_os in
6705 aix*)
6706   symcode='[BCDT]'
6707   ;;
6708 cygwin* | mingw* | pw32* | cegcc*)
6709   symcode='[ABCDGISTW]'
6710   ;;
6711 hpux*)
6712   if test "$host_cpu" = ia64; then
6713     symcode='[ABCDEGRST]'
6714   fi
6715   ;;
6716 irix* | nonstopux*)
6717   symcode='[BCDEGRST]'
6718   ;;
6719 osf*)
6720   symcode='[BCDEGQRST]'
6721   ;;
6722 solaris*)
6723   symcode='[BDRT]'
6724   ;;
6725 sco3.2v5*)
6726   symcode='[DT]'
6727   ;;
6728 sysv4.2uw2*)
6729   symcode='[DT]'
6730   ;;
6731 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6732   symcode='[ABDT]'
6733   ;;
6734 sysv4)
6735   symcode='[DFNSTU]'
6736   ;;
6737 esac
6738
6739 # If we're using GNU nm, then use its standard symbol codes.
6740 case `$NM -V 2>&1` in
6741 *GNU* | *'with BFD'*)
6742   symcode='[ABCDGIRSTW]' ;;
6743 esac
6744
6745 # Transform an extracted symbol line into a proper C declaration.
6746 # Some systems (esp. on ia64) link data and code symbols differently,
6747 # so use this general approach.
6748 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6749
6750 # Transform an extracted symbol line into symbol name and symbol address
6751 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6752 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'"
6753
6754 # Handle CRLF in mingw tool chain
6755 opt_cr=
6756 case $build_os in
6757 mingw*)
6758   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6759   ;;
6760 esac
6761
6762 # Try without a prefix underscore, then with it.
6763 for ac_symprfx in "" "_"; do
6764
6765   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6766   symxfrm="\\1 $ac_symprfx\\2 \\2"
6767
6768   # Write the raw and C identifiers.
6769   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6770     # Fake it for dumpbin and say T for any non-static function
6771     # and D for any global variable.
6772     # Also find C++ and __fastcall symbols from MSVC++,
6773     # which start with @ or ?.
6774     lt_cv_sys_global_symbol_pipe="$AWK '"\
6775 "     {last_section=section; section=\$ 3};"\
6776 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6777 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6778 "     \$ 0!~/External *\|/{next};"\
6779 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6780 "     {if(hide[section]) next};"\
6781 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6782 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6783 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6784 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6785 "     ' prfx=^$ac_symprfx"
6786   else
6787     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6788   fi
6789   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6790
6791   # Check to see that the pipe works correctly.
6792   pipe_works=no
6793
6794   rm -f conftest*
6795   cat > conftest.$ac_ext <<_LT_EOF
6796 #ifdef __cplusplus
6797 extern "C" {
6798 #endif
6799 char nm_test_var;
6800 void nm_test_func(void);
6801 void nm_test_func(void){}
6802 #ifdef __cplusplus
6803 }
6804 #endif
6805 int main(){nm_test_var='a';nm_test_func();return(0);}
6806 _LT_EOF
6807
6808   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6809   (eval $ac_compile) 2>&5
6810   ac_status=$?
6811   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6812   test $ac_status = 0; }; then
6813     # Now try to grab the symbols.
6814     nlist=conftest.nm
6815     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6816   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6817   ac_status=$?
6818   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6819   test $ac_status = 0; } && test -s "$nlist"; then
6820       # Try sorting and uniquifying the output.
6821       if sort "$nlist" | uniq > "$nlist"T; then
6822         mv -f "$nlist"T "$nlist"
6823       else
6824         rm -f "$nlist"T
6825       fi
6826
6827       # Make sure that we snagged all the symbols we need.
6828       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6829         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6830           cat <<_LT_EOF > conftest.$ac_ext
6831 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6832 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6833 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6834    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6835 # define LT_DLSYM_CONST
6836 #elif defined(__osf__)
6837 /* This system does not cope well with relocations in const data.  */
6838 # define LT_DLSYM_CONST
6839 #else
6840 # define LT_DLSYM_CONST const
6841 #endif
6842
6843 #ifdef __cplusplus
6844 extern "C" {
6845 #endif
6846
6847 _LT_EOF
6848           # Now generate the symbol file.
6849           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6850
6851           cat <<_LT_EOF >> conftest.$ac_ext
6852
6853 /* The mapping between symbol names and symbols.  */
6854 LT_DLSYM_CONST struct {
6855   const char *name;
6856   void       *address;
6857 }
6858 lt__PROGRAM__LTX_preloaded_symbols[] =
6859 {
6860   { "@PROGRAM@", (void *) 0 },
6861 _LT_EOF
6862           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6863           cat <<\_LT_EOF >> conftest.$ac_ext
6864   {0, (void *) 0}
6865 };
6866
6867 /* This works around a problem in FreeBSD linker */
6868 #ifdef FREEBSD_WORKAROUND
6869 static const void *lt_preloaded_setup() {
6870   return lt__PROGRAM__LTX_preloaded_symbols;
6871 }
6872 #endif
6873
6874 #ifdef __cplusplus
6875 }
6876 #endif
6877 _LT_EOF
6878           # Now try linking the two files.
6879           mv conftest.$ac_objext conftstm.$ac_objext
6880           lt_globsym_save_LIBS=$LIBS
6881           lt_globsym_save_CFLAGS=$CFLAGS
6882           LIBS="conftstm.$ac_objext"
6883           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6884           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6885   (eval $ac_link) 2>&5
6886   ac_status=$?
6887   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6888   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6889             pipe_works=yes
6890           fi
6891           LIBS=$lt_globsym_save_LIBS
6892           CFLAGS=$lt_globsym_save_CFLAGS
6893         else
6894           echo "cannot find nm_test_func in $nlist" >&5
6895         fi
6896       else
6897         echo "cannot find nm_test_var in $nlist" >&5
6898       fi
6899     else
6900       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6901     fi
6902   else
6903     echo "$progname: failed program was:" >&5
6904     cat conftest.$ac_ext >&5
6905   fi
6906   rm -rf conftest* conftst*
6907
6908   # Do not use the global_symbol_pipe unless it works.
6909   if test "$pipe_works" = yes; then
6910     break
6911   else
6912     lt_cv_sys_global_symbol_pipe=
6913   fi
6914 done
6915
6916 fi
6917
6918 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6919   lt_cv_sys_global_symbol_to_cdecl=
6920 fi
6921 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6923 $as_echo "failed" >&6; }
6924 else
6925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6926 $as_echo "ok" >&6; }
6927 fi
6928
6929 # Response file support.
6930 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6931   nm_file_list_spec='@'
6932 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6933   nm_file_list_spec='@'
6934 fi
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6963 $as_echo_n "checking for sysroot... " >&6; }
6964
6965 # Check whether --with-sysroot was given.
6966 if test "${with_sysroot+set}" = set; then :
6967   withval=$with_sysroot;
6968 else
6969   with_sysroot=no
6970 fi
6971
6972
6973 lt_sysroot=
6974 case ${with_sysroot} in #(
6975  yes)
6976    if test "$GCC" = yes; then
6977      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6978    fi
6979    ;; #(
6980  /*)
6981    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6982    ;; #(
6983  no|'')
6984    ;; #(
6985  *)
6986    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6987 $as_echo "${with_sysroot}" >&6; }
6988    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6989    ;;
6990 esac
6991
6992  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6993 $as_echo "${lt_sysroot:-no}" >&6; }
6994
6995
6996
6997
6998
6999 # Check whether --enable-libtool-lock was given.
7000 if test "${enable_libtool_lock+set}" = set; then :
7001   enableval=$enable_libtool_lock;
7002 fi
7003
7004 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7005
7006 # Some flags need to be propagated to the compiler or linker for good
7007 # libtool support.
7008 case $host in
7009 ia64-*-hpux*)
7010   # Find out which ABI we are using.
7011   echo 'int i;' > conftest.$ac_ext
7012   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7013   (eval $ac_compile) 2>&5
7014   ac_status=$?
7015   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7016   test $ac_status = 0; }; then
7017     case `/usr/bin/file conftest.$ac_objext` in
7018       *ELF-32*)
7019         HPUX_IA64_MODE="32"
7020         ;;
7021       *ELF-64*)
7022         HPUX_IA64_MODE="64"
7023         ;;
7024     esac
7025   fi
7026   rm -rf conftest*
7027   ;;
7028 *-*-irix6*)
7029   # Find out which ABI we are using.
7030   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7031   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7032   (eval $ac_compile) 2>&5
7033   ac_status=$?
7034   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7035   test $ac_status = 0; }; then
7036     if test "$lt_cv_prog_gnu_ld" = yes; then
7037       case `/usr/bin/file conftest.$ac_objext` in
7038         *32-bit*)
7039           LD="${LD-ld} -melf32bsmip"
7040           ;;
7041         *N32*)
7042           LD="${LD-ld} -melf32bmipn32"
7043           ;;
7044         *64-bit*)
7045           LD="${LD-ld} -melf64bmip"
7046         ;;
7047       esac
7048     else
7049       case `/usr/bin/file conftest.$ac_objext` in
7050         *32-bit*)
7051           LD="${LD-ld} -32"
7052           ;;
7053         *N32*)
7054           LD="${LD-ld} -n32"
7055           ;;
7056         *64-bit*)
7057           LD="${LD-ld} -64"
7058           ;;
7059       esac
7060     fi
7061   fi
7062   rm -rf conftest*
7063   ;;
7064
7065 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7066 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7067   # Find out which ABI we are using.
7068   echo 'int i;' > conftest.$ac_ext
7069   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7070   (eval $ac_compile) 2>&5
7071   ac_status=$?
7072   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7073   test $ac_status = 0; }; then
7074     case `/usr/bin/file conftest.o` in
7075       *32-bit*)
7076         case $host in
7077           x86_64-*kfreebsd*-gnu)
7078             LD="${LD-ld} -m elf_i386_fbsd"
7079             ;;
7080           x86_64-*linux*)
7081             LD="${LD-ld} -m elf_i386"
7082             ;;
7083           ppc64-*linux*|powerpc64-*linux*)
7084             LD="${LD-ld} -m elf32ppclinux"
7085             ;;
7086           s390x-*linux*)
7087             LD="${LD-ld} -m elf_s390"
7088             ;;
7089           sparc64-*linux*)
7090             LD="${LD-ld} -m elf32_sparc"
7091             ;;
7092         esac
7093         ;;
7094       *64-bit*)
7095         case $host in
7096           x86_64-*kfreebsd*-gnu)
7097             LD="${LD-ld} -m elf_x86_64_fbsd"
7098             ;;
7099           x86_64-*linux*)
7100             LD="${LD-ld} -m elf_x86_64"
7101             ;;
7102           ppc*-*linux*|powerpc*-*linux*)
7103             LD="${LD-ld} -m elf64ppc"
7104             ;;
7105           s390*-*linux*|s390*-*tpf*)
7106             LD="${LD-ld} -m elf64_s390"
7107             ;;
7108           sparc*-*linux*)
7109             LD="${LD-ld} -m elf64_sparc"
7110             ;;
7111         esac
7112         ;;
7113     esac
7114   fi
7115   rm -rf conftest*
7116   ;;
7117
7118 *-*-sco3.2v5*)
7119   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7120   SAVE_CFLAGS="$CFLAGS"
7121   CFLAGS="$CFLAGS -belf"
7122   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7123 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7124 if ${lt_cv_cc_needs_belf+:} false; then :
7125   $as_echo_n "(cached) " >&6
7126 else
7127   ac_ext=c
7128 ac_cpp='$CPP $CPPFLAGS'
7129 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7130 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7131 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7132
7133      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7134 /* end confdefs.h.  */
7135
7136 int
7137 main ()
7138 {
7139
7140   ;
7141   return 0;
7142 }
7143 _ACEOF
7144 if ac_fn_c_try_link "$LINENO"; then :
7145   lt_cv_cc_needs_belf=yes
7146 else
7147   lt_cv_cc_needs_belf=no
7148 fi
7149 rm -f core conftest.err conftest.$ac_objext \
7150     conftest$ac_exeext conftest.$ac_ext
7151      ac_ext=c
7152 ac_cpp='$CPP $CPPFLAGS'
7153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7156
7157 fi
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7159 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7160   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7161     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7162     CFLAGS="$SAVE_CFLAGS"
7163   fi
7164   ;;
7165 *-*solaris*)
7166   # Find out which ABI we are using.
7167   echo 'int i;' > conftest.$ac_ext
7168   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7169   (eval $ac_compile) 2>&5
7170   ac_status=$?
7171   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7172   test $ac_status = 0; }; then
7173     case `/usr/bin/file conftest.o` in
7174     *64-bit*)
7175       case $lt_cv_prog_gnu_ld in
7176       yes*)
7177         case $host in
7178         i?86-*-solaris*)
7179           LD="${LD-ld} -m elf_x86_64"
7180           ;;
7181         sparc*-*-solaris*)
7182           LD="${LD-ld} -m elf64_sparc"
7183           ;;
7184         esac
7185         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7186         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7187           LD="${LD-ld}_sol2"
7188         fi
7189         ;;
7190       *)
7191         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7192           LD="${LD-ld} -64"
7193         fi
7194         ;;
7195       esac
7196       ;;
7197     esac
7198   fi
7199   rm -rf conftest*
7200   ;;
7201 esac
7202
7203 need_locks="$enable_libtool_lock"
7204
7205 if test -n "$ac_tool_prefix"; then
7206   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7207 set dummy ${ac_tool_prefix}mt; ac_word=$2
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7209 $as_echo_n "checking for $ac_word... " >&6; }
7210 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7211   $as_echo_n "(cached) " >&6
7212 else
7213   if test -n "$MANIFEST_TOOL"; then
7214   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7215 else
7216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7217 for as_dir in $PATH
7218 do
7219   IFS=$as_save_IFS
7220   test -z "$as_dir" && as_dir=.
7221     for ac_exec_ext in '' $ac_executable_extensions; do
7222   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7223     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7224     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7225     break 2
7226   fi
7227 done
7228   done
7229 IFS=$as_save_IFS
7230
7231 fi
7232 fi
7233 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7234 if test -n "$MANIFEST_TOOL"; then
7235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7236 $as_echo "$MANIFEST_TOOL" >&6; }
7237 else
7238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7239 $as_echo "no" >&6; }
7240 fi
7241
7242
7243 fi
7244 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7245   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7246   # Extract the first word of "mt", so it can be a program name with args.
7247 set dummy mt; ac_word=$2
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7249 $as_echo_n "checking for $ac_word... " >&6; }
7250 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7251   $as_echo_n "(cached) " >&6
7252 else
7253   if test -n "$ac_ct_MANIFEST_TOOL"; then
7254   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7255 else
7256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7257 for as_dir in $PATH
7258 do
7259   IFS=$as_save_IFS
7260   test -z "$as_dir" && as_dir=.
7261     for ac_exec_ext in '' $ac_executable_extensions; do
7262   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7263     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7264     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7265     break 2
7266   fi
7267 done
7268   done
7269 IFS=$as_save_IFS
7270
7271 fi
7272 fi
7273 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7274 if test -n "$ac_ct_MANIFEST_TOOL"; then
7275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7276 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7277 else
7278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7279 $as_echo "no" >&6; }
7280 fi
7281
7282   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7283     MANIFEST_TOOL=":"
7284   else
7285     case $cross_compiling:$ac_tool_warned in
7286 yes:)
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7288 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7289 ac_tool_warned=yes ;;
7290 esac
7291     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7292   fi
7293 else
7294   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7295 fi
7296
7297 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7299 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7300 if ${lt_cv_path_mainfest_tool+:} false; then :
7301   $as_echo_n "(cached) " >&6
7302 else
7303   lt_cv_path_mainfest_tool=no
7304   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7305   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7306   cat conftest.err >&5
7307   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7308     lt_cv_path_mainfest_tool=yes
7309   fi
7310   rm -f conftest*
7311 fi
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7313 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7314 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7315   MANIFEST_TOOL=:
7316 fi
7317
7318
7319
7320
7321
7322
7323   case $host_os in
7324     rhapsody* | darwin*)
7325     if test -n "$ac_tool_prefix"; then
7326   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7327 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7329 $as_echo_n "checking for $ac_word... " >&6; }
7330 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7331   $as_echo_n "(cached) " >&6
7332 else
7333   if test -n "$DSYMUTIL"; then
7334   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7335 else
7336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7337 for as_dir in $PATH
7338 do
7339   IFS=$as_save_IFS
7340   test -z "$as_dir" && as_dir=.
7341     for ac_exec_ext in '' $ac_executable_extensions; do
7342   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7343     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7344     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7345     break 2
7346   fi
7347 done
7348   done
7349 IFS=$as_save_IFS
7350
7351 fi
7352 fi
7353 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7354 if test -n "$DSYMUTIL"; then
7355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7356 $as_echo "$DSYMUTIL" >&6; }
7357 else
7358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7359 $as_echo "no" >&6; }
7360 fi
7361
7362
7363 fi
7364 if test -z "$ac_cv_prog_DSYMUTIL"; then
7365   ac_ct_DSYMUTIL=$DSYMUTIL
7366   # Extract the first word of "dsymutil", so it can be a program name with args.
7367 set dummy dsymutil; ac_word=$2
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7369 $as_echo_n "checking for $ac_word... " >&6; }
7370 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7371   $as_echo_n "(cached) " >&6
7372 else
7373   if test -n "$ac_ct_DSYMUTIL"; then
7374   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7375 else
7376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7377 for as_dir in $PATH
7378 do
7379   IFS=$as_save_IFS
7380   test -z "$as_dir" && as_dir=.
7381     for ac_exec_ext in '' $ac_executable_extensions; do
7382   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7383     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7384     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7385     break 2
7386   fi
7387 done
7388   done
7389 IFS=$as_save_IFS
7390
7391 fi
7392 fi
7393 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7394 if test -n "$ac_ct_DSYMUTIL"; then
7395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7396 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7397 else
7398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7399 $as_echo "no" >&6; }
7400 fi
7401
7402   if test "x$ac_ct_DSYMUTIL" = x; then
7403     DSYMUTIL=":"
7404   else
7405     case $cross_compiling:$ac_tool_warned in
7406 yes:)
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7408 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7409 ac_tool_warned=yes ;;
7410 esac
7411     DSYMUTIL=$ac_ct_DSYMUTIL
7412   fi
7413 else
7414   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7415 fi
7416
7417     if test -n "$ac_tool_prefix"; then
7418   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7419 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7421 $as_echo_n "checking for $ac_word... " >&6; }
7422 if ${ac_cv_prog_NMEDIT+:} false; then :
7423   $as_echo_n "(cached) " >&6
7424 else
7425   if test -n "$NMEDIT"; then
7426   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7427 else
7428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7429 for as_dir in $PATH
7430 do
7431   IFS=$as_save_IFS
7432   test -z "$as_dir" && as_dir=.
7433     for ac_exec_ext in '' $ac_executable_extensions; do
7434   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7435     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7436     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7437     break 2
7438   fi
7439 done
7440   done
7441 IFS=$as_save_IFS
7442
7443 fi
7444 fi
7445 NMEDIT=$ac_cv_prog_NMEDIT
7446 if test -n "$NMEDIT"; then
7447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7448 $as_echo "$NMEDIT" >&6; }
7449 else
7450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7451 $as_echo "no" >&6; }
7452 fi
7453
7454
7455 fi
7456 if test -z "$ac_cv_prog_NMEDIT"; then
7457   ac_ct_NMEDIT=$NMEDIT
7458   # Extract the first word of "nmedit", so it can be a program name with args.
7459 set dummy nmedit; ac_word=$2
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7461 $as_echo_n "checking for $ac_word... " >&6; }
7462 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7463   $as_echo_n "(cached) " >&6
7464 else
7465   if test -n "$ac_ct_NMEDIT"; then
7466   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7467 else
7468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7469 for as_dir in $PATH
7470 do
7471   IFS=$as_save_IFS
7472   test -z "$as_dir" && as_dir=.
7473     for ac_exec_ext in '' $ac_executable_extensions; do
7474   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7475     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7476     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7477     break 2
7478   fi
7479 done
7480   done
7481 IFS=$as_save_IFS
7482
7483 fi
7484 fi
7485 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7486 if test -n "$ac_ct_NMEDIT"; then
7487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7488 $as_echo "$ac_ct_NMEDIT" >&6; }
7489 else
7490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7491 $as_echo "no" >&6; }
7492 fi
7493
7494   if test "x$ac_ct_NMEDIT" = x; then
7495     NMEDIT=":"
7496   else
7497     case $cross_compiling:$ac_tool_warned in
7498 yes:)
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7500 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7501 ac_tool_warned=yes ;;
7502 esac
7503     NMEDIT=$ac_ct_NMEDIT
7504   fi
7505 else
7506   NMEDIT="$ac_cv_prog_NMEDIT"
7507 fi
7508
7509     if test -n "$ac_tool_prefix"; then
7510   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7511 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7513 $as_echo_n "checking for $ac_word... " >&6; }
7514 if ${ac_cv_prog_LIPO+:} false; then :
7515   $as_echo_n "(cached) " >&6
7516 else
7517   if test -n "$LIPO"; then
7518   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7519 else
7520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7521 for as_dir in $PATH
7522 do
7523   IFS=$as_save_IFS
7524   test -z "$as_dir" && as_dir=.
7525     for ac_exec_ext in '' $ac_executable_extensions; do
7526   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7527     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7528     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7529     break 2
7530   fi
7531 done
7532   done
7533 IFS=$as_save_IFS
7534
7535 fi
7536 fi
7537 LIPO=$ac_cv_prog_LIPO
7538 if test -n "$LIPO"; then
7539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7540 $as_echo "$LIPO" >&6; }
7541 else
7542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7543 $as_echo "no" >&6; }
7544 fi
7545
7546
7547 fi
7548 if test -z "$ac_cv_prog_LIPO"; then
7549   ac_ct_LIPO=$LIPO
7550   # Extract the first word of "lipo", so it can be a program name with args.
7551 set dummy lipo; ac_word=$2
7552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7553 $as_echo_n "checking for $ac_word... " >&6; }
7554 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7555   $as_echo_n "(cached) " >&6
7556 else
7557   if test -n "$ac_ct_LIPO"; then
7558   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7559 else
7560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7561 for as_dir in $PATH
7562 do
7563   IFS=$as_save_IFS
7564   test -z "$as_dir" && as_dir=.
7565     for ac_exec_ext in '' $ac_executable_extensions; do
7566   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7567     ac_cv_prog_ac_ct_LIPO="lipo"
7568     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7569     break 2
7570   fi
7571 done
7572   done
7573 IFS=$as_save_IFS
7574
7575 fi
7576 fi
7577 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7578 if test -n "$ac_ct_LIPO"; then
7579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7580 $as_echo "$ac_ct_LIPO" >&6; }
7581 else
7582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7583 $as_echo "no" >&6; }
7584 fi
7585
7586   if test "x$ac_ct_LIPO" = x; then
7587     LIPO=":"
7588   else
7589     case $cross_compiling:$ac_tool_warned in
7590 yes:)
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7592 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7593 ac_tool_warned=yes ;;
7594 esac
7595     LIPO=$ac_ct_LIPO
7596   fi
7597 else
7598   LIPO="$ac_cv_prog_LIPO"
7599 fi
7600
7601     if test -n "$ac_tool_prefix"; then
7602   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7603 set dummy ${ac_tool_prefix}otool; ac_word=$2
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7605 $as_echo_n "checking for $ac_word... " >&6; }
7606 if ${ac_cv_prog_OTOOL+:} false; then :
7607   $as_echo_n "(cached) " >&6
7608 else
7609   if test -n "$OTOOL"; then
7610   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7611 else
7612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7613 for as_dir in $PATH
7614 do
7615   IFS=$as_save_IFS
7616   test -z "$as_dir" && as_dir=.
7617     for ac_exec_ext in '' $ac_executable_extensions; do
7618   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7619     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7620     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7621     break 2
7622   fi
7623 done
7624   done
7625 IFS=$as_save_IFS
7626
7627 fi
7628 fi
7629 OTOOL=$ac_cv_prog_OTOOL
7630 if test -n "$OTOOL"; then
7631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7632 $as_echo "$OTOOL" >&6; }
7633 else
7634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7635 $as_echo "no" >&6; }
7636 fi
7637
7638
7639 fi
7640 if test -z "$ac_cv_prog_OTOOL"; then
7641   ac_ct_OTOOL=$OTOOL
7642   # Extract the first word of "otool", so it can be a program name with args.
7643 set dummy otool; ac_word=$2
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7645 $as_echo_n "checking for $ac_word... " >&6; }
7646 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7647   $as_echo_n "(cached) " >&6
7648 else
7649   if test -n "$ac_ct_OTOOL"; then
7650   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7651 else
7652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7653 for as_dir in $PATH
7654 do
7655   IFS=$as_save_IFS
7656   test -z "$as_dir" && as_dir=.
7657     for ac_exec_ext in '' $ac_executable_extensions; do
7658   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7659     ac_cv_prog_ac_ct_OTOOL="otool"
7660     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7661     break 2
7662   fi
7663 done
7664   done
7665 IFS=$as_save_IFS
7666
7667 fi
7668 fi
7669 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7670 if test -n "$ac_ct_OTOOL"; then
7671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7672 $as_echo "$ac_ct_OTOOL" >&6; }
7673 else
7674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7675 $as_echo "no" >&6; }
7676 fi
7677
7678   if test "x$ac_ct_OTOOL" = x; then
7679     OTOOL=":"
7680   else
7681     case $cross_compiling:$ac_tool_warned in
7682 yes:)
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7684 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7685 ac_tool_warned=yes ;;
7686 esac
7687     OTOOL=$ac_ct_OTOOL
7688   fi
7689 else
7690   OTOOL="$ac_cv_prog_OTOOL"
7691 fi
7692
7693     if test -n "$ac_tool_prefix"; then
7694   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7695 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7697 $as_echo_n "checking for $ac_word... " >&6; }
7698 if ${ac_cv_prog_OTOOL64+:} false; then :
7699   $as_echo_n "(cached) " >&6
7700 else
7701   if test -n "$OTOOL64"; then
7702   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7703 else
7704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7705 for as_dir in $PATH
7706 do
7707   IFS=$as_save_IFS
7708   test -z "$as_dir" && as_dir=.
7709     for ac_exec_ext in '' $ac_executable_extensions; do
7710   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7711     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7712     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7713     break 2
7714   fi
7715 done
7716   done
7717 IFS=$as_save_IFS
7718
7719 fi
7720 fi
7721 OTOOL64=$ac_cv_prog_OTOOL64
7722 if test -n "$OTOOL64"; then
7723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7724 $as_echo "$OTOOL64" >&6; }
7725 else
7726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7727 $as_echo "no" >&6; }
7728 fi
7729
7730
7731 fi
7732 if test -z "$ac_cv_prog_OTOOL64"; then
7733   ac_ct_OTOOL64=$OTOOL64
7734   # Extract the first word of "otool64", so it can be a program name with args.
7735 set dummy otool64; ac_word=$2
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7737 $as_echo_n "checking for $ac_word... " >&6; }
7738 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7739   $as_echo_n "(cached) " >&6
7740 else
7741   if test -n "$ac_ct_OTOOL64"; then
7742   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7743 else
7744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7745 for as_dir in $PATH
7746 do
7747   IFS=$as_save_IFS
7748   test -z "$as_dir" && as_dir=.
7749     for ac_exec_ext in '' $ac_executable_extensions; do
7750   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7751     ac_cv_prog_ac_ct_OTOOL64="otool64"
7752     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7753     break 2
7754   fi
7755 done
7756   done
7757 IFS=$as_save_IFS
7758
7759 fi
7760 fi
7761 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7762 if test -n "$ac_ct_OTOOL64"; then
7763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7764 $as_echo "$ac_ct_OTOOL64" >&6; }
7765 else
7766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7767 $as_echo "no" >&6; }
7768 fi
7769
7770   if test "x$ac_ct_OTOOL64" = x; then
7771     OTOOL64=":"
7772   else
7773     case $cross_compiling:$ac_tool_warned in
7774 yes:)
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7776 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7777 ac_tool_warned=yes ;;
7778 esac
7779     OTOOL64=$ac_ct_OTOOL64
7780   fi
7781 else
7782   OTOOL64="$ac_cv_prog_OTOOL64"
7783 fi
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7812 $as_echo_n "checking for -single_module linker flag... " >&6; }
7813 if ${lt_cv_apple_cc_single_mod+:} false; then :
7814   $as_echo_n "(cached) " >&6
7815 else
7816   lt_cv_apple_cc_single_mod=no
7817       if test -z "${LT_MULTI_MODULE}"; then
7818         # By default we will add the -single_module flag. You can override
7819         # by either setting the environment variable LT_MULTI_MODULE
7820         # non-empty at configure time, or by adding -multi_module to the
7821         # link flags.
7822         rm -rf libconftest.dylib*
7823         echo "int foo(void){return 1;}" > conftest.c
7824         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7825 -dynamiclib -Wl,-single_module conftest.c" >&5
7826         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7827           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7828         _lt_result=$?
7829         # If there is a non-empty error log, and "single_module"
7830         # appears in it, assume the flag caused a linker warning
7831         if test -s conftest.err && $GREP single_module conftest.err; then
7832           cat conftest.err >&5
7833         # Otherwise, if the output was created with a 0 exit code from
7834         # the compiler, it worked.
7835         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7836           lt_cv_apple_cc_single_mod=yes
7837         else
7838           cat conftest.err >&5
7839         fi
7840         rm -rf libconftest.dylib*
7841         rm -f conftest.*
7842       fi
7843 fi
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7845 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7846
7847     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7848 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7849 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7850   $as_echo_n "(cached) " >&6
7851 else
7852   lt_cv_ld_exported_symbols_list=no
7853       save_LDFLAGS=$LDFLAGS
7854       echo "_main" > conftest.sym
7855       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7856       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7857 /* end confdefs.h.  */
7858
7859 int
7860 main ()
7861 {
7862
7863   ;
7864   return 0;
7865 }
7866 _ACEOF
7867 if ac_fn_c_try_link "$LINENO"; then :
7868   lt_cv_ld_exported_symbols_list=yes
7869 else
7870   lt_cv_ld_exported_symbols_list=no
7871 fi
7872 rm -f core conftest.err conftest.$ac_objext \
7873     conftest$ac_exeext conftest.$ac_ext
7874         LDFLAGS="$save_LDFLAGS"
7875
7876 fi
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7878 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7879
7880     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7881 $as_echo_n "checking for -force_load linker flag... " >&6; }
7882 if ${lt_cv_ld_force_load+:} false; then :
7883   $as_echo_n "(cached) " >&6
7884 else
7885   lt_cv_ld_force_load=no
7886       cat > conftest.c << _LT_EOF
7887 int forced_loaded() { return 2;}
7888 _LT_EOF
7889       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7890       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7891       echo "$AR cru libconftest.a conftest.o" >&5
7892       $AR cru libconftest.a conftest.o 2>&5
7893       echo "$RANLIB libconftest.a" >&5
7894       $RANLIB libconftest.a 2>&5
7895       cat > conftest.c << _LT_EOF
7896 int main() { return 0;}
7897 _LT_EOF
7898       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7899       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7900       _lt_result=$?
7901       if test -s conftest.err && $GREP force_load conftest.err; then
7902         cat conftest.err >&5
7903       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7904         lt_cv_ld_force_load=yes
7905       else
7906         cat conftest.err >&5
7907       fi
7908         rm -f conftest.err libconftest.a conftest conftest.c
7909         rm -rf conftest.dSYM
7910
7911 fi
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7913 $as_echo "$lt_cv_ld_force_load" >&6; }
7914     case $host_os in
7915     rhapsody* | darwin1.[012])
7916       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7917     darwin1.*)
7918       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7919     darwin*) # darwin 5.x on
7920       # if running on 10.5 or later, the deployment target defaults
7921       # to the OS version, if on x86, and 10.4, the deployment
7922       # target defaults to 10.4. Don't you love it?
7923       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7924         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7925           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7926         10.[012]*)
7927           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7928         10.*)
7929           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7930       esac
7931     ;;
7932   esac
7933     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7934       _lt_dar_single_mod='$single_module'
7935     fi
7936     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7937       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7938     else
7939       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7940     fi
7941     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7942       _lt_dsymutil='~$DSYMUTIL $lib || :'
7943     else
7944       _lt_dsymutil=
7945     fi
7946     ;;
7947   esac
7948
7949 for ac_header in dlfcn.h
7950 do :
7951   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7952 "
7953 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7954   cat >>confdefs.h <<_ACEOF
7955 #define HAVE_DLFCN_H 1
7956 _ACEOF
7957
7958 fi
7959
7960 done
7961
7962
7963
7964
7965
7966 # Set options
7967
7968
7969
7970         enable_dlopen=no
7971
7972
7973   enable_win32_dll=no
7974
7975
7976             # Check whether --enable-shared was given.
7977 if test "${enable_shared+set}" = set; then :
7978   enableval=$enable_shared; p=${PACKAGE-default}
7979     case $enableval in
7980     yes) enable_shared=yes ;;
7981     no) enable_shared=no ;;
7982     *)
7983       enable_shared=no
7984       # Look at the argument we got.  We use all the common list separators.
7985       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7986       for pkg in $enableval; do
7987         IFS="$lt_save_ifs"
7988         if test "X$pkg" = "X$p"; then
7989           enable_shared=yes
7990         fi
7991       done
7992       IFS="$lt_save_ifs"
7993       ;;
7994     esac
7995 else
7996   enable_shared=yes
7997 fi
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007   # Check whether --enable-static was given.
8008 if test "${enable_static+set}" = set; then :
8009   enableval=$enable_static; p=${PACKAGE-default}
8010     case $enableval in
8011     yes) enable_static=yes ;;
8012     no) enable_static=no ;;
8013     *)
8014      enable_static=no
8015       # Look at the argument we got.  We use all the common list separators.
8016       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8017       for pkg in $enableval; do
8018         IFS="$lt_save_ifs"
8019         if test "X$pkg" = "X$p"; then
8020           enable_static=yes
8021         fi
8022       done
8023       IFS="$lt_save_ifs"
8024       ;;
8025     esac
8026 else
8027   enable_static=yes
8028 fi
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039 # Check whether --with-pic was given.
8040 if test "${with_pic+set}" = set; then :
8041   withval=$with_pic; lt_p=${PACKAGE-default}
8042     case $withval in
8043     yes|no) pic_mode=$withval ;;
8044     *)
8045       pic_mode=default
8046       # Look at the argument we got.  We use all the common list separators.
8047       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8048       for lt_pkg in $withval; do
8049         IFS="$lt_save_ifs"
8050         if test "X$lt_pkg" = "X$lt_p"; then
8051           pic_mode=yes
8052         fi
8053       done
8054       IFS="$lt_save_ifs"
8055       ;;
8056     esac
8057 else
8058   pic_mode=default
8059 fi
8060
8061
8062 test -z "$pic_mode" && pic_mode=default
8063
8064
8065
8066
8067
8068
8069
8070   # Check whether --enable-fast-install was given.
8071 if test "${enable_fast_install+set}" = set; then :
8072   enableval=$enable_fast_install; p=${PACKAGE-default}
8073     case $enableval in
8074     yes) enable_fast_install=yes ;;
8075     no) enable_fast_install=no ;;
8076     *)
8077       enable_fast_install=no
8078       # Look at the argument we got.  We use all the common list separators.
8079       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8080       for pkg in $enableval; do
8081         IFS="$lt_save_ifs"
8082         if test "X$pkg" = "X$p"; then
8083           enable_fast_install=yes
8084         fi
8085       done
8086       IFS="$lt_save_ifs"
8087       ;;
8088     esac
8089 else
8090   enable_fast_install=yes
8091 fi
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103 # This can be used to rebuild libtool when needed
8104 LIBTOOL_DEPS="$ltmain"
8105
8106 # Always use our own libtool.
8107 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138 test -z "$LN_S" && LN_S="ln -s"
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153 if test -n "${ZSH_VERSION+set}" ; then
8154    setopt NO_GLOB_SUBST
8155 fi
8156
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8158 $as_echo_n "checking for objdir... " >&6; }
8159 if ${lt_cv_objdir+:} false; then :
8160   $as_echo_n "(cached) " >&6
8161 else
8162   rm -f .libs 2>/dev/null
8163 mkdir .libs 2>/dev/null
8164 if test -d .libs; then
8165   lt_cv_objdir=.libs
8166 else
8167   # MS-DOS does not allow filenames that begin with a dot.
8168   lt_cv_objdir=_libs
8169 fi
8170 rmdir .libs 2>/dev/null
8171 fi
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8173 $as_echo "$lt_cv_objdir" >&6; }
8174 objdir=$lt_cv_objdir
8175
8176
8177
8178
8179
8180 cat >>confdefs.h <<_ACEOF
8181 #define LT_OBJDIR "$lt_cv_objdir/"
8182 _ACEOF
8183
8184
8185
8186
8187 case $host_os in
8188 aix3*)
8189   # AIX sometimes has problems with the GCC collect2 program.  For some
8190   # reason, if we set the COLLECT_NAMES environment variable, the problems
8191   # vanish in a puff of smoke.
8192   if test "X${COLLECT_NAMES+set}" != Xset; then
8193     COLLECT_NAMES=
8194     export COLLECT_NAMES
8195   fi
8196   ;;
8197 esac
8198
8199 # Global variables:
8200 ofile=libtool
8201 can_build_shared=yes
8202
8203 # All known linkers require a `.a' archive for static linking (except MSVC,
8204 # which needs '.lib').
8205 libext=a
8206
8207 with_gnu_ld="$lt_cv_prog_gnu_ld"
8208
8209 old_CC="$CC"
8210 old_CFLAGS="$CFLAGS"
8211
8212 # Set sane defaults for various variables
8213 test -z "$CC" && CC=cc
8214 test -z "$LTCC" && LTCC=$CC
8215 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8216 test -z "$LD" && LD=ld
8217 test -z "$ac_objext" && ac_objext=o
8218
8219 for cc_temp in $compiler""; do
8220   case $cc_temp in
8221     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8222     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8223     \-*) ;;
8224     *) break;;
8225   esac
8226 done
8227 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8228
8229
8230 # Only perform the check for file, if the check method requires it
8231 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8232 case $deplibs_check_method in
8233 file_magic*)
8234   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8235     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8236 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8237 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8238   $as_echo_n "(cached) " >&6
8239 else
8240   case $MAGIC_CMD in
8241 [\\/*] |  ?:[\\/]*)
8242   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8243   ;;
8244 *)
8245   lt_save_MAGIC_CMD="$MAGIC_CMD"
8246   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8247   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8248   for ac_dir in $ac_dummy; do
8249     IFS="$lt_save_ifs"
8250     test -z "$ac_dir" && ac_dir=.
8251     if test -f $ac_dir/${ac_tool_prefix}file; then
8252       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8253       if test -n "$file_magic_test_file"; then
8254         case $deplibs_check_method in
8255         "file_magic "*)
8256           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8257           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8258           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8259             $EGREP "$file_magic_regex" > /dev/null; then
8260             :
8261           else
8262             cat <<_LT_EOF 1>&2
8263
8264 *** Warning: the command libtool uses to detect shared libraries,
8265 *** $file_magic_cmd, produces output that libtool cannot recognize.
8266 *** The result is that libtool may fail to recognize shared libraries
8267 *** as such.  This will affect the creation of libtool libraries that
8268 *** depend on shared libraries, but programs linked with such libtool
8269 *** libraries will work regardless of this problem.  Nevertheless, you
8270 *** may want to report the problem to your system manager and/or to
8271 *** bug-libtool@gnu.org
8272
8273 _LT_EOF
8274           fi ;;
8275         esac
8276       fi
8277       break
8278     fi
8279   done
8280   IFS="$lt_save_ifs"
8281   MAGIC_CMD="$lt_save_MAGIC_CMD"
8282   ;;
8283 esac
8284 fi
8285
8286 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8287 if test -n "$MAGIC_CMD"; then
8288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8289 $as_echo "$MAGIC_CMD" >&6; }
8290 else
8291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8292 $as_echo "no" >&6; }
8293 fi
8294
8295
8296
8297
8298
8299 if test -z "$lt_cv_path_MAGIC_CMD"; then
8300   if test -n "$ac_tool_prefix"; then
8301     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8302 $as_echo_n "checking for file... " >&6; }
8303 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8304   $as_echo_n "(cached) " >&6
8305 else
8306   case $MAGIC_CMD in
8307 [\\/*] |  ?:[\\/]*)
8308   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8309   ;;
8310 *)
8311   lt_save_MAGIC_CMD="$MAGIC_CMD"
8312   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8313   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8314   for ac_dir in $ac_dummy; do
8315     IFS="$lt_save_ifs"
8316     test -z "$ac_dir" && ac_dir=.
8317     if test -f $ac_dir/file; then
8318       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8319       if test -n "$file_magic_test_file"; then
8320         case $deplibs_check_method in
8321         "file_magic "*)
8322           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8323           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8324           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8325             $EGREP "$file_magic_regex" > /dev/null; then
8326             :
8327           else
8328             cat <<_LT_EOF 1>&2
8329
8330 *** Warning: the command libtool uses to detect shared libraries,
8331 *** $file_magic_cmd, produces output that libtool cannot recognize.
8332 *** The result is that libtool may fail to recognize shared libraries
8333 *** as such.  This will affect the creation of libtool libraries that
8334 *** depend on shared libraries, but programs linked with such libtool
8335 *** libraries will work regardless of this problem.  Nevertheless, you
8336 *** may want to report the problem to your system manager and/or to
8337 *** bug-libtool@gnu.org
8338
8339 _LT_EOF
8340           fi ;;
8341         esac
8342       fi
8343       break
8344     fi
8345   done
8346   IFS="$lt_save_ifs"
8347   MAGIC_CMD="$lt_save_MAGIC_CMD"
8348   ;;
8349 esac
8350 fi
8351
8352 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8353 if test -n "$MAGIC_CMD"; then
8354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8355 $as_echo "$MAGIC_CMD" >&6; }
8356 else
8357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8358 $as_echo "no" >&6; }
8359 fi
8360
8361
8362   else
8363     MAGIC_CMD=:
8364   fi
8365 fi
8366
8367   fi
8368   ;;
8369 esac
8370
8371 # Use C for the default configuration in the libtool script
8372
8373 lt_save_CC="$CC"
8374 ac_ext=c
8375 ac_cpp='$CPP $CPPFLAGS'
8376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8379
8380
8381 # Source file extension for C test sources.
8382 ac_ext=c
8383
8384 # Object file extension for compiled C test sources.
8385 objext=o
8386 objext=$objext
8387
8388 # Code to be used in simple compile tests
8389 lt_simple_compile_test_code="int some_variable = 0;"
8390
8391 # Code to be used in simple link tests
8392 lt_simple_link_test_code='int main(){return(0);}'
8393
8394
8395
8396
8397
8398
8399
8400 # If no C compiler was specified, use CC.
8401 LTCC=${LTCC-"$CC"}
8402
8403 # If no C compiler flags were specified, use CFLAGS.
8404 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8405
8406 # Allow CC to be a program name with arguments.
8407 compiler=$CC
8408
8409 # Save the default compiler, since it gets overwritten when the other
8410 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8411 compiler_DEFAULT=$CC
8412
8413 # save warnings/boilerplate of simple test code
8414 ac_outfile=conftest.$ac_objext
8415 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8416 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8417 _lt_compiler_boilerplate=`cat conftest.err`
8418 $RM conftest*
8419
8420 ac_outfile=conftest.$ac_objext
8421 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8422 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8423 _lt_linker_boilerplate=`cat conftest.err`
8424 $RM -r conftest*
8425
8426
8427 ## CAVEAT EMPTOR:
8428 ## There is no encapsulation within the following macros, do not change
8429 ## the running order or otherwise move them around unless you know exactly
8430 ## what you are doing...
8431 if test -n "$compiler"; then
8432
8433 lt_prog_compiler_no_builtin_flag=
8434
8435 if test "$GCC" = yes; then
8436   case $cc_basename in
8437   nvcc*)
8438     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8439   *)
8440     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8441   esac
8442
8443   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8444 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8445 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8446   $as_echo_n "(cached) " >&6
8447 else
8448   lt_cv_prog_compiler_rtti_exceptions=no
8449    ac_outfile=conftest.$ac_objext
8450    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8451    lt_compiler_flag="-fno-rtti -fno-exceptions"
8452    # Insert the option either (1) after the last *FLAGS variable, or
8453    # (2) before a word containing "conftest.", or (3) at the end.
8454    # Note that $ac_compile itself does not contain backslashes and begins
8455    # with a dollar sign (not a hyphen), so the echo should work correctly.
8456    # The option is referenced via a variable to avoid confusing sed.
8457    lt_compile=`echo "$ac_compile" | $SED \
8458    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8459    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8460    -e 's:$: $lt_compiler_flag:'`
8461    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8462    (eval "$lt_compile" 2>conftest.err)
8463    ac_status=$?
8464    cat conftest.err >&5
8465    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466    if (exit $ac_status) && test -s "$ac_outfile"; then
8467      # The compiler can only warn and ignore the option if not recognized
8468      # So say no if there are warnings other than the usual output.
8469      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8470      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8471      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8472        lt_cv_prog_compiler_rtti_exceptions=yes
8473      fi
8474    fi
8475    $RM conftest*
8476
8477 fi
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8479 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8480
8481 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8482     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8483 else
8484     :
8485 fi
8486
8487 fi
8488
8489
8490
8491
8492
8493
8494   lt_prog_compiler_wl=
8495 lt_prog_compiler_pic=
8496 lt_prog_compiler_static=
8497
8498
8499   if test "$GCC" = yes; then
8500     lt_prog_compiler_wl='-Wl,'
8501     lt_prog_compiler_static='-static'
8502
8503     case $host_os in
8504       aix*)
8505       # All AIX code is PIC.
8506       if test "$host_cpu" = ia64; then
8507         # AIX 5 now supports IA64 processor
8508         lt_prog_compiler_static='-Bstatic'
8509       fi
8510       ;;
8511
8512     amigaos*)
8513       case $host_cpu in
8514       powerpc)
8515             # see comment about AmigaOS4 .so support
8516             lt_prog_compiler_pic='-fPIC'
8517         ;;
8518       m68k)
8519             # FIXME: we need at least 68020 code to build shared libraries, but
8520             # adding the `-m68020' flag to GCC prevents building anything better,
8521             # like `-m68040'.
8522             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8523         ;;
8524       esac
8525       ;;
8526
8527     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8528       # PIC is the default for these OSes.
8529       ;;
8530
8531     mingw* | cygwin* | pw32* | os2* | cegcc*)
8532       # This hack is so that the source file can tell whether it is being
8533       # built for inclusion in a dll (and should export symbols for example).
8534       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8535       # (--disable-auto-import) libraries
8536       lt_prog_compiler_pic='-DDLL_EXPORT'
8537       ;;
8538
8539     darwin* | rhapsody*)
8540       # PIC is the default on this platform
8541       # Common symbols not allowed in MH_DYLIB files
8542       lt_prog_compiler_pic='-fno-common'
8543       ;;
8544
8545     haiku*)
8546       # PIC is the default for Haiku.
8547       # The "-static" flag exists, but is broken.
8548       lt_prog_compiler_static=
8549       ;;
8550
8551     hpux*)
8552       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8553       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8554       # sets the default TLS model and affects inlining.
8555       case $host_cpu in
8556       hppa*64*)
8557         # +Z the default
8558         ;;
8559       *)
8560         lt_prog_compiler_pic='-fPIC'
8561         ;;
8562       esac
8563       ;;
8564
8565     interix[3-9]*)
8566       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8567       # Instead, we relocate shared libraries at runtime.
8568       ;;
8569
8570     msdosdjgpp*)
8571       # Just because we use GCC doesn't mean we suddenly get shared libraries
8572       # on systems that don't support them.
8573       lt_prog_compiler_can_build_shared=no
8574       enable_shared=no
8575       ;;
8576
8577     *nto* | *qnx*)
8578       # QNX uses GNU C++, but need to define -shared option too, otherwise
8579       # it will coredump.
8580       lt_prog_compiler_pic='-fPIC -shared'
8581       ;;
8582
8583     sysv4*MP*)
8584       if test -d /usr/nec; then
8585         lt_prog_compiler_pic=-Kconform_pic
8586       fi
8587       ;;
8588
8589     *)
8590       lt_prog_compiler_pic='-fPIC'
8591       ;;
8592     esac
8593
8594     case $cc_basename in
8595     nvcc*) # Cuda Compiler Driver 2.2
8596       lt_prog_compiler_wl='-Xlinker '
8597       if test -n "$lt_prog_compiler_pic"; then
8598         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8599       fi
8600       ;;
8601     esac
8602   else
8603     # PORTME Check for flag to pass linker flags through the system compiler.
8604     case $host_os in
8605     aix*)
8606       lt_prog_compiler_wl='-Wl,'
8607       if test "$host_cpu" = ia64; then
8608         # AIX 5 now supports IA64 processor
8609         lt_prog_compiler_static='-Bstatic'
8610       else
8611         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8612       fi
8613       ;;
8614
8615     mingw* | cygwin* | pw32* | os2* | cegcc*)
8616       # This hack is so that the source file can tell whether it is being
8617       # built for inclusion in a dll (and should export symbols for example).
8618       lt_prog_compiler_pic='-DDLL_EXPORT'
8619       ;;
8620
8621     hpux9* | hpux10* | hpux11*)
8622       lt_prog_compiler_wl='-Wl,'
8623       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8624       # not for PA HP-UX.
8625       case $host_cpu in
8626       hppa*64*|ia64*)
8627         # +Z the default
8628         ;;
8629       *)
8630         lt_prog_compiler_pic='+Z'
8631         ;;
8632       esac
8633       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8634       lt_prog_compiler_static='${wl}-a ${wl}archive'
8635       ;;
8636
8637     irix5* | irix6* | nonstopux*)
8638       lt_prog_compiler_wl='-Wl,'
8639       # PIC (with -KPIC) is the default.
8640       lt_prog_compiler_static='-non_shared'
8641       ;;
8642
8643     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8644       case $cc_basename in
8645       # old Intel for x86_64 which still supported -KPIC.
8646       ecc*)
8647         lt_prog_compiler_wl='-Wl,'
8648         lt_prog_compiler_pic='-KPIC'
8649         lt_prog_compiler_static='-static'
8650         ;;
8651       # icc used to be incompatible with GCC.
8652       # ICC 10 doesn't accept -KPIC any more.
8653       icc* | ifort*)
8654         lt_prog_compiler_wl='-Wl,'
8655         lt_prog_compiler_pic='-fPIC'
8656         lt_prog_compiler_static='-static'
8657         ;;
8658       # Lahey Fortran 8.1.
8659       lf95*)
8660         lt_prog_compiler_wl='-Wl,'
8661         lt_prog_compiler_pic='--shared'
8662         lt_prog_compiler_static='--static'
8663         ;;
8664       nagfor*)
8665         # NAG Fortran compiler
8666         lt_prog_compiler_wl='-Wl,-Wl,,'
8667         lt_prog_compiler_pic='-PIC'
8668         lt_prog_compiler_static='-Bstatic'
8669         ;;
8670       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8671         # Portland Group compilers (*not* the Pentium gcc compiler,
8672         # which looks to be a dead project)
8673         lt_prog_compiler_wl='-Wl,'
8674         lt_prog_compiler_pic='-fpic'
8675         lt_prog_compiler_static='-Bstatic'
8676         ;;
8677       ccc*)
8678         lt_prog_compiler_wl='-Wl,'
8679         # All Alpha code is PIC.
8680         lt_prog_compiler_static='-non_shared'
8681         ;;
8682       xl* | bgxl* | bgf* | mpixl*)
8683         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8684         lt_prog_compiler_wl='-Wl,'
8685         lt_prog_compiler_pic='-qpic'
8686         lt_prog_compiler_static='-qstaticlink'
8687         ;;
8688       *)
8689         case `$CC -V 2>&1 | sed 5q` in
8690         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8691           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8692           lt_prog_compiler_pic='-KPIC'
8693           lt_prog_compiler_static='-Bstatic'
8694           lt_prog_compiler_wl=''
8695           ;;
8696         *Sun\ F* | *Sun*Fortran*)
8697           lt_prog_compiler_pic='-KPIC'
8698           lt_prog_compiler_static='-Bstatic'
8699           lt_prog_compiler_wl='-Qoption ld '
8700           ;;
8701         *Sun\ C*)
8702           # Sun C 5.9
8703           lt_prog_compiler_pic='-KPIC'
8704           lt_prog_compiler_static='-Bstatic'
8705           lt_prog_compiler_wl='-Wl,'
8706           ;;
8707         *Intel*\ [CF]*Compiler*)
8708           lt_prog_compiler_wl='-Wl,'
8709           lt_prog_compiler_pic='-fPIC'
8710           lt_prog_compiler_static='-static'
8711           ;;
8712         *Portland\ Group*)
8713           lt_prog_compiler_wl='-Wl,'
8714           lt_prog_compiler_pic='-fpic'
8715           lt_prog_compiler_static='-Bstatic'
8716           ;;
8717         esac
8718         ;;
8719       esac
8720       ;;
8721
8722     newsos6)
8723       lt_prog_compiler_pic='-KPIC'
8724       lt_prog_compiler_static='-Bstatic'
8725       ;;
8726
8727     *nto* | *qnx*)
8728       # QNX uses GNU C++, but need to define -shared option too, otherwise
8729       # it will coredump.
8730       lt_prog_compiler_pic='-fPIC -shared'
8731       ;;
8732
8733     osf3* | osf4* | osf5*)
8734       lt_prog_compiler_wl='-Wl,'
8735       # All OSF/1 code is PIC.
8736       lt_prog_compiler_static='-non_shared'
8737       ;;
8738
8739     rdos*)
8740       lt_prog_compiler_static='-non_shared'
8741       ;;
8742
8743     solaris*)
8744       lt_prog_compiler_pic='-KPIC'
8745       lt_prog_compiler_static='-Bstatic'
8746       case $cc_basename in
8747       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8748         lt_prog_compiler_wl='-Qoption ld ';;
8749       *)
8750         lt_prog_compiler_wl='-Wl,';;
8751       esac
8752       ;;
8753
8754     sunos4*)
8755       lt_prog_compiler_wl='-Qoption ld '
8756       lt_prog_compiler_pic='-PIC'
8757       lt_prog_compiler_static='-Bstatic'
8758       ;;
8759
8760     sysv4 | sysv4.2uw2* | sysv4.3*)
8761       lt_prog_compiler_wl='-Wl,'
8762       lt_prog_compiler_pic='-KPIC'
8763       lt_prog_compiler_static='-Bstatic'
8764       ;;
8765
8766     sysv4*MP*)
8767       if test -d /usr/nec ;then
8768         lt_prog_compiler_pic='-Kconform_pic'
8769         lt_prog_compiler_static='-Bstatic'
8770       fi
8771       ;;
8772
8773     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8774       lt_prog_compiler_wl='-Wl,'
8775       lt_prog_compiler_pic='-KPIC'
8776       lt_prog_compiler_static='-Bstatic'
8777       ;;
8778
8779     unicos*)
8780       lt_prog_compiler_wl='-Wl,'
8781       lt_prog_compiler_can_build_shared=no
8782       ;;
8783
8784     uts4*)
8785       lt_prog_compiler_pic='-pic'
8786       lt_prog_compiler_static='-Bstatic'
8787       ;;
8788
8789     *)
8790       lt_prog_compiler_can_build_shared=no
8791       ;;
8792     esac
8793   fi
8794
8795 case $host_os in
8796   # For platforms which do not support PIC, -DPIC is meaningless:
8797   *djgpp*)
8798     lt_prog_compiler_pic=
8799     ;;
8800   *)
8801     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8802     ;;
8803 esac
8804
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8806 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8807 if ${lt_cv_prog_compiler_pic+:} false; then :
8808   $as_echo_n "(cached) " >&6
8809 else
8810   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8811 fi
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8813 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8814 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8815
8816 #
8817 # Check to make sure the PIC flag actually works.
8818 #
8819 if test -n "$lt_prog_compiler_pic"; then
8820   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8821 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8822 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8823   $as_echo_n "(cached) " >&6
8824 else
8825   lt_cv_prog_compiler_pic_works=no
8826    ac_outfile=conftest.$ac_objext
8827    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8828    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8829    # Insert the option either (1) after the last *FLAGS variable, or
8830    # (2) before a word containing "conftest.", or (3) at the end.
8831    # Note that $ac_compile itself does not contain backslashes and begins
8832    # with a dollar sign (not a hyphen), so the echo should work correctly.
8833    # The option is referenced via a variable to avoid confusing sed.
8834    lt_compile=`echo "$ac_compile" | $SED \
8835    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8836    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8837    -e 's:$: $lt_compiler_flag:'`
8838    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8839    (eval "$lt_compile" 2>conftest.err)
8840    ac_status=$?
8841    cat conftest.err >&5
8842    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843    if (exit $ac_status) && test -s "$ac_outfile"; then
8844      # The compiler can only warn and ignore the option if not recognized
8845      # So say no if there are warnings other than the usual output.
8846      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8847      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8848      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8849        lt_cv_prog_compiler_pic_works=yes
8850      fi
8851    fi
8852    $RM conftest*
8853
8854 fi
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8856 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8857
8858 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8859     case $lt_prog_compiler_pic in
8860      "" | " "*) ;;
8861      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8862      esac
8863 else
8864     lt_prog_compiler_pic=
8865      lt_prog_compiler_can_build_shared=no
8866 fi
8867
8868 fi
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880 #
8881 # Check to make sure the static flag actually works.
8882 #
8883 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8885 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8886 if ${lt_cv_prog_compiler_static_works+:} false; then :
8887   $as_echo_n "(cached) " >&6
8888 else
8889   lt_cv_prog_compiler_static_works=no
8890    save_LDFLAGS="$LDFLAGS"
8891    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8892    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8893    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8894      # The linker can only warn and ignore the option if not recognized
8895      # So say no if there are warnings
8896      if test -s conftest.err; then
8897        # Append any errors to the config.log.
8898        cat conftest.err 1>&5
8899        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8900        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8901        if diff conftest.exp conftest.er2 >/dev/null; then
8902          lt_cv_prog_compiler_static_works=yes
8903        fi
8904      else
8905        lt_cv_prog_compiler_static_works=yes
8906      fi
8907    fi
8908    $RM -r conftest*
8909    LDFLAGS="$save_LDFLAGS"
8910
8911 fi
8912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8913 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8914
8915 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8916     :
8917 else
8918     lt_prog_compiler_static=
8919 fi
8920
8921
8922
8923
8924
8925
8926
8927   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8928 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8929 if ${lt_cv_prog_compiler_c_o+:} false; then :
8930   $as_echo_n "(cached) " >&6
8931 else
8932   lt_cv_prog_compiler_c_o=no
8933    $RM -r conftest 2>/dev/null
8934    mkdir conftest
8935    cd conftest
8936    mkdir out
8937    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8938
8939    lt_compiler_flag="-o out/conftest2.$ac_objext"
8940    # Insert the option either (1) after the last *FLAGS variable, or
8941    # (2) before a word containing "conftest.", or (3) at the end.
8942    # Note that $ac_compile itself does not contain backslashes and begins
8943    # with a dollar sign (not a hyphen), so the echo should work correctly.
8944    lt_compile=`echo "$ac_compile" | $SED \
8945    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8946    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8947    -e 's:$: $lt_compiler_flag:'`
8948    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8949    (eval "$lt_compile" 2>out/conftest.err)
8950    ac_status=$?
8951    cat out/conftest.err >&5
8952    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8953    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8954    then
8955      # The compiler can only warn and ignore the option if not recognized
8956      # So say no if there are warnings
8957      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8958      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8959      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8960        lt_cv_prog_compiler_c_o=yes
8961      fi
8962    fi
8963    chmod u+w . 2>&5
8964    $RM conftest*
8965    # SGI C++ compiler will create directory out/ii_files/ for
8966    # template instantiation
8967    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8968    $RM out/* && rmdir out
8969    cd ..
8970    $RM -r conftest
8971    $RM conftest*
8972
8973 fi
8974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8975 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8976
8977
8978
8979
8980
8981
8982   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8983 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8984 if ${lt_cv_prog_compiler_c_o+:} false; then :
8985   $as_echo_n "(cached) " >&6
8986 else
8987   lt_cv_prog_compiler_c_o=no
8988    $RM -r conftest 2>/dev/null
8989    mkdir conftest
8990    cd conftest
8991    mkdir out
8992    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8993
8994    lt_compiler_flag="-o out/conftest2.$ac_objext"
8995    # Insert the option either (1) after the last *FLAGS variable, or
8996    # (2) before a word containing "conftest.", or (3) at the end.
8997    # Note that $ac_compile itself does not contain backslashes and begins
8998    # with a dollar sign (not a hyphen), so the echo should work correctly.
8999    lt_compile=`echo "$ac_compile" | $SED \
9000    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9001    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9002    -e 's:$: $lt_compiler_flag:'`
9003    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9004    (eval "$lt_compile" 2>out/conftest.err)
9005    ac_status=$?
9006    cat out/conftest.err >&5
9007    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9008    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9009    then
9010      # The compiler can only warn and ignore the option if not recognized
9011      # So say no if there are warnings
9012      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9013      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9014      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9015        lt_cv_prog_compiler_c_o=yes
9016      fi
9017    fi
9018    chmod u+w . 2>&5
9019    $RM conftest*
9020    # SGI C++ compiler will create directory out/ii_files/ for
9021    # template instantiation
9022    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9023    $RM out/* && rmdir out
9024    cd ..
9025    $RM -r conftest
9026    $RM conftest*
9027
9028 fi
9029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9030 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9031
9032
9033
9034
9035 hard_links="nottested"
9036 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9037   # do not overwrite the value of need_locks provided by the user
9038   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9039 $as_echo_n "checking if we can lock with hard links... " >&6; }
9040   hard_links=yes
9041   $RM conftest*
9042   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9043   touch conftest.a
9044   ln conftest.a conftest.b 2>&5 || hard_links=no
9045   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9047 $as_echo "$hard_links" >&6; }
9048   if test "$hard_links" = no; then
9049     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9050 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9051     need_locks=warn
9052   fi
9053 else
9054   need_locks=no
9055 fi
9056
9057
9058
9059
9060
9061
9062   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9063 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9064
9065   runpath_var=
9066   allow_undefined_flag=
9067   always_export_symbols=no
9068   archive_cmds=
9069   archive_expsym_cmds=
9070   compiler_needs_object=no
9071   enable_shared_with_static_runtimes=no
9072   export_dynamic_flag_spec=
9073   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9074   hardcode_automatic=no
9075   hardcode_direct=no
9076   hardcode_direct_absolute=no
9077   hardcode_libdir_flag_spec=
9078   hardcode_libdir_separator=
9079   hardcode_minus_L=no
9080   hardcode_shlibpath_var=unsupported
9081   inherit_rpath=no
9082   link_all_deplibs=unknown
9083   module_cmds=
9084   module_expsym_cmds=
9085   old_archive_from_new_cmds=
9086   old_archive_from_expsyms_cmds=
9087   thread_safe_flag_spec=
9088   whole_archive_flag_spec=
9089   # include_expsyms should be a list of space-separated symbols to be *always*
9090   # included in the symbol list
9091   include_expsyms=
9092   # exclude_expsyms can be an extended regexp of symbols to exclude
9093   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9094   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9095   # as well as any symbol that contains `d'.
9096   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9097   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9098   # platforms (ab)use it in PIC code, but their linkers get confused if
9099   # the symbol is explicitly referenced.  Since portable code cannot
9100   # rely on this symbol name, it's probably fine to never include it in
9101   # preloaded symbol tables.
9102   # Exclude shared library initialization/finalization symbols.
9103   extract_expsyms_cmds=
9104
9105   case $host_os in
9106   cygwin* | mingw* | pw32* | cegcc*)
9107     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9108     # When not using gcc, we currently assume that we are using
9109     # Microsoft Visual C++.
9110     if test "$GCC" != yes; then
9111       with_gnu_ld=no
9112     fi
9113     ;;
9114   interix*)
9115     # we just hope/assume this is gcc and not c89 (= MSVC++)
9116     with_gnu_ld=yes
9117     ;;
9118   openbsd*)
9119     with_gnu_ld=no
9120     ;;
9121   linux* | k*bsd*-gnu | gnu*)
9122     link_all_deplibs=no
9123     ;;
9124   esac
9125
9126   ld_shlibs=yes
9127
9128   # On some targets, GNU ld is compatible enough with the native linker
9129   # that we're better off using the native interface for both.
9130   lt_use_gnu_ld_interface=no
9131   if test "$with_gnu_ld" = yes; then
9132     case $host_os in
9133       aix*)
9134         # The AIX port of GNU ld has always aspired to compatibility
9135         # with the native linker.  However, as the warning in the GNU ld
9136         # block says, versions before 2.19.5* couldn't really create working
9137         # shared libraries, regardless of the interface used.
9138         case `$LD -v 2>&1` in
9139           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9140           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9141           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9142           *)
9143             lt_use_gnu_ld_interface=yes
9144             ;;
9145         esac
9146         ;;
9147       *)
9148         lt_use_gnu_ld_interface=yes
9149         ;;
9150     esac
9151   fi
9152
9153   if test "$lt_use_gnu_ld_interface" = yes; then
9154     # If archive_cmds runs LD, not CC, wlarc should be empty
9155     wlarc='${wl}'
9156
9157     # Set some defaults for GNU ld with shared library support. These
9158     # are reset later if shared libraries are not supported. Putting them
9159     # here allows them to be overridden if necessary.
9160     runpath_var=LD_RUN_PATH
9161     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9162     export_dynamic_flag_spec='${wl}--export-dynamic'
9163     # ancient GNU ld didn't support --whole-archive et. al.
9164     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9165       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9166     else
9167       whole_archive_flag_spec=
9168     fi
9169     supports_anon_versioning=no
9170     case `$LD -v 2>&1` in
9171       *GNU\ gold*) supports_anon_versioning=yes ;;
9172       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9173       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9174       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9175       *\ 2.11.*) ;; # other 2.11 versions
9176       *) supports_anon_versioning=yes ;;
9177     esac
9178
9179     # See if GNU ld supports shared libraries.
9180     case $host_os in
9181     aix[3-9]*)
9182       # On AIX/PPC, the GNU linker is very broken
9183       if test "$host_cpu" != ia64; then
9184         ld_shlibs=no
9185         cat <<_LT_EOF 1>&2
9186
9187 *** Warning: the GNU linker, at least up to release 2.19, is reported
9188 *** to be unable to reliably create shared libraries on AIX.
9189 *** Therefore, libtool is disabling shared libraries support.  If you
9190 *** really care for shared libraries, you may want to install binutils
9191 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9192 *** You will then need to restart the configuration process.
9193
9194 _LT_EOF
9195       fi
9196       ;;
9197
9198     amigaos*)
9199       case $host_cpu in
9200       powerpc)
9201             # see comment about AmigaOS4 .so support
9202             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9203             archive_expsym_cmds=''
9204         ;;
9205       m68k)
9206             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)'
9207             hardcode_libdir_flag_spec='-L$libdir'
9208             hardcode_minus_L=yes
9209         ;;
9210       esac
9211       ;;
9212
9213     beos*)
9214       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9215         allow_undefined_flag=unsupported
9216         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9217         # support --undefined.  This deserves some investigation.  FIXME
9218         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9219       else
9220         ld_shlibs=no
9221       fi
9222       ;;
9223
9224     cygwin* | mingw* | pw32* | cegcc*)
9225       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9226       # as there is no search path for DLLs.
9227       hardcode_libdir_flag_spec='-L$libdir'
9228       export_dynamic_flag_spec='${wl}--export-all-symbols'
9229       allow_undefined_flag=unsupported
9230       always_export_symbols=no
9231       enable_shared_with_static_runtimes=yes
9232       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'
9233       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9234
9235       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9236         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9237         # If the export-symbols file already is a .def file (1st line
9238         # is EXPORTS), use it as is; otherwise, prepend...
9239         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9240           cp $export_symbols $output_objdir/$soname.def;
9241         else
9242           echo EXPORTS > $output_objdir/$soname.def;
9243           cat $export_symbols >> $output_objdir/$soname.def;
9244         fi~
9245         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9246       else
9247         ld_shlibs=no
9248       fi
9249       ;;
9250
9251     haiku*)
9252       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9253       link_all_deplibs=yes
9254       ;;
9255
9256     interix[3-9]*)
9257       hardcode_direct=no
9258       hardcode_shlibpath_var=no
9259       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9260       export_dynamic_flag_spec='${wl}-E'
9261       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9262       # Instead, shared libraries are loaded at an image base (0x10000000 by
9263       # default) and relocated if they conflict, which is a slow very memory
9264       # consuming and fragmenting process.  To avoid this, we pick a random,
9265       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9266       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9267       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9268       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'
9269       ;;
9270
9271     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9272       tmp_diet=no
9273       if test "$host_os" = linux-dietlibc; then
9274         case $cc_basename in
9275           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9276         esac
9277       fi
9278       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9279          && test "$tmp_diet" = no
9280       then
9281         tmp_addflag=' $pic_flag'
9282         tmp_sharedflag='-shared'
9283         case $cc_basename,$host_cpu in
9284         pgcc*)                          # Portland Group C compiler
9285           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'
9286           tmp_addflag=' $pic_flag'
9287           ;;
9288         pgf77* | pgf90* | pgf95* | pgfortran*)
9289                                         # Portland Group f77 and f90 compilers
9290           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'
9291           tmp_addflag=' $pic_flag -Mnomain' ;;
9292         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9293           tmp_addflag=' -i_dynamic' ;;
9294         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9295           tmp_addflag=' -i_dynamic -nofor_main' ;;
9296         ifc* | ifort*)                  # Intel Fortran compiler
9297           tmp_addflag=' -nofor_main' ;;
9298         lf95*)                          # Lahey Fortran 8.1
9299           whole_archive_flag_spec=
9300           tmp_sharedflag='--shared' ;;
9301         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9302           tmp_sharedflag='-qmkshrobj'
9303           tmp_addflag= ;;
9304         nvcc*)  # Cuda Compiler Driver 2.2
9305           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'
9306           compiler_needs_object=yes
9307           ;;
9308         esac
9309         case `$CC -V 2>&1 | sed 5q` in
9310         *Sun\ C*)                       # Sun C 5.9
9311           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'
9312           compiler_needs_object=yes
9313           tmp_sharedflag='-G' ;;
9314         *Sun\ F*)                       # Sun Fortran 8.3
9315           tmp_sharedflag='-G' ;;
9316         esac
9317         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9318
9319         if test "x$supports_anon_versioning" = xyes; then
9320           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9321             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9322             echo "local: *; };" >> $output_objdir/$libname.ver~
9323             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9324         fi
9325
9326         case $cc_basename in
9327         xlf* | bgf* | bgxlf* | mpixlf*)
9328           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9329           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9330           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9331           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9332           if test "x$supports_anon_versioning" = xyes; then
9333             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9334               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9335               echo "local: *; };" >> $output_objdir/$libname.ver~
9336               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9337           fi
9338           ;;
9339         esac
9340       else
9341         ld_shlibs=no
9342       fi
9343       ;;
9344
9345     netbsd* | netbsdelf*-gnu)
9346       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9347         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9348         wlarc=
9349       else
9350         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9351         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9352       fi
9353       ;;
9354
9355     solaris*)
9356       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9357         ld_shlibs=no
9358         cat <<_LT_EOF 1>&2
9359
9360 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9361 *** create shared libraries on Solaris systems.  Therefore, libtool
9362 *** is disabling shared libraries support.  We urge you to upgrade GNU
9363 *** binutils to release 2.9.1 or newer.  Another option is to modify
9364 *** your PATH or compiler configuration so that the native linker is
9365 *** used, and then restart.
9366
9367 _LT_EOF
9368       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9369         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9370         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9371       else
9372         ld_shlibs=no
9373       fi
9374       ;;
9375
9376     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9377       case `$LD -v 2>&1` in
9378         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9379         ld_shlibs=no
9380         cat <<_LT_EOF 1>&2
9381
9382 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9383 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9384 *** is disabling shared libraries support.  We urge you to upgrade GNU
9385 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9386 *** your PATH or compiler configuration so that the native linker is
9387 *** used, and then restart.
9388
9389 _LT_EOF
9390         ;;
9391         *)
9392           # For security reasons, it is highly recommended that you always
9393           # use absolute paths for naming shared libraries, and exclude the
9394           # DT_RUNPATH tag from executables and libraries.  But doing so
9395           # requires that you compile everything twice, which is a pain.
9396           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9397             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9398             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9399             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9400           else
9401             ld_shlibs=no
9402           fi
9403         ;;
9404       esac
9405       ;;
9406
9407     sunos4*)
9408       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9409       wlarc=
9410       hardcode_direct=yes
9411       hardcode_shlibpath_var=no
9412       ;;
9413
9414     *)
9415       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9416         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9417         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9418       else
9419         ld_shlibs=no
9420       fi
9421       ;;
9422     esac
9423
9424     if test "$ld_shlibs" = no; then
9425       runpath_var=
9426       hardcode_libdir_flag_spec=
9427       export_dynamic_flag_spec=
9428       whole_archive_flag_spec=
9429     fi
9430   else
9431     # PORTME fill in a description of your system's linker (not GNU ld)
9432     case $host_os in
9433     aix3*)
9434       allow_undefined_flag=unsupported
9435       always_export_symbols=yes
9436       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'
9437       # Note: this linker hardcodes the directories in LIBPATH if there
9438       # are no directories specified by -L.
9439       hardcode_minus_L=yes
9440       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9441         # Neither direct hardcoding nor static linking is supported with a
9442         # broken collect2.
9443         hardcode_direct=unsupported
9444       fi
9445       ;;
9446
9447     aix[4-9]*)
9448       if test "$host_cpu" = ia64; then
9449         # On IA64, the linker does run time linking by default, so we don't
9450         # have to do anything special.
9451         aix_use_runtimelinking=no
9452         exp_sym_flag='-Bexport'
9453         no_entry_flag=""
9454       else
9455         # If we're using GNU nm, then we don't want the "-C" option.
9456         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9457         # Also, AIX nm treats weak defined symbols like other global
9458         # defined symbols, whereas GNU nm marks them as "W".
9459         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9460           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'
9461         else
9462           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'
9463         fi
9464         aix_use_runtimelinking=no
9465
9466         # Test if we are trying to use run time linking or normal
9467         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9468         # need to do runtime linking.
9469         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9470           for ld_flag in $LDFLAGS; do
9471           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9472             aix_use_runtimelinking=yes
9473             break
9474           fi
9475           done
9476           ;;
9477         esac
9478
9479         exp_sym_flag='-bexport'
9480         no_entry_flag='-bnoentry'
9481       fi
9482
9483       # When large executables or shared objects are built, AIX ld can
9484       # have problems creating the table of contents.  If linking a library
9485       # or program results in "error TOC overflow" add -mminimal-toc to
9486       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9487       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9488
9489       archive_cmds=''
9490       hardcode_direct=yes
9491       hardcode_direct_absolute=yes
9492       hardcode_libdir_separator=':'
9493       link_all_deplibs=yes
9494       file_list_spec='${wl}-f,'
9495
9496       if test "$GCC" = yes; then
9497         case $host_os in aix4.[012]|aix4.[012].*)
9498         # We only want to do this on AIX 4.2 and lower, the check
9499         # below for broken collect2 doesn't work under 4.3+
9500           collect2name=`${CC} -print-prog-name=collect2`
9501           if test -f "$collect2name" &&
9502            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9503           then
9504           # We have reworked collect2
9505           :
9506           else
9507           # We have old collect2
9508           hardcode_direct=unsupported
9509           # It fails to find uninstalled libraries when the uninstalled
9510           # path is not listed in the libpath.  Setting hardcode_minus_L
9511           # to unsupported forces relinking
9512           hardcode_minus_L=yes
9513           hardcode_libdir_flag_spec='-L$libdir'
9514           hardcode_libdir_separator=
9515           fi
9516           ;;
9517         esac
9518         shared_flag='-shared'
9519         if test "$aix_use_runtimelinking" = yes; then
9520           shared_flag="$shared_flag "'${wl}-G'
9521         fi
9522         link_all_deplibs=no
9523       else
9524         # not using gcc
9525         if test "$host_cpu" = ia64; then
9526         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9527         # chokes on -Wl,-G. The following line is correct:
9528           shared_flag='-G'
9529         else
9530           if test "$aix_use_runtimelinking" = yes; then
9531             shared_flag='${wl}-G'
9532           else
9533             shared_flag='${wl}-bM:SRE'
9534           fi
9535         fi
9536       fi
9537
9538       export_dynamic_flag_spec='${wl}-bexpall'
9539       # It seems that -bexpall does not export symbols beginning with
9540       # underscore (_), so it is better to generate a list of symbols to export.
9541       always_export_symbols=yes
9542       if test "$aix_use_runtimelinking" = yes; then
9543         # Warning - without using the other runtime loading flags (-brtl),
9544         # -berok will link without error, but may produce a broken library.
9545         allow_undefined_flag='-berok'
9546         # Determine the default libpath from the value encoded in an
9547         # empty executable.
9548         if test "${lt_cv_aix_libpath+set}" = set; then
9549   aix_libpath=$lt_cv_aix_libpath
9550 else
9551   if ${lt_cv_aix_libpath_+:} false; then :
9552   $as_echo_n "(cached) " >&6
9553 else
9554   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9555 /* end confdefs.h.  */
9556
9557 int
9558 main ()
9559 {
9560
9561   ;
9562   return 0;
9563 }
9564 _ACEOF
9565 if ac_fn_c_try_link "$LINENO"; then :
9566
9567   lt_aix_libpath_sed='
9568       /Import File Strings/,/^$/ {
9569           /^0/ {
9570               s/^0  *\([^ ]*\) *$/\1/
9571               p
9572           }
9573       }'
9574   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9575   # Check for a 64-bit object if we didn't find anything.
9576   if test -z "$lt_cv_aix_libpath_"; then
9577     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9578   fi
9579 fi
9580 rm -f core conftest.err conftest.$ac_objext \
9581     conftest$ac_exeext conftest.$ac_ext
9582   if test -z "$lt_cv_aix_libpath_"; then
9583     lt_cv_aix_libpath_="/usr/lib:/lib"
9584   fi
9585
9586 fi
9587
9588   aix_libpath=$lt_cv_aix_libpath_
9589 fi
9590
9591         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9592         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"
9593       else
9594         if test "$host_cpu" = ia64; then
9595           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9596           allow_undefined_flag="-z nodefs"
9597           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"
9598         else
9599          # Determine the default libpath from the value encoded in an
9600          # empty executable.
9601          if test "${lt_cv_aix_libpath+set}" = set; then
9602   aix_libpath=$lt_cv_aix_libpath
9603 else
9604   if ${lt_cv_aix_libpath_+:} false; then :
9605   $as_echo_n "(cached) " >&6
9606 else
9607   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9608 /* end confdefs.h.  */
9609
9610 int
9611 main ()
9612 {
9613
9614   ;
9615   return 0;
9616 }
9617 _ACEOF
9618 if ac_fn_c_try_link "$LINENO"; then :
9619
9620   lt_aix_libpath_sed='
9621       /Import File Strings/,/^$/ {
9622           /^0/ {
9623               s/^0  *\([^ ]*\) *$/\1/
9624               p
9625           }
9626       }'
9627   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9628   # Check for a 64-bit object if we didn't find anything.
9629   if test -z "$lt_cv_aix_libpath_"; then
9630     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9631   fi
9632 fi
9633 rm -f core conftest.err conftest.$ac_objext \
9634     conftest$ac_exeext conftest.$ac_ext
9635   if test -z "$lt_cv_aix_libpath_"; then
9636     lt_cv_aix_libpath_="/usr/lib:/lib"
9637   fi
9638
9639 fi
9640
9641   aix_libpath=$lt_cv_aix_libpath_
9642 fi
9643
9644          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9645           # Warning - without using the other run time loading flags,
9646           # -berok will link without error, but may produce a broken library.
9647           no_undefined_flag=' ${wl}-bernotok'
9648           allow_undefined_flag=' ${wl}-berok'
9649           if test "$with_gnu_ld" = yes; then
9650             # We only use this code for GNU lds that support --whole-archive.
9651             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9652           else
9653             # Exported symbols can be pulled into shared objects from archives
9654             whole_archive_flag_spec='$convenience'
9655           fi
9656           archive_cmds_need_lc=yes
9657           # This is similar to how AIX traditionally builds its shared libraries.
9658           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'
9659         fi
9660       fi
9661       ;;
9662
9663     amigaos*)
9664       case $host_cpu in
9665       powerpc)
9666             # see comment about AmigaOS4 .so support
9667             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9668             archive_expsym_cmds=''
9669         ;;
9670       m68k)
9671             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)'
9672             hardcode_libdir_flag_spec='-L$libdir'
9673             hardcode_minus_L=yes
9674         ;;
9675       esac
9676       ;;
9677
9678     bsdi[45]*)
9679       export_dynamic_flag_spec=-rdynamic
9680       ;;
9681
9682     cygwin* | mingw* | pw32* | cegcc*)
9683       # When not using gcc, we currently assume that we are using
9684       # Microsoft Visual C++.
9685       # hardcode_libdir_flag_spec is actually meaningless, as there is
9686       # no search path for DLLs.
9687       case $cc_basename in
9688       cl*)
9689         # Native MSVC
9690         hardcode_libdir_flag_spec=' '
9691         allow_undefined_flag=unsupported
9692         always_export_symbols=yes
9693         file_list_spec='@'
9694         # Tell ltmain to make .lib files, not .a files.
9695         libext=lib
9696         # Tell ltmain to make .dll files, not .so files.
9697         shrext_cmds=".dll"
9698         # FIXME: Setting linknames here is a bad hack.
9699         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9700         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9701             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9702           else
9703             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9704           fi~
9705           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9706           linknames='
9707         # The linker will not automatically build a static lib if we build a DLL.
9708         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9709         enable_shared_with_static_runtimes=yes
9710         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9711         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9712         # Don't use ranlib
9713         old_postinstall_cmds='chmod 644 $oldlib'
9714         postlink_cmds='lt_outputfile="@OUTPUT@"~
9715           lt_tool_outputfile="@TOOL_OUTPUT@"~
9716           case $lt_outputfile in
9717             *.exe|*.EXE) ;;
9718             *)
9719               lt_outputfile="$lt_outputfile.exe"
9720               lt_tool_outputfile="$lt_tool_outputfile.exe"
9721               ;;
9722           esac~
9723           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9724             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9725             $RM "$lt_outputfile.manifest";
9726           fi'
9727         ;;
9728       *)
9729         # Assume MSVC wrapper
9730         hardcode_libdir_flag_spec=' '
9731         allow_undefined_flag=unsupported
9732         # Tell ltmain to make .lib files, not .a files.
9733         libext=lib
9734         # Tell ltmain to make .dll files, not .so files.
9735         shrext_cmds=".dll"
9736         # FIXME: Setting linknames here is a bad hack.
9737         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9738         # The linker will automatically build a .lib file if we build a DLL.
9739         old_archive_from_new_cmds='true'
9740         # FIXME: Should let the user specify the lib program.
9741         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9742         enable_shared_with_static_runtimes=yes
9743         ;;
9744       esac
9745       ;;
9746
9747     darwin* | rhapsody*)
9748
9749
9750   archive_cmds_need_lc=no
9751   hardcode_direct=no
9752   hardcode_automatic=yes
9753   hardcode_shlibpath_var=unsupported
9754   if test "$lt_cv_ld_force_load" = "yes"; then
9755     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\"`'
9756
9757   else
9758     whole_archive_flag_spec=''
9759   fi
9760   link_all_deplibs=yes
9761   allow_undefined_flag="$_lt_dar_allow_undefined"
9762   case $cc_basename in
9763      ifort*) _lt_dar_can_shared=yes ;;
9764      *) _lt_dar_can_shared=$GCC ;;
9765   esac
9766   if test "$_lt_dar_can_shared" = "yes"; then
9767     output_verbose_link_cmd=func_echo_all
9768     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9769     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9770     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}"
9771     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}"
9772
9773   else
9774   ld_shlibs=no
9775   fi
9776
9777       ;;
9778
9779     dgux*)
9780       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9781       hardcode_libdir_flag_spec='-L$libdir'
9782       hardcode_shlibpath_var=no
9783       ;;
9784
9785     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9786     # support.  Future versions do this automatically, but an explicit c++rt0.o
9787     # does not break anything, and helps significantly (at the cost of a little
9788     # extra space).
9789     freebsd2.2*)
9790       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9791       hardcode_libdir_flag_spec='-R$libdir'
9792       hardcode_direct=yes
9793       hardcode_shlibpath_var=no
9794       ;;
9795
9796     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9797     freebsd2.*)
9798       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9799       hardcode_direct=yes
9800       hardcode_minus_L=yes
9801       hardcode_shlibpath_var=no
9802       ;;
9803
9804     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9805     freebsd* | dragonfly*)
9806       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9807       hardcode_libdir_flag_spec='-R$libdir'
9808       hardcode_direct=yes
9809       hardcode_shlibpath_var=no
9810       ;;
9811
9812     hpux9*)
9813       if test "$GCC" = yes; then
9814         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'
9815       else
9816         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'
9817       fi
9818       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9819       hardcode_libdir_separator=:
9820       hardcode_direct=yes
9821
9822       # hardcode_minus_L: Not really in the search PATH,
9823       # but as the default location of the library.
9824       hardcode_minus_L=yes
9825       export_dynamic_flag_spec='${wl}-E'
9826       ;;
9827
9828     hpux10*)
9829       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9830         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9831       else
9832         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9833       fi
9834       if test "$with_gnu_ld" = no; then
9835         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9836         hardcode_libdir_separator=:
9837         hardcode_direct=yes
9838         hardcode_direct_absolute=yes
9839         export_dynamic_flag_spec='${wl}-E'
9840         # hardcode_minus_L: Not really in the search PATH,
9841         # but as the default location of the library.
9842         hardcode_minus_L=yes
9843       fi
9844       ;;
9845
9846     hpux11*)
9847       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9848         case $host_cpu in
9849         hppa*64*)
9850           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9851           ;;
9852         ia64*)
9853           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9854           ;;
9855         *)
9856           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9857           ;;
9858         esac
9859       else
9860         case $host_cpu in
9861         hppa*64*)
9862           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9863           ;;
9864         ia64*)
9865           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9866           ;;
9867         *)
9868
9869           # Older versions of the 11.00 compiler do not understand -b yet
9870           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9871           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9872 $as_echo_n "checking if $CC understands -b... " >&6; }
9873 if ${lt_cv_prog_compiler__b+:} false; then :
9874   $as_echo_n "(cached) " >&6
9875 else
9876   lt_cv_prog_compiler__b=no
9877    save_LDFLAGS="$LDFLAGS"
9878    LDFLAGS="$LDFLAGS -b"
9879    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9880    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9881      # The linker can only warn and ignore the option if not recognized
9882      # So say no if there are warnings
9883      if test -s conftest.err; then
9884        # Append any errors to the config.log.
9885        cat conftest.err 1>&5
9886        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9887        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9888        if diff conftest.exp conftest.er2 >/dev/null; then
9889          lt_cv_prog_compiler__b=yes
9890        fi
9891      else
9892        lt_cv_prog_compiler__b=yes
9893      fi
9894    fi
9895    $RM -r conftest*
9896    LDFLAGS="$save_LDFLAGS"
9897
9898 fi
9899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9900 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9901
9902 if test x"$lt_cv_prog_compiler__b" = xyes; then
9903     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9904 else
9905     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9906 fi
9907
9908           ;;
9909         esac
9910       fi
9911       if test "$with_gnu_ld" = no; then
9912         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9913         hardcode_libdir_separator=:
9914
9915         case $host_cpu in
9916         hppa*64*|ia64*)
9917           hardcode_direct=no
9918           hardcode_shlibpath_var=no
9919           ;;
9920         *)
9921           hardcode_direct=yes
9922           hardcode_direct_absolute=yes
9923           export_dynamic_flag_spec='${wl}-E'
9924
9925           # hardcode_minus_L: Not really in the search PATH,
9926           # but as the default location of the library.
9927           hardcode_minus_L=yes
9928           ;;
9929         esac
9930       fi
9931       ;;
9932
9933     irix5* | irix6* | nonstopux*)
9934       if test "$GCC" = yes; then
9935         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'
9936         # Try to use the -exported_symbol ld option, if it does not
9937         # work, assume that -exports_file does not work either and
9938         # implicitly export all symbols.
9939         # This should be the same for all languages, so no per-tag cache variable.
9940         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9941 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9942 if ${lt_cv_irix_exported_symbol+:} false; then :
9943   $as_echo_n "(cached) " >&6
9944 else
9945   save_LDFLAGS="$LDFLAGS"
9946            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9947            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9948 /* end confdefs.h.  */
9949 int foo (void) { return 0; }
9950 _ACEOF
9951 if ac_fn_c_try_link "$LINENO"; then :
9952   lt_cv_irix_exported_symbol=yes
9953 else
9954   lt_cv_irix_exported_symbol=no
9955 fi
9956 rm -f core conftest.err conftest.$ac_objext \
9957     conftest$ac_exeext conftest.$ac_ext
9958            LDFLAGS="$save_LDFLAGS"
9959 fi
9960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9961 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9962         if test "$lt_cv_irix_exported_symbol" = yes; then
9963           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'
9964         fi
9965       else
9966         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'
9967         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'
9968       fi
9969       archive_cmds_need_lc='no'
9970       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9971       hardcode_libdir_separator=:
9972       inherit_rpath=yes
9973       link_all_deplibs=yes
9974       ;;
9975
9976     netbsd* | netbsdelf*-gnu)
9977       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9978         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9979       else
9980         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9981       fi
9982       hardcode_libdir_flag_spec='-R$libdir'
9983       hardcode_direct=yes
9984       hardcode_shlibpath_var=no
9985       ;;
9986
9987     newsos6)
9988       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9989       hardcode_direct=yes
9990       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9991       hardcode_libdir_separator=:
9992       hardcode_shlibpath_var=no
9993       ;;
9994
9995     *nto* | *qnx*)
9996       ;;
9997
9998     openbsd*)
9999       if test -f /usr/libexec/ld.so; then
10000         hardcode_direct=yes
10001         hardcode_shlibpath_var=no
10002         hardcode_direct_absolute=yes
10003         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10004           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10005           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10006           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10007           export_dynamic_flag_spec='${wl}-E'
10008         else
10009           case $host_os in
10010            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10011              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10012              hardcode_libdir_flag_spec='-R$libdir'
10013              ;;
10014            *)
10015              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10016              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10017              ;;
10018           esac
10019         fi
10020       else
10021         ld_shlibs=no
10022       fi
10023       ;;
10024
10025     os2*)
10026       hardcode_libdir_flag_spec='-L$libdir'
10027       hardcode_minus_L=yes
10028       allow_undefined_flag=unsupported
10029       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'
10030       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10031       ;;
10032
10033     osf3*)
10034       if test "$GCC" = yes; then
10035         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10036         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'
10037       else
10038         allow_undefined_flag=' -expect_unresolved \*'
10039         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'
10040       fi
10041       archive_cmds_need_lc='no'
10042       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10043       hardcode_libdir_separator=:
10044       ;;
10045
10046     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10047       if test "$GCC" = yes; then
10048         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10049         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'
10050         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10051       else
10052         allow_undefined_flag=' -expect_unresolved \*'
10053         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'
10054         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~
10055         $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'
10056
10057         # Both c and cxx compiler support -rpath directly
10058         hardcode_libdir_flag_spec='-rpath $libdir'
10059       fi
10060       archive_cmds_need_lc='no'
10061       hardcode_libdir_separator=:
10062       ;;
10063
10064     solaris*)
10065       no_undefined_flag=' -z defs'
10066       if test "$GCC" = yes; then
10067         wlarc='${wl}'
10068         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10069         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10070           $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'
10071       else
10072         case `$CC -V 2>&1` in
10073         *"Compilers 5.0"*)
10074           wlarc=''
10075           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10076           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10077           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10078           ;;
10079         *)
10080           wlarc='${wl}'
10081           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10082           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10083           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10084           ;;
10085         esac
10086       fi
10087       hardcode_libdir_flag_spec='-R$libdir'
10088       hardcode_shlibpath_var=no
10089       case $host_os in
10090       solaris2.[0-5] | solaris2.[0-5].*) ;;
10091       *)
10092         # The compiler driver will combine and reorder linker options,
10093         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10094         # but is careful enough not to reorder.
10095         # Supported since Solaris 2.6 (maybe 2.5.1?)
10096         if test "$GCC" = yes; then
10097           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10098         else
10099           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10100         fi
10101         ;;
10102       esac
10103       link_all_deplibs=yes
10104       ;;
10105
10106     sunos4*)
10107       if test "x$host_vendor" = xsequent; then
10108         # Use $CC to link under sequent, because it throws in some extra .o
10109         # files that make .init and .fini sections work.
10110         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10111       else
10112         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10113       fi
10114       hardcode_libdir_flag_spec='-L$libdir'
10115       hardcode_direct=yes
10116       hardcode_minus_L=yes
10117       hardcode_shlibpath_var=no
10118       ;;
10119
10120     sysv4)
10121       case $host_vendor in
10122         sni)
10123           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10124           hardcode_direct=yes # is this really true???
10125         ;;
10126         siemens)
10127           ## LD is ld it makes a PLAMLIB
10128           ## CC just makes a GrossModule.
10129           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10130           reload_cmds='$CC -r -o $output$reload_objs'
10131           hardcode_direct=no
10132         ;;
10133         motorola)
10134           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10135           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10136         ;;
10137       esac
10138       runpath_var='LD_RUN_PATH'
10139       hardcode_shlibpath_var=no
10140       ;;
10141
10142     sysv4.3*)
10143       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10144       hardcode_shlibpath_var=no
10145       export_dynamic_flag_spec='-Bexport'
10146       ;;
10147
10148     sysv4*MP*)
10149       if test -d /usr/nec; then
10150         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10151         hardcode_shlibpath_var=no
10152         runpath_var=LD_RUN_PATH
10153         hardcode_runpath_var=yes
10154         ld_shlibs=yes
10155       fi
10156       ;;
10157
10158     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10159       no_undefined_flag='${wl}-z,text'
10160       archive_cmds_need_lc=no
10161       hardcode_shlibpath_var=no
10162       runpath_var='LD_RUN_PATH'
10163
10164       if test "$GCC" = yes; then
10165         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10166         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10167       else
10168         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10169         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10170       fi
10171       ;;
10172
10173     sysv5* | sco3.2v5* | sco5v6*)
10174       # Note: We can NOT use -z defs as we might desire, because we do not
10175       # link with -lc, and that would cause any symbols used from libc to
10176       # always be unresolved, which means just about no library would
10177       # ever link correctly.  If we're not using GNU ld we use -z text
10178       # though, which does catch some bad symbols but isn't as heavy-handed
10179       # as -z defs.
10180       no_undefined_flag='${wl}-z,text'
10181       allow_undefined_flag='${wl}-z,nodefs'
10182       archive_cmds_need_lc=no
10183       hardcode_shlibpath_var=no
10184       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10185       hardcode_libdir_separator=':'
10186       link_all_deplibs=yes
10187       export_dynamic_flag_spec='${wl}-Bexport'
10188       runpath_var='LD_RUN_PATH'
10189
10190       if test "$GCC" = yes; then
10191         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10192         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10193       else
10194         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10195         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10196       fi
10197       ;;
10198
10199     uts4*)
10200       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10201       hardcode_libdir_flag_spec='-L$libdir'
10202       hardcode_shlibpath_var=no
10203       ;;
10204
10205     *)
10206       ld_shlibs=no
10207       ;;
10208     esac
10209
10210     if test x$host_vendor = xsni; then
10211       case $host in
10212       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10213         export_dynamic_flag_spec='${wl}-Blargedynsym'
10214         ;;
10215       esac
10216     fi
10217   fi
10218
10219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10220 $as_echo "$ld_shlibs" >&6; }
10221 test "$ld_shlibs" = no && can_build_shared=no
10222
10223 with_gnu_ld=$with_gnu_ld
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239 #
10240 # Do we need to explicitly link libc?
10241 #
10242 case "x$archive_cmds_need_lc" in
10243 x|xyes)
10244   # Assume -lc should be added
10245   archive_cmds_need_lc=yes
10246
10247   if test "$enable_shared" = yes && test "$GCC" = yes; then
10248     case $archive_cmds in
10249     *'~'*)
10250       # FIXME: we may have to deal with multi-command sequences.
10251       ;;
10252     '$CC '*)
10253       # Test whether the compiler implicitly links with -lc since on some
10254       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10255       # to ld, don't add -lc before -lgcc.
10256       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10257 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10258 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10259   $as_echo_n "(cached) " >&6
10260 else
10261   $RM conftest*
10262         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10263
10264         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10265   (eval $ac_compile) 2>&5
10266   ac_status=$?
10267   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10268   test $ac_status = 0; } 2>conftest.err; then
10269           soname=conftest
10270           lib=conftest
10271           libobjs=conftest.$ac_objext
10272           deplibs=
10273           wl=$lt_prog_compiler_wl
10274           pic_flag=$lt_prog_compiler_pic
10275           compiler_flags=-v
10276           linker_flags=-v
10277           verstring=
10278           output_objdir=.
10279           libname=conftest
10280           lt_save_allow_undefined_flag=$allow_undefined_flag
10281           allow_undefined_flag=
10282           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10283   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10284   ac_status=$?
10285   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10286   test $ac_status = 0; }
10287           then
10288             lt_cv_archive_cmds_need_lc=no
10289           else
10290             lt_cv_archive_cmds_need_lc=yes
10291           fi
10292           allow_undefined_flag=$lt_save_allow_undefined_flag
10293         else
10294           cat conftest.err 1>&5
10295         fi
10296         $RM conftest*
10297
10298 fi
10299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10300 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10301       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10302       ;;
10303     esac
10304   fi
10305   ;;
10306 esac
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10460 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10461
10462 if test "$GCC" = yes; then
10463   case $host_os in
10464     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10465     *) lt_awk_arg="/^libraries:/" ;;
10466   esac
10467   case $host_os in
10468     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10469     *) lt_sed_strip_eq="s,=/,/,g" ;;
10470   esac
10471   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10472   case $lt_search_path_spec in
10473   *\;*)
10474     # if the path contains ";" then we assume it to be the separator
10475     # otherwise default to the standard path separator (i.e. ":") - it is
10476     # assumed that no part of a normal pathname contains ";" but that should
10477     # okay in the real world where ";" in dirpaths is itself problematic.
10478     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10479     ;;
10480   *)
10481     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10482     ;;
10483   esac
10484   # Ok, now we have the path, separated by spaces, we can step through it
10485   # and add multilib dir if necessary.
10486   lt_tmp_lt_search_path_spec=
10487   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10488   for lt_sys_path in $lt_search_path_spec; do
10489     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10490       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10491     else
10492       test -d "$lt_sys_path" && \
10493         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10494     fi
10495   done
10496   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10497 BEGIN {RS=" "; FS="/|\n";} {
10498   lt_foo="";
10499   lt_count=0;
10500   for (lt_i = NF; lt_i > 0; lt_i--) {
10501     if ($lt_i != "" && $lt_i != ".") {
10502       if ($lt_i == "..") {
10503         lt_count++;
10504       } else {
10505         if (lt_count == 0) {
10506           lt_foo="/" $lt_i lt_foo;
10507         } else {
10508           lt_count--;
10509         }
10510       }
10511     }
10512   }
10513   if (lt_foo != "") { lt_freq[lt_foo]++; }
10514   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10515 }'`
10516   # AWK program above erroneously prepends '/' to C:/dos/paths
10517   # for these hosts.
10518   case $host_os in
10519     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10520       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10521   esac
10522   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10523 else
10524   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10525 fi
10526 library_names_spec=
10527 libname_spec='lib$name'
10528 soname_spec=
10529 shrext_cmds=".so"
10530 postinstall_cmds=
10531 postuninstall_cmds=
10532 finish_cmds=
10533 finish_eval=
10534 shlibpath_var=
10535 shlibpath_overrides_runpath=unknown
10536 version_type=none
10537 dynamic_linker="$host_os ld.so"
10538 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10539 need_lib_prefix=unknown
10540 hardcode_into_libs=no
10541
10542 # when you set need_version to no, make sure it does not cause -set_version
10543 # flags to be left without arguments
10544 need_version=unknown
10545
10546 case $host_os in
10547 aix3*)
10548   version_type=linux # correct to gnu/linux during the next big refactor
10549   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10550   shlibpath_var=LIBPATH
10551
10552   # AIX 3 has no versioning support, so we append a major version to the name.
10553   soname_spec='${libname}${release}${shared_ext}$major'
10554   ;;
10555
10556 aix[4-9]*)
10557   version_type=linux # correct to gnu/linux during the next big refactor
10558   need_lib_prefix=no
10559   need_version=no
10560   hardcode_into_libs=yes
10561   if test "$host_cpu" = ia64; then
10562     # AIX 5 supports IA64
10563     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10564     shlibpath_var=LD_LIBRARY_PATH
10565   else
10566     # With GCC up to 2.95.x, collect2 would create an import file
10567     # for dependence libraries.  The import file would start with
10568     # the line `#! .'.  This would cause the generated library to
10569     # depend on `.', always an invalid library.  This was fixed in
10570     # development snapshots of GCC prior to 3.0.
10571     case $host_os in
10572       aix4 | aix4.[01] | aix4.[01].*)
10573       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10574            echo ' yes '
10575            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10576         :
10577       else
10578         can_build_shared=no
10579       fi
10580       ;;
10581     esac
10582     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10583     # soname into executable. Probably we can add versioning support to
10584     # collect2, so additional links can be useful in future.
10585     if test "$aix_use_runtimelinking" = yes; then
10586       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10587       # instead of lib<name>.a to let people know that these are not
10588       # typical AIX shared libraries.
10589       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10590     else
10591       # We preserve .a as extension for shared libraries through AIX4.2
10592       # and later when we are not doing run time linking.
10593       library_names_spec='${libname}${release}.a $libname.a'
10594       soname_spec='${libname}${release}${shared_ext}$major'
10595     fi
10596     shlibpath_var=LIBPATH
10597   fi
10598   ;;
10599
10600 amigaos*)
10601   case $host_cpu in
10602   powerpc)
10603     # Since July 2007 AmigaOS4 officially supports .so libraries.
10604     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10605     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10606     ;;
10607   m68k)
10608     library_names_spec='$libname.ixlibrary $libname.a'
10609     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10610     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'
10611     ;;
10612   esac
10613   ;;
10614
10615 beos*)
10616   library_names_spec='${libname}${shared_ext}'
10617   dynamic_linker="$host_os ld.so"
10618   shlibpath_var=LIBRARY_PATH
10619   ;;
10620
10621 bsdi[45]*)
10622   version_type=linux # correct to gnu/linux during the next big refactor
10623   need_version=no
10624   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10625   soname_spec='${libname}${release}${shared_ext}$major'
10626   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10627   shlibpath_var=LD_LIBRARY_PATH
10628   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10629   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10630   # the default ld.so.conf also contains /usr/contrib/lib and
10631   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10632   # libtool to hard-code these into programs
10633   ;;
10634
10635 cygwin* | mingw* | pw32* | cegcc*)
10636   version_type=windows
10637   shrext_cmds=".dll"
10638   need_version=no
10639   need_lib_prefix=no
10640
10641   case $GCC,$cc_basename in
10642   yes,*)
10643     # gcc
10644     library_names_spec='$libname.dll.a'
10645     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10646     postinstall_cmds='base_file=`basename \${file}`~
10647       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10648       dldir=$destdir/`dirname \$dlpath`~
10649       test -d \$dldir || mkdir -p \$dldir~
10650       $install_prog $dir/$dlname \$dldir/$dlname~
10651       chmod a+x \$dldir/$dlname~
10652       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10653         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10654       fi'
10655     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10656       dlpath=$dir/\$dldll~
10657        $RM \$dlpath'
10658     shlibpath_overrides_runpath=yes
10659
10660     case $host_os in
10661     cygwin*)
10662       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10663       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10664
10665       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10666       ;;
10667     mingw* | cegcc*)
10668       # MinGW DLLs use traditional 'lib' prefix
10669       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10670       ;;
10671     pw32*)
10672       # pw32 DLLs use 'pw' prefix rather than 'lib'
10673       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10674       ;;
10675     esac
10676     dynamic_linker='Win32 ld.exe'
10677     ;;
10678
10679   *,cl*)
10680     # Native MSVC
10681     libname_spec='$name'
10682     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10683     library_names_spec='${libname}.dll.lib'
10684
10685     case $build_os in
10686     mingw*)
10687       sys_lib_search_path_spec=
10688       lt_save_ifs=$IFS
10689       IFS=';'
10690       for lt_path in $LIB
10691       do
10692         IFS=$lt_save_ifs
10693         # Let DOS variable expansion print the short 8.3 style file name.
10694         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10695         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10696       done
10697       IFS=$lt_save_ifs
10698       # Convert to MSYS style.
10699       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10700       ;;
10701     cygwin*)
10702       # Convert to unix form, then to dos form, then back to unix form
10703       # but this time dos style (no spaces!) so that the unix form looks
10704       # like /cygdrive/c/PROGRA~1:/cygdr...
10705       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10706       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10707       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10708       ;;
10709     *)
10710       sys_lib_search_path_spec="$LIB"
10711       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10712         # It is most probably a Windows format PATH.
10713         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10714       else
10715         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10716       fi
10717       # FIXME: find the short name or the path components, as spaces are
10718       # common. (e.g. "Program Files" -> "PROGRA~1")
10719       ;;
10720     esac
10721
10722     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10723     postinstall_cmds='base_file=`basename \${file}`~
10724       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10725       dldir=$destdir/`dirname \$dlpath`~
10726       test -d \$dldir || mkdir -p \$dldir~
10727       $install_prog $dir/$dlname \$dldir/$dlname'
10728     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10729       dlpath=$dir/\$dldll~
10730        $RM \$dlpath'
10731     shlibpath_overrides_runpath=yes
10732     dynamic_linker='Win32 link.exe'
10733     ;;
10734
10735   *)
10736     # Assume MSVC wrapper
10737     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10738     dynamic_linker='Win32 ld.exe'
10739     ;;
10740   esac
10741   # FIXME: first we should search . and the directory the executable is in
10742   shlibpath_var=PATH
10743   ;;
10744
10745 darwin* | rhapsody*)
10746   dynamic_linker="$host_os dyld"
10747   version_type=darwin
10748   need_lib_prefix=no
10749   need_version=no
10750   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10751   soname_spec='${libname}${release}${major}$shared_ext'
10752   shlibpath_overrides_runpath=yes
10753   shlibpath_var=DYLD_LIBRARY_PATH
10754   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10755
10756   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10757   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10758   ;;
10759
10760 dgux*)
10761   version_type=linux # correct to gnu/linux during the next big refactor
10762   need_lib_prefix=no
10763   need_version=no
10764   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10765   soname_spec='${libname}${release}${shared_ext}$major'
10766   shlibpath_var=LD_LIBRARY_PATH
10767   ;;
10768
10769 freebsd* | dragonfly*)
10770   # DragonFly does not have aout.  When/if they implement a new
10771   # versioning mechanism, adjust this.
10772   if test -x /usr/bin/objformat; then
10773     objformat=`/usr/bin/objformat`
10774   else
10775     case $host_os in
10776     freebsd[23].*) objformat=aout ;;
10777     *) objformat=elf ;;
10778     esac
10779   fi
10780   version_type=freebsd-$objformat
10781   case $version_type in
10782     freebsd-elf*)
10783       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10784       need_version=no
10785       need_lib_prefix=no
10786       ;;
10787     freebsd-*)
10788       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10789       need_version=yes
10790       ;;
10791   esac
10792   shlibpath_var=LD_LIBRARY_PATH
10793   case $host_os in
10794   freebsd2.*)
10795     shlibpath_overrides_runpath=yes
10796     ;;
10797   freebsd3.[01]* | freebsdelf3.[01]*)
10798     shlibpath_overrides_runpath=yes
10799     hardcode_into_libs=yes
10800     ;;
10801   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10802   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10803     shlibpath_overrides_runpath=no
10804     hardcode_into_libs=yes
10805     ;;
10806   *) # from 4.6 on, and DragonFly
10807     shlibpath_overrides_runpath=yes
10808     hardcode_into_libs=yes
10809     ;;
10810   esac
10811   ;;
10812
10813 gnu*)
10814   version_type=linux # correct to gnu/linux during the next big refactor
10815   need_lib_prefix=no
10816   need_version=no
10817   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10818   soname_spec='${libname}${release}${shared_ext}$major'
10819   shlibpath_var=LD_LIBRARY_PATH
10820   shlibpath_overrides_runpath=no
10821   hardcode_into_libs=yes
10822   ;;
10823
10824 haiku*)
10825   version_type=linux # correct to gnu/linux during the next big refactor
10826   need_lib_prefix=no
10827   need_version=no
10828   dynamic_linker="$host_os runtime_loader"
10829   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10830   soname_spec='${libname}${release}${shared_ext}$major'
10831   shlibpath_var=LIBRARY_PATH
10832   shlibpath_overrides_runpath=yes
10833   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10834   hardcode_into_libs=yes
10835   ;;
10836
10837 hpux9* | hpux10* | hpux11*)
10838   # Give a soname corresponding to the major version so that dld.sl refuses to
10839   # link against other versions.
10840   version_type=sunos
10841   need_lib_prefix=no
10842   need_version=no
10843   case $host_cpu in
10844   ia64*)
10845     shrext_cmds='.so'
10846     hardcode_into_libs=yes
10847     dynamic_linker="$host_os dld.so"
10848     shlibpath_var=LD_LIBRARY_PATH
10849     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10850     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10851     soname_spec='${libname}${release}${shared_ext}$major'
10852     if test "X$HPUX_IA64_MODE" = X32; then
10853       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10854     else
10855       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10856     fi
10857     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10858     ;;
10859   hppa*64*)
10860     shrext_cmds='.sl'
10861     hardcode_into_libs=yes
10862     dynamic_linker="$host_os dld.sl"
10863     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10864     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10865     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10866     soname_spec='${libname}${release}${shared_ext}$major'
10867     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10868     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10869     ;;
10870   *)
10871     shrext_cmds='.sl'
10872     dynamic_linker="$host_os dld.sl"
10873     shlibpath_var=SHLIB_PATH
10874     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10875     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10876     soname_spec='${libname}${release}${shared_ext}$major'
10877     ;;
10878   esac
10879   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10880   postinstall_cmds='chmod 555 $lib'
10881   # or fails outright, so override atomically:
10882   install_override_mode=555
10883   ;;
10884
10885 interix[3-9]*)
10886   version_type=linux # correct to gnu/linux during the next big refactor
10887   need_lib_prefix=no
10888   need_version=no
10889   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10890   soname_spec='${libname}${release}${shared_ext}$major'
10891   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10892   shlibpath_var=LD_LIBRARY_PATH
10893   shlibpath_overrides_runpath=no
10894   hardcode_into_libs=yes
10895   ;;
10896
10897 irix5* | irix6* | nonstopux*)
10898   case $host_os in
10899     nonstopux*) version_type=nonstopux ;;
10900     *)
10901         if test "$lt_cv_prog_gnu_ld" = yes; then
10902                 version_type=linux # correct to gnu/linux during the next big refactor
10903         else
10904                 version_type=irix
10905         fi ;;
10906   esac
10907   need_lib_prefix=no
10908   need_version=no
10909   soname_spec='${libname}${release}${shared_ext}$major'
10910   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10911   case $host_os in
10912   irix5* | nonstopux*)
10913     libsuff= shlibsuff=
10914     ;;
10915   *)
10916     case $LD in # libtool.m4 will add one of these switches to LD
10917     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10918       libsuff= shlibsuff= libmagic=32-bit;;
10919     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10920       libsuff=32 shlibsuff=N32 libmagic=N32;;
10921     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10922       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10923     *) libsuff= shlibsuff= libmagic=never-match;;
10924     esac
10925     ;;
10926   esac
10927   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10928   shlibpath_overrides_runpath=no
10929   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10930   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10931   hardcode_into_libs=yes
10932   ;;
10933
10934 # No shared lib support for Linux oldld, aout, or coff.
10935 linux*oldld* | linux*aout* | linux*coff*)
10936   dynamic_linker=no
10937   ;;
10938
10939 # This must be glibc/ELF.
10940 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10941   version_type=linux # correct to gnu/linux during the next big refactor
10942   need_lib_prefix=no
10943   need_version=no
10944   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10945   soname_spec='${libname}${release}${shared_ext}$major'
10946   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10947   shlibpath_var=LD_LIBRARY_PATH
10948   shlibpath_overrides_runpath=no
10949
10950   # Some binutils ld are patched to set DT_RUNPATH
10951   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10952   $as_echo_n "(cached) " >&6
10953 else
10954   lt_cv_shlibpath_overrides_runpath=no
10955     save_LDFLAGS=$LDFLAGS
10956     save_libdir=$libdir
10957     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10958          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10959     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10960 /* end confdefs.h.  */
10961
10962 int
10963 main ()
10964 {
10965
10966   ;
10967   return 0;
10968 }
10969 _ACEOF
10970 if ac_fn_c_try_link "$LINENO"; then :
10971   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10972   lt_cv_shlibpath_overrides_runpath=yes
10973 fi
10974 fi
10975 rm -f core conftest.err conftest.$ac_objext \
10976     conftest$ac_exeext conftest.$ac_ext
10977     LDFLAGS=$save_LDFLAGS
10978     libdir=$save_libdir
10979
10980 fi
10981
10982   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10983
10984   # This implies no fast_install, which is unacceptable.
10985   # Some rework will be needed to allow for fast_install
10986   # before this can be enabled.
10987   hardcode_into_libs=yes
10988
10989   # Append ld.so.conf contents to the search path
10990   if test -f /etc/ld.so.conf; then
10991     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' ' '`
10992     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10993   fi
10994
10995   # We used to test for /lib/ld.so.1 and disable shared libraries on
10996   # powerpc, because MkLinux only supported shared libraries with the
10997   # GNU dynamic linker.  Since this was broken with cross compilers,
10998   # most powerpc-linux boxes support dynamic linking these days and
10999   # people can always --disable-shared, the test was removed, and we
11000   # assume the GNU/Linux dynamic linker is in use.
11001   dynamic_linker='GNU/Linux ld.so'
11002   ;;
11003
11004 netbsdelf*-gnu)
11005   version_type=linux
11006   need_lib_prefix=no
11007   need_version=no
11008   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11009   soname_spec='${libname}${release}${shared_ext}$major'
11010   shlibpath_var=LD_LIBRARY_PATH
11011   shlibpath_overrides_runpath=no
11012   hardcode_into_libs=yes
11013   dynamic_linker='NetBSD ld.elf_so'
11014   ;;
11015
11016 netbsd*)
11017   version_type=sunos
11018   need_lib_prefix=no
11019   need_version=no
11020   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11021     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11022     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11023     dynamic_linker='NetBSD (a.out) ld.so'
11024   else
11025     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11026     soname_spec='${libname}${release}${shared_ext}$major'
11027     dynamic_linker='NetBSD ld.elf_so'
11028   fi
11029   shlibpath_var=LD_LIBRARY_PATH
11030   shlibpath_overrides_runpath=yes
11031   hardcode_into_libs=yes
11032   ;;
11033
11034 newsos6)
11035   version_type=linux # correct to gnu/linux during the next big refactor
11036   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11037   shlibpath_var=LD_LIBRARY_PATH
11038   shlibpath_overrides_runpath=yes
11039   ;;
11040
11041 *nto* | *qnx*)
11042   version_type=qnx
11043   need_lib_prefix=no
11044   need_version=no
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=LD_LIBRARY_PATH
11048   shlibpath_overrides_runpath=no
11049   hardcode_into_libs=yes
11050   dynamic_linker='ldqnx.so'
11051   ;;
11052
11053 openbsd*)
11054   version_type=sunos
11055   sys_lib_dlsearch_path_spec="/usr/lib"
11056   need_lib_prefix=no
11057   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11058   case $host_os in
11059     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11060     *)                          need_version=no  ;;
11061   esac
11062   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11063   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11064   shlibpath_var=LD_LIBRARY_PATH
11065   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11066     case $host_os in
11067       openbsd2.[89] | openbsd2.[89].*)
11068         shlibpath_overrides_runpath=no
11069         ;;
11070       *)
11071         shlibpath_overrides_runpath=yes
11072         ;;
11073       esac
11074   else
11075     shlibpath_overrides_runpath=yes
11076   fi
11077   ;;
11078
11079 os2*)
11080   libname_spec='$name'
11081   shrext_cmds=".dll"
11082   need_lib_prefix=no
11083   library_names_spec='$libname${shared_ext} $libname.a'
11084   dynamic_linker='OS/2 ld.exe'
11085   shlibpath_var=LIBPATH
11086   ;;
11087
11088 osf3* | osf4* | osf5*)
11089   version_type=osf
11090   need_lib_prefix=no
11091   need_version=no
11092   soname_spec='${libname}${release}${shared_ext}$major'
11093   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11094   shlibpath_var=LD_LIBRARY_PATH
11095   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11096   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11097   ;;
11098
11099 rdos*)
11100   dynamic_linker=no
11101   ;;
11102
11103 solaris*)
11104   version_type=linux # correct to gnu/linux during the next big refactor
11105   need_lib_prefix=no
11106   need_version=no
11107   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11108   soname_spec='${libname}${release}${shared_ext}$major'
11109   shlibpath_var=LD_LIBRARY_PATH
11110   shlibpath_overrides_runpath=yes
11111   hardcode_into_libs=yes
11112   # ldd complains unless libraries are executable
11113   postinstall_cmds='chmod +x $lib'
11114   ;;
11115
11116 sunos4*)
11117   version_type=sunos
11118   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11119   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11120   shlibpath_var=LD_LIBRARY_PATH
11121   shlibpath_overrides_runpath=yes
11122   if test "$with_gnu_ld" = yes; then
11123     need_lib_prefix=no
11124   fi
11125   need_version=yes
11126   ;;
11127
11128 sysv4 | sysv4.3*)
11129   version_type=linux # correct to gnu/linux during the next big refactor
11130   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11131   soname_spec='${libname}${release}${shared_ext}$major'
11132   shlibpath_var=LD_LIBRARY_PATH
11133   case $host_vendor in
11134     sni)
11135       shlibpath_overrides_runpath=no
11136       need_lib_prefix=no
11137       runpath_var=LD_RUN_PATH
11138       ;;
11139     siemens)
11140       need_lib_prefix=no
11141       ;;
11142     motorola)
11143       need_lib_prefix=no
11144       need_version=no
11145       shlibpath_overrides_runpath=no
11146       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11147       ;;
11148   esac
11149   ;;
11150
11151 sysv4*MP*)
11152   if test -d /usr/nec ;then
11153     version_type=linux # correct to gnu/linux during the next big refactor
11154     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11155     soname_spec='$libname${shared_ext}.$major'
11156     shlibpath_var=LD_LIBRARY_PATH
11157   fi
11158   ;;
11159
11160 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11161   version_type=freebsd-elf
11162   need_lib_prefix=no
11163   need_version=no
11164   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11165   soname_spec='${libname}${release}${shared_ext}$major'
11166   shlibpath_var=LD_LIBRARY_PATH
11167   shlibpath_overrides_runpath=yes
11168   hardcode_into_libs=yes
11169   if test "$with_gnu_ld" = yes; then
11170     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11171   else
11172     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11173     case $host_os in
11174       sco3.2v5*)
11175         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11176         ;;
11177     esac
11178   fi
11179   sys_lib_dlsearch_path_spec='/usr/lib'
11180   ;;
11181
11182 tpf*)
11183   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11184   version_type=linux # correct to gnu/linux during the next big refactor
11185   need_lib_prefix=no
11186   need_version=no
11187   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11188   shlibpath_var=LD_LIBRARY_PATH
11189   shlibpath_overrides_runpath=no
11190   hardcode_into_libs=yes
11191   ;;
11192
11193 uts4*)
11194   version_type=linux # correct to gnu/linux during the next big refactor
11195   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11196   soname_spec='${libname}${release}${shared_ext}$major'
11197   shlibpath_var=LD_LIBRARY_PATH
11198   ;;
11199
11200 *)
11201   dynamic_linker=no
11202   ;;
11203 esac
11204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11205 $as_echo "$dynamic_linker" >&6; }
11206 test "$dynamic_linker" = no && can_build_shared=no
11207
11208 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11209 if test "$GCC" = yes; then
11210   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11211 fi
11212
11213 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11214   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11215 fi
11216 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11217   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11218 fi
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11312 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11313 hardcode_action=
11314 if test -n "$hardcode_libdir_flag_spec" ||
11315    test -n "$runpath_var" ||
11316    test "X$hardcode_automatic" = "Xyes" ; then
11317
11318   # We can hardcode non-existent directories.
11319   if test "$hardcode_direct" != no &&
11320      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11321      # have to relink, otherwise we might link with an installed library
11322      # when we should be linking with a yet-to-be-installed one
11323      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11324      test "$hardcode_minus_L" != no; then
11325     # Linking always hardcodes the temporary library directory.
11326     hardcode_action=relink
11327   else
11328     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11329     hardcode_action=immediate
11330   fi
11331 else
11332   # We cannot hardcode anything, or else we can only hardcode existing
11333   # directories.
11334   hardcode_action=unsupported
11335 fi
11336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11337 $as_echo "$hardcode_action" >&6; }
11338
11339 if test "$hardcode_action" = relink ||
11340    test "$inherit_rpath" = yes; then
11341   # Fast installation is not supported
11342   enable_fast_install=no
11343 elif test "$shlibpath_overrides_runpath" = yes ||
11344      test "$enable_shared" = no; then
11345   # Fast installation is not necessary
11346   enable_fast_install=needless
11347 fi
11348
11349
11350
11351
11352
11353
11354   if test "x$enable_dlopen" != xyes; then
11355   enable_dlopen=unknown
11356   enable_dlopen_self=unknown
11357   enable_dlopen_self_static=unknown
11358 else
11359   lt_cv_dlopen=no
11360   lt_cv_dlopen_libs=
11361
11362   case $host_os in
11363   beos*)
11364     lt_cv_dlopen="load_add_on"
11365     lt_cv_dlopen_libs=
11366     lt_cv_dlopen_self=yes
11367     ;;
11368
11369   mingw* | pw32* | cegcc*)
11370     lt_cv_dlopen="LoadLibrary"
11371     lt_cv_dlopen_libs=
11372     ;;
11373
11374   cygwin*)
11375     lt_cv_dlopen="dlopen"
11376     lt_cv_dlopen_libs=
11377     ;;
11378
11379   darwin*)
11380   # if libdl is installed we need to link against it
11381     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11382 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11383 if ${ac_cv_lib_dl_dlopen+:} false; then :
11384   $as_echo_n "(cached) " >&6
11385 else
11386   ac_check_lib_save_LIBS=$LIBS
11387 LIBS="-ldl  $LIBS"
11388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11389 /* end confdefs.h.  */
11390
11391 /* Override any GCC internal prototype to avoid an error.
11392    Use char because int might match the return type of a GCC
11393    builtin and then its argument prototype would still apply.  */
11394 #ifdef __cplusplus
11395 extern "C"
11396 #endif
11397 char dlopen ();
11398 int
11399 main ()
11400 {
11401 return dlopen ();
11402   ;
11403   return 0;
11404 }
11405 _ACEOF
11406 if ac_fn_c_try_link "$LINENO"; then :
11407   ac_cv_lib_dl_dlopen=yes
11408 else
11409   ac_cv_lib_dl_dlopen=no
11410 fi
11411 rm -f core conftest.err conftest.$ac_objext \
11412     conftest$ac_exeext conftest.$ac_ext
11413 LIBS=$ac_check_lib_save_LIBS
11414 fi
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11416 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11417 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11418   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11419 else
11420
11421     lt_cv_dlopen="dyld"
11422     lt_cv_dlopen_libs=
11423     lt_cv_dlopen_self=yes
11424
11425 fi
11426
11427     ;;
11428
11429   *)
11430     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11431 if test "x$ac_cv_func_shl_load" = xyes; then :
11432   lt_cv_dlopen="shl_load"
11433 else
11434   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11435 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11436 if ${ac_cv_lib_dld_shl_load+:} false; then :
11437   $as_echo_n "(cached) " >&6
11438 else
11439   ac_check_lib_save_LIBS=$LIBS
11440 LIBS="-ldld  $LIBS"
11441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11442 /* end confdefs.h.  */
11443
11444 /* Override any GCC internal prototype to avoid an error.
11445    Use char because int might match the return type of a GCC
11446    builtin and then its argument prototype would still apply.  */
11447 #ifdef __cplusplus
11448 extern "C"
11449 #endif
11450 char shl_load ();
11451 int
11452 main ()
11453 {
11454 return shl_load ();
11455   ;
11456   return 0;
11457 }
11458 _ACEOF
11459 if ac_fn_c_try_link "$LINENO"; then :
11460   ac_cv_lib_dld_shl_load=yes
11461 else
11462   ac_cv_lib_dld_shl_load=no
11463 fi
11464 rm -f core conftest.err conftest.$ac_objext \
11465     conftest$ac_exeext conftest.$ac_ext
11466 LIBS=$ac_check_lib_save_LIBS
11467 fi
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11469 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11470 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11471   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11472 else
11473   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11474 if test "x$ac_cv_func_dlopen" = xyes; then :
11475   lt_cv_dlopen="dlopen"
11476 else
11477   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11478 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11479 if ${ac_cv_lib_dl_dlopen+:} false; then :
11480   $as_echo_n "(cached) " >&6
11481 else
11482   ac_check_lib_save_LIBS=$LIBS
11483 LIBS="-ldl  $LIBS"
11484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11485 /* end confdefs.h.  */
11486
11487 /* Override any GCC internal prototype to avoid an error.
11488    Use char because int might match the return type of a GCC
11489    builtin and then its argument prototype would still apply.  */
11490 #ifdef __cplusplus
11491 extern "C"
11492 #endif
11493 char dlopen ();
11494 int
11495 main ()
11496 {
11497 return dlopen ();
11498   ;
11499   return 0;
11500 }
11501 _ACEOF
11502 if ac_fn_c_try_link "$LINENO"; then :
11503   ac_cv_lib_dl_dlopen=yes
11504 else
11505   ac_cv_lib_dl_dlopen=no
11506 fi
11507 rm -f core conftest.err conftest.$ac_objext \
11508     conftest$ac_exeext conftest.$ac_ext
11509 LIBS=$ac_check_lib_save_LIBS
11510 fi
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11512 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11513 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11514   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11515 else
11516   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11517 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11518 if ${ac_cv_lib_svld_dlopen+:} false; then :
11519   $as_echo_n "(cached) " >&6
11520 else
11521   ac_check_lib_save_LIBS=$LIBS
11522 LIBS="-lsvld  $LIBS"
11523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11524 /* end confdefs.h.  */
11525
11526 /* Override any GCC internal prototype to avoid an error.
11527    Use char because int might match the return type of a GCC
11528    builtin and then its argument prototype would still apply.  */
11529 #ifdef __cplusplus
11530 extern "C"
11531 #endif
11532 char dlopen ();
11533 int
11534 main ()
11535 {
11536 return dlopen ();
11537   ;
11538   return 0;
11539 }
11540 _ACEOF
11541 if ac_fn_c_try_link "$LINENO"; then :
11542   ac_cv_lib_svld_dlopen=yes
11543 else
11544   ac_cv_lib_svld_dlopen=no
11545 fi
11546 rm -f core conftest.err conftest.$ac_objext \
11547     conftest$ac_exeext conftest.$ac_ext
11548 LIBS=$ac_check_lib_save_LIBS
11549 fi
11550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11551 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11552 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11553   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11554 else
11555   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11556 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11557 if ${ac_cv_lib_dld_dld_link+:} false; then :
11558   $as_echo_n "(cached) " >&6
11559 else
11560   ac_check_lib_save_LIBS=$LIBS
11561 LIBS="-ldld  $LIBS"
11562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11563 /* end confdefs.h.  */
11564
11565 /* Override any GCC internal prototype to avoid an error.
11566    Use char because int might match the return type of a GCC
11567    builtin and then its argument prototype would still apply.  */
11568 #ifdef __cplusplus
11569 extern "C"
11570 #endif
11571 char dld_link ();
11572 int
11573 main ()
11574 {
11575 return dld_link ();
11576   ;
11577   return 0;
11578 }
11579 _ACEOF
11580 if ac_fn_c_try_link "$LINENO"; then :
11581   ac_cv_lib_dld_dld_link=yes
11582 else
11583   ac_cv_lib_dld_dld_link=no
11584 fi
11585 rm -f core conftest.err conftest.$ac_objext \
11586     conftest$ac_exeext conftest.$ac_ext
11587 LIBS=$ac_check_lib_save_LIBS
11588 fi
11589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11590 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11591 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11592   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11593 fi
11594
11595
11596 fi
11597
11598
11599 fi
11600
11601
11602 fi
11603
11604
11605 fi
11606
11607
11608 fi
11609
11610     ;;
11611   esac
11612
11613   if test "x$lt_cv_dlopen" != xno; then
11614     enable_dlopen=yes
11615   else
11616     enable_dlopen=no
11617   fi
11618
11619   case $lt_cv_dlopen in
11620   dlopen)
11621     save_CPPFLAGS="$CPPFLAGS"
11622     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11623
11624     save_LDFLAGS="$LDFLAGS"
11625     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11626
11627     save_LIBS="$LIBS"
11628     LIBS="$lt_cv_dlopen_libs $LIBS"
11629
11630     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11631 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11632 if ${lt_cv_dlopen_self+:} false; then :
11633   $as_echo_n "(cached) " >&6
11634 else
11635           if test "$cross_compiling" = yes; then :
11636   lt_cv_dlopen_self=cross
11637 else
11638   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11639   lt_status=$lt_dlunknown
11640   cat > conftest.$ac_ext <<_LT_EOF
11641 #line $LINENO "configure"
11642 #include "confdefs.h"
11643
11644 #if HAVE_DLFCN_H
11645 #include <dlfcn.h>
11646 #endif
11647
11648 #include <stdio.h>
11649
11650 #ifdef RTLD_GLOBAL
11651 #  define LT_DLGLOBAL           RTLD_GLOBAL
11652 #else
11653 #  ifdef DL_GLOBAL
11654 #    define LT_DLGLOBAL         DL_GLOBAL
11655 #  else
11656 #    define LT_DLGLOBAL         0
11657 #  endif
11658 #endif
11659
11660 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11661    find out it does not work in some platform. */
11662 #ifndef LT_DLLAZY_OR_NOW
11663 #  ifdef RTLD_LAZY
11664 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11665 #  else
11666 #    ifdef DL_LAZY
11667 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11668 #    else
11669 #      ifdef RTLD_NOW
11670 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11671 #      else
11672 #        ifdef DL_NOW
11673 #          define LT_DLLAZY_OR_NOW      DL_NOW
11674 #        else
11675 #          define LT_DLLAZY_OR_NOW      0
11676 #        endif
11677 #      endif
11678 #    endif
11679 #  endif
11680 #endif
11681
11682 /* When -fvisbility=hidden is used, assume the code has been annotated
11683    correspondingly for the symbols needed.  */
11684 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11685 int fnord () __attribute__((visibility("default")));
11686 #endif
11687
11688 int fnord () { return 42; }
11689 int main ()
11690 {
11691   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11692   int status = $lt_dlunknown;
11693
11694   if (self)
11695     {
11696       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11697       else
11698         {
11699           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11700           else puts (dlerror ());
11701         }
11702       /* dlclose (self); */
11703     }
11704   else
11705     puts (dlerror ());
11706
11707   return status;
11708 }
11709 _LT_EOF
11710   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11711   (eval $ac_link) 2>&5
11712   ac_status=$?
11713   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11714   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11715     (./conftest; exit; ) >&5 2>/dev/null
11716     lt_status=$?
11717     case x$lt_status in
11718       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11719       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11720       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11721     esac
11722   else :
11723     # compilation failed
11724     lt_cv_dlopen_self=no
11725   fi
11726 fi
11727 rm -fr conftest*
11728
11729
11730 fi
11731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11732 $as_echo "$lt_cv_dlopen_self" >&6; }
11733
11734     if test "x$lt_cv_dlopen_self" = xyes; then
11735       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11736       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11737 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11738 if ${lt_cv_dlopen_self_static+:} false; then :
11739   $as_echo_n "(cached) " >&6
11740 else
11741           if test "$cross_compiling" = yes; then :
11742   lt_cv_dlopen_self_static=cross
11743 else
11744   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11745   lt_status=$lt_dlunknown
11746   cat > conftest.$ac_ext <<_LT_EOF
11747 #line $LINENO "configure"
11748 #include "confdefs.h"
11749
11750 #if HAVE_DLFCN_H
11751 #include <dlfcn.h>
11752 #endif
11753
11754 #include <stdio.h>
11755
11756 #ifdef RTLD_GLOBAL
11757 #  define LT_DLGLOBAL           RTLD_GLOBAL
11758 #else
11759 #  ifdef DL_GLOBAL
11760 #    define LT_DLGLOBAL         DL_GLOBAL
11761 #  else
11762 #    define LT_DLGLOBAL         0
11763 #  endif
11764 #endif
11765
11766 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11767    find out it does not work in some platform. */
11768 #ifndef LT_DLLAZY_OR_NOW
11769 #  ifdef RTLD_LAZY
11770 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11771 #  else
11772 #    ifdef DL_LAZY
11773 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11774 #    else
11775 #      ifdef RTLD_NOW
11776 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11777 #      else
11778 #        ifdef DL_NOW
11779 #          define LT_DLLAZY_OR_NOW      DL_NOW
11780 #        else
11781 #          define LT_DLLAZY_OR_NOW      0
11782 #        endif
11783 #      endif
11784 #    endif
11785 #  endif
11786 #endif
11787
11788 /* When -fvisbility=hidden is used, assume the code has been annotated
11789    correspondingly for the symbols needed.  */
11790 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11791 int fnord () __attribute__((visibility("default")));
11792 #endif
11793
11794 int fnord () { return 42; }
11795 int main ()
11796 {
11797   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11798   int status = $lt_dlunknown;
11799
11800   if (self)
11801     {
11802       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11803       else
11804         {
11805           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11806           else puts (dlerror ());
11807         }
11808       /* dlclose (self); */
11809     }
11810   else
11811     puts (dlerror ());
11812
11813   return status;
11814 }
11815 _LT_EOF
11816   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11817   (eval $ac_link) 2>&5
11818   ac_status=$?
11819   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11820   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11821     (./conftest; exit; ) >&5 2>/dev/null
11822     lt_status=$?
11823     case x$lt_status in
11824       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11825       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11826       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11827     esac
11828   else :
11829     # compilation failed
11830     lt_cv_dlopen_self_static=no
11831   fi
11832 fi
11833 rm -fr conftest*
11834
11835
11836 fi
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11838 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11839     fi
11840
11841     CPPFLAGS="$save_CPPFLAGS"
11842     LDFLAGS="$save_LDFLAGS"
11843     LIBS="$save_LIBS"
11844     ;;
11845   esac
11846
11847   case $lt_cv_dlopen_self in
11848   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11849   *) enable_dlopen_self=unknown ;;
11850   esac
11851
11852   case $lt_cv_dlopen_self_static in
11853   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11854   *) enable_dlopen_self_static=unknown ;;
11855   esac
11856 fi
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874 striplib=
11875 old_striplib=
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11877 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11878 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11879   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11880   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11882 $as_echo "yes" >&6; }
11883 else
11884 # FIXME - insert some real tests, host_os isn't really good enough
11885   case $host_os in
11886   darwin*)
11887     if test -n "$STRIP" ; then
11888       striplib="$STRIP -x"
11889       old_striplib="$STRIP -S"
11890       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11891 $as_echo "yes" >&6; }
11892     else
11893       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11894 $as_echo "no" >&6; }
11895     fi
11896     ;;
11897   *)
11898     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11899 $as_echo "no" >&6; }
11900     ;;
11901   esac
11902 fi
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915   # Report which library types will actually be built
11916   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11917 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11919 $as_echo "$can_build_shared" >&6; }
11920
11921   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11922 $as_echo_n "checking whether to build shared libraries... " >&6; }
11923   test "$can_build_shared" = "no" && enable_shared=no
11924
11925   # On AIX, shared libraries and static libraries use the same namespace, and
11926   # are all built from PIC.
11927   case $host_os in
11928   aix3*)
11929     test "$enable_shared" = yes && enable_static=no
11930     if test -n "$RANLIB"; then
11931       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11932       postinstall_cmds='$RANLIB $lib'
11933     fi
11934     ;;
11935
11936   aix[4-9]*)
11937     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11938       test "$enable_shared" = yes && enable_static=no
11939     fi
11940     ;;
11941   esac
11942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11943 $as_echo "$enable_shared" >&6; }
11944
11945   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11946 $as_echo_n "checking whether to build static libraries... " >&6; }
11947   # Make sure either enable_shared or enable_static is yes.
11948   test "$enable_shared" = yes || enable_static=yes
11949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11950 $as_echo "$enable_static" >&6; }
11951
11952
11953
11954
11955 fi
11956 ac_ext=c
11957 ac_cpp='$CPP $CPPFLAGS'
11958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11961
11962 CC="$lt_save_CC"
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974
11975
11976
11977
11978         ac_config_commands="$ac_config_commands libtool"
11979
11980
11981
11982
11983 # Only expand once:
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11996         if test -n "$ac_tool_prefix"; then
11997   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11998 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12000 $as_echo_n "checking for $ac_word... " >&6; }
12001 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12002   $as_echo_n "(cached) " >&6
12003 else
12004   case $PKG_CONFIG in
12005   [\\/]* | ?:[\\/]*)
12006   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12007   ;;
12008   *)
12009   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12010 for as_dir in $PATH
12011 do
12012   IFS=$as_save_IFS
12013   test -z "$as_dir" && as_dir=.
12014     for ac_exec_ext in '' $ac_executable_extensions; do
12015   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12016     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12017     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12018     break 2
12019   fi
12020 done
12021   done
12022 IFS=$as_save_IFS
12023
12024   ;;
12025 esac
12026 fi
12027 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12028 if test -n "$PKG_CONFIG"; then
12029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12030 $as_echo "$PKG_CONFIG" >&6; }
12031 else
12032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12033 $as_echo "no" >&6; }
12034 fi
12035
12036
12037 fi
12038 if test -z "$ac_cv_path_PKG_CONFIG"; then
12039   ac_pt_PKG_CONFIG=$PKG_CONFIG
12040   # Extract the first word of "pkg-config", so it can be a program name with args.
12041 set dummy pkg-config; ac_word=$2
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12043 $as_echo_n "checking for $ac_word... " >&6; }
12044 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12045   $as_echo_n "(cached) " >&6
12046 else
12047   case $ac_pt_PKG_CONFIG in
12048   [\\/]* | ?:[\\/]*)
12049   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12050   ;;
12051   *)
12052   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12053 for as_dir in $PATH
12054 do
12055   IFS=$as_save_IFS
12056   test -z "$as_dir" && as_dir=.
12057     for ac_exec_ext in '' $ac_executable_extensions; do
12058   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12059     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12060     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12061     break 2
12062   fi
12063 done
12064   done
12065 IFS=$as_save_IFS
12066
12067   ;;
12068 esac
12069 fi
12070 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12071 if test -n "$ac_pt_PKG_CONFIG"; then
12072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12073 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12074 else
12075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12076 $as_echo "no" >&6; }
12077 fi
12078
12079   if test "x$ac_pt_PKG_CONFIG" = x; then
12080     PKG_CONFIG=""
12081   else
12082     case $cross_compiling:$ac_tool_warned in
12083 yes:)
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12085 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12086 ac_tool_warned=yes ;;
12087 esac
12088     PKG_CONFIG=$ac_pt_PKG_CONFIG
12089   fi
12090 else
12091   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12092 fi
12093
12094 fi
12095 if test -n "$PKG_CONFIG"; then
12096         _pkg_min_version=0.9.0
12097         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12098 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12099         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12100                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12101 $as_echo "yes" >&6; }
12102         else
12103                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12104 $as_echo "no" >&6; }
12105                 PKG_CONFIG=""
12106         fi
12107 fi
12108
12109 pkg_failed=no
12110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTest" >&5
12111 $as_echo_n "checking for GTest... " >&6; }
12112
12113 if test -n "$GTest_CFLAGS"; then
12114     pkg_cv_GTest_CFLAGS="$GTest_CFLAGS"
12115  elif test -n "$PKG_CONFIG"; then
12116     if test -n "$PKG_CONFIG" && \
12117     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.16\""; } >&5
12118   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.16") 2>&5
12119   ac_status=$?
12120   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12121   test $ac_status = 0; }; then
12122   pkg_cv_GTest_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.16" 2>/dev/null`
12123                       test "x$?" != "x0" && pkg_failed=yes
12124 else
12125   pkg_failed=yes
12126 fi
12127  else
12128     pkg_failed=untried
12129 fi
12130 if test -n "$GTest_LIBS"; then
12131     pkg_cv_GTest_LIBS="$GTest_LIBS"
12132  elif test -n "$PKG_CONFIG"; then
12133     if test -n "$PKG_CONFIG" && \
12134     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.16\""; } >&5
12135   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.16") 2>&5
12136   ac_status=$?
12137   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12138   test $ac_status = 0; }; then
12139   pkg_cv_GTest_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.16" 2>/dev/null`
12140                       test "x$?" != "x0" && pkg_failed=yes
12141 else
12142   pkg_failed=yes
12143 fi
12144  else
12145     pkg_failed=untried
12146 fi
12147
12148
12149
12150 if test $pkg_failed = yes; then
12151         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12152 $as_echo "no" >&6; }
12153
12154 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12155         _pkg_short_errors_supported=yes
12156 else
12157         _pkg_short_errors_supported=no
12158 fi
12159         if test $_pkg_short_errors_supported = yes; then
12160                 GTest_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.16" 2>&1`
12161         else
12162                 GTest_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.16" 2>&1`
12163         fi
12164         # Put the nasty error message in config.log where it belongs
12165         echo "$GTest_PKG_ERRORS" >&5
12166
12167         gtest=no
12168 elif test $pkg_failed = untried; then
12169         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12170 $as_echo "no" >&6; }
12171         gtest=no
12172 else
12173         GTest_CFLAGS=$pkg_cv_GTest_CFLAGS
12174         GTest_LIBS=$pkg_cv_GTest_LIBS
12175         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12176 $as_echo "yes" >&6; }
12177         gtest=yes
12178 fi
12179  if test x$gtest = xyes; then
12180   HAVE_GTEST_TRUE=
12181   HAVE_GTEST_FALSE='#'
12182 else
12183   HAVE_GTEST_TRUE='#'
12184   HAVE_GTEST_FALSE=
12185 fi
12186
12187
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking operating system" >&5
12189 $as_echo_n "checking operating system... " >&6; }
12190 os_win32=no
12191 case "$target_os" in
12192      mingw*|cygwin*)
12193         os_win32=yes
12194         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Win32" >&5
12195 $as_echo "Win32" >&6; }
12196         UUID=
12197         ;;
12198      darwin*)
12199         { $as_echo "$as_me:${as_lineno-$LINENO}: result: Darwin" >&5
12200 $as_echo "Darwin" >&6; }
12201         UUID=
12202         ;;
12203      *)
12204         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_os" >&5
12205 $as_echo "$target_os" >&6; }
12206         UUID=uuid
12207         ;;
12208 esac
12209
12210
12211 pkg_failed=no
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGUPNP" >&5
12213 $as_echo_n "checking for LIBGUPNP... " >&6; }
12214
12215 if test -n "$LIBGUPNP_CFLAGS"; then
12216     pkg_cv_LIBGUPNP_CFLAGS="$LIBGUPNP_CFLAGS"
12217  elif test -n "$PKG_CONFIG"; then
12218     if test -n "$PKG_CONFIG" && \
12219     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.24.0 \\
12220                             gio-2.0 \\
12221                             gmodule-2.0 \\
12222                             gssdp-1.0 >= 0.13.0 \\
12223                             libsoup-2.4 >= 2.28.2 \\
12224                             libxml-2.0 \\
12225                             \$UUID\""; } >&5
12226   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.24.0 \
12227                             gio-2.0 \
12228                             gmodule-2.0 \
12229                             gssdp-1.0 >= 0.13.0 \
12230                             libsoup-2.4 >= 2.28.2 \
12231                             libxml-2.0 \
12232                             $UUID") 2>&5
12233   ac_status=$?
12234   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12235   test $ac_status = 0; }; then
12236   pkg_cv_LIBGUPNP_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.24.0 \
12237                             gio-2.0 \
12238                             gmodule-2.0 \
12239                             gssdp-1.0 >= 0.13.0 \
12240                             libsoup-2.4 >= 2.28.2 \
12241                             libxml-2.0 \
12242                             $UUID" 2>/dev/null`
12243                       test "x$?" != "x0" && pkg_failed=yes
12244 else
12245   pkg_failed=yes
12246 fi
12247  else
12248     pkg_failed=untried
12249 fi
12250 if test -n "$LIBGUPNP_LIBS"; then
12251     pkg_cv_LIBGUPNP_LIBS="$LIBGUPNP_LIBS"
12252  elif test -n "$PKG_CONFIG"; then
12253     if test -n "$PKG_CONFIG" && \
12254     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.24.0 \\
12255                             gio-2.0 \\
12256                             gmodule-2.0 \\
12257                             gssdp-1.0 >= 0.13.0 \\
12258                             libsoup-2.4 >= 2.28.2 \\
12259                             libxml-2.0 \\
12260                             \$UUID\""; } >&5
12261   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.24.0 \
12262                             gio-2.0 \
12263                             gmodule-2.0 \
12264                             gssdp-1.0 >= 0.13.0 \
12265                             libsoup-2.4 >= 2.28.2 \
12266                             libxml-2.0 \
12267                             $UUID") 2>&5
12268   ac_status=$?
12269   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12270   test $ac_status = 0; }; then
12271   pkg_cv_LIBGUPNP_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.24.0 \
12272                             gio-2.0 \
12273                             gmodule-2.0 \
12274                             gssdp-1.0 >= 0.13.0 \
12275                             libsoup-2.4 >= 2.28.2 \
12276                             libxml-2.0 \
12277                             $UUID" 2>/dev/null`
12278                       test "x$?" != "x0" && pkg_failed=yes
12279 else
12280   pkg_failed=yes
12281 fi
12282  else
12283     pkg_failed=untried
12284 fi
12285
12286
12287
12288 if test $pkg_failed = yes; then
12289         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12290 $as_echo "no" >&6; }
12291
12292 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12293         _pkg_short_errors_supported=yes
12294 else
12295         _pkg_short_errors_supported=no
12296 fi
12297         if test $_pkg_short_errors_supported = yes; then
12298                 LIBGUPNP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.24.0 \
12299                             gio-2.0 \
12300                             gmodule-2.0 \
12301                             gssdp-1.0 >= 0.13.0 \
12302                             libsoup-2.4 >= 2.28.2 \
12303                             libxml-2.0 \
12304                             $UUID" 2>&1`
12305         else
12306                 LIBGUPNP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.24.0 \
12307                             gio-2.0 \
12308                             gmodule-2.0 \
12309                             gssdp-1.0 >= 0.13.0 \
12310                             libsoup-2.4 >= 2.28.2 \
12311                             libxml-2.0 \
12312                             $UUID" 2>&1`
12313         fi
12314         # Put the nasty error message in config.log where it belongs
12315         echo "$LIBGUPNP_PKG_ERRORS" >&5
12316
12317         as_fn_error $? "Package requirements (glib-2.0 >= 2.24.0 \
12318                             gio-2.0 \
12319                             gmodule-2.0 \
12320                             gssdp-1.0 >= 0.13.0 \
12321                             libsoup-2.4 >= 2.28.2 \
12322                             libxml-2.0 \
12323                             $UUID) were not met:
12324
12325 $LIBGUPNP_PKG_ERRORS
12326
12327 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12328 installed software in a non-standard prefix.
12329
12330 Alternatively, you may set the environment variables LIBGUPNP_CFLAGS
12331 and LIBGUPNP_LIBS to avoid the need to call pkg-config.
12332 See the pkg-config man page for more details." "$LINENO" 5
12333 elif test $pkg_failed = untried; then
12334         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12335 $as_echo "no" >&6; }
12336         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12337 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12338 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
12339 is in your PATH or set the PKG_CONFIG environment variable to the full
12340 path to pkg-config.
12341
12342 Alternatively, you may set the environment variables LIBGUPNP_CFLAGS
12343 and LIBGUPNP_LIBS to avoid the need to call pkg-config.
12344 See the pkg-config man page for more details.
12345
12346 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12347 See \`config.log' for more details" "$LINENO" 5; }
12348 else
12349         LIBGUPNP_CFLAGS=$pkg_cv_LIBGUPNP_CFLAGS
12350         LIBGUPNP_LIBS=$pkg_cv_LIBGUPNP_LIBS
12351         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12352 $as_echo "yes" >&6; }
12353
12354 fi
12355
12356 pkg_failed=no
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTHREAD" >&5
12358 $as_echo_n "checking for GTHREAD... " >&6; }
12359
12360 if test -n "$GTHREAD_CFLAGS"; then
12361     pkg_cv_GTHREAD_CFLAGS="$GTHREAD_CFLAGS"
12362  elif test -n "$PKG_CONFIG"; then
12363     if test -n "$PKG_CONFIG" && \
12364     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gthread-2.0\""; } >&5
12365   ($PKG_CONFIG --exists --print-errors "gthread-2.0") 2>&5
12366   ac_status=$?
12367   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12368   test $ac_status = 0; }; then
12369   pkg_cv_GTHREAD_CFLAGS=`$PKG_CONFIG --cflags "gthread-2.0" 2>/dev/null`
12370                       test "x$?" != "x0" && pkg_failed=yes
12371 else
12372   pkg_failed=yes
12373 fi
12374  else
12375     pkg_failed=untried
12376 fi
12377 if test -n "$GTHREAD_LIBS"; then
12378     pkg_cv_GTHREAD_LIBS="$GTHREAD_LIBS"
12379  elif test -n "$PKG_CONFIG"; then
12380     if test -n "$PKG_CONFIG" && \
12381     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gthread-2.0\""; } >&5
12382   ($PKG_CONFIG --exists --print-errors "gthread-2.0") 2>&5
12383   ac_status=$?
12384   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12385   test $ac_status = 0; }; then
12386   pkg_cv_GTHREAD_LIBS=`$PKG_CONFIG --libs "gthread-2.0" 2>/dev/null`
12387                       test "x$?" != "x0" && pkg_failed=yes
12388 else
12389   pkg_failed=yes
12390 fi
12391  else
12392     pkg_failed=untried
12393 fi
12394
12395
12396
12397 if test $pkg_failed = yes; then
12398         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12399 $as_echo "no" >&6; }
12400
12401 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12402         _pkg_short_errors_supported=yes
12403 else
12404         _pkg_short_errors_supported=no
12405 fi
12406         if test $_pkg_short_errors_supported = yes; then
12407                 GTHREAD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gthread-2.0" 2>&1`
12408         else
12409                 GTHREAD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gthread-2.0" 2>&1`
12410         fi
12411         # Put the nasty error message in config.log where it belongs
12412         echo "$GTHREAD_PKG_ERRORS" >&5
12413
12414         as_fn_error $? "Package requirements (gthread-2.0) were not met:
12415
12416 $GTHREAD_PKG_ERRORS
12417
12418 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12419 installed software in a non-standard prefix.
12420
12421 Alternatively, you may set the environment variables GTHREAD_CFLAGS
12422 and GTHREAD_LIBS to avoid the need to call pkg-config.
12423 See the pkg-config man page for more details." "$LINENO" 5
12424 elif test $pkg_failed = untried; then
12425         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12426 $as_echo "no" >&6; }
12427         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12428 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12429 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
12430 is in your PATH or set the PKG_CONFIG environment variable to the full
12431 path to pkg-config.
12432
12433 Alternatively, you may set the environment variables GTHREAD_CFLAGS
12434 and GTHREAD_LIBS to avoid the need to call pkg-config.
12435 See the pkg-config man page for more details.
12436
12437 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12438 See \`config.log' for more details" "$LINENO" 5; }
12439 else
12440         GTHREAD_CFLAGS=$pkg_cv_GTHREAD_CFLAGS
12441         GTHREAD_LIBS=$pkg_cv_GTHREAD_LIBS
12442         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12443 $as_echo "yes" >&6; }
12444
12445 fi
12446
12447  if test "x$os_win32" = "xyes"; then
12448   OS_WIN32_TRUE=
12449   OS_WIN32_FALSE='#'
12450 else
12451   OS_WIN32_TRUE='#'
12452   OS_WIN32_FALSE=
12453 fi
12454
12455 if test "x$os_win32" = "xno"; then
12456
12457 # Check whether --with-context_manager was given.
12458 if test "${with_context_manager+set}" = set; then :
12459   withval=$with_context_manager;
12460 else
12461   with_context_manager="none"
12462 fi
12463
12464 else
12465     LIBGUPNP_LIBS="$LIBGUPNP_LIBS -lrpcrt4"
12466     with_context_manager="windows"
12467 fi
12468
12469 if test "x$with_context_manager" = "xnone"; then
12470         case "$target_os" in
12471         linux*)
12472                 with_context_manager="linux"
12473                 ;;
12474         *)
12475                 with_context_manager="unix"
12476                 ;;
12477         esac
12478 fi
12479
12480 for ac_header in sys/socket.h linux/rtnetlink.h
12481 do :
12482   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12483 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " #ifdef HAVE_SYS_SOCKET_H
12484                   #include <sys/socket.h>
12485                   #endif
12486
12487 "
12488 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12489   cat >>confdefs.h <<_ACEOF
12490 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12491 _ACEOF
12492   HAVE_NETLINK=yes
12493 else
12494    HAVE_NETLINK=no
12495 fi
12496
12497 done
12498
12499  if test "x$HAVE_NETLINK" = "xyes"; then
12500   HAVE_NETLINK_TRUE=
12501   HAVE_NETLINK_FALSE='#'
12502 else
12503   HAVE_NETLINK_TRUE='#'
12504   HAVE_NETLINK_FALSE=
12505 fi
12506
12507
12508
12509 for ac_header in linux/wireless.h
12510 do :
12511   ac_fn_c_check_header_compile "$LINENO" "linux/wireless.h" "ac_cv_header_linux_wireless_h" " #ifdef HAVE_SYS_SOCKET_H
12512                   #include <sys/socket.h>
12513                   #endif
12514
12515 "
12516 if test "x$ac_cv_header_linux_wireless_h" = xyes; then :
12517   cat >>confdefs.h <<_ACEOF
12518 #define HAVE_LINUX_WIRELESS_H 1
12519 _ACEOF
12520
12521 fi
12522
12523 done
12524
12525
12526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Context Manager backend to use" >&5
12527 $as_echo_n "checking Context Manager backend to use... " >&6; }
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_context_manager}" >&5
12529 $as_echo "${with_context_manager}" >&6; }
12530
12531  if test "x$with_context_manager" = "xnetwork-manager"; then
12532   USE_NETWORK_MANAGER_TRUE=
12533   USE_NETWORK_MANAGER_FALSE='#'
12534 else
12535   USE_NETWORK_MANAGER_TRUE='#'
12536   USE_NETWORK_MANAGER_FALSE=
12537 fi
12538
12539 if test "x$with_context_manager" = "xnetwork-manager"; then :
12540
12541 pkg_failed=no
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GIO" >&5
12543 $as_echo_n "checking for GIO... " >&6; }
12544
12545 if test -n "$GIO_CFLAGS"; then
12546     pkg_cv_GIO_CFLAGS="$GIO_CFLAGS"
12547  elif test -n "$PKG_CONFIG"; then
12548     if test -n "$PKG_CONFIG" && \
12549     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= 2.26\""; } >&5
12550   ($PKG_CONFIG --exists --print-errors "gio-2.0 >= 2.26") 2>&5
12551   ac_status=$?
12552   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12553   test $ac_status = 0; }; then
12554   pkg_cv_GIO_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 >= 2.26" 2>/dev/null`
12555                       test "x$?" != "x0" && pkg_failed=yes
12556 else
12557   pkg_failed=yes
12558 fi
12559  else
12560     pkg_failed=untried
12561 fi
12562 if test -n "$GIO_LIBS"; then
12563     pkg_cv_GIO_LIBS="$GIO_LIBS"
12564  elif test -n "$PKG_CONFIG"; then
12565     if test -n "$PKG_CONFIG" && \
12566     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= 2.26\""; } >&5
12567   ($PKG_CONFIG --exists --print-errors "gio-2.0 >= 2.26") 2>&5
12568   ac_status=$?
12569   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12570   test $ac_status = 0; }; then
12571   pkg_cv_GIO_LIBS=`$PKG_CONFIG --libs "gio-2.0 >= 2.26" 2>/dev/null`
12572                       test "x$?" != "x0" && pkg_failed=yes
12573 else
12574   pkg_failed=yes
12575 fi
12576  else
12577     pkg_failed=untried
12578 fi
12579
12580
12581
12582 if test $pkg_failed = yes; then
12583         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12584 $as_echo "no" >&6; }
12585
12586 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12587         _pkg_short_errors_supported=yes
12588 else
12589         _pkg_short_errors_supported=no
12590 fi
12591         if test $_pkg_short_errors_supported = yes; then
12592                 GIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gio-2.0 >= 2.26" 2>&1`
12593         else
12594                 GIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gio-2.0 >= 2.26" 2>&1`
12595         fi
12596         # Put the nasty error message in config.log where it belongs
12597         echo "$GIO_PKG_ERRORS" >&5
12598
12599         as_fn_error $? "Package requirements (gio-2.0 >= 2.26) were not met:
12600
12601 $GIO_PKG_ERRORS
12602
12603 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12604 installed software in a non-standard prefix.
12605
12606 Alternatively, you may set the environment variables GIO_CFLAGS
12607 and GIO_LIBS to avoid the need to call pkg-config.
12608 See the pkg-config man page for more details." "$LINENO" 5
12609 elif test $pkg_failed = untried; then
12610         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12611 $as_echo "no" >&6; }
12612         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12613 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12614 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
12615 is in your PATH or set the PKG_CONFIG environment variable to the full
12616 path to pkg-config.
12617
12618 Alternatively, you may set the environment variables GIO_CFLAGS
12619 and GIO_LIBS to avoid the need to call pkg-config.
12620 See the pkg-config man page for more details.
12621
12622 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12623 See \`config.log' for more details" "$LINENO" 5; }
12624 else
12625         GIO_CFLAGS=$pkg_cv_GIO_CFLAGS
12626         GIO_LIBS=$pkg_cv_GIO_LIBS
12627         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12628 $as_echo "yes" >&6; }
12629
12630 fi
12631 fi
12632
12633  if test "x$with_context_manager" = "xconnman"; then
12634   USE_CONNMAN_TRUE=
12635   USE_CONNMAN_FALSE='#'
12636 else
12637   USE_CONNMAN_TRUE='#'
12638   USE_CONNMAN_FALSE=
12639 fi
12640
12641
12642 if test "x$with_context_manager" = "xconnman"; then
12643
12644 pkg_failed=no
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CONNMAN" >&5
12646 $as_echo_n "checking for CONNMAN... " >&6; }
12647
12648 if test -n "$CONNMAN_CFLAGS"; then
12649     pkg_cv_CONNMAN_CFLAGS="$CONNMAN_CFLAGS"
12650  elif test -n "$PKG_CONFIG"; then
12651     if test -n "$PKG_CONFIG" && \
12652     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.28 connman >= 0.80\""; } >&5
12653   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.28 connman >= 0.80") 2>&5
12654   ac_status=$?
12655   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12656   test $ac_status = 0; }; then
12657   pkg_cv_CONNMAN_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.28 connman >= 0.80" 2>/dev/null`
12658                       test "x$?" != "x0" && pkg_failed=yes
12659 else
12660   pkg_failed=yes
12661 fi
12662  else
12663     pkg_failed=untried
12664 fi
12665 if test -n "$CONNMAN_LIBS"; then
12666     pkg_cv_CONNMAN_LIBS="$CONNMAN_LIBS"
12667  elif test -n "$PKG_CONFIG"; then
12668     if test -n "$PKG_CONFIG" && \
12669     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.28 connman >= 0.80\""; } >&5
12670   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.28 connman >= 0.80") 2>&5
12671   ac_status=$?
12672   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12673   test $ac_status = 0; }; then
12674   pkg_cv_CONNMAN_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.28 connman >= 0.80" 2>/dev/null`
12675                       test "x$?" != "x0" && pkg_failed=yes
12676 else
12677   pkg_failed=yes
12678 fi
12679  else
12680     pkg_failed=untried
12681 fi
12682
12683
12684
12685 if test $pkg_failed = yes; then
12686         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12687 $as_echo "no" >&6; }
12688
12689 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12690         _pkg_short_errors_supported=yes
12691 else
12692         _pkg_short_errors_supported=no
12693 fi
12694         if test $_pkg_short_errors_supported = yes; then
12695                 CONNMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.28 connman >= 0.80" 2>&1`
12696         else
12697                 CONNMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.28 connman >= 0.80" 2>&1`
12698         fi
12699         # Put the nasty error message in config.log where it belongs
12700         echo "$CONNMAN_PKG_ERRORS" >&5
12701
12702         as_fn_error $? "Package requirements (glib-2.0 >= 2.28 connman >= 0.80) were not met:
12703
12704 $CONNMAN_PKG_ERRORS
12705
12706 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12707 installed software in a non-standard prefix.
12708
12709 Alternatively, you may set the environment variables CONNMAN_CFLAGS
12710 and CONNMAN_LIBS to avoid the need to call pkg-config.
12711 See the pkg-config man page for more details." "$LINENO" 5
12712 elif test $pkg_failed = untried; then
12713         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12714 $as_echo "no" >&6; }
12715         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12716 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12717 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
12718 is in your PATH or set the PKG_CONFIG environment variable to the full
12719 path to pkg-config.
12720
12721 Alternatively, you may set the environment variables CONNMAN_CFLAGS
12722 and CONNMAN_LIBS to avoid the need to call pkg-config.
12723 See the pkg-config man page for more details.
12724
12725 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12726 See \`config.log' for more details" "$LINENO" 5; }
12727 else
12728         CONNMAN_CFLAGS=$pkg_cv_CONNMAN_CFLAGS
12729         CONNMAN_LIBS=$pkg_cv_CONNMAN_LIBS
12730         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12731 $as_echo "yes" >&6; }
12732
12733 fi
12734 fi
12735
12736 USE_NETLINK=no
12737 if test "x$with_context_manager" = "xlinux"; then :
12738   if test "x$HAVE_NETLINK" = "xno"; then :
12739   { $as_echo "$as_me:${as_lineno-$LINENO}: No rtnetlink found, falling back to static context manager" >&5
12740 $as_echo "$as_me: No rtnetlink found, falling back to static context manager" >&6;}
12741 else
12742   USE_NETLINK=yes
12743 fi
12744
12745 fi
12746
12747  if test "x$USE_NETLINK" = "xyes"; then
12748   USE_NETLINK_TRUE=
12749   USE_NETLINK_FALSE='#'
12750 else
12751   USE_NETLINK_TRUE='#'
12752   USE_NETLINK_FALSE=
12753 fi
12754
12755
12756
12757 # glib-genmarshal
12758 GLIB_GENMARSHAL=`pkg-config --variable=glib_genmarshal glib-2.0`
12759
12760
12761 # Debugging
12762 # Check whether --enable-debug was given.
12763 if test "${enable_debug+set}" = set; then :
12764   enableval=$enable_debug;
12765 else
12766   enable_debug=no
12767 fi
12768
12769 if test "x$enable_debug" = "xyes"; then
12770         CFLAGS="$CFLAGS -g -Wall -Werror"
12771 fi
12772
12773
12774
12775
12776                 # Check whether --enable-introspection was given.
12777 if test "${enable_introspection+set}" = set; then :
12778   enableval=$enable_introspection;
12779 else
12780   enable_introspection=auto
12781 fi
12782
12783
12784     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-introspection" >&5
12785 $as_echo_n "checking for gobject-introspection... " >&6; }
12786
12787         case $enable_introspection in #(
12788   no) :
12789             found_introspection="no (disabled, use --enable-introspection to enable)"
12790      ;; #(
12791       yes) :
12792             if test -n "$PKG_CONFIG" && \
12793     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0\""; } >&5
12794   ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0") 2>&5
12795   ac_status=$?
12796   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12797   test $ac_status = 0; }; then
12798   :
12799 else
12800   as_fn_error $? "gobject-introspection-1.0 is not installed" "$LINENO" 5
12801 fi
12802         if test -n "$PKG_CONFIG" && \
12803     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 0.6.4\""; } >&5
12804   ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 0.6.4") 2>&5
12805   ac_status=$?
12806   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12807   test $ac_status = 0; }; then
12808   found_introspection=yes
12809 else
12810   as_fn_error $? "You need to have gobject-introspection >= 0.6.4 installed to build gupnp" "$LINENO" 5
12811 fi
12812      ;; #(
12813       auto) :
12814             if test -n "$PKG_CONFIG" && \
12815     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 0.6.4\""; } >&5
12816   ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 0.6.4") 2>&5
12817   ac_status=$?
12818   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12819   test $ac_status = 0; }; then
12820   found_introspection=yes
12821 else
12822   found_introspection=no
12823 fi
12824      ;; #(
12825   *) :
12826                 as_fn_error $? "invalid argument passed to --enable-introspection, should be one of [no/auto/yes]" "$LINENO" 5
12827      ;;
12828 esac
12829     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_introspection" >&5
12830 $as_echo "$found_introspection" >&6; }
12831
12832     INTROSPECTION_SCANNER=
12833     INTROSPECTION_COMPILER=
12834     INTROSPECTION_GENERATE=
12835     INTROSPECTION_GIRDIR=
12836     INTROSPECTION_TYPELIBDIR=
12837     if test "x$found_introspection" = "xyes"; then
12838        INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
12839        INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
12840        INTROSPECTION_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0`
12841        INTROSPECTION_GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0`
12842        INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)"
12843        INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0`
12844        INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0`
12845        INTROSPECTION_MAKEFILE=`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection
12846     fi
12847
12848
12849
12850
12851
12852
12853
12854
12855
12856      if test "x$found_introspection" = "xyes"; then
12857   HAVE_INTROSPECTION_TRUE=
12858   HAVE_INTROSPECTION_FALSE='#'
12859 else
12860   HAVE_INTROSPECTION_TRUE='#'
12861   HAVE_INTROSPECTION_FALSE=
12862 fi
12863
12864
12865
12866
12867 # vapigen
12868 if test "x$found_introspection" = "xyes"; then :
12869
12870        # Extract the first word of "vapigen", so it can be a program name with args.
12871 set dummy vapigen; ac_word=$2
12872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12873 $as_echo_n "checking for $ac_word... " >&6; }
12874 if ${ac_cv_path_VAPIGEN+:} false; then :
12875   $as_echo_n "(cached) " >&6
12876 else
12877   case $VAPIGEN in
12878   [\\/]* | ?:[\\/]*)
12879   ac_cv_path_VAPIGEN="$VAPIGEN" # Let the user override the test with a path.
12880   ;;
12881   *)
12882   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12883 for as_dir in $PATH
12884 do
12885   IFS=$as_save_IFS
12886   test -z "$as_dir" && as_dir=.
12887     for ac_exec_ext in '' $ac_executable_extensions; do
12888   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12889     ac_cv_path_VAPIGEN="$as_dir/$ac_word$ac_exec_ext"
12890     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12891     break 2
12892   fi
12893 done
12894   done
12895 IFS=$as_save_IFS
12896
12897   ;;
12898 esac
12899 fi
12900 VAPIGEN=$ac_cv_path_VAPIGEN
12901 if test -n "$VAPIGEN"; then
12902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VAPIGEN" >&5
12903 $as_echo "$VAPIGEN" >&6; }
12904 else
12905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12906 $as_echo "no" >&6; }
12907 fi
12908
12909
12910   if test -z "$VAPIGEN"; then :
12911   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No Vala API Generator found. You will not be able to generate .vapi files." >&5
12912 $as_echo "$as_me: WARNING: No Vala API Generator found. You will not be able to generate .vapi files." >&2;}
12913 else
12914   if test -n "0.14"; then :
12915   { $as_echo "$as_me:${as_lineno-$LINENO}: checking $VAPIGEN is at least version 0.14" >&5
12916 $as_echo_n "checking $VAPIGEN is at least version 0.14... " >&6; }
12917          am__vapigen_version=`$VAPIGEN --version | sed 's/Vala API Generator  *//'`
12918          as_arg_v1=0.14
12919 as_arg_v2="$am__vapigen_version"
12920 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
12921 case $? in #(
12922   1) :
12923     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12924 $as_echo "yes" >&6; } ;; #(
12925   0) :
12926     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12927 $as_echo "yes" >&6; } ;; #(
12928   2) :
12929     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12930 $as_echo "no" >&6; }
12931             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Vala API Generator 0.14 not found." >&5
12932 $as_echo "$as_me: WARNING: Vala API Generator 0.14 not found." >&2;} ;; #(
12933   *) :
12934      ;;
12935 esac
12936 fi
12937 fi
12938
12939
12940
12941 fi
12942  if test "x$VAPIGEN" != "x"; then
12943   HAVE_VAPIGEN_TRUE=
12944   HAVE_VAPIGEN_FALSE='#'
12945 else
12946   HAVE_VAPIGEN_TRUE='#'
12947   HAVE_VAPIGEN_FALSE=
12948 fi
12949
12950
12951 # Gtk-doc
12952
12953
12954
12955     # Extract the first word of "gtkdoc-check", so it can be a program name with args.
12956 set dummy gtkdoc-check; ac_word=$2
12957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12958 $as_echo_n "checking for $ac_word... " >&6; }
12959 if ${ac_cv_path_GTKDOC_CHECK+:} false; then :
12960   $as_echo_n "(cached) " >&6
12961 else
12962   case $GTKDOC_CHECK in
12963   [\\/]* | ?:[\\/]*)
12964   ac_cv_path_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test with a path.
12965   ;;
12966   *)
12967   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12968 for as_dir in $PATH
12969 do
12970   IFS=$as_save_IFS
12971   test -z "$as_dir" && as_dir=.
12972     for ac_exec_ext in '' $ac_executable_extensions; do
12973   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12974     ac_cv_path_GTKDOC_CHECK="$as_dir/$ac_word$ac_exec_ext"
12975     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12976     break 2
12977   fi
12978 done
12979   done
12980 IFS=$as_save_IFS
12981
12982   ;;
12983 esac
12984 fi
12985 GTKDOC_CHECK=$ac_cv_path_GTKDOC_CHECK
12986 if test -n "$GTKDOC_CHECK"; then
12987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
12988 $as_echo "$GTKDOC_CHECK" >&6; }
12989 else
12990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12991 $as_echo "no" >&6; }
12992 fi
12993
12994
12995   for ac_prog in gtkdoc-rebase
12996 do
12997   # Extract the first word of "$ac_prog", so it can be a program name with args.
12998 set dummy $ac_prog; ac_word=$2
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13000 $as_echo_n "checking for $ac_word... " >&6; }
13001 if ${ac_cv_path_GTKDOC_REBASE+:} false; then :
13002   $as_echo_n "(cached) " >&6
13003 else
13004   case $GTKDOC_REBASE in
13005   [\\/]* | ?:[\\/]*)
13006   ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path.
13007   ;;
13008   *)
13009   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13010 for as_dir in $PATH
13011 do
13012   IFS=$as_save_IFS
13013   test -z "$as_dir" && as_dir=.
13014     for ac_exec_ext in '' $ac_executable_extensions; do
13015   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13016     ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext"
13017     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13018     break 2
13019   fi
13020 done
13021   done
13022 IFS=$as_save_IFS
13023
13024   ;;
13025 esac
13026 fi
13027 GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE
13028 if test -n "$GTKDOC_REBASE"; then
13029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5
13030 $as_echo "$GTKDOC_REBASE" >&6; }
13031 else
13032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13033 $as_echo "no" >&6; }
13034 fi
13035
13036
13037   test -n "$GTKDOC_REBASE" && break
13038 done
13039 test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true"
13040
13041   # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args.
13042 set dummy gtkdoc-mkpdf; ac_word=$2
13043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13044 $as_echo_n "checking for $ac_word... " >&6; }
13045 if ${ac_cv_path_GTKDOC_MKPDF+:} false; then :
13046   $as_echo_n "(cached) " >&6
13047 else
13048   case $GTKDOC_MKPDF in
13049   [\\/]* | ?:[\\/]*)
13050   ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path.
13051   ;;
13052   *)
13053   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13054 for as_dir in $PATH
13055 do
13056   IFS=$as_save_IFS
13057   test -z "$as_dir" && as_dir=.
13058     for ac_exec_ext in '' $ac_executable_extensions; do
13059   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13060     ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext"
13061     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13062     break 2
13063   fi
13064 done
13065   done
13066 IFS=$as_save_IFS
13067
13068   ;;
13069 esac
13070 fi
13071 GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF
13072 if test -n "$GTKDOC_MKPDF"; then
13073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5
13074 $as_echo "$GTKDOC_MKPDF" >&6; }
13075 else
13076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13077 $as_echo "no" >&6; }
13078 fi
13079
13080
13081
13082
13083 # Check whether --with-html-dir was given.
13084 if test "${with_html_dir+set}" = set; then :
13085   withval=$with_html_dir;
13086 else
13087   with_html_dir='${datadir}/gtk-doc/html'
13088 fi
13089
13090   HTML_DIR="$with_html_dir"
13091
13092
13093     # Check whether --enable-gtk-doc was given.
13094 if test "${enable_gtk_doc+set}" = set; then :
13095   enableval=$enable_gtk_doc;
13096 else
13097   enable_gtk_doc=no
13098 fi
13099
13100
13101   if test x$enable_gtk_doc = xyes; then
13102     if test -n "$PKG_CONFIG" && \
13103     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-doc >= 1.0\""; } >&5
13104   ($PKG_CONFIG --exists --print-errors "gtk-doc >= 1.0") 2>&5
13105   ac_status=$?
13106   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13107   test $ac_status = 0; }; then
13108   :
13109 else
13110   as_fn_error $? "You need to have gtk-doc >= 1.0 installed to build $PACKAGE_NAME" "$LINENO" 5
13111 fi
13112         if test "x$PACKAGE_NAME" != "xglib"; then
13113
13114 pkg_failed=no
13115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTKDOC_DEPS" >&5
13116 $as_echo_n "checking for GTKDOC_DEPS... " >&6; }
13117
13118 if test -n "$GTKDOC_DEPS_CFLAGS"; then
13119     pkg_cv_GTKDOC_DEPS_CFLAGS="$GTKDOC_DEPS_CFLAGS"
13120  elif test -n "$PKG_CONFIG"; then
13121     if test -n "$PKG_CONFIG" && \
13122     { { $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
13123   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0") 2>&5
13124   ac_status=$?
13125   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13126   test $ac_status = 0; }; then
13127   pkg_cv_GTKDOC_DEPS_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>/dev/null`
13128                       test "x$?" != "x0" && pkg_failed=yes
13129 else
13130   pkg_failed=yes
13131 fi
13132  else
13133     pkg_failed=untried
13134 fi
13135 if test -n "$GTKDOC_DEPS_LIBS"; then
13136     pkg_cv_GTKDOC_DEPS_LIBS="$GTKDOC_DEPS_LIBS"
13137  elif test -n "$PKG_CONFIG"; then
13138     if test -n "$PKG_CONFIG" && \
13139     { { $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
13140   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0") 2>&5
13141   ac_status=$?
13142   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13143   test $ac_status = 0; }; then
13144   pkg_cv_GTKDOC_DEPS_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>/dev/null`
13145                       test "x$?" != "x0" && pkg_failed=yes
13146 else
13147   pkg_failed=yes
13148 fi
13149  else
13150     pkg_failed=untried
13151 fi
13152
13153
13154
13155 if test $pkg_failed = yes; then
13156         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13157 $as_echo "no" >&6; }
13158
13159 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13160         _pkg_short_errors_supported=yes
13161 else
13162         _pkg_short_errors_supported=no
13163 fi
13164         if test $_pkg_short_errors_supported = yes; then
13165                 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`
13166         else
13167                 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>&1`
13168         fi
13169         # Put the nasty error message in config.log where it belongs
13170         echo "$GTKDOC_DEPS_PKG_ERRORS" >&5
13171
13172         as_fn_error $? "Package requirements (glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0) were not met:
13173
13174 $GTKDOC_DEPS_PKG_ERRORS
13175
13176 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13177 installed software in a non-standard prefix.
13178
13179 Alternatively, you may set the environment variables GTKDOC_DEPS_CFLAGS
13180 and GTKDOC_DEPS_LIBS to avoid the need to call pkg-config.
13181 See the pkg-config man page for more details." "$LINENO" 5
13182 elif test $pkg_failed = untried; then
13183         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13184 $as_echo "no" >&6; }
13185         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13186 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13187 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
13188 is in your PATH or set the PKG_CONFIG environment variable to the full
13189 path to pkg-config.
13190
13191 Alternatively, you may set the environment variables GTKDOC_DEPS_CFLAGS
13192 and GTKDOC_DEPS_LIBS to avoid the need to call pkg-config.
13193 See the pkg-config man page for more details.
13194
13195 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13196 See \`config.log' for more details" "$LINENO" 5; }
13197 else
13198         GTKDOC_DEPS_CFLAGS=$pkg_cv_GTKDOC_DEPS_CFLAGS
13199         GTKDOC_DEPS_LIBS=$pkg_cv_GTKDOC_DEPS_LIBS
13200         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13201 $as_echo "yes" >&6; }
13202
13203 fi
13204     fi
13205   fi
13206
13207   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
13208 $as_echo_n "checking whether to build gtk-doc documentation... " >&6; }
13209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
13210 $as_echo "$enable_gtk_doc" >&6; }
13211
13212     # Check whether --enable-gtk-doc-html was given.
13213 if test "${enable_gtk_doc_html+set}" = set; then :
13214   enableval=$enable_gtk_doc_html;
13215 else
13216   enable_gtk_doc_html=yes
13217 fi
13218
13219     # Check whether --enable-gtk-doc-pdf was given.
13220 if test "${enable_gtk_doc_pdf+set}" = set; then :
13221   enableval=$enable_gtk_doc_pdf;
13222 else
13223   enable_gtk_doc_pdf=no
13224 fi
13225
13226
13227   if test -z "$GTKDOC_MKPDF"; then
13228     enable_gtk_doc_pdf=no
13229   fi
13230
13231
13232    if test x$enable_gtk_doc = xyes; then
13233   ENABLE_GTK_DOC_TRUE=
13234   ENABLE_GTK_DOC_FALSE='#'
13235 else
13236   ENABLE_GTK_DOC_TRUE='#'
13237   ENABLE_GTK_DOC_FALSE=
13238 fi
13239
13240    if test x$enable_gtk_doc_html = xyes; then
13241   GTK_DOC_BUILD_HTML_TRUE=
13242   GTK_DOC_BUILD_HTML_FALSE='#'
13243 else
13244   GTK_DOC_BUILD_HTML_TRUE='#'
13245   GTK_DOC_BUILD_HTML_FALSE=
13246 fi
13247
13248    if test x$enable_gtk_doc_pdf = xyes; then
13249   GTK_DOC_BUILD_PDF_TRUE=
13250   GTK_DOC_BUILD_PDF_FALSE='#'
13251 else
13252   GTK_DOC_BUILD_PDF_TRUE='#'
13253   GTK_DOC_BUILD_PDF_FALSE=
13254 fi
13255
13256    if test -n "$LIBTOOL"; then
13257   GTK_DOC_USE_LIBTOOL_TRUE=
13258   GTK_DOC_USE_LIBTOOL_FALSE='#'
13259 else
13260   GTK_DOC_USE_LIBTOOL_TRUE='#'
13261   GTK_DOC_USE_LIBTOOL_FALSE=
13262 fi
13263
13264    if test -n "$GTKDOC_REBASE"; then
13265   GTK_DOC_USE_REBASE_TRUE=
13266   GTK_DOC_USE_REBASE_FALSE='#'
13267 else
13268   GTK_DOC_USE_REBASE_TRUE='#'
13269   GTK_DOC_USE_REBASE_FALSE=
13270 fi
13271
13272
13273
13274 ac_config_files="$ac_config_files Makefile libgupnp/Makefile examples/Makefile tools/Makefile tests/Makefile tests/gtest/Makefile doc/Makefile doc/version.xml vala/Makefile gupnp-1.0.pc gupnp-1.0-uninstalled.pc"
13275
13276 cat >confcache <<\_ACEOF
13277 # This file is a shell script that caches the results of configure
13278 # tests run on this system so they can be shared between configure
13279 # scripts and configure runs, see configure's option --config-cache.
13280 # It is not useful on other systems.  If it contains results you don't
13281 # want to keep, you may remove or edit it.
13282 #
13283 # config.status only pays attention to the cache file if you give it
13284 # the --recheck option to rerun configure.
13285 #
13286 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13287 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13288 # following values.
13289
13290 _ACEOF
13291
13292 # The following way of writing the cache mishandles newlines in values,
13293 # but we know of no workaround that is simple, portable, and efficient.
13294 # So, we kill variables containing newlines.
13295 # Ultrix sh set writes to stderr and can't be redirected directly,
13296 # and sets the high bit in the cache file unless we assign to the vars.
13297 (
13298   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13299     eval ac_val=\$$ac_var
13300     case $ac_val in #(
13301     *${as_nl}*)
13302       case $ac_var in #(
13303       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13304 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13305       esac
13306       case $ac_var in #(
13307       _ | IFS | as_nl) ;; #(
13308       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13309       *) { eval $ac_var=; unset $ac_var;} ;;
13310       esac ;;
13311     esac
13312   done
13313
13314   (set) 2>&1 |
13315     case $as_nl`(ac_space=' '; set) 2>&1` in #(
13316     *${as_nl}ac_space=\ *)
13317       # `set' does not quote correctly, so add quotes: double-quote
13318       # substitution turns \\\\ into \\, and sed turns \\ into \.
13319       sed -n \
13320         "s/'/'\\\\''/g;
13321           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13322       ;; #(
13323     *)
13324       # `set' quotes correctly as required by POSIX, so do not add quotes.
13325       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13326       ;;
13327     esac |
13328     sort
13329 ) |
13330   sed '
13331      /^ac_cv_env_/b end
13332      t clear
13333      :clear
13334      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13335      t end
13336      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13337      :end' >>confcache
13338 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13339   if test -w "$cache_file"; then
13340     if test "x$cache_file" != "x/dev/null"; then
13341       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13342 $as_echo "$as_me: updating cache $cache_file" >&6;}
13343       if test ! -f "$cache_file" || test -h "$cache_file"; then
13344         cat confcache >"$cache_file"
13345       else
13346         case $cache_file in #(
13347         */* | ?:*)
13348           mv -f confcache "$cache_file"$$ &&
13349           mv -f "$cache_file"$$ "$cache_file" ;; #(
13350         *)
13351           mv -f confcache "$cache_file" ;;
13352         esac
13353       fi
13354     fi
13355   else
13356     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13357 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13358   fi
13359 fi
13360 rm -f confcache
13361
13362 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13363 # Let make expand exec_prefix.
13364 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13365
13366 DEFS=-DHAVE_CONFIG_H
13367
13368 ac_libobjs=
13369 ac_ltlibobjs=
13370 U=
13371 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13372   # 1. Remove the extension, and $U if already installed.
13373   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13374   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13375   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13376   #    will be set to the directory where LIBOBJS objects are built.
13377   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13378   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13379 done
13380 LIBOBJS=$ac_libobjs
13381
13382 LTLIBOBJS=$ac_ltlibobjs
13383
13384
13385  if test -n "$EXEEXT"; then
13386   am__EXEEXT_TRUE=
13387   am__EXEEXT_FALSE='#'
13388 else
13389   am__EXEEXT_TRUE='#'
13390   am__EXEEXT_FALSE=
13391 fi
13392
13393 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13394   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
13395 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13396 fi
13397 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13398   as_fn_error $? "conditional \"AMDEP\" was never defined.
13399 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13400 fi
13401 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13402   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13403 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13404 fi
13405 if test -z "${HAVE_GTEST_TRUE}" && test -z "${HAVE_GTEST_FALSE}"; then
13406   as_fn_error $? "conditional \"HAVE_GTEST\" was never defined.
13407 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13408 fi
13409 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
13410   as_fn_error $? "conditional \"OS_WIN32\" was never defined.
13411 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13412 fi
13413 if test -z "${HAVE_NETLINK_TRUE}" && test -z "${HAVE_NETLINK_FALSE}"; then
13414   as_fn_error $? "conditional \"HAVE_NETLINK\" was never defined.
13415 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13416 fi
13417 if test -z "${USE_NETWORK_MANAGER_TRUE}" && test -z "${USE_NETWORK_MANAGER_FALSE}"; then
13418   as_fn_error $? "conditional \"USE_NETWORK_MANAGER\" was never defined.
13419 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13420 fi
13421 if test -z "${USE_CONNMAN_TRUE}" && test -z "${USE_CONNMAN_FALSE}"; then
13422   as_fn_error $? "conditional \"USE_CONNMAN\" was never defined.
13423 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13424 fi
13425 if test -z "${USE_NETLINK_TRUE}" && test -z "${USE_NETLINK_FALSE}"; then
13426   as_fn_error $? "conditional \"USE_NETLINK\" was never defined.
13427 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13428 fi
13429 if test -z "${HAVE_INTROSPECTION_TRUE}" && test -z "${HAVE_INTROSPECTION_FALSE}"; then
13430   as_fn_error $? "conditional \"HAVE_INTROSPECTION\" was never defined.
13431 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13432 fi
13433 if test -z "${HAVE_VAPIGEN_TRUE}" && test -z "${HAVE_VAPIGEN_FALSE}"; then
13434   as_fn_error $? "conditional \"HAVE_VAPIGEN\" was never defined.
13435 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13436 fi
13437 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
13438   as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
13439 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13440 fi
13441 if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then
13442   as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined.
13443 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13444 fi
13445 if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then
13446   as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined.
13447 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13448 fi
13449 if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
13450   as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
13451 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13452 fi
13453 if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then
13454   as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined.
13455 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13456 fi
13457
13458 : "${CONFIG_STATUS=./config.status}"
13459 ac_write_fail=0
13460 ac_clean_files_save=$ac_clean_files
13461 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13462 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13463 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13464 as_write_fail=0
13465 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13466 #! $SHELL
13467 # Generated by $as_me.
13468 # Run this file to recreate the current configuration.
13469 # Compiler output produced by configure, useful for debugging
13470 # configure, is in config.log if it exists.
13471
13472 debug=false
13473 ac_cs_recheck=false
13474 ac_cs_silent=false
13475
13476 SHELL=\${CONFIG_SHELL-$SHELL}
13477 export SHELL
13478 _ASEOF
13479 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13480 ## -------------------- ##
13481 ## M4sh Initialization. ##
13482 ## -------------------- ##
13483
13484 # Be more Bourne compatible
13485 DUALCASE=1; export DUALCASE # for MKS sh
13486 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13487   emulate sh
13488   NULLCMD=:
13489   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13490   # is contrary to our usage.  Disable this feature.
13491   alias -g '${1+"$@"}'='"$@"'
13492   setopt NO_GLOB_SUBST
13493 else
13494   case `(set -o) 2>/dev/null` in #(
13495   *posix*) :
13496     set -o posix ;; #(
13497   *) :
13498      ;;
13499 esac
13500 fi
13501
13502
13503 as_nl='
13504 '
13505 export as_nl
13506 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13507 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13508 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13509 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13510 # Prefer a ksh shell builtin over an external printf program on Solaris,
13511 # but without wasting forks for bash or zsh.
13512 if test -z "$BASH_VERSION$ZSH_VERSION" \
13513     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13514   as_echo='print -r --'
13515   as_echo_n='print -rn --'
13516 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13517   as_echo='printf %s\n'
13518   as_echo_n='printf %s'
13519 else
13520   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13521     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13522     as_echo_n='/usr/ucb/echo -n'
13523   else
13524     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13525     as_echo_n_body='eval
13526       arg=$1;
13527       case $arg in #(
13528       *"$as_nl"*)
13529         expr "X$arg" : "X\\(.*\\)$as_nl";
13530         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13531       esac;
13532       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13533     '
13534     export as_echo_n_body
13535     as_echo_n='sh -c $as_echo_n_body as_echo'
13536   fi
13537   export as_echo_body
13538   as_echo='sh -c $as_echo_body as_echo'
13539 fi
13540
13541 # The user is always right.
13542 if test "${PATH_SEPARATOR+set}" != set; then
13543   PATH_SEPARATOR=:
13544   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13545     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13546       PATH_SEPARATOR=';'
13547   }
13548 fi
13549
13550
13551 # IFS
13552 # We need space, tab and new line, in precisely that order.  Quoting is
13553 # there to prevent editors from complaining about space-tab.
13554 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13555 # splitting by setting IFS to empty value.)
13556 IFS=" ""        $as_nl"
13557
13558 # Find who we are.  Look in the path if we contain no directory separator.
13559 as_myself=
13560 case $0 in #((
13561   *[\\/]* ) as_myself=$0 ;;
13562   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13563 for as_dir in $PATH
13564 do
13565   IFS=$as_save_IFS
13566   test -z "$as_dir" && as_dir=.
13567     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13568   done
13569 IFS=$as_save_IFS
13570
13571      ;;
13572 esac
13573 # We did not find ourselves, most probably we were run as `sh COMMAND'
13574 # in which case we are not to be found in the path.
13575 if test "x$as_myself" = x; then
13576   as_myself=$0
13577 fi
13578 if test ! -f "$as_myself"; then
13579   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13580   exit 1
13581 fi
13582
13583 # Unset variables that we do not need and which cause bugs (e.g. in
13584 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13585 # suppresses any "Segmentation fault" message there.  '((' could
13586 # trigger a bug in pdksh 5.2.14.
13587 for as_var in BASH_ENV ENV MAIL MAILPATH
13588 do eval test x\${$as_var+set} = xset \
13589   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13590 done
13591 PS1='$ '
13592 PS2='> '
13593 PS4='+ '
13594
13595 # NLS nuisances.
13596 LC_ALL=C
13597 export LC_ALL
13598 LANGUAGE=C
13599 export LANGUAGE
13600
13601 # CDPATH.
13602 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13603
13604
13605 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13606 # ----------------------------------------
13607 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13608 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13609 # script with STATUS, using 1 if that was 0.
13610 as_fn_error ()
13611 {
13612   as_status=$1; test $as_status -eq 0 && as_status=1
13613   if test "$4"; then
13614     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13615     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13616   fi
13617   $as_echo "$as_me: error: $2" >&2
13618   as_fn_exit $as_status
13619 } # as_fn_error
13620
13621
13622 # as_fn_set_status STATUS
13623 # -----------------------
13624 # Set $? to STATUS, without forking.
13625 as_fn_set_status ()
13626 {
13627   return $1
13628 } # as_fn_set_status
13629
13630 # as_fn_exit STATUS
13631 # -----------------
13632 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13633 as_fn_exit ()
13634 {
13635   set +e
13636   as_fn_set_status $1
13637   exit $1
13638 } # as_fn_exit
13639
13640 # as_fn_unset VAR
13641 # ---------------
13642 # Portably unset VAR.
13643 as_fn_unset ()
13644 {
13645   { eval $1=; unset $1;}
13646 }
13647 as_unset=as_fn_unset
13648 # as_fn_append VAR VALUE
13649 # ----------------------
13650 # Append the text in VALUE to the end of the definition contained in VAR. Take
13651 # advantage of any shell optimizations that allow amortized linear growth over
13652 # repeated appends, instead of the typical quadratic growth present in naive
13653 # implementations.
13654 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13655   eval 'as_fn_append ()
13656   {
13657     eval $1+=\$2
13658   }'
13659 else
13660   as_fn_append ()
13661   {
13662     eval $1=\$$1\$2
13663   }
13664 fi # as_fn_append
13665
13666 # as_fn_arith ARG...
13667 # ------------------
13668 # Perform arithmetic evaluation on the ARGs, and store the result in the
13669 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13670 # must be portable across $(()) and expr.
13671 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13672   eval 'as_fn_arith ()
13673   {
13674     as_val=$(( $* ))
13675   }'
13676 else
13677   as_fn_arith ()
13678   {
13679     as_val=`expr "$@" || test $? -eq 1`
13680   }
13681 fi # as_fn_arith
13682
13683
13684 if expr a : '\(a\)' >/dev/null 2>&1 &&
13685    test "X`expr 00001 : '.*\(...\)'`" = X001; then
13686   as_expr=expr
13687 else
13688   as_expr=false
13689 fi
13690
13691 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13692   as_basename=basename
13693 else
13694   as_basename=false
13695 fi
13696
13697 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13698   as_dirname=dirname
13699 else
13700   as_dirname=false
13701 fi
13702
13703 as_me=`$as_basename -- "$0" ||
13704 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13705          X"$0" : 'X\(//\)$' \| \
13706          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13707 $as_echo X/"$0" |
13708     sed '/^.*\/\([^/][^/]*\)\/*$/{
13709             s//\1/
13710             q
13711           }
13712           /^X\/\(\/\/\)$/{
13713             s//\1/
13714             q
13715           }
13716           /^X\/\(\/\).*/{
13717             s//\1/
13718             q
13719           }
13720           s/.*/./; q'`
13721
13722 # Avoid depending upon Character Ranges.
13723 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13724 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13725 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13726 as_cr_digits='0123456789'
13727 as_cr_alnum=$as_cr_Letters$as_cr_digits
13728
13729 ECHO_C= ECHO_N= ECHO_T=
13730 case `echo -n x` in #(((((
13731 -n*)
13732   case `echo 'xy\c'` in
13733   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
13734   xy)  ECHO_C='\c';;
13735   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13736        ECHO_T=' ';;
13737   esac;;
13738 *)
13739   ECHO_N='-n';;
13740 esac
13741
13742 rm -f conf$$ conf$$.exe conf$$.file
13743 if test -d conf$$.dir; then
13744   rm -f conf$$.dir/conf$$.file
13745 else
13746   rm -f conf$$.dir
13747   mkdir conf$$.dir 2>/dev/null
13748 fi
13749 if (echo >conf$$.file) 2>/dev/null; then
13750   if ln -s conf$$.file conf$$ 2>/dev/null; then
13751     as_ln_s='ln -s'
13752     # ... but there are two gotchas:
13753     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13754     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13755     # In both cases, we have to default to `cp -pR'.
13756     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13757       as_ln_s='cp -pR'
13758   elif ln conf$$.file conf$$ 2>/dev/null; then
13759     as_ln_s=ln
13760   else
13761     as_ln_s='cp -pR'
13762   fi
13763 else
13764   as_ln_s='cp -pR'
13765 fi
13766 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13767 rmdir conf$$.dir 2>/dev/null
13768
13769
13770 # as_fn_mkdir_p
13771 # -------------
13772 # Create "$as_dir" as a directory, including parents if necessary.
13773 as_fn_mkdir_p ()
13774 {
13775
13776   case $as_dir in #(
13777   -*) as_dir=./$as_dir;;
13778   esac
13779   test -d "$as_dir" || eval $as_mkdir_p || {
13780     as_dirs=
13781     while :; do
13782       case $as_dir in #(
13783       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13784       *) as_qdir=$as_dir;;
13785       esac
13786       as_dirs="'$as_qdir' $as_dirs"
13787       as_dir=`$as_dirname -- "$as_dir" ||
13788 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13789          X"$as_dir" : 'X\(//\)[^/]' \| \
13790          X"$as_dir" : 'X\(//\)$' \| \
13791          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13792 $as_echo X"$as_dir" |
13793     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13794             s//\1/
13795             q
13796           }
13797           /^X\(\/\/\)[^/].*/{
13798             s//\1/
13799             q
13800           }
13801           /^X\(\/\/\)$/{
13802             s//\1/
13803             q
13804           }
13805           /^X\(\/\).*/{
13806             s//\1/
13807             q
13808           }
13809           s/.*/./; q'`
13810       test -d "$as_dir" && break
13811     done
13812     test -z "$as_dirs" || eval "mkdir $as_dirs"
13813   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13814
13815
13816 } # as_fn_mkdir_p
13817 if mkdir -p . 2>/dev/null; then
13818   as_mkdir_p='mkdir -p "$as_dir"'
13819 else
13820   test -d ./-p && rmdir ./-p
13821   as_mkdir_p=false
13822 fi
13823
13824
13825 # as_fn_executable_p FILE
13826 # -----------------------
13827 # Test if FILE is an executable regular file.
13828 as_fn_executable_p ()
13829 {
13830   test -f "$1" && test -x "$1"
13831 } # as_fn_executable_p
13832 as_test_x='test -x'
13833 as_executable_p=as_fn_executable_p
13834
13835 # Sed expression to map a string onto a valid CPP name.
13836 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13837
13838 # Sed expression to map a string onto a valid variable name.
13839 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13840
13841
13842 exec 6>&1
13843 ## ----------------------------------- ##
13844 ## Main body of $CONFIG_STATUS script. ##
13845 ## ----------------------------------- ##
13846 _ASEOF
13847 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13848
13849 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13850 # Save the log message, to keep $0 and so on meaningful, and to
13851 # report actual input values of CONFIG_FILES etc. instead of their
13852 # values after options handling.
13853 ac_log="
13854 This file was extended by gupnp $as_me 0.20.1, which was
13855 generated by GNU Autoconf 2.69.  Invocation command line was
13856
13857   CONFIG_FILES    = $CONFIG_FILES
13858   CONFIG_HEADERS  = $CONFIG_HEADERS
13859   CONFIG_LINKS    = $CONFIG_LINKS
13860   CONFIG_COMMANDS = $CONFIG_COMMANDS
13861   $ $0 $@
13862
13863 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13864 "
13865
13866 _ACEOF
13867
13868 case $ac_config_files in *"
13869 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13870 esac
13871
13872 case $ac_config_headers in *"
13873 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13874 esac
13875
13876
13877 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13878 # Files that config.status was made for.
13879 config_files="$ac_config_files"
13880 config_headers="$ac_config_headers"
13881 config_commands="$ac_config_commands"
13882
13883 _ACEOF
13884
13885 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13886 ac_cs_usage="\
13887 \`$as_me' instantiates files and other configuration actions
13888 from templates according to the current configuration.  Unless the files
13889 and actions are specified as TAGs, all are instantiated by default.
13890
13891 Usage: $0 [OPTION]... [TAG]...
13892
13893   -h, --help       print this help, then exit
13894   -V, --version    print version number and configuration settings, then exit
13895       --config     print configuration, then exit
13896   -q, --quiet, --silent
13897                    do not print progress messages
13898   -d, --debug      don't remove temporary files
13899       --recheck    update $as_me by reconfiguring in the same conditions
13900       --file=FILE[:TEMPLATE]
13901                    instantiate the configuration file FILE
13902       --header=FILE[:TEMPLATE]
13903                    instantiate the configuration header FILE
13904
13905 Configuration files:
13906 $config_files
13907
13908 Configuration headers:
13909 $config_headers
13910
13911 Configuration commands:
13912 $config_commands
13913
13914 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=gupnp&component=gupnp>.
13915 gupnp home page: <http://www.gupnp.org/>."
13916
13917 _ACEOF
13918 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13919 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13920 ac_cs_version="\\
13921 gupnp config.status 0.20.1
13922 configured by $0, generated by GNU Autoconf 2.69,
13923   with options \\"\$ac_cs_config\\"
13924
13925 Copyright (C) 2012 Free Software Foundation, Inc.
13926 This config.status script is free software; the Free Software Foundation
13927 gives unlimited permission to copy, distribute and modify it."
13928
13929 ac_pwd='$ac_pwd'
13930 srcdir='$srcdir'
13931 INSTALL='$INSTALL'
13932 MKDIR_P='$MKDIR_P'
13933 AWK='$AWK'
13934 test -n "\$AWK" || AWK=awk
13935 _ACEOF
13936
13937 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13938 # The default lists apply if the user does not specify any file.
13939 ac_need_defaults=:
13940 while test $# != 0
13941 do
13942   case $1 in
13943   --*=?*)
13944     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13945     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13946     ac_shift=:
13947     ;;
13948   --*=)
13949     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13950     ac_optarg=
13951     ac_shift=:
13952     ;;
13953   *)
13954     ac_option=$1
13955     ac_optarg=$2
13956     ac_shift=shift
13957     ;;
13958   esac
13959
13960   case $ac_option in
13961   # Handling of the options.
13962   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13963     ac_cs_recheck=: ;;
13964   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13965     $as_echo "$ac_cs_version"; exit ;;
13966   --config | --confi | --conf | --con | --co | --c )
13967     $as_echo "$ac_cs_config"; exit ;;
13968   --debug | --debu | --deb | --de | --d | -d )
13969     debug=: ;;
13970   --file | --fil | --fi | --f )
13971     $ac_shift
13972     case $ac_optarg in
13973     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13974     '') as_fn_error $? "missing file argument" ;;
13975     esac
13976     as_fn_append CONFIG_FILES " '$ac_optarg'"
13977     ac_need_defaults=false;;
13978   --header | --heade | --head | --hea )
13979     $ac_shift
13980     case $ac_optarg in
13981     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13982     esac
13983     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13984     ac_need_defaults=false;;
13985   --he | --h)
13986     # Conflict between --help and --header
13987     as_fn_error $? "ambiguous option: \`$1'
13988 Try \`$0 --help' for more information.";;
13989   --help | --hel | -h )
13990     $as_echo "$ac_cs_usage"; exit ;;
13991   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13992   | -silent | --silent | --silen | --sile | --sil | --si | --s)
13993     ac_cs_silent=: ;;
13994
13995   # This is an error.
13996   -*) as_fn_error $? "unrecognized option: \`$1'
13997 Try \`$0 --help' for more information." ;;
13998
13999   *) as_fn_append ac_config_targets " $1"
14000      ac_need_defaults=false ;;
14001
14002   esac
14003   shift
14004 done
14005
14006 ac_configure_extra_args=
14007
14008 if $ac_cs_silent; then
14009   exec 6>/dev/null
14010   ac_configure_extra_args="$ac_configure_extra_args --silent"
14011 fi
14012
14013 _ACEOF
14014 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14015 if \$ac_cs_recheck; then
14016   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14017   shift
14018   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14019   CONFIG_SHELL='$SHELL'
14020   export CONFIG_SHELL
14021   exec "\$@"
14022 fi
14023
14024 _ACEOF
14025 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14026 exec 5>>config.log
14027 {
14028   echo
14029   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14030 ## Running $as_me. ##
14031 _ASBOX
14032   $as_echo "$ac_log"
14033 } >&5
14034
14035 _ACEOF
14036 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14037 #
14038 # INIT-COMMANDS
14039 #
14040 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14041
14042
14043 # The HP-UX ksh and POSIX shell print the target directory to stdout
14044 # if CDPATH is set.
14045 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14046
14047 sed_quote_subst='$sed_quote_subst'
14048 double_quote_subst='$double_quote_subst'
14049 delay_variable_subst='$delay_variable_subst'
14050 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14051 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14052 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14053 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14054 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14055 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14056 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14057 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14058 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14059 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14060 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14061 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14062 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14063 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14064 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14065 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14066 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14067 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14068 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14069 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14070 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14071 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14072 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14073 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14074 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14075 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14076 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14077 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14078 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14079 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14080 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14081 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14082 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14083 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14084 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14085 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14086 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14087 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14088 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14089 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14090 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14091 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14092 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14093 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14094 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14095 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14096 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14097 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14098 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14099 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14100 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14101 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14102 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14103 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14104 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14105 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14106 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"`'
14107 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14108 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14109 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14110 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14111 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14112 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14113 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14114 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14115 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14116 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14117 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14118 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14119 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14120 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14121 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14122 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14123 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14124 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14125 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14126 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14127 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14128 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14129 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14130 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14131 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14132 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14133 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14134 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14135 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14136 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14137 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14138 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14139 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14140 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14141 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14142 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14143 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14144 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14145 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14146 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14147 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14148 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14149 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14150 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14151 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14152 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14153 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14154 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14155 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14156 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14157 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14158 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14159 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14160 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14161 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14162 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14163 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14164 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14165 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14166 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14167 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14168 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14169 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14170 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14171 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14172 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14173 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14174 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14175 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14176 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14177 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14178 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14179 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14180
14181 LTCC='$LTCC'
14182 LTCFLAGS='$LTCFLAGS'
14183 compiler='$compiler_DEFAULT'
14184
14185 # A function that is used when there is no print builtin or printf.
14186 func_fallback_echo ()
14187 {
14188   eval 'cat <<_LTECHO_EOF
14189 \$1
14190 _LTECHO_EOF'
14191 }
14192
14193 # Quote evaled strings.
14194 for var in SHELL \
14195 ECHO \
14196 PATH_SEPARATOR \
14197 SED \
14198 GREP \
14199 EGREP \
14200 FGREP \
14201 LD \
14202 NM \
14203 LN_S \
14204 lt_SP2NL \
14205 lt_NL2SP \
14206 reload_flag \
14207 OBJDUMP \
14208 deplibs_check_method \
14209 file_magic_cmd \
14210 file_magic_glob \
14211 want_nocaseglob \
14212 DLLTOOL \
14213 sharedlib_from_linklib_cmd \
14214 AR \
14215 AR_FLAGS \
14216 archiver_list_spec \
14217 STRIP \
14218 RANLIB \
14219 CC \
14220 CFLAGS \
14221 compiler \
14222 lt_cv_sys_global_symbol_pipe \
14223 lt_cv_sys_global_symbol_to_cdecl \
14224 lt_cv_sys_global_symbol_to_c_name_address \
14225 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14226 nm_file_list_spec \
14227 lt_prog_compiler_no_builtin_flag \
14228 lt_prog_compiler_pic \
14229 lt_prog_compiler_wl \
14230 lt_prog_compiler_static \
14231 lt_cv_prog_compiler_c_o \
14232 need_locks \
14233 MANIFEST_TOOL \
14234 DSYMUTIL \
14235 NMEDIT \
14236 LIPO \
14237 OTOOL \
14238 OTOOL64 \
14239 shrext_cmds \
14240 export_dynamic_flag_spec \
14241 whole_archive_flag_spec \
14242 compiler_needs_object \
14243 with_gnu_ld \
14244 allow_undefined_flag \
14245 no_undefined_flag \
14246 hardcode_libdir_flag_spec \
14247 hardcode_libdir_separator \
14248 exclude_expsyms \
14249 include_expsyms \
14250 file_list_spec \
14251 variables_saved_for_relink \
14252 libname_spec \
14253 library_names_spec \
14254 soname_spec \
14255 install_override_mode \
14256 finish_eval \
14257 old_striplib \
14258 striplib; do
14259     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14260     *[\\\\\\\`\\"\\\$]*)
14261       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14262       ;;
14263     *)
14264       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14265       ;;
14266     esac
14267 done
14268
14269 # Double-quote double-evaled strings.
14270 for var in reload_cmds \
14271 old_postinstall_cmds \
14272 old_postuninstall_cmds \
14273 old_archive_cmds \
14274 extract_expsyms_cmds \
14275 old_archive_from_new_cmds \
14276 old_archive_from_expsyms_cmds \
14277 archive_cmds \
14278 archive_expsym_cmds \
14279 module_cmds \
14280 module_expsym_cmds \
14281 export_symbols_cmds \
14282 prelink_cmds \
14283 postlink_cmds \
14284 postinstall_cmds \
14285 postuninstall_cmds \
14286 finish_cmds \
14287 sys_lib_search_path_spec \
14288 sys_lib_dlsearch_path_spec; do
14289     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14290     *[\\\\\\\`\\"\\\$]*)
14291       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14292       ;;
14293     *)
14294       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14295       ;;
14296     esac
14297 done
14298
14299 ac_aux_dir='$ac_aux_dir'
14300 xsi_shell='$xsi_shell'
14301 lt_shell_append='$lt_shell_append'
14302
14303 # See if we are running on zsh, and set the options which allow our
14304 # commands through without removal of \ escapes INIT.
14305 if test -n "\${ZSH_VERSION+set}" ; then
14306    setopt NO_GLOB_SUBST
14307 fi
14308
14309
14310     PACKAGE='$PACKAGE'
14311     VERSION='$VERSION'
14312     TIMESTAMP='$TIMESTAMP'
14313     RM='$RM'
14314     ofile='$ofile'
14315
14316
14317
14318
14319 _ACEOF
14320
14321 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14322
14323 # Handling of arguments.
14324 for ac_config_target in $ac_config_targets
14325 do
14326   case $ac_config_target in
14327     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14328     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14329     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14330     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14331     "libgupnp/Makefile") CONFIG_FILES="$CONFIG_FILES libgupnp/Makefile" ;;
14332     "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
14333     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
14334     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
14335     "tests/gtest/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gtest/Makefile" ;;
14336     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14337     "doc/version.xml") CONFIG_FILES="$CONFIG_FILES doc/version.xml" ;;
14338     "vala/Makefile") CONFIG_FILES="$CONFIG_FILES vala/Makefile" ;;
14339     "gupnp-1.0.pc") CONFIG_FILES="$CONFIG_FILES gupnp-1.0.pc" ;;
14340     "gupnp-1.0-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES gupnp-1.0-uninstalled.pc" ;;
14341
14342   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14343   esac
14344 done
14345
14346
14347 # If the user did not use the arguments to specify the items to instantiate,
14348 # then the envvar interface is used.  Set only those that are not.
14349 # We use the long form for the default assignment because of an extremely
14350 # bizarre bug on SunOS 4.1.3.
14351 if $ac_need_defaults; then
14352   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14353   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14354   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14355 fi
14356
14357 # Have a temporary directory for convenience.  Make it in the build tree
14358 # simply because there is no reason against having it here, and in addition,
14359 # creating and moving files from /tmp can sometimes cause problems.
14360 # Hook for its removal unless debugging.
14361 # Note that there is a small window in which the directory will not be cleaned:
14362 # after its creation but before its name has been assigned to `$tmp'.
14363 $debug ||
14364 {
14365   tmp= ac_tmp=
14366   trap 'exit_status=$?
14367   : "${ac_tmp:=$tmp}"
14368   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14369 ' 0
14370   trap 'as_fn_exit 1' 1 2 13 15
14371 }
14372 # Create a (secure) tmp directory for tmp files.
14373
14374 {
14375   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14376   test -d "$tmp"
14377 }  ||
14378 {
14379   tmp=./conf$$-$RANDOM
14380   (umask 077 && mkdir "$tmp")
14381 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14382 ac_tmp=$tmp
14383
14384 # Set up the scripts for CONFIG_FILES section.
14385 # No need to generate them if there are no CONFIG_FILES.
14386 # This happens for instance with `./config.status config.h'.
14387 if test -n "$CONFIG_FILES"; then
14388
14389
14390 ac_cr=`echo X | tr X '\015'`
14391 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14392 # But we know of no other shell where ac_cr would be empty at this
14393 # point, so we can use a bashism as a fallback.
14394 if test "x$ac_cr" = x; then
14395   eval ac_cr=\$\'\\r\'
14396 fi
14397 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14398 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14399   ac_cs_awk_cr='\\r'
14400 else
14401   ac_cs_awk_cr=$ac_cr
14402 fi
14403
14404 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14405 _ACEOF
14406
14407
14408 {
14409   echo "cat >conf$$subs.awk <<_ACEOF" &&
14410   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14411   echo "_ACEOF"
14412 } >conf$$subs.sh ||
14413   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14414 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14415 ac_delim='%!_!# '
14416 for ac_last_try in false false false false false :; do
14417   . ./conf$$subs.sh ||
14418     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14419
14420   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14421   if test $ac_delim_n = $ac_delim_num; then
14422     break
14423   elif $ac_last_try; then
14424     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14425   else
14426     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14427   fi
14428 done
14429 rm -f conf$$subs.sh
14430
14431 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14432 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14433 _ACEOF
14434 sed -n '
14435 h
14436 s/^/S["/; s/!.*/"]=/
14437 p
14438 g
14439 s/^[^!]*!//
14440 :repl
14441 t repl
14442 s/'"$ac_delim"'$//
14443 t delim
14444 :nl
14445 h
14446 s/\(.\{148\}\)..*/\1/
14447 t more1
14448 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14449 p
14450 n
14451 b repl
14452 :more1
14453 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14454 p
14455 g
14456 s/.\{148\}//
14457 t nl
14458 :delim
14459 h
14460 s/\(.\{148\}\)..*/\1/
14461 t more2
14462 s/["\\]/\\&/g; s/^/"/; s/$/"/
14463 p
14464 b
14465 :more2
14466 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14467 p
14468 g
14469 s/.\{148\}//
14470 t delim
14471 ' <conf$$subs.awk | sed '
14472 /^[^""]/{
14473   N
14474   s/\n//
14475 }
14476 ' >>$CONFIG_STATUS || ac_write_fail=1
14477 rm -f conf$$subs.awk
14478 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14479 _ACAWK
14480 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14481   for (key in S) S_is_set[key] = 1
14482   FS = "\a"
14483
14484 }
14485 {
14486   line = $ 0
14487   nfields = split(line, field, "@")
14488   substed = 0
14489   len = length(field[1])
14490   for (i = 2; i < nfields; i++) {
14491     key = field[i]
14492     keylen = length(key)
14493     if (S_is_set[key]) {
14494       value = S[key]
14495       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14496       len += length(value) + length(field[++i])
14497       substed = 1
14498     } else
14499       len += 1 + keylen
14500   }
14501
14502   print line
14503 }
14504
14505 _ACAWK
14506 _ACEOF
14507 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14508 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14509   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14510 else
14511   cat
14512 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14513   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14514 _ACEOF
14515
14516 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14517 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14518 # trailing colons and then remove the whole line if VPATH becomes empty
14519 # (actually we leave an empty line to preserve line numbers).
14520 if test "x$srcdir" = x.; then
14521   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
14522 h
14523 s///
14524 s/^/:/
14525 s/[      ]*$/:/
14526 s/:\$(srcdir):/:/g
14527 s/:\${srcdir}:/:/g
14528 s/:@srcdir@:/:/g
14529 s/^:*//
14530 s/:*$//
14531 x
14532 s/\(=[   ]*\).*/\1/
14533 G
14534 s/\n//
14535 s/^[^=]*=[       ]*$//
14536 }'
14537 fi
14538
14539 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14540 fi # test -n "$CONFIG_FILES"
14541
14542 # Set up the scripts for CONFIG_HEADERS section.
14543 # No need to generate them if there are no CONFIG_HEADERS.
14544 # This happens for instance with `./config.status Makefile'.
14545 if test -n "$CONFIG_HEADERS"; then
14546 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14547 BEGIN {
14548 _ACEOF
14549
14550 # Transform confdefs.h into an awk script `defines.awk', embedded as
14551 # here-document in config.status, that substitutes the proper values into
14552 # config.h.in to produce config.h.
14553
14554 # Create a delimiter string that does not exist in confdefs.h, to ease
14555 # handling of long lines.
14556 ac_delim='%!_!# '
14557 for ac_last_try in false false :; do
14558   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14559   if test -z "$ac_tt"; then
14560     break
14561   elif $ac_last_try; then
14562     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14563   else
14564     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14565   fi
14566 done
14567
14568 # For the awk script, D is an array of macro values keyed by name,
14569 # likewise P contains macro parameters if any.  Preserve backslash
14570 # newline sequences.
14571
14572 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14573 sed -n '
14574 s/.\{148\}/&'"$ac_delim"'/g
14575 t rset
14576 :rset
14577 s/^[     ]*#[    ]*define[       ][      ]*/ /
14578 t def
14579 d
14580 :def
14581 s/\\$//
14582 t bsnl
14583 s/["\\]/\\&/g
14584 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14585 D["\1"]=" \3"/p
14586 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
14587 d
14588 :bsnl
14589 s/["\\]/\\&/g
14590 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14591 D["\1"]=" \3\\\\\\n"\\/p
14592 t cont
14593 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14594 t cont
14595 d
14596 :cont
14597 n
14598 s/.\{148\}/&'"$ac_delim"'/g
14599 t clear
14600 :clear
14601 s/\\$//
14602 t bsnlc
14603 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14604 d
14605 :bsnlc
14606 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14607 b cont
14608 ' <confdefs.h | sed '
14609 s/'"$ac_delim"'/"\\\
14610 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14611
14612 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14613   for (key in D) D_is_set[key] = 1
14614   FS = "\a"
14615 }
14616 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14617   line = \$ 0
14618   split(line, arg, " ")
14619   if (arg[1] == "#") {
14620     defundef = arg[2]
14621     mac1 = arg[3]
14622   } else {
14623     defundef = substr(arg[1], 2)
14624     mac1 = arg[2]
14625   }
14626   split(mac1, mac2, "(") #)
14627   macro = mac2[1]
14628   prefix = substr(line, 1, index(line, defundef) - 1)
14629   if (D_is_set[macro]) {
14630     # Preserve the white space surrounding the "#".
14631     print prefix "define", macro P[macro] D[macro]
14632     next
14633   } else {
14634     # Replace #undef with comments.  This is necessary, for example,
14635     # in the case of _POSIX_SOURCE, which is predefined and required
14636     # on some systems where configure will not decide to define it.
14637     if (defundef == "undef") {
14638       print "/*", prefix defundef, macro, "*/"
14639       next
14640     }
14641   }
14642 }
14643 { print }
14644 _ACAWK
14645 _ACEOF
14646 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14647   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14648 fi # test -n "$CONFIG_HEADERS"
14649
14650
14651 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14652 shift
14653 for ac_tag
14654 do
14655   case $ac_tag in
14656   :[FHLC]) ac_mode=$ac_tag; continue;;
14657   esac
14658   case $ac_mode$ac_tag in
14659   :[FHL]*:*);;
14660   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14661   :[FH]-) ac_tag=-:-;;
14662   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14663   esac
14664   ac_save_IFS=$IFS
14665   IFS=:
14666   set x $ac_tag
14667   IFS=$ac_save_IFS
14668   shift
14669   ac_file=$1
14670   shift
14671
14672   case $ac_mode in
14673   :L) ac_source=$1;;
14674   :[FH])
14675     ac_file_inputs=
14676     for ac_f
14677     do
14678       case $ac_f in
14679       -) ac_f="$ac_tmp/stdin";;
14680       *) # Look for the file first in the build tree, then in the source tree
14681          # (if the path is not absolute).  The absolute path cannot be DOS-style,
14682          # because $ac_f cannot contain `:'.
14683          test -f "$ac_f" ||
14684            case $ac_f in
14685            [\\/$]*) false;;
14686            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14687            esac ||
14688            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14689       esac
14690       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14691       as_fn_append ac_file_inputs " '$ac_f'"
14692     done
14693
14694     # Let's still pretend it is `configure' which instantiates (i.e., don't
14695     # use $as_me), people would be surprised to read:
14696     #    /* config.h.  Generated by config.status.  */
14697     configure_input='Generated from '`
14698           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14699         `' by configure.'
14700     if test x"$ac_file" != x-; then
14701       configure_input="$ac_file.  $configure_input"
14702       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14703 $as_echo "$as_me: creating $ac_file" >&6;}
14704     fi
14705     # Neutralize special characters interpreted by sed in replacement strings.
14706     case $configure_input in #(
14707     *\&* | *\|* | *\\* )
14708        ac_sed_conf_input=`$as_echo "$configure_input" |
14709        sed 's/[\\\\&|]/\\\\&/g'`;; #(
14710     *) ac_sed_conf_input=$configure_input;;
14711     esac
14712
14713     case $ac_tag in
14714     *:-:* | *:-) cat >"$ac_tmp/stdin" \
14715       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14716     esac
14717     ;;
14718   esac
14719
14720   ac_dir=`$as_dirname -- "$ac_file" ||
14721 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14722          X"$ac_file" : 'X\(//\)[^/]' \| \
14723          X"$ac_file" : 'X\(//\)$' \| \
14724          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14725 $as_echo X"$ac_file" |
14726     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14727             s//\1/
14728             q
14729           }
14730           /^X\(\/\/\)[^/].*/{
14731             s//\1/
14732             q
14733           }
14734           /^X\(\/\/\)$/{
14735             s//\1/
14736             q
14737           }
14738           /^X\(\/\).*/{
14739             s//\1/
14740             q
14741           }
14742           s/.*/./; q'`
14743   as_dir="$ac_dir"; as_fn_mkdir_p
14744   ac_builddir=.
14745
14746 case "$ac_dir" in
14747 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14748 *)
14749   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14750   # A ".." for each directory in $ac_dir_suffix.
14751   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14752   case $ac_top_builddir_sub in
14753   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14754   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14755   esac ;;
14756 esac
14757 ac_abs_top_builddir=$ac_pwd
14758 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14759 # for backward compatibility:
14760 ac_top_builddir=$ac_top_build_prefix
14761
14762 case $srcdir in
14763   .)  # We are building in place.
14764     ac_srcdir=.
14765     ac_top_srcdir=$ac_top_builddir_sub
14766     ac_abs_top_srcdir=$ac_pwd ;;
14767   [\\/]* | ?:[\\/]* )  # Absolute name.
14768     ac_srcdir=$srcdir$ac_dir_suffix;
14769     ac_top_srcdir=$srcdir
14770     ac_abs_top_srcdir=$srcdir ;;
14771   *) # Relative name.
14772     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14773     ac_top_srcdir=$ac_top_build_prefix$srcdir
14774     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14775 esac
14776 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14777
14778
14779   case $ac_mode in
14780   :F)
14781   #
14782   # CONFIG_FILE
14783   #
14784
14785   case $INSTALL in
14786   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14787   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14788   esac
14789   ac_MKDIR_P=$MKDIR_P
14790   case $MKDIR_P in
14791   [\\/$]* | ?:[\\/]* ) ;;
14792   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14793   esac
14794 _ACEOF
14795
14796 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14797 # If the template does not know about datarootdir, expand it.
14798 # FIXME: This hack should be removed a few years after 2.60.
14799 ac_datarootdir_hack=; ac_datarootdir_seen=
14800 ac_sed_dataroot='
14801 /datarootdir/ {
14802   p
14803   q
14804 }
14805 /@datadir@/p
14806 /@docdir@/p
14807 /@infodir@/p
14808 /@localedir@/p
14809 /@mandir@/p'
14810 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14811 *datarootdir*) ac_datarootdir_seen=yes;;
14812 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14813   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14814 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14815 _ACEOF
14816 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14817   ac_datarootdir_hack='
14818   s&@datadir@&$datadir&g
14819   s&@docdir@&$docdir&g
14820   s&@infodir@&$infodir&g
14821   s&@localedir@&$localedir&g
14822   s&@mandir@&$mandir&g
14823   s&\\\${datarootdir}&$datarootdir&g' ;;
14824 esac
14825 _ACEOF
14826
14827 # Neutralize VPATH when `$srcdir' = `.'.
14828 # Shell code in configure.ac might set extrasub.
14829 # FIXME: do we really want to maintain this feature?
14830 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14831 ac_sed_extra="$ac_vpsub
14832 $extrasub
14833 _ACEOF
14834 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14835 :t
14836 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14837 s|@configure_input@|$ac_sed_conf_input|;t t
14838 s&@top_builddir@&$ac_top_builddir_sub&;t t
14839 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14840 s&@srcdir@&$ac_srcdir&;t t
14841 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14842 s&@top_srcdir@&$ac_top_srcdir&;t t
14843 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14844 s&@builddir@&$ac_builddir&;t t
14845 s&@abs_builddir@&$ac_abs_builddir&;t t
14846 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14847 s&@INSTALL@&$ac_INSTALL&;t t
14848 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14849 $ac_datarootdir_hack
14850 "
14851 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14852   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14853
14854 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14855   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14856   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
14857       "$ac_tmp/out"`; test -z "$ac_out"; } &&
14858   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14859 which seems to be undefined.  Please make sure it is defined" >&5
14860 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14861 which seems to be undefined.  Please make sure it is defined" >&2;}
14862
14863   rm -f "$ac_tmp/stdin"
14864   case $ac_file in
14865   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14866   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14867   esac \
14868   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14869  ;;
14870   :H)
14871   #
14872   # CONFIG_HEADER
14873   #
14874   if test x"$ac_file" != x-; then
14875     {
14876       $as_echo "/* $configure_input  */" \
14877       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14878     } >"$ac_tmp/config.h" \
14879       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14880     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14881       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14882 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14883     else
14884       rm -f "$ac_file"
14885       mv "$ac_tmp/config.h" "$ac_file" \
14886         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14887     fi
14888   else
14889     $as_echo "/* $configure_input  */" \
14890       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14891       || as_fn_error $? "could not create -" "$LINENO" 5
14892   fi
14893 # Compute "$ac_file"'s index in $config_headers.
14894 _am_arg="$ac_file"
14895 _am_stamp_count=1
14896 for _am_header in $config_headers :; do
14897   case $_am_header in
14898     $_am_arg | $_am_arg:* )
14899       break ;;
14900     * )
14901       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14902   esac
14903 done
14904 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14905 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14906          X"$_am_arg" : 'X\(//\)[^/]' \| \
14907          X"$_am_arg" : 'X\(//\)$' \| \
14908          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14909 $as_echo X"$_am_arg" |
14910     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14911             s//\1/
14912             q
14913           }
14914           /^X\(\/\/\)[^/].*/{
14915             s//\1/
14916             q
14917           }
14918           /^X\(\/\/\)$/{
14919             s//\1/
14920             q
14921           }
14922           /^X\(\/\).*/{
14923             s//\1/
14924             q
14925           }
14926           s/.*/./; q'`/stamp-h$_am_stamp_count
14927  ;;
14928
14929   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14930 $as_echo "$as_me: executing $ac_file commands" >&6;}
14931  ;;
14932   esac
14933
14934
14935   case $ac_file$ac_mode in
14936     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14937   # Autoconf 2.62 quotes --file arguments for eval, but not when files
14938   # are listed without --file.  Let's play safe and only enable the eval
14939   # if we detect the quoting.
14940   case $CONFIG_FILES in
14941   *\'*) eval set x "$CONFIG_FILES" ;;
14942   *)   set x $CONFIG_FILES ;;
14943   esac
14944   shift
14945   for mf
14946   do
14947     # Strip MF so we end up with the name of the file.
14948     mf=`echo "$mf" | sed -e 's/:.*$//'`
14949     # Check whether this is an Automake generated Makefile or not.
14950     # We used to match only the files named `Makefile.in', but
14951     # some people rename them; so instead we look at the file content.
14952     # Grep'ing the first line is not enough: some people post-process
14953     # each Makefile.in and add a new line on top of each file to say so.
14954     # Grep'ing the whole file is not good either: AIX grep has a line
14955     # limit of 2048, but all sed's we know have understand at least 4000.
14956     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14957       dirpart=`$as_dirname -- "$mf" ||
14958 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14959          X"$mf" : 'X\(//\)[^/]' \| \
14960          X"$mf" : 'X\(//\)$' \| \
14961          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14962 $as_echo X"$mf" |
14963     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14964             s//\1/
14965             q
14966           }
14967           /^X\(\/\/\)[^/].*/{
14968             s//\1/
14969             q
14970           }
14971           /^X\(\/\/\)$/{
14972             s//\1/
14973             q
14974           }
14975           /^X\(\/\).*/{
14976             s//\1/
14977             q
14978           }
14979           s/.*/./; q'`
14980     else
14981       continue
14982     fi
14983     # Extract the definition of DEPDIR, am__include, and am__quote
14984     # from the Makefile without running `make'.
14985     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14986     test -z "$DEPDIR" && continue
14987     am__include=`sed -n 's/^am__include = //p' < "$mf"`
14988     test -z "am__include" && continue
14989     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14990     # When using ansi2knr, U may be empty or an underscore; expand it
14991     U=`sed -n 's/^U = //p' < "$mf"`
14992     # Find all dependency output files, they are included files with
14993     # $(DEPDIR) in their names.  We invoke sed twice because it is the
14994     # simplest approach to changing $(DEPDIR) to its actual value in the
14995     # expansion.
14996     for file in `sed -n "
14997       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14998          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14999       # Make sure the directory exists.
15000       test -f "$dirpart/$file" && continue
15001       fdir=`$as_dirname -- "$file" ||
15002 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15003          X"$file" : 'X\(//\)[^/]' \| \
15004          X"$file" : 'X\(//\)$' \| \
15005          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15006 $as_echo X"$file" |
15007     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15008             s//\1/
15009             q
15010           }
15011           /^X\(\/\/\)[^/].*/{
15012             s//\1/
15013             q
15014           }
15015           /^X\(\/\/\)$/{
15016             s//\1/
15017             q
15018           }
15019           /^X\(\/\).*/{
15020             s//\1/
15021             q
15022           }
15023           s/.*/./; q'`
15024       as_dir=$dirpart/$fdir; as_fn_mkdir_p
15025       # echo "creating $dirpart/$file"
15026       echo '# dummy' > "$dirpart/$file"
15027     done
15028   done
15029 }
15030  ;;
15031     "libtool":C)
15032
15033     # See if we are running on zsh, and set the options which allow our
15034     # commands through without removal of \ escapes.
15035     if test -n "${ZSH_VERSION+set}" ; then
15036       setopt NO_GLOB_SUBST
15037     fi
15038
15039     cfgfile="${ofile}T"
15040     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15041     $RM "$cfgfile"
15042
15043     cat <<_LT_EOF >> "$cfgfile"
15044 #! $SHELL
15045
15046 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15047 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15048 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15049 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15050 #
15051 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15052 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
15053 #                 Foundation, Inc.
15054 #   Written by Gordon Matzigkeit, 1996
15055 #
15056 #   This file is part of GNU Libtool.
15057 #
15058 # GNU Libtool is free software; you can redistribute it and/or
15059 # modify it under the terms of the GNU General Public License as
15060 # published by the Free Software Foundation; either version 2 of
15061 # the License, or (at your option) any later version.
15062 #
15063 # As a special exception to the GNU General Public License,
15064 # if you distribute this file as part of a program or library that
15065 # is built using GNU Libtool, you may include this file under the
15066 # same distribution terms that you use for the rest of that program.
15067 #
15068 # GNU Libtool is distributed in the hope that it will be useful,
15069 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15070 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15071 # GNU General Public License for more details.
15072 #
15073 # You should have received a copy of the GNU General Public License
15074 # along with GNU Libtool; see the file COPYING.  If not, a copy
15075 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15076 # obtained by writing to the Free Software Foundation, Inc.,
15077 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15078
15079
15080 # The names of the tagged configurations supported by this script.
15081 available_tags=""
15082
15083 # ### BEGIN LIBTOOL CONFIG
15084
15085 # Which release of libtool.m4 was used?
15086 macro_version=$macro_version
15087 macro_revision=$macro_revision
15088
15089 # Whether or not to build shared libraries.
15090 build_libtool_libs=$enable_shared
15091
15092 # Whether or not to build static libraries.
15093 build_old_libs=$enable_static
15094
15095 # What type of objects to build.
15096 pic_mode=$pic_mode
15097
15098 # Whether or not to optimize for fast installation.
15099 fast_install=$enable_fast_install
15100
15101 # Shell to use when invoking shell scripts.
15102 SHELL=$lt_SHELL
15103
15104 # An echo program that protects backslashes.
15105 ECHO=$lt_ECHO
15106
15107 # The PATH separator for the build system.
15108 PATH_SEPARATOR=$lt_PATH_SEPARATOR
15109
15110 # The host system.
15111 host_alias=$host_alias
15112 host=$host
15113 host_os=$host_os
15114
15115 # The build system.
15116 build_alias=$build_alias
15117 build=$build
15118 build_os=$build_os
15119
15120 # A sed program that does not truncate output.
15121 SED=$lt_SED
15122
15123 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15124 Xsed="\$SED -e 1s/^X//"
15125
15126 # A grep program that handles long lines.
15127 GREP=$lt_GREP
15128
15129 # An ERE matcher.
15130 EGREP=$lt_EGREP
15131
15132 # A literal string matcher.
15133 FGREP=$lt_FGREP
15134
15135 # A BSD- or MS-compatible name lister.
15136 NM=$lt_NM
15137
15138 # Whether we need soft or hard links.
15139 LN_S=$lt_LN_S
15140
15141 # What is the maximum length of a command?
15142 max_cmd_len=$max_cmd_len
15143
15144 # Object file suffix (normally "o").
15145 objext=$ac_objext
15146
15147 # Executable file suffix (normally "").
15148 exeext=$exeext
15149
15150 # whether the shell understands "unset".
15151 lt_unset=$lt_unset
15152
15153 # turn spaces into newlines.
15154 SP2NL=$lt_lt_SP2NL
15155
15156 # turn newlines into spaces.
15157 NL2SP=$lt_lt_NL2SP
15158
15159 # convert \$build file names to \$host format.
15160 to_host_file_cmd=$lt_cv_to_host_file_cmd
15161
15162 # convert \$build files to toolchain format.
15163 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15164
15165 # An object symbol dumper.
15166 OBJDUMP=$lt_OBJDUMP
15167
15168 # Method to check whether dependent libraries are shared objects.
15169 deplibs_check_method=$lt_deplibs_check_method
15170
15171 # Command to use when deplibs_check_method = "file_magic".
15172 file_magic_cmd=$lt_file_magic_cmd
15173
15174 # How to find potential files when deplibs_check_method = "file_magic".
15175 file_magic_glob=$lt_file_magic_glob
15176
15177 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15178 want_nocaseglob=$lt_want_nocaseglob
15179
15180 # DLL creation program.
15181 DLLTOOL=$lt_DLLTOOL
15182
15183 # Command to associate shared and link libraries.
15184 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15185
15186 # The archiver.
15187 AR=$lt_AR
15188
15189 # Flags to create an archive.
15190 AR_FLAGS=$lt_AR_FLAGS
15191
15192 # How to feed a file listing to the archiver.
15193 archiver_list_spec=$lt_archiver_list_spec
15194
15195 # A symbol stripping program.
15196 STRIP=$lt_STRIP
15197
15198 # Commands used to install an old-style archive.
15199 RANLIB=$lt_RANLIB
15200 old_postinstall_cmds=$lt_old_postinstall_cmds
15201 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15202
15203 # Whether to use a lock for old archive extraction.
15204 lock_old_archive_extraction=$lock_old_archive_extraction
15205
15206 # A C compiler.
15207 LTCC=$lt_CC
15208
15209 # LTCC compiler flags.
15210 LTCFLAGS=$lt_CFLAGS
15211
15212 # Take the output of nm and produce a listing of raw symbols and C names.
15213 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15214
15215 # Transform the output of nm in a proper C declaration.
15216 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15217
15218 # Transform the output of nm in a C name address pair.
15219 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15220
15221 # Transform the output of nm in a C name address pair when lib prefix is needed.
15222 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15223
15224 # Specify filename containing input files for \$NM.
15225 nm_file_list_spec=$lt_nm_file_list_spec
15226
15227 # The root where to search for dependent libraries,and in which our libraries should be installed.
15228 lt_sysroot=$lt_sysroot
15229
15230 # The name of the directory that contains temporary libtool files.
15231 objdir=$objdir
15232
15233 # Used to examine libraries when file_magic_cmd begins with "file".
15234 MAGIC_CMD=$MAGIC_CMD
15235
15236 # Must we lock files when doing compilation?
15237 need_locks=$lt_need_locks
15238
15239 # Manifest tool.
15240 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15241
15242 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15243 DSYMUTIL=$lt_DSYMUTIL
15244
15245 # Tool to change global to local symbols on Mac OS X.
15246 NMEDIT=$lt_NMEDIT
15247
15248 # Tool to manipulate fat objects and archives on Mac OS X.
15249 LIPO=$lt_LIPO
15250
15251 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15252 OTOOL=$lt_OTOOL
15253
15254 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15255 OTOOL64=$lt_OTOOL64
15256
15257 # Old archive suffix (normally "a").
15258 libext=$libext
15259
15260 # Shared library suffix (normally ".so").
15261 shrext_cmds=$lt_shrext_cmds
15262
15263 # The commands to extract the exported symbol list from a shared archive.
15264 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15265
15266 # Variables whose values should be saved in libtool wrapper scripts and
15267 # restored at link time.
15268 variables_saved_for_relink=$lt_variables_saved_for_relink
15269
15270 # Do we need the "lib" prefix for modules?
15271 need_lib_prefix=$need_lib_prefix
15272
15273 # Do we need a version for libraries?
15274 need_version=$need_version
15275
15276 # Library versioning type.
15277 version_type=$version_type
15278
15279 # Shared library runtime path variable.
15280 runpath_var=$runpath_var
15281
15282 # Shared library path variable.
15283 shlibpath_var=$shlibpath_var
15284
15285 # Is shlibpath searched before the hard-coded library search path?
15286 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15287
15288 # Format of library name prefix.
15289 libname_spec=$lt_libname_spec
15290
15291 # List of archive names.  First name is the real one, the rest are links.
15292 # The last name is the one that the linker finds with -lNAME
15293 library_names_spec=$lt_library_names_spec
15294
15295 # The coded name of the library, if different from the real name.
15296 soname_spec=$lt_soname_spec
15297
15298 # Permission mode override for installation of shared libraries.
15299 install_override_mode=$lt_install_override_mode
15300
15301 # Command to use after installation of a shared archive.
15302 postinstall_cmds=$lt_postinstall_cmds
15303
15304 # Command to use after uninstallation of a shared archive.
15305 postuninstall_cmds=$lt_postuninstall_cmds
15306
15307 # Commands used to finish a libtool library installation in a directory.
15308 finish_cmds=$lt_finish_cmds
15309
15310 # As "finish_cmds", except a single script fragment to be evaled but
15311 # not shown.
15312 finish_eval=$lt_finish_eval
15313
15314 # Whether we should hardcode library paths into libraries.
15315 hardcode_into_libs=$hardcode_into_libs
15316
15317 # Compile-time system search path for libraries.
15318 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15319
15320 # Run-time system search path for libraries.
15321 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15322
15323 # Whether dlopen is supported.
15324 dlopen_support=$enable_dlopen
15325
15326 # Whether dlopen of programs is supported.
15327 dlopen_self=$enable_dlopen_self
15328
15329 # Whether dlopen of statically linked programs is supported.
15330 dlopen_self_static=$enable_dlopen_self_static
15331
15332 # Commands to strip libraries.
15333 old_striplib=$lt_old_striplib
15334 striplib=$lt_striplib
15335
15336
15337 # The linker used to build libraries.
15338 LD=$lt_LD
15339
15340 # How to create reloadable object files.
15341 reload_flag=$lt_reload_flag
15342 reload_cmds=$lt_reload_cmds
15343
15344 # Commands used to build an old-style archive.
15345 old_archive_cmds=$lt_old_archive_cmds
15346
15347 # A language specific compiler.
15348 CC=$lt_compiler
15349
15350 # Is the compiler the GNU compiler?
15351 with_gcc=$GCC
15352
15353 # Compiler flag to turn off builtin functions.
15354 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15355
15356 # Additional compiler flags for building library objects.
15357 pic_flag=$lt_lt_prog_compiler_pic
15358
15359 # How to pass a linker flag through the compiler.
15360 wl=$lt_lt_prog_compiler_wl
15361
15362 # Compiler flag to prevent dynamic linking.
15363 link_static_flag=$lt_lt_prog_compiler_static
15364
15365 # Does compiler simultaneously support -c and -o options?
15366 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15367
15368 # Whether or not to add -lc for building shared libraries.
15369 build_libtool_need_lc=$archive_cmds_need_lc
15370
15371 # Whether or not to disallow shared libs when runtime libs are static.
15372 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15373
15374 # Compiler flag to allow reflexive dlopens.
15375 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15376
15377 # Compiler flag to generate shared objects directly from archives.
15378 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15379
15380 # Whether the compiler copes with passing no objects directly.
15381 compiler_needs_object=$lt_compiler_needs_object
15382
15383 # Create an old-style archive from a shared archive.
15384 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15385
15386 # Create a temporary old-style archive to link instead of a shared archive.
15387 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15388
15389 # Commands used to build a shared archive.
15390 archive_cmds=$lt_archive_cmds
15391 archive_expsym_cmds=$lt_archive_expsym_cmds
15392
15393 # Commands used to build a loadable module if different from building
15394 # a shared archive.
15395 module_cmds=$lt_module_cmds
15396 module_expsym_cmds=$lt_module_expsym_cmds
15397
15398 # Whether we are building with GNU ld or not.
15399 with_gnu_ld=$lt_with_gnu_ld
15400
15401 # Flag that allows shared libraries with undefined symbols to be built.
15402 allow_undefined_flag=$lt_allow_undefined_flag
15403
15404 # Flag that enforces no undefined symbols.
15405 no_undefined_flag=$lt_no_undefined_flag
15406
15407 # Flag to hardcode \$libdir into a binary during linking.
15408 # This must work even if \$libdir does not exist
15409 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15410
15411 # Whether we need a single "-rpath" flag with a separated argument.
15412 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15413
15414 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15415 # DIR into the resulting binary.
15416 hardcode_direct=$hardcode_direct
15417
15418 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15419 # DIR into the resulting binary and the resulting library dependency is
15420 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15421 # library is relocated.
15422 hardcode_direct_absolute=$hardcode_direct_absolute
15423
15424 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15425 # into the resulting binary.
15426 hardcode_minus_L=$hardcode_minus_L
15427
15428 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15429 # into the resulting binary.
15430 hardcode_shlibpath_var=$hardcode_shlibpath_var
15431
15432 # Set to "yes" if building a shared library automatically hardcodes DIR
15433 # into the library and all subsequent libraries and executables linked
15434 # against it.
15435 hardcode_automatic=$hardcode_automatic
15436
15437 # Set to yes if linker adds runtime paths of dependent libraries
15438 # to runtime path list.
15439 inherit_rpath=$inherit_rpath
15440
15441 # Whether libtool must link a program against all its dependency libraries.
15442 link_all_deplibs=$link_all_deplibs
15443
15444 # Set to "yes" if exported symbols are required.
15445 always_export_symbols=$always_export_symbols
15446
15447 # The commands to list exported symbols.
15448 export_symbols_cmds=$lt_export_symbols_cmds
15449
15450 # Symbols that should not be listed in the preloaded symbols.
15451 exclude_expsyms=$lt_exclude_expsyms
15452
15453 # Symbols that must always be exported.
15454 include_expsyms=$lt_include_expsyms
15455
15456 # Commands necessary for linking programs (against libraries) with templates.
15457 prelink_cmds=$lt_prelink_cmds
15458
15459 # Commands necessary for finishing linking programs.
15460 postlink_cmds=$lt_postlink_cmds
15461
15462 # Specify filename containing input files.
15463 file_list_spec=$lt_file_list_spec
15464
15465 # How to hardcode a shared library path into an executable.
15466 hardcode_action=$hardcode_action
15467
15468 # ### END LIBTOOL CONFIG
15469
15470 _LT_EOF
15471
15472   case $host_os in
15473   aix3*)
15474     cat <<\_LT_EOF >> "$cfgfile"
15475 # AIX sometimes has problems with the GCC collect2 program.  For some
15476 # reason, if we set the COLLECT_NAMES environment variable, the problems
15477 # vanish in a puff of smoke.
15478 if test "X${COLLECT_NAMES+set}" != Xset; then
15479   COLLECT_NAMES=
15480   export COLLECT_NAMES
15481 fi
15482 _LT_EOF
15483     ;;
15484   esac
15485
15486
15487 ltmain="$ac_aux_dir/ltmain.sh"
15488
15489
15490   # We use sed instead of cat because bash on DJGPP gets confused if
15491   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15492   # text mode, it properly converts lines to CR/LF.  This bash problem
15493   # is reportedly fixed, but why not run on old versions too?
15494   sed '$q' "$ltmain" >> "$cfgfile" \
15495      || (rm -f "$cfgfile"; exit 1)
15496
15497   if test x"$xsi_shell" = xyes; then
15498   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
15499 func_dirname ()\
15500 {\
15501 \    case ${1} in\
15502 \      */*) func_dirname_result="${1%/*}${2}" ;;\
15503 \      *  ) func_dirname_result="${3}" ;;\
15504 \    esac\
15505 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
15506   && mv -f "$cfgfile.tmp" "$cfgfile" \
15507     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15508 test 0 -eq $? || _lt_function_replace_fail=:
15509
15510
15511   sed -e '/^func_basename ()$/,/^} # func_basename /c\
15512 func_basename ()\
15513 {\
15514 \    func_basename_result="${1##*/}"\
15515 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
15516   && mv -f "$cfgfile.tmp" "$cfgfile" \
15517     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15518 test 0 -eq $? || _lt_function_replace_fail=:
15519
15520
15521   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
15522 func_dirname_and_basename ()\
15523 {\
15524 \    case ${1} in\
15525 \      */*) func_dirname_result="${1%/*}${2}" ;;\
15526 \      *  ) func_dirname_result="${3}" ;;\
15527 \    esac\
15528 \    func_basename_result="${1##*/}"\
15529 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
15530   && mv -f "$cfgfile.tmp" "$cfgfile" \
15531     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15532 test 0 -eq $? || _lt_function_replace_fail=:
15533
15534
15535   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
15536 func_stripname ()\
15537 {\
15538 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
15539 \    # positional parameters, so assign one to ordinary parameter first.\
15540 \    func_stripname_result=${3}\
15541 \    func_stripname_result=${func_stripname_result#"${1}"}\
15542 \    func_stripname_result=${func_stripname_result%"${2}"}\
15543 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
15544   && mv -f "$cfgfile.tmp" "$cfgfile" \
15545     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15546 test 0 -eq $? || _lt_function_replace_fail=:
15547
15548
15549   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
15550 func_split_long_opt ()\
15551 {\
15552 \    func_split_long_opt_name=${1%%=*}\
15553 \    func_split_long_opt_arg=${1#*=}\
15554 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
15555   && mv -f "$cfgfile.tmp" "$cfgfile" \
15556     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15557 test 0 -eq $? || _lt_function_replace_fail=:
15558
15559
15560   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
15561 func_split_short_opt ()\
15562 {\
15563 \    func_split_short_opt_arg=${1#??}\
15564 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
15565 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
15566   && mv -f "$cfgfile.tmp" "$cfgfile" \
15567     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15568 test 0 -eq $? || _lt_function_replace_fail=:
15569
15570
15571   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
15572 func_lo2o ()\
15573 {\
15574 \    case ${1} in\
15575 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
15576 \      *)    func_lo2o_result=${1} ;;\
15577 \    esac\
15578 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
15579   && mv -f "$cfgfile.tmp" "$cfgfile" \
15580     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15581 test 0 -eq $? || _lt_function_replace_fail=:
15582
15583
15584   sed -e '/^func_xform ()$/,/^} # func_xform /c\
15585 func_xform ()\
15586 {\
15587     func_xform_result=${1%.*}.lo\
15588 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
15589   && mv -f "$cfgfile.tmp" "$cfgfile" \
15590     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15591 test 0 -eq $? || _lt_function_replace_fail=:
15592
15593
15594   sed -e '/^func_arith ()$/,/^} # func_arith /c\
15595 func_arith ()\
15596 {\
15597     func_arith_result=$(( $* ))\
15598 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
15599   && mv -f "$cfgfile.tmp" "$cfgfile" \
15600     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15601 test 0 -eq $? || _lt_function_replace_fail=:
15602
15603
15604   sed -e '/^func_len ()$/,/^} # func_len /c\
15605 func_len ()\
15606 {\
15607     func_len_result=${#1}\
15608 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
15609   && mv -f "$cfgfile.tmp" "$cfgfile" \
15610     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15611 test 0 -eq $? || _lt_function_replace_fail=:
15612
15613 fi
15614
15615 if test x"$lt_shell_append" = xyes; then
15616   sed -e '/^func_append ()$/,/^} # func_append /c\
15617 func_append ()\
15618 {\
15619     eval "${1}+=\\${2}"\
15620 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
15621   && mv -f "$cfgfile.tmp" "$cfgfile" \
15622     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15623 test 0 -eq $? || _lt_function_replace_fail=:
15624
15625
15626   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
15627 func_append_quoted ()\
15628 {\
15629 \    func_quote_for_eval "${2}"\
15630 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
15631 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
15632   && mv -f "$cfgfile.tmp" "$cfgfile" \
15633     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15634 test 0 -eq $? || _lt_function_replace_fail=:
15635
15636
15637   # Save a `func_append' function call where possible by direct use of '+='
15638   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
15639     && mv -f "$cfgfile.tmp" "$cfgfile" \
15640       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15641   test 0 -eq $? || _lt_function_replace_fail=:
15642 else
15643   # Save a `func_append' function call even when '+=' is not available
15644   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
15645     && mv -f "$cfgfile.tmp" "$cfgfile" \
15646       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15647   test 0 -eq $? || _lt_function_replace_fail=:
15648 fi
15649
15650 if test x"$_lt_function_replace_fail" = x":"; then
15651   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
15652 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
15653 fi
15654
15655
15656    mv -f "$cfgfile" "$ofile" ||
15657     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15658   chmod +x "$ofile"
15659
15660  ;;
15661
15662   esac
15663 done # for ac_tag
15664
15665
15666 as_fn_exit 0
15667 _ACEOF
15668 ac_clean_files=$ac_clean_files_save
15669
15670 test $ac_write_fail = 0 ||
15671   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15672
15673
15674 # configure is writing to config.log, and then calls config.status.
15675 # config.status does its own redirection, appending to config.log.
15676 # Unfortunately, on DOS this fails, as config.log is still kept open
15677 # by configure, so config.status won't be able to write to it; its
15678 # output is simply discarded.  So we exec the FD to /dev/null,
15679 # effectively closing config.log, so it can be properly (re)opened and
15680 # appended to by config.status.  When coming back to configure, we
15681 # need to make the FD available again.
15682 if test "$no_create" != yes; then
15683   ac_cs_success=:
15684   ac_config_status_args=
15685   test "$silent" = yes &&
15686     ac_config_status_args="$ac_config_status_args --quiet"
15687   exec 5>/dev/null
15688   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15689   exec 5>>config.log
15690   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15691   # would make configure fail if this is the last instruction.
15692   $ac_cs_success || as_fn_exit 1
15693 fi
15694 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15695   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15696 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15697 fi
15698