Add gobject introspection
[profile/ivi/GSSDP.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for gssdp 0.14.4.
4 #
5 # Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=gupnp&component=gssdp>.
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=gssdp
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='gssdp'
653 PACKAGE_TARNAME='gssdp'
654 PACKAGE_VERSION='0.14.4'
655 PACKAGE_STRING='gssdp 0.14.4'
656 PACKAGE_BUGREPORT='http://bugzilla.gnome.org/enter_bug.cgi?product=gupnp&component=gssdp'
657 PACKAGE_URL='http://www.gupnp.org/'
658
659 ac_unique_file="libgssdp/gssdp-client.c"
660 # Factoring default headers for most tests.
661 ac_includes_default="\
662 #include <stdio.h>
663 #ifdef HAVE_SYS_TYPES_H
664 # include <sys/types.h>
665 #endif
666 #ifdef HAVE_SYS_STAT_H
667 # include <sys/stat.h>
668 #endif
669 #ifdef STDC_HEADERS
670 # include <stdlib.h>
671 # include <stddef.h>
672 #else
673 # ifdef HAVE_STDLIB_H
674 #  include <stdlib.h>
675 # endif
676 #endif
677 #ifdef HAVE_STRING_H
678 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
679 #  include <memory.h>
680 # endif
681 # include <string.h>
682 #endif
683 #ifdef HAVE_STRINGS_H
684 # include <strings.h>
685 #endif
686 #ifdef HAVE_INTTYPES_H
687 # include <inttypes.h>
688 #endif
689 #ifdef HAVE_STDINT_H
690 # include <stdint.h>
691 #endif
692 #ifdef HAVE_UNISTD_H
693 # include <unistd.h>
694 #endif"
695
696 ac_subst_vars='am__EXEEXT_FALSE
697 am__EXEEXT_TRUE
698 LTLIBOBJS
699 LIBOBJS
700 GTK_DOC_USE_REBASE_FALSE
701 GTK_DOC_USE_REBASE_TRUE
702 GTK_DOC_USE_LIBTOOL_FALSE
703 GTK_DOC_USE_LIBTOOL_TRUE
704 GTK_DOC_BUILD_PDF_FALSE
705 GTK_DOC_BUILD_PDF_TRUE
706 GTK_DOC_BUILD_HTML_FALSE
707 GTK_DOC_BUILD_HTML_TRUE
708 ENABLE_GTK_DOC_FALSE
709 ENABLE_GTK_DOC_TRUE
710 GTKDOC_DEPS_LIBS
711 GTKDOC_DEPS_CFLAGS
712 HTML_DIR
713 GTKDOC_MKPDF
714 GTKDOC_REBASE
715 GTKDOC_CHECK
716 OS_WIN32_FALSE
717 OS_WIN32_TRUE
718 HAVE_VAPIGEN_FALSE
719 HAVE_VAPIGEN_TRUE
720 VAPIGEN
721 HAVE_INTROSPECTION_FALSE
722 HAVE_INTROSPECTION_TRUE
723 INTROSPECTION_MAKEFILE
724 INTROSPECTION_LIBS
725 INTROSPECTION_CFLAGS
726 INTROSPECTION_TYPELIBDIR
727 INTROSPECTION_GIRDIR
728 INTROSPECTION_GENERATE
729 INTROSPECTION_COMPILER
730 INTROSPECTION_SCANNER
731 GLIB_GENMARSHAL
732 USE_LIBGTK_FALSE
733 USE_LIBGTK_TRUE
734 HAVE_LIBGTK
735 LIBGTK_LIBS
736 LIBGTK_CFLAGS
737 LIBGSSDP_LIBS
738 LIBGSSDP_CFLAGS
739 PKG_CONFIG_LIBDIR
740 PKG_CONFIG_PATH
741 PKG_CONFIG
742 OTOOL64
743 OTOOL
744 LIPO
745 NMEDIT
746 DSYMUTIL
747 MANIFEST_TOOL
748 RANLIB
749 ac_ct_AR
750 AR
751 DLLTOOL
752 OBJDUMP
753 LN_S
754 NM
755 ac_ct_DUMPBIN
756 DUMPBIN
757 LD
758 FGREP
759 SED
760 host_os
761 host_vendor
762 host_cpu
763 host
764 build_os
765 build_vendor
766 build_cpu
767 build
768 LIBTOOL
769 EGREP
770 GREP
771 CPP
772 AM_BACKSLASH
773 AM_DEFAULT_VERBOSITY
774 AM_DEFAULT_V
775 AM_V
776 WARN_CFLAGS
777 am__fastdepCC_FALSE
778 am__fastdepCC_TRUE
779 CCDEPMODE
780 am__nodep
781 AMDEPBACKSLASH
782 AMDEP_FALSE
783 AMDEP_TRUE
784 am__quote
785 am__include
786 DEPDIR
787 OBJEXT
788 EXEEXT
789 ac_ct_CC
790 CPPFLAGS
791 LDFLAGS
792 CFLAGS
793 CC
794 MAINT
795 MAINTAINER_MODE_FALSE
796 MAINTAINER_MODE_TRUE
797 am__untar
798 am__tar
799 AMTAR
800 am__leading_dot
801 SET_MAKE
802 AWK
803 mkdir_p
804 MKDIR_P
805 INSTALL_STRIP_PROGRAM
806 STRIP
807 install_sh
808 MAKEINFO
809 AUTOHEADER
810 AUTOMAKE
811 AUTOCONF
812 ACLOCAL
813 VERSION
814 PACKAGE
815 CYGPATH_W
816 am__isrc
817 INSTALL_DATA
818 INSTALL_SCRIPT
819 INSTALL_PROGRAM
820 target_alias
821 host_alias
822 build_alias
823 LIBS
824 ECHO_T
825 ECHO_N
826 ECHO_C
827 DEFS
828 mandir
829 localedir
830 libdir
831 psdir
832 pdfdir
833 dvidir
834 htmldir
835 infodir
836 docdir
837 oldincludedir
838 includedir
839 localstatedir
840 sharedstatedir
841 sysconfdir
842 datadir
843 datarootdir
844 libexecdir
845 sbindir
846 bindir
847 program_transform_name
848 prefix
849 exec_prefix
850 PACKAGE_URL
851 PACKAGE_BUGREPORT
852 PACKAGE_STRING
853 PACKAGE_VERSION
854 PACKAGE_TARNAME
855 PACKAGE_NAME
856 PATH_SEPARATOR
857 SHELL'
858 ac_subst_files=''
859 ac_user_opts='
860 enable_option_checking
861 enable_maintainer_mode
862 enable_compile_warnings
863 enable_dependency_tracking
864 enable_iso_c
865 enable_silent_rules
866 enable_shared
867 enable_static
868 with_pic
869 enable_fast_install
870 with_gnu_ld
871 with_sysroot
872 enable_libtool_lock
873 with_gtk
874 enable_debug
875 enable_strict_c
876 enable_introspection
877 with_html_dir
878 enable_gtk_doc
879 enable_gtk_doc_html
880 enable_gtk_doc_pdf
881 '
882       ac_precious_vars='build_alias
883 host_alias
884 target_alias
885 CC
886 CFLAGS
887 LDFLAGS
888 LIBS
889 CPPFLAGS
890 CPP
891 PKG_CONFIG
892 PKG_CONFIG_PATH
893 PKG_CONFIG_LIBDIR
894 LIBGSSDP_CFLAGS
895 LIBGSSDP_LIBS
896 LIBGTK_CFLAGS
897 LIBGTK_LIBS
898 GTKDOC_DEPS_CFLAGS
899 GTKDOC_DEPS_LIBS'
900
901
902 # Initialize some variables set by options.
903 ac_init_help=
904 ac_init_version=false
905 ac_unrecognized_opts=
906 ac_unrecognized_sep=
907 # The variables have the same names as the options, with
908 # dashes changed to underlines.
909 cache_file=/dev/null
910 exec_prefix=NONE
911 no_create=
912 no_recursion=
913 prefix=NONE
914 program_prefix=NONE
915 program_suffix=NONE
916 program_transform_name=s,x,x,
917 silent=
918 site=
919 srcdir=
920 verbose=
921 x_includes=NONE
922 x_libraries=NONE
923
924 # Installation directory options.
925 # These are left unexpanded so users can "make install exec_prefix=/foo"
926 # and all the variables that are supposed to be based on exec_prefix
927 # by default will actually change.
928 # Use braces instead of parens because sh, perl, etc. also accept them.
929 # (The list follows the same order as the GNU Coding Standards.)
930 bindir='${exec_prefix}/bin'
931 sbindir='${exec_prefix}/sbin'
932 libexecdir='${exec_prefix}/libexec'
933 datarootdir='${prefix}/share'
934 datadir='${datarootdir}'
935 sysconfdir='${prefix}/etc'
936 sharedstatedir='${prefix}/com'
937 localstatedir='${prefix}/var'
938 includedir='${prefix}/include'
939 oldincludedir='/usr/include'
940 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
941 infodir='${datarootdir}/info'
942 htmldir='${docdir}'
943 dvidir='${docdir}'
944 pdfdir='${docdir}'
945 psdir='${docdir}'
946 libdir='${exec_prefix}/lib'
947 localedir='${datarootdir}/locale'
948 mandir='${datarootdir}/man'
949
950 ac_prev=
951 ac_dashdash=
952 for ac_option
953 do
954   # If the previous option needs an argument, assign it.
955   if test -n "$ac_prev"; then
956     eval $ac_prev=\$ac_option
957     ac_prev=
958     continue
959   fi
960
961   case $ac_option in
962   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
963   *=)   ac_optarg= ;;
964   *)    ac_optarg=yes ;;
965   esac
966
967   # Accept the important Cygnus configure options, so we can diagnose typos.
968
969   case $ac_dashdash$ac_option in
970   --)
971     ac_dashdash=yes ;;
972
973   -bindir | --bindir | --bindi | --bind | --bin | --bi)
974     ac_prev=bindir ;;
975   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
976     bindir=$ac_optarg ;;
977
978   -build | --build | --buil | --bui | --bu)
979     ac_prev=build_alias ;;
980   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
981     build_alias=$ac_optarg ;;
982
983   -cache-file | --cache-file | --cache-fil | --cache-fi \
984   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
985     ac_prev=cache_file ;;
986   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
987   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
988     cache_file=$ac_optarg ;;
989
990   --config-cache | -C)
991     cache_file=config.cache ;;
992
993   -datadir | --datadir | --datadi | --datad)
994     ac_prev=datadir ;;
995   -datadir=* | --datadir=* | --datadi=* | --datad=*)
996     datadir=$ac_optarg ;;
997
998   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
999   | --dataroo | --dataro | --datar)
1000     ac_prev=datarootdir ;;
1001   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1002   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1003     datarootdir=$ac_optarg ;;
1004
1005   -disable-* | --disable-*)
1006     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1007     # Reject names that are not valid shell variable names.
1008     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1009       as_fn_error $? "invalid feature name: $ac_useropt"
1010     ac_useropt_orig=$ac_useropt
1011     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1012     case $ac_user_opts in
1013       *"
1014 "enable_$ac_useropt"
1015 "*) ;;
1016       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1017          ac_unrecognized_sep=', ';;
1018     esac
1019     eval enable_$ac_useropt=no ;;
1020
1021   -docdir | --docdir | --docdi | --doc | --do)
1022     ac_prev=docdir ;;
1023   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1024     docdir=$ac_optarg ;;
1025
1026   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1027     ac_prev=dvidir ;;
1028   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1029     dvidir=$ac_optarg ;;
1030
1031   -enable-* | --enable-*)
1032     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1033     # Reject names that are not valid shell variable names.
1034     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1035       as_fn_error $? "invalid feature name: $ac_useropt"
1036     ac_useropt_orig=$ac_useropt
1037     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1038     case $ac_user_opts in
1039       *"
1040 "enable_$ac_useropt"
1041 "*) ;;
1042       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1043          ac_unrecognized_sep=', ';;
1044     esac
1045     eval enable_$ac_useropt=\$ac_optarg ;;
1046
1047   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1048   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1049   | --exec | --exe | --ex)
1050     ac_prev=exec_prefix ;;
1051   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1052   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1053   | --exec=* | --exe=* | --ex=*)
1054     exec_prefix=$ac_optarg ;;
1055
1056   -gas | --gas | --ga | --g)
1057     # Obsolete; use --with-gas.
1058     with_gas=yes ;;
1059
1060   -help | --help | --hel | --he | -h)
1061     ac_init_help=long ;;
1062   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1063     ac_init_help=recursive ;;
1064   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1065     ac_init_help=short ;;
1066
1067   -host | --host | --hos | --ho)
1068     ac_prev=host_alias ;;
1069   -host=* | --host=* | --hos=* | --ho=*)
1070     host_alias=$ac_optarg ;;
1071
1072   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1073     ac_prev=htmldir ;;
1074   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1075   | --ht=*)
1076     htmldir=$ac_optarg ;;
1077
1078   -includedir | --includedir | --includedi | --included | --include \
1079   | --includ | --inclu | --incl | --inc)
1080     ac_prev=includedir ;;
1081   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1082   | --includ=* | --inclu=* | --incl=* | --inc=*)
1083     includedir=$ac_optarg ;;
1084
1085   -infodir | --infodir | --infodi | --infod | --info | --inf)
1086     ac_prev=infodir ;;
1087   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1088     infodir=$ac_optarg ;;
1089
1090   -libdir | --libdir | --libdi | --libd)
1091     ac_prev=libdir ;;
1092   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1093     libdir=$ac_optarg ;;
1094
1095   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1096   | --libexe | --libex | --libe)
1097     ac_prev=libexecdir ;;
1098   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1099   | --libexe=* | --libex=* | --libe=*)
1100     libexecdir=$ac_optarg ;;
1101
1102   -localedir | --localedir | --localedi | --localed | --locale)
1103     ac_prev=localedir ;;
1104   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1105     localedir=$ac_optarg ;;
1106
1107   -localstatedir | --localstatedir | --localstatedi | --localstated \
1108   | --localstate | --localstat | --localsta | --localst | --locals)
1109     ac_prev=localstatedir ;;
1110   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1111   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1112     localstatedir=$ac_optarg ;;
1113
1114   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1115     ac_prev=mandir ;;
1116   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1117     mandir=$ac_optarg ;;
1118
1119   -nfp | --nfp | --nf)
1120     # Obsolete; use --without-fp.
1121     with_fp=no ;;
1122
1123   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1124   | --no-cr | --no-c | -n)
1125     no_create=yes ;;
1126
1127   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1128   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1129     no_recursion=yes ;;
1130
1131   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1132   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1133   | --oldin | --oldi | --old | --ol | --o)
1134     ac_prev=oldincludedir ;;
1135   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1136   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1137   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1138     oldincludedir=$ac_optarg ;;
1139
1140   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1141     ac_prev=prefix ;;
1142   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1143     prefix=$ac_optarg ;;
1144
1145   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1146   | --program-pre | --program-pr | --program-p)
1147     ac_prev=program_prefix ;;
1148   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1149   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1150     program_prefix=$ac_optarg ;;
1151
1152   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1153   | --program-suf | --program-su | --program-s)
1154     ac_prev=program_suffix ;;
1155   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1156   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1157     program_suffix=$ac_optarg ;;
1158
1159   -program-transform-name | --program-transform-name \
1160   | --program-transform-nam | --program-transform-na \
1161   | --program-transform-n | --program-transform- \
1162   | --program-transform | --program-transfor \
1163   | --program-transfo | --program-transf \
1164   | --program-trans | --program-tran \
1165   | --progr-tra | --program-tr | --program-t)
1166     ac_prev=program_transform_name ;;
1167   -program-transform-name=* | --program-transform-name=* \
1168   | --program-transform-nam=* | --program-transform-na=* \
1169   | --program-transform-n=* | --program-transform-=* \
1170   | --program-transform=* | --program-transfor=* \
1171   | --program-transfo=* | --program-transf=* \
1172   | --program-trans=* | --program-tran=* \
1173   | --progr-tra=* | --program-tr=* | --program-t=*)
1174     program_transform_name=$ac_optarg ;;
1175
1176   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1177     ac_prev=pdfdir ;;
1178   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1179     pdfdir=$ac_optarg ;;
1180
1181   -psdir | --psdir | --psdi | --psd | --ps)
1182     ac_prev=psdir ;;
1183   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1184     psdir=$ac_optarg ;;
1185
1186   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1187   | -silent | --silent | --silen | --sile | --sil)
1188     silent=yes ;;
1189
1190   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1191     ac_prev=sbindir ;;
1192   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1193   | --sbi=* | --sb=*)
1194     sbindir=$ac_optarg ;;
1195
1196   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1197   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1198   | --sharedst | --shareds | --shared | --share | --shar \
1199   | --sha | --sh)
1200     ac_prev=sharedstatedir ;;
1201   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1202   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1203   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1204   | --sha=* | --sh=*)
1205     sharedstatedir=$ac_optarg ;;
1206
1207   -site | --site | --sit)
1208     ac_prev=site ;;
1209   -site=* | --site=* | --sit=*)
1210     site=$ac_optarg ;;
1211
1212   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1213     ac_prev=srcdir ;;
1214   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1215     srcdir=$ac_optarg ;;
1216
1217   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1218   | --syscon | --sysco | --sysc | --sys | --sy)
1219     ac_prev=sysconfdir ;;
1220   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1221   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1222     sysconfdir=$ac_optarg ;;
1223
1224   -target | --target | --targe | --targ | --tar | --ta | --t)
1225     ac_prev=target_alias ;;
1226   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1227     target_alias=$ac_optarg ;;
1228
1229   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1230     verbose=yes ;;
1231
1232   -version | --version | --versio | --versi | --vers | -V)
1233     ac_init_version=: ;;
1234
1235   -with-* | --with-*)
1236     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1237     # Reject names that are not valid shell variable names.
1238     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1239       as_fn_error $? "invalid package name: $ac_useropt"
1240     ac_useropt_orig=$ac_useropt
1241     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1242     case $ac_user_opts in
1243       *"
1244 "with_$ac_useropt"
1245 "*) ;;
1246       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1247          ac_unrecognized_sep=', ';;
1248     esac
1249     eval with_$ac_useropt=\$ac_optarg ;;
1250
1251   -without-* | --without-*)
1252     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1253     # Reject names that are not valid shell variable names.
1254     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1255       as_fn_error $? "invalid package name: $ac_useropt"
1256     ac_useropt_orig=$ac_useropt
1257     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1258     case $ac_user_opts in
1259       *"
1260 "with_$ac_useropt"
1261 "*) ;;
1262       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1263          ac_unrecognized_sep=', ';;
1264     esac
1265     eval with_$ac_useropt=no ;;
1266
1267   --x)
1268     # Obsolete; use --with-x.
1269     with_x=yes ;;
1270
1271   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1272   | --x-incl | --x-inc | --x-in | --x-i)
1273     ac_prev=x_includes ;;
1274   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1275   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1276     x_includes=$ac_optarg ;;
1277
1278   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1279   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1280     ac_prev=x_libraries ;;
1281   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1282   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1283     x_libraries=$ac_optarg ;;
1284
1285   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1286 Try \`$0 --help' for more information"
1287     ;;
1288
1289   *=*)
1290     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1291     # Reject names that are not valid shell variable names.
1292     case $ac_envvar in #(
1293       '' | [0-9]* | *[!_$as_cr_alnum]* )
1294       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1295     esac
1296     eval $ac_envvar=\$ac_optarg
1297     export $ac_envvar ;;
1298
1299   *)
1300     # FIXME: should be removed in autoconf 3.0.
1301     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1302     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1303       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1304     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1305     ;;
1306
1307   esac
1308 done
1309
1310 if test -n "$ac_prev"; then
1311   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1312   as_fn_error $? "missing argument to $ac_option"
1313 fi
1314
1315 if test -n "$ac_unrecognized_opts"; then
1316   case $enable_option_checking in
1317     no) ;;
1318     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1319     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1320   esac
1321 fi
1322
1323 # Check all directory arguments for consistency.
1324 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1325                 datadir sysconfdir sharedstatedir localstatedir includedir \
1326                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1327                 libdir localedir mandir
1328 do
1329   eval ac_val=\$$ac_var
1330   # Remove trailing slashes.
1331   case $ac_val in
1332     */ )
1333       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1334       eval $ac_var=\$ac_val;;
1335   esac
1336   # Be sure to have absolute directory names.
1337   case $ac_val in
1338     [\\/$]* | ?:[\\/]* )  continue;;
1339     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1340   esac
1341   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1342 done
1343
1344 # There might be people who depend on the old broken behavior: `$host'
1345 # used to hold the argument of --host etc.
1346 # FIXME: To remove some day.
1347 build=$build_alias
1348 host=$host_alias
1349 target=$target_alias
1350
1351 # FIXME: To remove some day.
1352 if test "x$host_alias" != x; then
1353   if test "x$build_alias" = x; then
1354     cross_compiling=maybe
1355   elif test "x$build_alias" != "x$host_alias"; then
1356     cross_compiling=yes
1357   fi
1358 fi
1359
1360 ac_tool_prefix=
1361 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1362
1363 test "$silent" = yes && exec 6>/dev/null
1364
1365
1366 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1367 ac_ls_di=`ls -di .` &&
1368 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1369   as_fn_error $? "working directory cannot be determined"
1370 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1371   as_fn_error $? "pwd does not report name of working directory"
1372
1373
1374 # Find the source files, if location was not specified.
1375 if test -z "$srcdir"; then
1376   ac_srcdir_defaulted=yes
1377   # Try the directory containing this script, then the parent directory.
1378   ac_confdir=`$as_dirname -- "$as_myself" ||
1379 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1380          X"$as_myself" : 'X\(//\)[^/]' \| \
1381          X"$as_myself" : 'X\(//\)$' \| \
1382          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1383 $as_echo X"$as_myself" |
1384     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1385             s//\1/
1386             q
1387           }
1388           /^X\(\/\/\)[^/].*/{
1389             s//\1/
1390             q
1391           }
1392           /^X\(\/\/\)$/{
1393             s//\1/
1394             q
1395           }
1396           /^X\(\/\).*/{
1397             s//\1/
1398             q
1399           }
1400           s/.*/./; q'`
1401   srcdir=$ac_confdir
1402   if test ! -r "$srcdir/$ac_unique_file"; then
1403     srcdir=..
1404   fi
1405 else
1406   ac_srcdir_defaulted=no
1407 fi
1408 if test ! -r "$srcdir/$ac_unique_file"; then
1409   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1410   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1411 fi
1412 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1413 ac_abs_confdir=`(
1414         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1415         pwd)`
1416 # When building in place, set srcdir=.
1417 if test "$ac_abs_confdir" = "$ac_pwd"; then
1418   srcdir=.
1419 fi
1420 # Remove unnecessary trailing slashes from srcdir.
1421 # Double slashes in file names in object file debugging info
1422 # mess up M-x gdb in Emacs.
1423 case $srcdir in
1424 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1425 esac
1426 for ac_var in $ac_precious_vars; do
1427   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1428   eval ac_env_${ac_var}_value=\$${ac_var}
1429   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1430   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1431 done
1432
1433 #
1434 # Report the --help message.
1435 #
1436 if test "$ac_init_help" = "long"; then
1437   # Omit some internal or obsolete options to make the list less imposing.
1438   # This message is too long to be a string in the A/UX 3.1 sh.
1439   cat <<_ACEOF
1440 \`configure' configures gssdp 0.14.4 to adapt to many kinds of systems.
1441
1442 Usage: $0 [OPTION]... [VAR=VALUE]...
1443
1444 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1445 VAR=VALUE.  See below for descriptions of some of the useful variables.
1446
1447 Defaults for the options are specified in brackets.
1448
1449 Configuration:
1450   -h, --help              display this help and exit
1451       --help=short        display options specific to this package
1452       --help=recursive    display the short help of all the included packages
1453   -V, --version           display version information and exit
1454   -q, --quiet, --silent   do not print \`checking ...' messages
1455       --cache-file=FILE   cache test results in FILE [disabled]
1456   -C, --config-cache      alias for \`--cache-file=config.cache'
1457   -n, --no-create         do not create output files
1458       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1459
1460 Installation directories:
1461   --prefix=PREFIX         install architecture-independent files in PREFIX
1462                           [$ac_default_prefix]
1463   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1464                           [PREFIX]
1465
1466 By default, \`make install' will install all the files in
1467 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1468 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1469 for instance \`--prefix=\$HOME'.
1470
1471 For better control, use the options below.
1472
1473 Fine tuning of the installation directories:
1474   --bindir=DIR            user executables [EPREFIX/bin]
1475   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1476   --libexecdir=DIR        program executables [EPREFIX/libexec]
1477   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1478   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1479   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1480   --libdir=DIR            object code libraries [EPREFIX/lib]
1481   --includedir=DIR        C header files [PREFIX/include]
1482   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1483   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1484   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1485   --infodir=DIR           info documentation [DATAROOTDIR/info]
1486   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1487   --mandir=DIR            man documentation [DATAROOTDIR/man]
1488   --docdir=DIR            documentation root [DATAROOTDIR/doc/gssdp]
1489   --htmldir=DIR           html documentation [DOCDIR]
1490   --dvidir=DIR            dvi documentation [DOCDIR]
1491   --pdfdir=DIR            pdf documentation [DOCDIR]
1492   --psdir=DIR             ps documentation [DOCDIR]
1493 _ACEOF
1494
1495   cat <<\_ACEOF
1496
1497 Program names:
1498   --program-prefix=PREFIX            prepend PREFIX to installed program names
1499   --program-suffix=SUFFIX            append SUFFIX to installed program names
1500   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1501
1502 System types:
1503   --build=BUILD     configure for building on BUILD [guessed]
1504   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1505 _ACEOF
1506 fi
1507
1508 if test -n "$ac_init_help"; then
1509   case $ac_init_help in
1510      short | recursive ) echo "Configuration of gssdp 0.14.4:";;
1511    esac
1512   cat <<\_ACEOF
1513
1514 Optional Features:
1515   --disable-option-checking  ignore unrecognized --enable/--with options
1516   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1517   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1518   --disable-maintainer-mode  disable make rules and dependencies not useful
1519                           (and sometimes confusing) to the casual installer
1520   --enable-compile-warnings=[no/minimum/yes/maximum/error]
1521                           Turn on compiler warnings
1522   --disable-dependency-tracking  speeds up one-time build
1523   --enable-dependency-tracking   do not reject slow dependency extractors
1524   --enable-iso-c          Try to warn if code is not ISO C
1525   --enable-silent-rules          less verbose build output (undo: `make V=1')
1526   --disable-silent-rules         verbose build output (undo: `make V=0')
1527   --enable-shared[=PKGS]  build shared libraries [default=yes]
1528   --enable-static[=PKGS]  build static libraries [default=yes]
1529   --enable-fast-install[=PKGS]
1530                           optimize for fast installation [default=yes]
1531   --disable-libtool-lock  avoid locking (might break parallel builds)
1532   --enable-debug          enable debugging
1533   --enable-strict-c       Error out on warnings
1534   --enable-introspection=[no/auto/yes]
1535                           Enable introspection for this build
1536   --enable-gtk-doc        use gtk-doc to build documentation [[default=no]]
1537   --enable-gtk-doc-html   build documentation in html format [[default=yes]]
1538   --enable-gtk-doc-pdf    build documentation in pdf format [[default=no]]
1539
1540 Optional Packages:
1541   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1542   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1543   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1544                           both]
1545   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1546   --with-sysroot=DIR Search for dependent libraries within DIR
1547                         (or the compiler's sysroot if not specified).
1548   --without-gtk           compile without gtk+ support
1549   --with-html-dir=PATH    path to installed docs
1550
1551 Some influential environment variables:
1552   CC          C compiler command
1553   CFLAGS      C compiler flags
1554   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1555               nonstandard directory <lib dir>
1556   LIBS        libraries to pass to the linker, e.g. -l<library>
1557   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1558               you have headers in a nonstandard directory <include dir>
1559   CPP         C preprocessor
1560   PKG_CONFIG  path to pkg-config utility
1561   PKG_CONFIG_PATH
1562               directories to add to pkg-config's search path
1563   PKG_CONFIG_LIBDIR
1564               path overriding pkg-config's built-in search path
1565   LIBGSSDP_CFLAGS
1566               C compiler flags for LIBGSSDP, overriding pkg-config
1567   LIBGSSDP_LIBS
1568               linker flags for LIBGSSDP, overriding pkg-config
1569   LIBGTK_CFLAGS
1570               C compiler flags for LIBGTK, overriding pkg-config
1571   LIBGTK_LIBS linker flags for LIBGTK, overriding pkg-config
1572   GTKDOC_DEPS_CFLAGS
1573               C compiler flags for GTKDOC_DEPS, overriding pkg-config
1574   GTKDOC_DEPS_LIBS
1575               linker flags for GTKDOC_DEPS, overriding pkg-config
1576
1577 Use these variables to override the choices made by `configure' or to help
1578 it to find libraries and programs with nonstandard names/locations.
1579
1580 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=gupnp&component=gssdp>.
1581 gssdp home page: <http://www.gupnp.org/>.
1582 _ACEOF
1583 ac_status=$?
1584 fi
1585
1586 if test "$ac_init_help" = "recursive"; then
1587   # If there are subdirs, report their specific --help.
1588   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1589     test -d "$ac_dir" ||
1590       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1591       continue
1592     ac_builddir=.
1593
1594 case "$ac_dir" in
1595 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1596 *)
1597   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1598   # A ".." for each directory in $ac_dir_suffix.
1599   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1600   case $ac_top_builddir_sub in
1601   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1602   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1603   esac ;;
1604 esac
1605 ac_abs_top_builddir=$ac_pwd
1606 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1607 # for backward compatibility:
1608 ac_top_builddir=$ac_top_build_prefix
1609
1610 case $srcdir in
1611   .)  # We are building in place.
1612     ac_srcdir=.
1613     ac_top_srcdir=$ac_top_builddir_sub
1614     ac_abs_top_srcdir=$ac_pwd ;;
1615   [\\/]* | ?:[\\/]* )  # Absolute name.
1616     ac_srcdir=$srcdir$ac_dir_suffix;
1617     ac_top_srcdir=$srcdir
1618     ac_abs_top_srcdir=$srcdir ;;
1619   *) # Relative name.
1620     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1621     ac_top_srcdir=$ac_top_build_prefix$srcdir
1622     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1623 esac
1624 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1625
1626     cd "$ac_dir" || { ac_status=$?; continue; }
1627     # Check for guested configure.
1628     if test -f "$ac_srcdir/configure.gnu"; then
1629       echo &&
1630       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1631     elif test -f "$ac_srcdir/configure"; then
1632       echo &&
1633       $SHELL "$ac_srcdir/configure" --help=recursive
1634     else
1635       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1636     fi || ac_status=$?
1637     cd "$ac_pwd" || { ac_status=$?; break; }
1638   done
1639 fi
1640
1641 test -n "$ac_init_help" && exit $ac_status
1642 if $ac_init_version; then
1643   cat <<\_ACEOF
1644 gssdp configure 0.14.4
1645 generated by GNU Autoconf 2.69
1646
1647 Copyright (C) 2012 Free Software Foundation, Inc.
1648 This configure script is free software; the Free Software Foundation
1649 gives unlimited permission to copy, distribute and modify it.
1650 _ACEOF
1651   exit
1652 fi
1653
1654 ## ------------------------ ##
1655 ## Autoconf initialization. ##
1656 ## ------------------------ ##
1657
1658 # ac_fn_c_try_compile LINENO
1659 # --------------------------
1660 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1661 ac_fn_c_try_compile ()
1662 {
1663   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1664   rm -f conftest.$ac_objext
1665   if { { ac_try="$ac_compile"
1666 case "(($ac_try" in
1667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1668   *) ac_try_echo=$ac_try;;
1669 esac
1670 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1671 $as_echo "$ac_try_echo"; } >&5
1672   (eval "$ac_compile") 2>conftest.err
1673   ac_status=$?
1674   if test -s conftest.err; then
1675     grep -v '^ *+' conftest.err >conftest.er1
1676     cat conftest.er1 >&5
1677     mv -f conftest.er1 conftest.err
1678   fi
1679   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1680   test $ac_status = 0; } && {
1681          test -z "$ac_c_werror_flag" ||
1682          test ! -s conftest.err
1683        } && test -s conftest.$ac_objext; then :
1684   ac_retval=0
1685 else
1686   $as_echo "$as_me: failed program was:" >&5
1687 sed 's/^/| /' conftest.$ac_ext >&5
1688
1689         ac_retval=1
1690 fi
1691   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1692   as_fn_set_status $ac_retval
1693
1694 } # ac_fn_c_try_compile
1695
1696 # ac_fn_c_try_link LINENO
1697 # -----------------------
1698 # Try to link conftest.$ac_ext, and return whether this succeeded.
1699 ac_fn_c_try_link ()
1700 {
1701   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1702   rm -f conftest.$ac_objext conftest$ac_exeext
1703   if { { ac_try="$ac_link"
1704 case "(($ac_try" in
1705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1706   *) ac_try_echo=$ac_try;;
1707 esac
1708 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1709 $as_echo "$ac_try_echo"; } >&5
1710   (eval "$ac_link") 2>conftest.err
1711   ac_status=$?
1712   if test -s conftest.err; then
1713     grep -v '^ *+' conftest.err >conftest.er1
1714     cat conftest.er1 >&5
1715     mv -f conftest.er1 conftest.err
1716   fi
1717   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1718   test $ac_status = 0; } && {
1719          test -z "$ac_c_werror_flag" ||
1720          test ! -s conftest.err
1721        } && test -s conftest$ac_exeext && {
1722          test "$cross_compiling" = yes ||
1723          test -x conftest$ac_exeext
1724        }; then :
1725   ac_retval=0
1726 else
1727   $as_echo "$as_me: failed program was:" >&5
1728 sed 's/^/| /' conftest.$ac_ext >&5
1729
1730         ac_retval=1
1731 fi
1732   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1733   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1734   # interfere with the next link command; also delete a directory that is
1735   # left behind by Apple's compiler.  We do this before executing the actions.
1736   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1737   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1738   as_fn_set_status $ac_retval
1739
1740 } # ac_fn_c_try_link
1741
1742 # ac_fn_c_try_cpp LINENO
1743 # ----------------------
1744 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1745 ac_fn_c_try_cpp ()
1746 {
1747   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1748   if { { ac_try="$ac_cpp conftest.$ac_ext"
1749 case "(($ac_try" in
1750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1751   *) ac_try_echo=$ac_try;;
1752 esac
1753 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1754 $as_echo "$ac_try_echo"; } >&5
1755   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1756   ac_status=$?
1757   if test -s conftest.err; then
1758     grep -v '^ *+' conftest.err >conftest.er1
1759     cat conftest.er1 >&5
1760     mv -f conftest.er1 conftest.err
1761   fi
1762   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1763   test $ac_status = 0; } > conftest.i && {
1764          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1765          test ! -s conftest.err
1766        }; then :
1767   ac_retval=0
1768 else
1769   $as_echo "$as_me: failed program was:" >&5
1770 sed 's/^/| /' conftest.$ac_ext >&5
1771
1772     ac_retval=1
1773 fi
1774   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1775   as_fn_set_status $ac_retval
1776
1777 } # ac_fn_c_try_cpp
1778
1779 # ac_fn_c_try_run LINENO
1780 # ----------------------
1781 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1782 # that executables *can* be run.
1783 ac_fn_c_try_run ()
1784 {
1785   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1786   if { { ac_try="$ac_link"
1787 case "(($ac_try" in
1788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1789   *) ac_try_echo=$ac_try;;
1790 esac
1791 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1792 $as_echo "$ac_try_echo"; } >&5
1793   (eval "$ac_link") 2>&5
1794   ac_status=$?
1795   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1796   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1797   { { case "(($ac_try" in
1798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1799   *) ac_try_echo=$ac_try;;
1800 esac
1801 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1802 $as_echo "$ac_try_echo"; } >&5
1803   (eval "$ac_try") 2>&5
1804   ac_status=$?
1805   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1806   test $ac_status = 0; }; }; then :
1807   ac_retval=0
1808 else
1809   $as_echo "$as_me: program exited with status $ac_status" >&5
1810        $as_echo "$as_me: failed program was:" >&5
1811 sed 's/^/| /' conftest.$ac_ext >&5
1812
1813        ac_retval=$ac_status
1814 fi
1815   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1816   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1817   as_fn_set_status $ac_retval
1818
1819 } # ac_fn_c_try_run
1820
1821 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1822 # -------------------------------------------------------
1823 # Tests whether HEADER exists and can be compiled using the include files in
1824 # INCLUDES, setting the cache variable VAR accordingly.
1825 ac_fn_c_check_header_compile ()
1826 {
1827   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1828   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1829 $as_echo_n "checking for $2... " >&6; }
1830 if eval \${$3+:} false; then :
1831   $as_echo_n "(cached) " >&6
1832 else
1833   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1834 /* end confdefs.h.  */
1835 $4
1836 #include <$2>
1837 _ACEOF
1838 if ac_fn_c_try_compile "$LINENO"; then :
1839   eval "$3=yes"
1840 else
1841   eval "$3=no"
1842 fi
1843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1844 fi
1845 eval ac_res=\$$3
1846                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1847 $as_echo "$ac_res" >&6; }
1848   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1849
1850 } # ac_fn_c_check_header_compile
1851
1852 # ac_fn_c_check_func LINENO FUNC VAR
1853 # ----------------------------------
1854 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1855 ac_fn_c_check_func ()
1856 {
1857   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1858   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1859 $as_echo_n "checking for $2... " >&6; }
1860 if eval \${$3+:} false; then :
1861   $as_echo_n "(cached) " >&6
1862 else
1863   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1864 /* end confdefs.h.  */
1865 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1866    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1867 #define $2 innocuous_$2
1868
1869 /* System header to define __stub macros and hopefully few prototypes,
1870     which can conflict with char $2 (); below.
1871     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1872     <limits.h> exists even on freestanding compilers.  */
1873
1874 #ifdef __STDC__
1875 # include <limits.h>
1876 #else
1877 # include <assert.h>
1878 #endif
1879
1880 #undef $2
1881
1882 /* Override any GCC internal prototype to avoid an error.
1883    Use char because int might match the return type of a GCC
1884    builtin and then its argument prototype would still apply.  */
1885 #ifdef __cplusplus
1886 extern "C"
1887 #endif
1888 char $2 ();
1889 /* The GNU C library defines this for functions which it implements
1890     to always fail with ENOSYS.  Some functions are actually named
1891     something starting with __ and the normal name is an alias.  */
1892 #if defined __stub_$2 || defined __stub___$2
1893 choke me
1894 #endif
1895
1896 int
1897 main ()
1898 {
1899 return $2 ();
1900   ;
1901   return 0;
1902 }
1903 _ACEOF
1904 if ac_fn_c_try_link "$LINENO"; then :
1905   eval "$3=yes"
1906 else
1907   eval "$3=no"
1908 fi
1909 rm -f core conftest.err conftest.$ac_objext \
1910     conftest$ac_exeext conftest.$ac_ext
1911 fi
1912 eval ac_res=\$$3
1913                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1914 $as_echo "$ac_res" >&6; }
1915   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1916
1917 } # ac_fn_c_check_func
1918 cat >config.log <<_ACEOF
1919 This file contains any messages produced by compilers while
1920 running configure, to aid debugging if configure makes a mistake.
1921
1922 It was created by gssdp $as_me 0.14.4, which was
1923 generated by GNU Autoconf 2.69.  Invocation command line was
1924
1925   $ $0 $@
1926
1927 _ACEOF
1928 exec 5>>config.log
1929 {
1930 cat <<_ASUNAME
1931 ## --------- ##
1932 ## Platform. ##
1933 ## --------- ##
1934
1935 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1936 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1937 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1938 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1939 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1940
1941 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1942 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1943
1944 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1945 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1946 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1947 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1948 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1949 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1950 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1951
1952 _ASUNAME
1953
1954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1955 for as_dir in $PATH
1956 do
1957   IFS=$as_save_IFS
1958   test -z "$as_dir" && as_dir=.
1959     $as_echo "PATH: $as_dir"
1960   done
1961 IFS=$as_save_IFS
1962
1963 } >&5
1964
1965 cat >&5 <<_ACEOF
1966
1967
1968 ## ----------- ##
1969 ## Core tests. ##
1970 ## ----------- ##
1971
1972 _ACEOF
1973
1974
1975 # Keep a trace of the command line.
1976 # Strip out --no-create and --no-recursion so they do not pile up.
1977 # Strip out --silent because we don't want to record it for future runs.
1978 # Also quote any args containing shell meta-characters.
1979 # Make two passes to allow for proper duplicate-argument suppression.
1980 ac_configure_args=
1981 ac_configure_args0=
1982 ac_configure_args1=
1983 ac_must_keep_next=false
1984 for ac_pass in 1 2
1985 do
1986   for ac_arg
1987   do
1988     case $ac_arg in
1989     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1990     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1991     | -silent | --silent | --silen | --sile | --sil)
1992       continue ;;
1993     *\'*)
1994       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1995     esac
1996     case $ac_pass in
1997     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1998     2)
1999       as_fn_append ac_configure_args1 " '$ac_arg'"
2000       if test $ac_must_keep_next = true; then
2001         ac_must_keep_next=false # Got value, back to normal.
2002       else
2003         case $ac_arg in
2004           *=* | --config-cache | -C | -disable-* | --disable-* \
2005           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2006           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2007           | -with-* | --with-* | -without-* | --without-* | --x)
2008             case "$ac_configure_args0 " in
2009               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2010             esac
2011             ;;
2012           -* ) ac_must_keep_next=true ;;
2013         esac
2014       fi
2015       as_fn_append ac_configure_args " '$ac_arg'"
2016       ;;
2017     esac
2018   done
2019 done
2020 { ac_configure_args0=; unset ac_configure_args0;}
2021 { ac_configure_args1=; unset ac_configure_args1;}
2022
2023 # When interrupted or exit'd, cleanup temporary files, and complete
2024 # config.log.  We remove comments because anyway the quotes in there
2025 # would cause problems or look ugly.
2026 # WARNING: Use '\'' to represent an apostrophe within the trap.
2027 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2028 trap 'exit_status=$?
2029   # Save into config.log some information that might help in debugging.
2030   {
2031     echo
2032
2033     $as_echo "## ---------------- ##
2034 ## Cache variables. ##
2035 ## ---------------- ##"
2036     echo
2037     # The following way of writing the cache mishandles newlines in values,
2038 (
2039   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2040     eval ac_val=\$$ac_var
2041     case $ac_val in #(
2042     *${as_nl}*)
2043       case $ac_var in #(
2044       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2045 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2046       esac
2047       case $ac_var in #(
2048       _ | IFS | as_nl) ;; #(
2049       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2050       *) { eval $ac_var=; unset $ac_var;} ;;
2051       esac ;;
2052     esac
2053   done
2054   (set) 2>&1 |
2055     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2056     *${as_nl}ac_space=\ *)
2057       sed -n \
2058         "s/'\''/'\''\\\\'\'''\''/g;
2059           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2060       ;; #(
2061     *)
2062       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2063       ;;
2064     esac |
2065     sort
2066 )
2067     echo
2068
2069     $as_echo "## ----------------- ##
2070 ## Output variables. ##
2071 ## ----------------- ##"
2072     echo
2073     for ac_var in $ac_subst_vars
2074     do
2075       eval ac_val=\$$ac_var
2076       case $ac_val in
2077       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2078       esac
2079       $as_echo "$ac_var='\''$ac_val'\''"
2080     done | sort
2081     echo
2082
2083     if test -n "$ac_subst_files"; then
2084       $as_echo "## ------------------- ##
2085 ## File substitutions. ##
2086 ## ------------------- ##"
2087       echo
2088       for ac_var in $ac_subst_files
2089       do
2090         eval ac_val=\$$ac_var
2091         case $ac_val in
2092         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2093         esac
2094         $as_echo "$ac_var='\''$ac_val'\''"
2095       done | sort
2096       echo
2097     fi
2098
2099     if test -s confdefs.h; then
2100       $as_echo "## ----------- ##
2101 ## confdefs.h. ##
2102 ## ----------- ##"
2103       echo
2104       cat confdefs.h
2105       echo
2106     fi
2107     test "$ac_signal" != 0 &&
2108       $as_echo "$as_me: caught signal $ac_signal"
2109     $as_echo "$as_me: exit $exit_status"
2110   } >&5
2111   rm -f core *.core core.conftest.* &&
2112     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2113     exit $exit_status
2114 ' 0
2115 for ac_signal in 1 2 13 15; do
2116   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2117 done
2118 ac_signal=0
2119
2120 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2121 rm -f -r conftest* confdefs.h
2122
2123 $as_echo "/* confdefs.h */" > confdefs.h
2124
2125 # Predefined preprocessor variables.
2126
2127 cat >>confdefs.h <<_ACEOF
2128 #define PACKAGE_NAME "$PACKAGE_NAME"
2129 _ACEOF
2130
2131 cat >>confdefs.h <<_ACEOF
2132 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2133 _ACEOF
2134
2135 cat >>confdefs.h <<_ACEOF
2136 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2137 _ACEOF
2138
2139 cat >>confdefs.h <<_ACEOF
2140 #define PACKAGE_STRING "$PACKAGE_STRING"
2141 _ACEOF
2142
2143 cat >>confdefs.h <<_ACEOF
2144 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2145 _ACEOF
2146
2147 cat >>confdefs.h <<_ACEOF
2148 #define PACKAGE_URL "$PACKAGE_URL"
2149 _ACEOF
2150
2151
2152 # Let the site file select an alternate cache file if it wants to.
2153 # Prefer an explicitly selected file to automatically selected ones.
2154 ac_site_file1=NONE
2155 ac_site_file2=NONE
2156 if test -n "$CONFIG_SITE"; then
2157   # We do not want a PATH search for config.site.
2158   case $CONFIG_SITE in #((
2159     -*)  ac_site_file1=./$CONFIG_SITE;;
2160     */*) ac_site_file1=$CONFIG_SITE;;
2161     *)   ac_site_file1=./$CONFIG_SITE;;
2162   esac
2163 elif test "x$prefix" != xNONE; then
2164   ac_site_file1=$prefix/share/config.site
2165   ac_site_file2=$prefix/etc/config.site
2166 else
2167   ac_site_file1=$ac_default_prefix/share/config.site
2168   ac_site_file2=$ac_default_prefix/etc/config.site
2169 fi
2170 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2171 do
2172   test "x$ac_site_file" = xNONE && continue
2173   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2174     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2175 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2176     sed 's/^/| /' "$ac_site_file" >&5
2177     . "$ac_site_file" \
2178       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2179 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2180 as_fn_error $? "failed to load site script $ac_site_file
2181 See \`config.log' for more details" "$LINENO" 5; }
2182   fi
2183 done
2184
2185 if test -r "$cache_file"; then
2186   # Some versions of bash will fail to source /dev/null (special files
2187   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2188   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2189     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2190 $as_echo "$as_me: loading cache $cache_file" >&6;}
2191     case $cache_file in
2192       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2193       *)                      . "./$cache_file";;
2194     esac
2195   fi
2196 else
2197   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2198 $as_echo "$as_me: creating cache $cache_file" >&6;}
2199   >$cache_file
2200 fi
2201
2202 # Check that the precious variables saved in the cache have kept the same
2203 # value.
2204 ac_cache_corrupted=false
2205 for ac_var in $ac_precious_vars; do
2206   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2207   eval ac_new_set=\$ac_env_${ac_var}_set
2208   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2209   eval ac_new_val=\$ac_env_${ac_var}_value
2210   case $ac_old_set,$ac_new_set in
2211     set,)
2212       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2213 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2214       ac_cache_corrupted=: ;;
2215     ,set)
2216       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2217 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2218       ac_cache_corrupted=: ;;
2219     ,);;
2220     *)
2221       if test "x$ac_old_val" != "x$ac_new_val"; then
2222         # differences in whitespace do not lead to failure.
2223         ac_old_val_w=`echo x $ac_old_val`
2224         ac_new_val_w=`echo x $ac_new_val`
2225         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2226           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2227 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2228           ac_cache_corrupted=:
2229         else
2230           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2231 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2232           eval $ac_var=\$ac_old_val
2233         fi
2234         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2235 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2236         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2237 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2238       fi;;
2239   esac
2240   # Pass precious variables to config.status.
2241   if test "$ac_new_set" = set; then
2242     case $ac_new_val in
2243     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2244     *) ac_arg=$ac_var=$ac_new_val ;;
2245     esac
2246     case " $ac_configure_args " in
2247       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2248       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2249     esac
2250   fi
2251 done
2252 if $ac_cache_corrupted; then
2253   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2254 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2255   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2256 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2257   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2258 fi
2259 ## -------------------- ##
2260 ## Main body of script. ##
2261 ## -------------------- ##
2262
2263 ac_ext=c
2264 ac_cpp='$CPP $CPPFLAGS'
2265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2268
2269
2270
2271 ac_config_headers="$ac_config_headers config.h"
2272
2273
2274
2275 ac_aux_dir=
2276 for ac_dir in build-aux "$srcdir"/build-aux; do
2277   if test -f "$ac_dir/install-sh"; then
2278     ac_aux_dir=$ac_dir
2279     ac_install_sh="$ac_aux_dir/install-sh -c"
2280     break
2281   elif test -f "$ac_dir/install.sh"; then
2282     ac_aux_dir=$ac_dir
2283     ac_install_sh="$ac_aux_dir/install.sh -c"
2284     break
2285   elif test -f "$ac_dir/shtool"; then
2286     ac_aux_dir=$ac_dir
2287     ac_install_sh="$ac_aux_dir/shtool install -c"
2288     break
2289   fi
2290 done
2291 if test -z "$ac_aux_dir"; then
2292   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2293 fi
2294
2295 # These three variables are undocumented and unsupported,
2296 # and are intended to be withdrawn in a future Autoconf release.
2297 # They can cause serious problems if a builder's source tree is in a directory
2298 # whose full name contains unusual characters.
2299 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2300 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2301 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2302
2303
2304
2305 am__api_version='1.11'
2306
2307 # Find a good install program.  We prefer a C program (faster),
2308 # so one script is as good as another.  But avoid the broken or
2309 # incompatible versions:
2310 # SysV /etc/install, /usr/sbin/install
2311 # SunOS /usr/etc/install
2312 # IRIX /sbin/install
2313 # AIX /bin/install
2314 # AmigaOS /C/install, which installs bootblocks on floppy discs
2315 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2316 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2317 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2318 # OS/2's system install, which has a completely different semantic
2319 # ./install, which can be erroneously created by make from ./install.sh.
2320 # Reject install programs that cannot install multiple files.
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2322 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2323 if test -z "$INSTALL"; then
2324 if ${ac_cv_path_install+:} false; then :
2325   $as_echo_n "(cached) " >&6
2326 else
2327   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2328 for as_dir in $PATH
2329 do
2330   IFS=$as_save_IFS
2331   test -z "$as_dir" && as_dir=.
2332     # Account for people who put trailing slashes in PATH elements.
2333 case $as_dir/ in #((
2334   ./ | .// | /[cC]/* | \
2335   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2336   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2337   /usr/ucb/* ) ;;
2338   *)
2339     # OSF1 and SCO ODT 3.0 have their own names for install.
2340     # Don't use installbsd from OSF since it installs stuff as root
2341     # by default.
2342     for ac_prog in ginstall scoinst install; do
2343       for ac_exec_ext in '' $ac_executable_extensions; do
2344         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2345           if test $ac_prog = install &&
2346             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2347             # AIX install.  It has an incompatible calling convention.
2348             :
2349           elif test $ac_prog = install &&
2350             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2351             # program-specific install script used by HP pwplus--don't use.
2352             :
2353           else
2354             rm -rf conftest.one conftest.two conftest.dir
2355             echo one > conftest.one
2356             echo two > conftest.two
2357             mkdir conftest.dir
2358             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2359               test -s conftest.one && test -s conftest.two &&
2360               test -s conftest.dir/conftest.one &&
2361               test -s conftest.dir/conftest.two
2362             then
2363               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2364               break 3
2365             fi
2366           fi
2367         fi
2368       done
2369     done
2370     ;;
2371 esac
2372
2373   done
2374 IFS=$as_save_IFS
2375
2376 rm -rf conftest.one conftest.two conftest.dir
2377
2378 fi
2379   if test "${ac_cv_path_install+set}" = set; then
2380     INSTALL=$ac_cv_path_install
2381   else
2382     # As a last resort, use the slow shell script.  Don't cache a
2383     # value for INSTALL within a source directory, because that will
2384     # break other packages using the cache if that directory is
2385     # removed, or if the value is a relative name.
2386     INSTALL=$ac_install_sh
2387   fi
2388 fi
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2390 $as_echo "$INSTALL" >&6; }
2391
2392 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2393 # It thinks the first close brace ends the variable substitution.
2394 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2395
2396 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2397
2398 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2399
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2401 $as_echo_n "checking whether build environment is sane... " >&6; }
2402 # Just in case
2403 sleep 1
2404 echo timestamp > conftest.file
2405 # Reject unsafe characters in $srcdir or the absolute working directory
2406 # name.  Accept space and tab only in the latter.
2407 am_lf='
2408 '
2409 case `pwd` in
2410   *[\\\"\#\$\&\'\`$am_lf]*)
2411     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2412 esac
2413 case $srcdir in
2414   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2415     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2416 esac
2417
2418 # Do `set' in a subshell so we don't clobber the current shell's
2419 # arguments.  Must try -L first in case configure is actually a
2420 # symlink; some systems play weird games with the mod time of symlinks
2421 # (eg FreeBSD returns the mod time of the symlink's containing
2422 # directory).
2423 if (
2424    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2425    if test "$*" = "X"; then
2426       # -L didn't work.
2427       set X `ls -t "$srcdir/configure" conftest.file`
2428    fi
2429    rm -f conftest.file
2430    if test "$*" != "X $srcdir/configure conftest.file" \
2431       && test "$*" != "X conftest.file $srcdir/configure"; then
2432
2433       # If neither matched, then we have a broken ls.  This can happen
2434       # if, for instance, CONFIG_SHELL is bash and it inherits a
2435       # broken ls alias from the environment.  This has actually
2436       # happened.  Such a system could not be considered "sane".
2437       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2438 alias in your environment" "$LINENO" 5
2439    fi
2440
2441    test "$2" = conftest.file
2442    )
2443 then
2444    # Ok.
2445    :
2446 else
2447    as_fn_error $? "newly created file is older than distributed files!
2448 Check your system clock" "$LINENO" 5
2449 fi
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2451 $as_echo "yes" >&6; }
2452 test "$program_prefix" != NONE &&
2453   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2454 # Use a double $ so make ignores it.
2455 test "$program_suffix" != NONE &&
2456   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2457 # Double any \ or $.
2458 # By default was `s,x,x', remove it if useless.
2459 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2460 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2461
2462 # expand $ac_aux_dir to an absolute path
2463 am_aux_dir=`cd $ac_aux_dir && pwd`
2464
2465 if test x"${MISSING+set}" != xset; then
2466   case $am_aux_dir in
2467   *\ * | *\     *)
2468     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2469   *)
2470     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2471   esac
2472 fi
2473 # Use eval to expand $SHELL
2474 if eval "$MISSING --run true"; then
2475   am_missing_run="$MISSING --run "
2476 else
2477   am_missing_run=
2478   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2479 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2480 fi
2481
2482 if test x"${install_sh}" != xset; then
2483   case $am_aux_dir in
2484   *\ * | *\     *)
2485     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2486   *)
2487     install_sh="\${SHELL} $am_aux_dir/install-sh"
2488   esac
2489 fi
2490
2491 # Installed binaries are usually stripped using `strip' when the user
2492 # run `make install-strip'.  However `strip' might not be the right
2493 # tool to use in cross-compilation environments, therefore Automake
2494 # will honor the `STRIP' environment variable to overrule this program.
2495 if test "$cross_compiling" != no; then
2496   if test -n "$ac_tool_prefix"; then
2497   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2498 set dummy ${ac_tool_prefix}strip; ac_word=$2
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2500 $as_echo_n "checking for $ac_word... " >&6; }
2501 if ${ac_cv_prog_STRIP+:} false; then :
2502   $as_echo_n "(cached) " >&6
2503 else
2504   if test -n "$STRIP"; then
2505   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2506 else
2507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2508 for as_dir in $PATH
2509 do
2510   IFS=$as_save_IFS
2511   test -z "$as_dir" && as_dir=.
2512     for ac_exec_ext in '' $ac_executable_extensions; do
2513   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2514     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2515     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2516     break 2
2517   fi
2518 done
2519   done
2520 IFS=$as_save_IFS
2521
2522 fi
2523 fi
2524 STRIP=$ac_cv_prog_STRIP
2525 if test -n "$STRIP"; then
2526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2527 $as_echo "$STRIP" >&6; }
2528 else
2529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2530 $as_echo "no" >&6; }
2531 fi
2532
2533
2534 fi
2535 if test -z "$ac_cv_prog_STRIP"; then
2536   ac_ct_STRIP=$STRIP
2537   # Extract the first word of "strip", so it can be a program name with args.
2538 set dummy strip; ac_word=$2
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2540 $as_echo_n "checking for $ac_word... " >&6; }
2541 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2542   $as_echo_n "(cached) " >&6
2543 else
2544   if test -n "$ac_ct_STRIP"; then
2545   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2546 else
2547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2548 for as_dir in $PATH
2549 do
2550   IFS=$as_save_IFS
2551   test -z "$as_dir" && as_dir=.
2552     for ac_exec_ext in '' $ac_executable_extensions; do
2553   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2554     ac_cv_prog_ac_ct_STRIP="strip"
2555     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2556     break 2
2557   fi
2558 done
2559   done
2560 IFS=$as_save_IFS
2561
2562 fi
2563 fi
2564 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2565 if test -n "$ac_ct_STRIP"; then
2566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2567 $as_echo "$ac_ct_STRIP" >&6; }
2568 else
2569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2570 $as_echo "no" >&6; }
2571 fi
2572
2573   if test "x$ac_ct_STRIP" = x; then
2574     STRIP=":"
2575   else
2576     case $cross_compiling:$ac_tool_warned in
2577 yes:)
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2579 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2580 ac_tool_warned=yes ;;
2581 esac
2582     STRIP=$ac_ct_STRIP
2583   fi
2584 else
2585   STRIP="$ac_cv_prog_STRIP"
2586 fi
2587
2588 fi
2589 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2590
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2592 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2593 if test -z "$MKDIR_P"; then
2594   if ${ac_cv_path_mkdir+:} false; then :
2595   $as_echo_n "(cached) " >&6
2596 else
2597   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2598 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2599 do
2600   IFS=$as_save_IFS
2601   test -z "$as_dir" && as_dir=.
2602     for ac_prog in mkdir gmkdir; do
2603          for ac_exec_ext in '' $ac_executable_extensions; do
2604            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2605            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2606              'mkdir (GNU coreutils) '* | \
2607              'mkdir (coreutils) '* | \
2608              'mkdir (fileutils) '4.1*)
2609                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2610                break 3;;
2611            esac
2612          done
2613        done
2614   done
2615 IFS=$as_save_IFS
2616
2617 fi
2618
2619   test -d ./--version && rmdir ./--version
2620   if test "${ac_cv_path_mkdir+set}" = set; then
2621     MKDIR_P="$ac_cv_path_mkdir -p"
2622   else
2623     # As a last resort, use the slow shell script.  Don't cache a
2624     # value for MKDIR_P within a source directory, because that will
2625     # break other packages using the cache if that directory is
2626     # removed, or if the value is a relative name.
2627     MKDIR_P="$ac_install_sh -d"
2628   fi
2629 fi
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2631 $as_echo "$MKDIR_P" >&6; }
2632
2633 mkdir_p="$MKDIR_P"
2634 case $mkdir_p in
2635   [\\/$]* | ?:[\\/]*) ;;
2636   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2637 esac
2638
2639 for ac_prog in gawk mawk nawk awk
2640 do
2641   # Extract the first word of "$ac_prog", so it can be a program name with args.
2642 set dummy $ac_prog; ac_word=$2
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2644 $as_echo_n "checking for $ac_word... " >&6; }
2645 if ${ac_cv_prog_AWK+:} false; then :
2646   $as_echo_n "(cached) " >&6
2647 else
2648   if test -n "$AWK"; then
2649   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2650 else
2651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2652 for as_dir in $PATH
2653 do
2654   IFS=$as_save_IFS
2655   test -z "$as_dir" && as_dir=.
2656     for ac_exec_ext in '' $ac_executable_extensions; do
2657   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2658     ac_cv_prog_AWK="$ac_prog"
2659     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2660     break 2
2661   fi
2662 done
2663   done
2664 IFS=$as_save_IFS
2665
2666 fi
2667 fi
2668 AWK=$ac_cv_prog_AWK
2669 if test -n "$AWK"; then
2670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2671 $as_echo "$AWK" >&6; }
2672 else
2673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2674 $as_echo "no" >&6; }
2675 fi
2676
2677
2678   test -n "$AWK" && break
2679 done
2680
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2682 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2683 set x ${MAKE-make}
2684 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2685 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2686   $as_echo_n "(cached) " >&6
2687 else
2688   cat >conftest.make <<\_ACEOF
2689 SHELL = /bin/sh
2690 all:
2691         @echo '@@@%%%=$(MAKE)=@@@%%%'
2692 _ACEOF
2693 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2694 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2695   *@@@%%%=?*=@@@%%%*)
2696     eval ac_cv_prog_make_${ac_make}_set=yes;;
2697   *)
2698     eval ac_cv_prog_make_${ac_make}_set=no;;
2699 esac
2700 rm -f conftest.make
2701 fi
2702 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2704 $as_echo "yes" >&6; }
2705   SET_MAKE=
2706 else
2707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2708 $as_echo "no" >&6; }
2709   SET_MAKE="MAKE=${MAKE-make}"
2710 fi
2711
2712 rm -rf .tst 2>/dev/null
2713 mkdir .tst 2>/dev/null
2714 if test -d .tst; then
2715   am__leading_dot=.
2716 else
2717   am__leading_dot=_
2718 fi
2719 rmdir .tst 2>/dev/null
2720
2721 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2722   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2723   # is not polluted with repeated "-I."
2724   am__isrc=' -I$(srcdir)'
2725   # test to see if srcdir already configured
2726   if test -f $srcdir/config.status; then
2727     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2728   fi
2729 fi
2730
2731 # test whether we have cygpath
2732 if test -z "$CYGPATH_W"; then
2733   if (cygpath --version) >/dev/null 2>/dev/null; then
2734     CYGPATH_W='cygpath -w'
2735   else
2736     CYGPATH_W=echo
2737   fi
2738 fi
2739
2740
2741 # Define the identity of the package.
2742  PACKAGE='gssdp'
2743  VERSION='0.14.4'
2744
2745
2746 cat >>confdefs.h <<_ACEOF
2747 #define PACKAGE "$PACKAGE"
2748 _ACEOF
2749
2750
2751 cat >>confdefs.h <<_ACEOF
2752 #define VERSION "$VERSION"
2753 _ACEOF
2754
2755 # Some tools Automake needs.
2756
2757 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2758
2759
2760 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2761
2762
2763 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2764
2765
2766 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2767
2768
2769 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2770
2771 # We need awk for the "check" target.  The system "awk" is bad on
2772 # some platforms.
2773 # Always define AMTAR for backward compatibility.  Yes, it's still used
2774 # in the wild :-(  We should find a proper way to deprecate it ...
2775 AMTAR='$${TAR-tar}'
2776
2777
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
2779 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
2780 # Loop over all known methods to create a tar archive until one works.
2781 _am_tools='gnutar plaintar pax cpio none'
2782 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
2783 # Do not fold the above two line into one, because Tru64 sh and
2784 # Solaris sh will not grok spaces in the rhs of `-'.
2785 for _am_tool in $_am_tools
2786 do
2787   case $_am_tool in
2788   gnutar)
2789     for _am_tar in tar gnutar gtar;
2790     do
2791       { echo "$as_me:$LINENO: $_am_tar --version" >&5
2792    ($_am_tar --version) >&5 2>&5
2793    ac_status=$?
2794    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795    (exit $ac_status); } && break
2796     done
2797     am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
2798     am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
2799     am__untar="$_am_tar -xf -"
2800     ;;
2801   plaintar)
2802     # Must skip GNU tar: if it does not support --format= it doesn't create
2803     # ustar tarball either.
2804     (tar --version) >/dev/null 2>&1 && continue
2805     am__tar='tar chf - "$$tardir"'
2806     am__tar_='tar chf - "$tardir"'
2807     am__untar='tar xf -'
2808     ;;
2809   pax)
2810     am__tar='pax -L -x ustar -w "$$tardir"'
2811     am__tar_='pax -L -x ustar -w "$tardir"'
2812     am__untar='pax -r'
2813     ;;
2814   cpio)
2815     am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
2816     am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
2817     am__untar='cpio -i -H ustar -d'
2818     ;;
2819   none)
2820     am__tar=false
2821     am__tar_=false
2822     am__untar=false
2823     ;;
2824   esac
2825
2826   # If the value was cached, stop now.  We just wanted to have am__tar
2827   # and am__untar set.
2828   test -n "${am_cv_prog_tar_ustar}" && break
2829
2830   # tar/untar a dummy directory, and stop if the command works
2831   rm -rf conftest.dir
2832   mkdir conftest.dir
2833   echo GrepMe > conftest.dir/file
2834   { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
2835    (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
2836    ac_status=$?
2837    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838    (exit $ac_status); }
2839   rm -rf conftest.dir
2840   if test -s conftest.tar; then
2841     { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
2842    ($am__untar <conftest.tar) >&5 2>&5
2843    ac_status=$?
2844    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845    (exit $ac_status); }
2846     grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
2847   fi
2848 done
2849 rm -rf conftest.dir
2850
2851 if ${am_cv_prog_tar_ustar+:} false; then :
2852   $as_echo_n "(cached) " >&6
2853 else
2854   am_cv_prog_tar_ustar=$_am_tool
2855 fi
2856
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
2858 $as_echo "$am_cv_prog_tar_ustar" >&6; }
2859
2860
2861
2862
2863
2864
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2866 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2867     # Check whether --enable-maintainer-mode was given.
2868 if test "${enable_maintainer_mode+set}" = set; then :
2869   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2870 else
2871   USE_MAINTAINER_MODE=yes
2872 fi
2873
2874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2875 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2876    if test $USE_MAINTAINER_MODE = yes; then
2877   MAINTAINER_MODE_TRUE=
2878   MAINTAINER_MODE_FALSE='#'
2879 else
2880   MAINTAINER_MODE_TRUE='#'
2881   MAINTAINER_MODE_FALSE=
2882 fi
2883
2884   MAINT=$MAINTAINER_MODE_TRUE
2885
2886
2887
2888 DEPDIR="${am__leading_dot}deps"
2889
2890 ac_config_commands="$ac_config_commands depfiles"
2891
2892
2893 am_make=${MAKE-make}
2894 cat > confinc << 'END'
2895 am__doit:
2896         @echo this is the am__doit target
2897 .PHONY: am__doit
2898 END
2899 # If we don't find an include directive, just comment out the code.
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2901 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2902 am__include="#"
2903 am__quote=
2904 _am_result=none
2905 # First try GNU make style include.
2906 echo "include confinc" > confmf
2907 # Ignore all kinds of additional output from `make'.
2908 case `$am_make -s -f confmf 2> /dev/null` in #(
2909 *the\ am__doit\ target*)
2910   am__include=include
2911   am__quote=
2912   _am_result=GNU
2913   ;;
2914 esac
2915 # Now try BSD make style include.
2916 if test "$am__include" = "#"; then
2917    echo '.include "confinc"' > confmf
2918    case `$am_make -s -f confmf 2> /dev/null` in #(
2919    *the\ am__doit\ target*)
2920      am__include=.include
2921      am__quote="\""
2922      _am_result=BSD
2923      ;;
2924    esac
2925 fi
2926
2927
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2929 $as_echo "$_am_result" >&6; }
2930 rm -f confinc confmf
2931
2932 # Check whether --enable-dependency-tracking was given.
2933 if test "${enable_dependency_tracking+set}" = set; then :
2934   enableval=$enable_dependency_tracking;
2935 fi
2936
2937 if test "x$enable_dependency_tracking" != xno; then
2938   am_depcomp="$ac_aux_dir/depcomp"
2939   AMDEPBACKSLASH='\'
2940   am__nodep='_no'
2941 fi
2942  if test "x$enable_dependency_tracking" != xno; then
2943   AMDEP_TRUE=
2944   AMDEP_FALSE='#'
2945 else
2946   AMDEP_TRUE='#'
2947   AMDEP_FALSE=
2948 fi
2949
2950
2951 ac_ext=c
2952 ac_cpp='$CPP $CPPFLAGS'
2953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2956 if test -n "$ac_tool_prefix"; then
2957   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2958 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2960 $as_echo_n "checking for $ac_word... " >&6; }
2961 if ${ac_cv_prog_CC+:} false; then :
2962   $as_echo_n "(cached) " >&6
2963 else
2964   if test -n "$CC"; then
2965   ac_cv_prog_CC="$CC" # Let the user override the test.
2966 else
2967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2968 for as_dir in $PATH
2969 do
2970   IFS=$as_save_IFS
2971   test -z "$as_dir" && as_dir=.
2972     for ac_exec_ext in '' $ac_executable_extensions; do
2973   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2974     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2975     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2976     break 2
2977   fi
2978 done
2979   done
2980 IFS=$as_save_IFS
2981
2982 fi
2983 fi
2984 CC=$ac_cv_prog_CC
2985 if test -n "$CC"; then
2986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2987 $as_echo "$CC" >&6; }
2988 else
2989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2990 $as_echo "no" >&6; }
2991 fi
2992
2993
2994 fi
2995 if test -z "$ac_cv_prog_CC"; then
2996   ac_ct_CC=$CC
2997   # Extract the first word of "gcc", so it can be a program name with args.
2998 set dummy gcc; ac_word=$2
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3000 $as_echo_n "checking for $ac_word... " >&6; }
3001 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3002   $as_echo_n "(cached) " >&6
3003 else
3004   if test -n "$ac_ct_CC"; then
3005   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3006 else
3007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3008 for as_dir in $PATH
3009 do
3010   IFS=$as_save_IFS
3011   test -z "$as_dir" && as_dir=.
3012     for ac_exec_ext in '' $ac_executable_extensions; do
3013   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3014     ac_cv_prog_ac_ct_CC="gcc"
3015     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3016     break 2
3017   fi
3018 done
3019   done
3020 IFS=$as_save_IFS
3021
3022 fi
3023 fi
3024 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3025 if test -n "$ac_ct_CC"; then
3026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3027 $as_echo "$ac_ct_CC" >&6; }
3028 else
3029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3030 $as_echo "no" >&6; }
3031 fi
3032
3033   if test "x$ac_ct_CC" = x; then
3034     CC=""
3035   else
3036     case $cross_compiling:$ac_tool_warned in
3037 yes:)
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3039 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3040 ac_tool_warned=yes ;;
3041 esac
3042     CC=$ac_ct_CC
3043   fi
3044 else
3045   CC="$ac_cv_prog_CC"
3046 fi
3047
3048 if test -z "$CC"; then
3049           if test -n "$ac_tool_prefix"; then
3050     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3051 set dummy ${ac_tool_prefix}cc; ac_word=$2
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3053 $as_echo_n "checking for $ac_word... " >&6; }
3054 if ${ac_cv_prog_CC+:} false; then :
3055   $as_echo_n "(cached) " >&6
3056 else
3057   if test -n "$CC"; then
3058   ac_cv_prog_CC="$CC" # Let the user override the test.
3059 else
3060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3061 for as_dir in $PATH
3062 do
3063   IFS=$as_save_IFS
3064   test -z "$as_dir" && as_dir=.
3065     for ac_exec_ext in '' $ac_executable_extensions; do
3066   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3067     ac_cv_prog_CC="${ac_tool_prefix}cc"
3068     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3069     break 2
3070   fi
3071 done
3072   done
3073 IFS=$as_save_IFS
3074
3075 fi
3076 fi
3077 CC=$ac_cv_prog_CC
3078 if test -n "$CC"; then
3079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3080 $as_echo "$CC" >&6; }
3081 else
3082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3083 $as_echo "no" >&6; }
3084 fi
3085
3086
3087   fi
3088 fi
3089 if test -z "$CC"; then
3090   # Extract the first word of "cc", so it can be a program name with args.
3091 set dummy cc; ac_word=$2
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3093 $as_echo_n "checking for $ac_word... " >&6; }
3094 if ${ac_cv_prog_CC+:} false; then :
3095   $as_echo_n "(cached) " >&6
3096 else
3097   if test -n "$CC"; then
3098   ac_cv_prog_CC="$CC" # Let the user override the test.
3099 else
3100   ac_prog_rejected=no
3101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3102 for as_dir in $PATH
3103 do
3104   IFS=$as_save_IFS
3105   test -z "$as_dir" && as_dir=.
3106     for ac_exec_ext in '' $ac_executable_extensions; do
3107   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3108     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3109        ac_prog_rejected=yes
3110        continue
3111      fi
3112     ac_cv_prog_CC="cc"
3113     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3114     break 2
3115   fi
3116 done
3117   done
3118 IFS=$as_save_IFS
3119
3120 if test $ac_prog_rejected = yes; then
3121   # We found a bogon in the path, so make sure we never use it.
3122   set dummy $ac_cv_prog_CC
3123   shift
3124   if test $# != 0; then
3125     # We chose a different compiler from the bogus one.
3126     # However, it has the same basename, so the bogon will be chosen
3127     # first if we set CC to just the basename; use the full file name.
3128     shift
3129     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3130   fi
3131 fi
3132 fi
3133 fi
3134 CC=$ac_cv_prog_CC
3135 if test -n "$CC"; then
3136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3137 $as_echo "$CC" >&6; }
3138 else
3139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3140 $as_echo "no" >&6; }
3141 fi
3142
3143
3144 fi
3145 if test -z "$CC"; then
3146   if test -n "$ac_tool_prefix"; then
3147   for ac_prog in cl.exe
3148   do
3149     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3150 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3152 $as_echo_n "checking for $ac_word... " >&6; }
3153 if ${ac_cv_prog_CC+:} false; then :
3154   $as_echo_n "(cached) " >&6
3155 else
3156   if test -n "$CC"; then
3157   ac_cv_prog_CC="$CC" # Let the user override the test.
3158 else
3159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3160 for as_dir in $PATH
3161 do
3162   IFS=$as_save_IFS
3163   test -z "$as_dir" && as_dir=.
3164     for ac_exec_ext in '' $ac_executable_extensions; do
3165   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3166     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3167     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3168     break 2
3169   fi
3170 done
3171   done
3172 IFS=$as_save_IFS
3173
3174 fi
3175 fi
3176 CC=$ac_cv_prog_CC
3177 if test -n "$CC"; then
3178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3179 $as_echo "$CC" >&6; }
3180 else
3181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3182 $as_echo "no" >&6; }
3183 fi
3184
3185
3186     test -n "$CC" && break
3187   done
3188 fi
3189 if test -z "$CC"; then
3190   ac_ct_CC=$CC
3191   for ac_prog in cl.exe
3192 do
3193   # Extract the first word of "$ac_prog", so it can be a program name with args.
3194 set dummy $ac_prog; ac_word=$2
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3196 $as_echo_n "checking for $ac_word... " >&6; }
3197 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3198   $as_echo_n "(cached) " >&6
3199 else
3200   if test -n "$ac_ct_CC"; then
3201   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3202 else
3203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3204 for as_dir in $PATH
3205 do
3206   IFS=$as_save_IFS
3207   test -z "$as_dir" && as_dir=.
3208     for ac_exec_ext in '' $ac_executable_extensions; do
3209   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3210     ac_cv_prog_ac_ct_CC="$ac_prog"
3211     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3212     break 2
3213   fi
3214 done
3215   done
3216 IFS=$as_save_IFS
3217
3218 fi
3219 fi
3220 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3221 if test -n "$ac_ct_CC"; then
3222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3223 $as_echo "$ac_ct_CC" >&6; }
3224 else
3225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3226 $as_echo "no" >&6; }
3227 fi
3228
3229
3230   test -n "$ac_ct_CC" && break
3231 done
3232
3233   if test "x$ac_ct_CC" = x; then
3234     CC=""
3235   else
3236     case $cross_compiling:$ac_tool_warned in
3237 yes:)
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3239 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3240 ac_tool_warned=yes ;;
3241 esac
3242     CC=$ac_ct_CC
3243   fi
3244 fi
3245
3246 fi
3247
3248
3249 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3250 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3251 as_fn_error $? "no acceptable C compiler found in \$PATH
3252 See \`config.log' for more details" "$LINENO" 5; }
3253
3254 # Provide some information about the compiler.
3255 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3256 set X $ac_compile
3257 ac_compiler=$2
3258 for ac_option in --version -v -V -qversion; do
3259   { { ac_try="$ac_compiler $ac_option >&5"
3260 case "(($ac_try" in
3261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3262   *) ac_try_echo=$ac_try;;
3263 esac
3264 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3265 $as_echo "$ac_try_echo"; } >&5
3266   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3267   ac_status=$?
3268   if test -s conftest.err; then
3269     sed '10a\
3270 ... rest of stderr output deleted ...
3271          10q' conftest.err >conftest.er1
3272     cat conftest.er1 >&5
3273   fi
3274   rm -f conftest.er1 conftest.err
3275   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3276   test $ac_status = 0; }
3277 done
3278
3279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3280 /* end confdefs.h.  */
3281
3282 int
3283 main ()
3284 {
3285
3286   ;
3287   return 0;
3288 }
3289 _ACEOF
3290 ac_clean_files_save=$ac_clean_files
3291 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3292 # Try to create an executable without -o first, disregard a.out.
3293 # It will help us diagnose broken compilers, and finding out an intuition
3294 # of exeext.
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3296 $as_echo_n "checking whether the C compiler works... " >&6; }
3297 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3298
3299 # The possible output files:
3300 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3301
3302 ac_rmfiles=
3303 for ac_file in $ac_files
3304 do
3305   case $ac_file in
3306     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3307     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3308   esac
3309 done
3310 rm -f $ac_rmfiles
3311
3312 if { { ac_try="$ac_link_default"
3313 case "(($ac_try" in
3314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3315   *) ac_try_echo=$ac_try;;
3316 esac
3317 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3318 $as_echo "$ac_try_echo"; } >&5
3319   (eval "$ac_link_default") 2>&5
3320   ac_status=$?
3321   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3322   test $ac_status = 0; }; then :
3323   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3324 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3325 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3326 # so that the user can short-circuit this test for compilers unknown to
3327 # Autoconf.
3328 for ac_file in $ac_files ''
3329 do
3330   test -f "$ac_file" || continue
3331   case $ac_file in
3332     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3333         ;;
3334     [ab].out )
3335         # We found the default executable, but exeext='' is most
3336         # certainly right.
3337         break;;
3338     *.* )
3339         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3340         then :; else
3341            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3342         fi
3343         # We set ac_cv_exeext here because the later test for it is not
3344         # safe: cross compilers may not add the suffix if given an `-o'
3345         # argument, so we may need to know it at that point already.
3346         # Even if this section looks crufty: it has the advantage of
3347         # actually working.
3348         break;;
3349     * )
3350         break;;
3351   esac
3352 done
3353 test "$ac_cv_exeext" = no && ac_cv_exeext=
3354
3355 else
3356   ac_file=''
3357 fi
3358 if test -z "$ac_file"; then :
3359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3360 $as_echo "no" >&6; }
3361 $as_echo "$as_me: failed program was:" >&5
3362 sed 's/^/| /' conftest.$ac_ext >&5
3363
3364 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3365 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3366 as_fn_error 77 "C compiler cannot create executables
3367 See \`config.log' for more details" "$LINENO" 5; }
3368 else
3369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3370 $as_echo "yes" >&6; }
3371 fi
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3373 $as_echo_n "checking for C compiler default output file name... " >&6; }
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3375 $as_echo "$ac_file" >&6; }
3376 ac_exeext=$ac_cv_exeext
3377
3378 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3379 ac_clean_files=$ac_clean_files_save
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3381 $as_echo_n "checking for suffix of executables... " >&6; }
3382 if { { ac_try="$ac_link"
3383 case "(($ac_try" in
3384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3385   *) ac_try_echo=$ac_try;;
3386 esac
3387 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3388 $as_echo "$ac_try_echo"; } >&5
3389   (eval "$ac_link") 2>&5
3390   ac_status=$?
3391   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3392   test $ac_status = 0; }; then :
3393   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3394 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3395 # work properly (i.e., refer to `conftest.exe'), while it won't with
3396 # `rm'.
3397 for ac_file in conftest.exe conftest conftest.*; do
3398   test -f "$ac_file" || continue
3399   case $ac_file in
3400     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3401     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3402           break;;
3403     * ) break;;
3404   esac
3405 done
3406 else
3407   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3408 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3409 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3410 See \`config.log' for more details" "$LINENO" 5; }
3411 fi
3412 rm -f conftest conftest$ac_cv_exeext
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3414 $as_echo "$ac_cv_exeext" >&6; }
3415
3416 rm -f conftest.$ac_ext
3417 EXEEXT=$ac_cv_exeext
3418 ac_exeext=$EXEEXT
3419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3420 /* end confdefs.h.  */
3421 #include <stdio.h>
3422 int
3423 main ()
3424 {
3425 FILE *f = fopen ("conftest.out", "w");
3426  return ferror (f) || fclose (f) != 0;
3427
3428   ;
3429   return 0;
3430 }
3431 _ACEOF
3432 ac_clean_files="$ac_clean_files conftest.out"
3433 # Check that the compiler produces executables we can run.  If not, either
3434 # the compiler is broken, or we cross compile.
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3436 $as_echo_n "checking whether we are cross compiling... " >&6; }
3437 if test "$cross_compiling" != yes; then
3438   { { ac_try="$ac_link"
3439 case "(($ac_try" in
3440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3441   *) ac_try_echo=$ac_try;;
3442 esac
3443 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3444 $as_echo "$ac_try_echo"; } >&5
3445   (eval "$ac_link") 2>&5
3446   ac_status=$?
3447   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3448   test $ac_status = 0; }
3449   if { ac_try='./conftest$ac_cv_exeext'
3450   { { case "(($ac_try" in
3451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3452   *) ac_try_echo=$ac_try;;
3453 esac
3454 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3455 $as_echo "$ac_try_echo"; } >&5
3456   (eval "$ac_try") 2>&5
3457   ac_status=$?
3458   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3459   test $ac_status = 0; }; }; then
3460     cross_compiling=no
3461   else
3462     if test "$cross_compiling" = maybe; then
3463         cross_compiling=yes
3464     else
3465         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3466 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3467 as_fn_error $? "cannot run C compiled programs.
3468 If you meant to cross compile, use \`--host'.
3469 See \`config.log' for more details" "$LINENO" 5; }
3470     fi
3471   fi
3472 fi
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3474 $as_echo "$cross_compiling" >&6; }
3475
3476 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3477 ac_clean_files=$ac_clean_files_save
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3479 $as_echo_n "checking for suffix of object files... " >&6; }
3480 if ${ac_cv_objext+:} false; then :
3481   $as_echo_n "(cached) " >&6
3482 else
3483   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3484 /* end confdefs.h.  */
3485
3486 int
3487 main ()
3488 {
3489
3490   ;
3491   return 0;
3492 }
3493 _ACEOF
3494 rm -f conftest.o conftest.obj
3495 if { { ac_try="$ac_compile"
3496 case "(($ac_try" in
3497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3498   *) ac_try_echo=$ac_try;;
3499 esac
3500 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3501 $as_echo "$ac_try_echo"; } >&5
3502   (eval "$ac_compile") 2>&5
3503   ac_status=$?
3504   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3505   test $ac_status = 0; }; then :
3506   for ac_file in conftest.o conftest.obj conftest.*; do
3507   test -f "$ac_file" || continue;
3508   case $ac_file in
3509     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3510     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3511        break;;
3512   esac
3513 done
3514 else
3515   $as_echo "$as_me: failed program was:" >&5
3516 sed 's/^/| /' conftest.$ac_ext >&5
3517
3518 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3519 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3520 as_fn_error $? "cannot compute suffix of object files: cannot compile
3521 See \`config.log' for more details" "$LINENO" 5; }
3522 fi
3523 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3524 fi
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3526 $as_echo "$ac_cv_objext" >&6; }
3527 OBJEXT=$ac_cv_objext
3528 ac_objext=$OBJEXT
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3530 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3531 if ${ac_cv_c_compiler_gnu+:} false; then :
3532   $as_echo_n "(cached) " >&6
3533 else
3534   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3535 /* end confdefs.h.  */
3536
3537 int
3538 main ()
3539 {
3540 #ifndef __GNUC__
3541        choke me
3542 #endif
3543
3544   ;
3545   return 0;
3546 }
3547 _ACEOF
3548 if ac_fn_c_try_compile "$LINENO"; then :
3549   ac_compiler_gnu=yes
3550 else
3551   ac_compiler_gnu=no
3552 fi
3553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3554 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3555
3556 fi
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3558 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3559 if test $ac_compiler_gnu = yes; then
3560   GCC=yes
3561 else
3562   GCC=
3563 fi
3564 ac_test_CFLAGS=${CFLAGS+set}
3565 ac_save_CFLAGS=$CFLAGS
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3567 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3568 if ${ac_cv_prog_cc_g+:} false; then :
3569   $as_echo_n "(cached) " >&6
3570 else
3571   ac_save_c_werror_flag=$ac_c_werror_flag
3572    ac_c_werror_flag=yes
3573    ac_cv_prog_cc_g=no
3574    CFLAGS="-g"
3575    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3576 /* end confdefs.h.  */
3577
3578 int
3579 main ()
3580 {
3581
3582   ;
3583   return 0;
3584 }
3585 _ACEOF
3586 if ac_fn_c_try_compile "$LINENO"; then :
3587   ac_cv_prog_cc_g=yes
3588 else
3589   CFLAGS=""
3590       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3591 /* end confdefs.h.  */
3592
3593 int
3594 main ()
3595 {
3596
3597   ;
3598   return 0;
3599 }
3600 _ACEOF
3601 if ac_fn_c_try_compile "$LINENO"; then :
3602
3603 else
3604   ac_c_werror_flag=$ac_save_c_werror_flag
3605          CFLAGS="-g"
3606          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3607 /* end confdefs.h.  */
3608
3609 int
3610 main ()
3611 {
3612
3613   ;
3614   return 0;
3615 }
3616 _ACEOF
3617 if ac_fn_c_try_compile "$LINENO"; then :
3618   ac_cv_prog_cc_g=yes
3619 fi
3620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3621 fi
3622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3623 fi
3624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3625    ac_c_werror_flag=$ac_save_c_werror_flag
3626 fi
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3628 $as_echo "$ac_cv_prog_cc_g" >&6; }
3629 if test "$ac_test_CFLAGS" = set; then
3630   CFLAGS=$ac_save_CFLAGS
3631 elif test $ac_cv_prog_cc_g = yes; then
3632   if test "$GCC" = yes; then
3633     CFLAGS="-g -O2"
3634   else
3635     CFLAGS="-g"
3636   fi
3637 else
3638   if test "$GCC" = yes; then
3639     CFLAGS="-O2"
3640   else
3641     CFLAGS=
3642   fi
3643 fi
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3645 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3646 if ${ac_cv_prog_cc_c89+:} false; then :
3647   $as_echo_n "(cached) " >&6
3648 else
3649   ac_cv_prog_cc_c89=no
3650 ac_save_CC=$CC
3651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3652 /* end confdefs.h.  */
3653 #include <stdarg.h>
3654 #include <stdio.h>
3655 struct stat;
3656 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3657 struct buf { int x; };
3658 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3659 static char *e (p, i)
3660      char **p;
3661      int i;
3662 {
3663   return p[i];
3664 }
3665 static char *f (char * (*g) (char **, int), char **p, ...)
3666 {
3667   char *s;
3668   va_list v;
3669   va_start (v,p);
3670   s = g (p, va_arg (v,int));
3671   va_end (v);
3672   return s;
3673 }
3674
3675 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3676    function prototypes and stuff, but not '\xHH' hex character constants.
3677    These don't provoke an error unfortunately, instead are silently treated
3678    as 'x'.  The following induces an error, until -std is added to get
3679    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3680    array size at least.  It's necessary to write '\x00'==0 to get something
3681    that's true only with -std.  */
3682 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3683
3684 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3685    inside strings and character constants.  */
3686 #define FOO(x) 'x'
3687 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3688
3689 int test (int i, double x);
3690 struct s1 {int (*f) (int a);};
3691 struct s2 {int (*f) (double a);};
3692 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3693 int argc;
3694 char **argv;
3695 int
3696 main ()
3697 {
3698 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3699   ;
3700   return 0;
3701 }
3702 _ACEOF
3703 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3704         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3705 do
3706   CC="$ac_save_CC $ac_arg"
3707   if ac_fn_c_try_compile "$LINENO"; then :
3708   ac_cv_prog_cc_c89=$ac_arg
3709 fi
3710 rm -f core conftest.err conftest.$ac_objext
3711   test "x$ac_cv_prog_cc_c89" != "xno" && break
3712 done
3713 rm -f conftest.$ac_ext
3714 CC=$ac_save_CC
3715
3716 fi
3717 # AC_CACHE_VAL
3718 case "x$ac_cv_prog_cc_c89" in
3719   x)
3720     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3721 $as_echo "none needed" >&6; } ;;
3722   xno)
3723     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3724 $as_echo "unsupported" >&6; } ;;
3725   *)
3726     CC="$CC $ac_cv_prog_cc_c89"
3727     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3728 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3729 esac
3730 if test "x$ac_cv_prog_cc_c89" != xno; then :
3731
3732 fi
3733
3734 ac_ext=c
3735 ac_cpp='$CPP $CPPFLAGS'
3736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3739
3740 depcc="$CC"   am_compiler_list=
3741
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3743 $as_echo_n "checking dependency style of $depcc... " >&6; }
3744 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3745   $as_echo_n "(cached) " >&6
3746 else
3747   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3748   # We make a subdir and do the tests there.  Otherwise we can end up
3749   # making bogus files that we don't know about and never remove.  For
3750   # instance it was reported that on HP-UX the gcc test will end up
3751   # making a dummy file named `D' -- because `-MD' means `put the output
3752   # in D'.
3753   rm -rf conftest.dir
3754   mkdir conftest.dir
3755   # Copy depcomp to subdir because otherwise we won't find it if we're
3756   # using a relative directory.
3757   cp "$am_depcomp" conftest.dir
3758   cd conftest.dir
3759   # We will build objects and dependencies in a subdirectory because
3760   # it helps to detect inapplicable dependency modes.  For instance
3761   # both Tru64's cc and ICC support -MD to output dependencies as a
3762   # side effect of compilation, but ICC will put the dependencies in
3763   # the current directory while Tru64 will put them in the object
3764   # directory.
3765   mkdir sub
3766
3767   am_cv_CC_dependencies_compiler_type=none
3768   if test "$am_compiler_list" = ""; then
3769      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3770   fi
3771   am__universal=false
3772   case " $depcc " in #(
3773      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3774      esac
3775
3776   for depmode in $am_compiler_list; do
3777     # Setup a source with many dependencies, because some compilers
3778     # like to wrap large dependency lists on column 80 (with \), and
3779     # we should not choose a depcomp mode which is confused by this.
3780     #
3781     # We need to recreate these files for each test, as the compiler may
3782     # overwrite some of them when testing with obscure command lines.
3783     # This happens at least with the AIX C compiler.
3784     : > sub/conftest.c
3785     for i in 1 2 3 4 5 6; do
3786       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3787       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3788       # Solaris 8's {/usr,}/bin/sh.
3789       touch sub/conftst$i.h
3790     done
3791     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3792
3793     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3794     # mode.  It turns out that the SunPro C++ compiler does not properly
3795     # handle `-M -o', and we need to detect this.  Also, some Intel
3796     # versions had trouble with output in subdirs
3797     am__obj=sub/conftest.${OBJEXT-o}
3798     am__minus_obj="-o $am__obj"
3799     case $depmode in
3800     gcc)
3801       # This depmode causes a compiler race in universal mode.
3802       test "$am__universal" = false || continue
3803       ;;
3804     nosideeffect)
3805       # after this tag, mechanisms are not by side-effect, so they'll
3806       # only be used when explicitly requested
3807       if test "x$enable_dependency_tracking" = xyes; then
3808         continue
3809       else
3810         break
3811       fi
3812       ;;
3813     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3814       # This compiler won't grok `-c -o', but also, the minuso test has
3815       # not run yet.  These depmodes are late enough in the game, and
3816       # so weak that their functioning should not be impacted.
3817       am__obj=conftest.${OBJEXT-o}
3818       am__minus_obj=
3819       ;;
3820     none) break ;;
3821     esac
3822     if depmode=$depmode \
3823        source=sub/conftest.c object=$am__obj \
3824        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3825        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3826          >/dev/null 2>conftest.err &&
3827        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3828        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3829        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3830        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3831       # icc doesn't choke on unknown options, it will just issue warnings
3832       # or remarks (even with -Werror).  So we grep stderr for any message
3833       # that says an option was ignored or not supported.
3834       # When given -MP, icc 7.0 and 7.1 complain thusly:
3835       #   icc: Command line warning: ignoring option '-M'; no argument required
3836       # The diagnosis changed in icc 8.0:
3837       #   icc: Command line remark: option '-MP' not supported
3838       if (grep 'ignoring option' conftest.err ||
3839           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3840         am_cv_CC_dependencies_compiler_type=$depmode
3841         break
3842       fi
3843     fi
3844   done
3845
3846   cd ..
3847   rm -rf conftest.dir
3848 else
3849   am_cv_CC_dependencies_compiler_type=none
3850 fi
3851
3852 fi
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3854 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3855 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3856
3857  if
3858   test "x$enable_dependency_tracking" != xno \
3859   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3860   am__fastdepCC_TRUE=
3861   am__fastdepCC_FALSE='#'
3862 else
3863   am__fastdepCC_TRUE='#'
3864   am__fastdepCC_FALSE=
3865 fi
3866
3867
3868
3869
3870
3871     # Check whether --enable-compile-warnings was given.
3872 if test "${enable_compile_warnings+set}" = set; then :
3873   enableval=$enable_compile_warnings;
3874 else
3875   enable_compile_warnings="yes"
3876 fi
3877
3878
3879     warnCFLAGS=
3880     if test "x$GCC" != xyes; then
3881         enable_compile_warnings=no
3882     fi
3883
3884     warning_flags=
3885     realsave_CFLAGS="$CFLAGS"
3886
3887     case "$enable_compile_warnings" in
3888     no)
3889         warning_flags=
3890         ;;
3891     minimum)
3892         warning_flags="-Wall"
3893         ;;
3894     yes)
3895         warning_flags="-Wall -Wmissing-prototypes"
3896         ;;
3897     maximum|error)
3898         warning_flags="-Wall -Wmissing-prototypes -Wnested-externs -Wpointer-arith"
3899         CFLAGS="$warning_flags $CFLAGS"
3900         for option in -Wno-sign-compare; do
3901                 SAVE_CFLAGS="$CFLAGS"
3902                 CFLAGS="$CFLAGS $option"
3903                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands $option" >&5
3904 $as_echo_n "checking whether gcc understands $option... " >&6; }
3905                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3906 /* end confdefs.h.  */
3907
3908 int
3909 main ()
3910 {
3911
3912   ;
3913   return 0;
3914 }
3915 _ACEOF
3916 if ac_fn_c_try_compile "$LINENO"; then :
3917   has_option=yes
3918 else
3919   has_option=no
3920 fi
3921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3922                 CFLAGS="$SAVE_CFLAGS"
3923                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
3924 $as_echo "$has_option" >&6; }
3925                 if test $has_option = yes; then
3926                   warning_flags="$warning_flags $option"
3927                 fi
3928                 unset has_option
3929                 unset SAVE_CFLAGS
3930         done
3931         unset option
3932         if test "$enable_compile_warnings" = "error" ; then
3933             warning_flags="$warning_flags -Werror"
3934         fi
3935         ;;
3936     *)
3937         as_fn_error $? "Unknown argument '$enable_compile_warnings' to --enable-compile-warnings" "$LINENO" 5
3938         ;;
3939     esac
3940     CFLAGS="$realsave_CFLAGS"
3941     { $as_echo "$as_me:${as_lineno-$LINENO}: checking what warning flags to pass to the C compiler" >&5
3942 $as_echo_n "checking what warning flags to pass to the C compiler... " >&6; }
3943     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $warning_flags" >&5
3944 $as_echo "$warning_flags" >&6; }
3945
3946     # Check whether --enable-iso-c was given.
3947 if test "${enable_iso_c+set}" = set; then :
3948   enableval=$enable_iso_c;
3949 else
3950   enable_iso_c=no
3951 fi
3952
3953
3954     { $as_echo "$as_me:${as_lineno-$LINENO}: checking what language compliance flags to pass to the C compiler" >&5
3955 $as_echo_n "checking what language compliance flags to pass to the C compiler... " >&6; }
3956     complCFLAGS=
3957     if test "x$enable_iso_c" != "xno"; then
3958         if test "x$GCC" = "xyes"; then
3959         case " $CFLAGS " in
3960             *\ \        -ansi\ \        *) ;;
3961             *) complCFLAGS="$complCFLAGS -ansi" ;;
3962         esac
3963         case " $CFLAGS " in
3964             *\ \        -pedantic\ \    *) ;;
3965             *) complCFLAGS="$complCFLAGS -pedantic" ;;
3966         esac
3967         fi
3968     fi
3969     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $complCFLAGS" >&5
3970 $as_echo "$complCFLAGS" >&6; }
3971
3972     WARN_CFLAGS="$warning_flags $complCFLAGS"
3973
3974
3975
3976 # Check whether --enable-silent-rules was given.
3977 if test "${enable_silent_rules+set}" = set; then :
3978   enableval=$enable_silent_rules;
3979 fi
3980
3981 case $enable_silent_rules in
3982 yes) AM_DEFAULT_VERBOSITY=0;;
3983 no)  AM_DEFAULT_VERBOSITY=1;;
3984 *)   AM_DEFAULT_VERBOSITY=0;;
3985 esac
3986 am_make=${MAKE-make}
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3988 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3989 if ${am_cv_make_support_nested_variables+:} false; then :
3990   $as_echo_n "(cached) " >&6
3991 else
3992   if $as_echo 'TRUE=$(BAR$(V))
3993 BAR0=false
3994 BAR1=true
3995 V=1
3996 am__doit:
3997         @$(TRUE)
3998 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3999   am_cv_make_support_nested_variables=yes
4000 else
4001   am_cv_make_support_nested_variables=no
4002 fi
4003 fi
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4005 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4006 if test $am_cv_make_support_nested_variables = yes; then
4007     AM_V='$(V)'
4008   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4009 else
4010   AM_V=$AM_DEFAULT_VERBOSITY
4011   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4012 fi
4013 AM_BACKSLASH='\'
4014
4015
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
4017 $as_echo_n "checking for library containing strerror... " >&6; }
4018 if ${ac_cv_search_strerror+:} false; then :
4019   $as_echo_n "(cached) " >&6
4020 else
4021   ac_func_search_save_LIBS=$LIBS
4022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4023 /* end confdefs.h.  */
4024
4025 /* Override any GCC internal prototype to avoid an error.
4026    Use char because int might match the return type of a GCC
4027    builtin and then its argument prototype would still apply.  */
4028 #ifdef __cplusplus
4029 extern "C"
4030 #endif
4031 char strerror ();
4032 int
4033 main ()
4034 {
4035 return strerror ();
4036   ;
4037   return 0;
4038 }
4039 _ACEOF
4040 for ac_lib in '' cposix; do
4041   if test -z "$ac_lib"; then
4042     ac_res="none required"
4043   else
4044     ac_res=-l$ac_lib
4045     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4046   fi
4047   if ac_fn_c_try_link "$LINENO"; then :
4048   ac_cv_search_strerror=$ac_res
4049 fi
4050 rm -f core conftest.err conftest.$ac_objext \
4051     conftest$ac_exeext
4052   if ${ac_cv_search_strerror+:} false; then :
4053   break
4054 fi
4055 done
4056 if ${ac_cv_search_strerror+:} false; then :
4057
4058 else
4059   ac_cv_search_strerror=no
4060 fi
4061 rm conftest.$ac_ext
4062 LIBS=$ac_func_search_save_LIBS
4063 fi
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
4065 $as_echo "$ac_cv_search_strerror" >&6; }
4066 ac_res=$ac_cv_search_strerror
4067 if test "$ac_res" != no; then :
4068   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4069
4070 fi
4071
4072 ac_ext=c
4073 ac_cpp='$CPP $CPPFLAGS'
4074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4077 if test -n "$ac_tool_prefix"; then
4078   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4079 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4081 $as_echo_n "checking for $ac_word... " >&6; }
4082 if ${ac_cv_prog_CC+:} false; then :
4083   $as_echo_n "(cached) " >&6
4084 else
4085   if test -n "$CC"; then
4086   ac_cv_prog_CC="$CC" # Let the user override the test.
4087 else
4088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4089 for as_dir in $PATH
4090 do
4091   IFS=$as_save_IFS
4092   test -z "$as_dir" && as_dir=.
4093     for ac_exec_ext in '' $ac_executable_extensions; do
4094   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4095     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4096     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4097     break 2
4098   fi
4099 done
4100   done
4101 IFS=$as_save_IFS
4102
4103 fi
4104 fi
4105 CC=$ac_cv_prog_CC
4106 if test -n "$CC"; then
4107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4108 $as_echo "$CC" >&6; }
4109 else
4110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4111 $as_echo "no" >&6; }
4112 fi
4113
4114
4115 fi
4116 if test -z "$ac_cv_prog_CC"; then
4117   ac_ct_CC=$CC
4118   # Extract the first word of "gcc", so it can be a program name with args.
4119 set dummy gcc; ac_word=$2
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4121 $as_echo_n "checking for $ac_word... " >&6; }
4122 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4123   $as_echo_n "(cached) " >&6
4124 else
4125   if test -n "$ac_ct_CC"; then
4126   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4127 else
4128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4129 for as_dir in $PATH
4130 do
4131   IFS=$as_save_IFS
4132   test -z "$as_dir" && as_dir=.
4133     for ac_exec_ext in '' $ac_executable_extensions; do
4134   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4135     ac_cv_prog_ac_ct_CC="gcc"
4136     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4137     break 2
4138   fi
4139 done
4140   done
4141 IFS=$as_save_IFS
4142
4143 fi
4144 fi
4145 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4146 if test -n "$ac_ct_CC"; then
4147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4148 $as_echo "$ac_ct_CC" >&6; }
4149 else
4150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4151 $as_echo "no" >&6; }
4152 fi
4153
4154   if test "x$ac_ct_CC" = x; then
4155     CC=""
4156   else
4157     case $cross_compiling:$ac_tool_warned in
4158 yes:)
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4160 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4161 ac_tool_warned=yes ;;
4162 esac
4163     CC=$ac_ct_CC
4164   fi
4165 else
4166   CC="$ac_cv_prog_CC"
4167 fi
4168
4169 if test -z "$CC"; then
4170           if test -n "$ac_tool_prefix"; then
4171     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4172 set dummy ${ac_tool_prefix}cc; ac_word=$2
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4174 $as_echo_n "checking for $ac_word... " >&6; }
4175 if ${ac_cv_prog_CC+:} false; then :
4176   $as_echo_n "(cached) " >&6
4177 else
4178   if test -n "$CC"; then
4179   ac_cv_prog_CC="$CC" # Let the user override the test.
4180 else
4181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4182 for as_dir in $PATH
4183 do
4184   IFS=$as_save_IFS
4185   test -z "$as_dir" && as_dir=.
4186     for ac_exec_ext in '' $ac_executable_extensions; do
4187   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4188     ac_cv_prog_CC="${ac_tool_prefix}cc"
4189     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4190     break 2
4191   fi
4192 done
4193   done
4194 IFS=$as_save_IFS
4195
4196 fi
4197 fi
4198 CC=$ac_cv_prog_CC
4199 if test -n "$CC"; then
4200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4201 $as_echo "$CC" >&6; }
4202 else
4203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4204 $as_echo "no" >&6; }
4205 fi
4206
4207
4208   fi
4209 fi
4210 if test -z "$CC"; then
4211   # Extract the first word of "cc", so it can be a program name with args.
4212 set dummy cc; ac_word=$2
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4214 $as_echo_n "checking for $ac_word... " >&6; }
4215 if ${ac_cv_prog_CC+:} false; then :
4216   $as_echo_n "(cached) " >&6
4217 else
4218   if test -n "$CC"; then
4219   ac_cv_prog_CC="$CC" # Let the user override the test.
4220 else
4221   ac_prog_rejected=no
4222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4223 for as_dir in $PATH
4224 do
4225   IFS=$as_save_IFS
4226   test -z "$as_dir" && as_dir=.
4227     for ac_exec_ext in '' $ac_executable_extensions; do
4228   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4229     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4230        ac_prog_rejected=yes
4231        continue
4232      fi
4233     ac_cv_prog_CC="cc"
4234     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4235     break 2
4236   fi
4237 done
4238   done
4239 IFS=$as_save_IFS
4240
4241 if test $ac_prog_rejected = yes; then
4242   # We found a bogon in the path, so make sure we never use it.
4243   set dummy $ac_cv_prog_CC
4244   shift
4245   if test $# != 0; then
4246     # We chose a different compiler from the bogus one.
4247     # However, it has the same basename, so the bogon will be chosen
4248     # first if we set CC to just the basename; use the full file name.
4249     shift
4250     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4251   fi
4252 fi
4253 fi
4254 fi
4255 CC=$ac_cv_prog_CC
4256 if test -n "$CC"; then
4257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4258 $as_echo "$CC" >&6; }
4259 else
4260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4261 $as_echo "no" >&6; }
4262 fi
4263
4264
4265 fi
4266 if test -z "$CC"; then
4267   if test -n "$ac_tool_prefix"; then
4268   for ac_prog in cl.exe
4269   do
4270     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4271 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4273 $as_echo_n "checking for $ac_word... " >&6; }
4274 if ${ac_cv_prog_CC+:} false; then :
4275   $as_echo_n "(cached) " >&6
4276 else
4277   if test -n "$CC"; then
4278   ac_cv_prog_CC="$CC" # Let the user override the test.
4279 else
4280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4281 for as_dir in $PATH
4282 do
4283   IFS=$as_save_IFS
4284   test -z "$as_dir" && as_dir=.
4285     for ac_exec_ext in '' $ac_executable_extensions; do
4286   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4287     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4288     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4289     break 2
4290   fi
4291 done
4292   done
4293 IFS=$as_save_IFS
4294
4295 fi
4296 fi
4297 CC=$ac_cv_prog_CC
4298 if test -n "$CC"; then
4299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4300 $as_echo "$CC" >&6; }
4301 else
4302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4303 $as_echo "no" >&6; }
4304 fi
4305
4306
4307     test -n "$CC" && break
4308   done
4309 fi
4310 if test -z "$CC"; then
4311   ac_ct_CC=$CC
4312   for ac_prog in cl.exe
4313 do
4314   # Extract the first word of "$ac_prog", so it can be a program name with args.
4315 set dummy $ac_prog; ac_word=$2
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4317 $as_echo_n "checking for $ac_word... " >&6; }
4318 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4319   $as_echo_n "(cached) " >&6
4320 else
4321   if test -n "$ac_ct_CC"; then
4322   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4323 else
4324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4325 for as_dir in $PATH
4326 do
4327   IFS=$as_save_IFS
4328   test -z "$as_dir" && as_dir=.
4329     for ac_exec_ext in '' $ac_executable_extensions; do
4330   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4331     ac_cv_prog_ac_ct_CC="$ac_prog"
4332     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4333     break 2
4334   fi
4335 done
4336   done
4337 IFS=$as_save_IFS
4338
4339 fi
4340 fi
4341 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4342 if test -n "$ac_ct_CC"; then
4343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4344 $as_echo "$ac_ct_CC" >&6; }
4345 else
4346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4347 $as_echo "no" >&6; }
4348 fi
4349
4350
4351   test -n "$ac_ct_CC" && break
4352 done
4353
4354   if test "x$ac_ct_CC" = x; then
4355     CC=""
4356   else
4357     case $cross_compiling:$ac_tool_warned in
4358 yes:)
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4360 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4361 ac_tool_warned=yes ;;
4362 esac
4363     CC=$ac_ct_CC
4364   fi
4365 fi
4366
4367 fi
4368
4369
4370 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4371 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4372 as_fn_error $? "no acceptable C compiler found in \$PATH
4373 See \`config.log' for more details" "$LINENO" 5; }
4374
4375 # Provide some information about the compiler.
4376 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4377 set X $ac_compile
4378 ac_compiler=$2
4379 for ac_option in --version -v -V -qversion; do
4380   { { ac_try="$ac_compiler $ac_option >&5"
4381 case "(($ac_try" in
4382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4383   *) ac_try_echo=$ac_try;;
4384 esac
4385 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4386 $as_echo "$ac_try_echo"; } >&5
4387   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4388   ac_status=$?
4389   if test -s conftest.err; then
4390     sed '10a\
4391 ... rest of stderr output deleted ...
4392          10q' conftest.err >conftest.er1
4393     cat conftest.er1 >&5
4394   fi
4395   rm -f conftest.er1 conftest.err
4396   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4397   test $ac_status = 0; }
4398 done
4399
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4401 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4402 if ${ac_cv_c_compiler_gnu+:} false; then :
4403   $as_echo_n "(cached) " >&6
4404 else
4405   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4406 /* end confdefs.h.  */
4407
4408 int
4409 main ()
4410 {
4411 #ifndef __GNUC__
4412        choke me
4413 #endif
4414
4415   ;
4416   return 0;
4417 }
4418 _ACEOF
4419 if ac_fn_c_try_compile "$LINENO"; then :
4420   ac_compiler_gnu=yes
4421 else
4422   ac_compiler_gnu=no
4423 fi
4424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4425 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4426
4427 fi
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4429 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4430 if test $ac_compiler_gnu = yes; then
4431   GCC=yes
4432 else
4433   GCC=
4434 fi
4435 ac_test_CFLAGS=${CFLAGS+set}
4436 ac_save_CFLAGS=$CFLAGS
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4438 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4439 if ${ac_cv_prog_cc_g+:} false; then :
4440   $as_echo_n "(cached) " >&6
4441 else
4442   ac_save_c_werror_flag=$ac_c_werror_flag
4443    ac_c_werror_flag=yes
4444    ac_cv_prog_cc_g=no
4445    CFLAGS="-g"
4446    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4447 /* end confdefs.h.  */
4448
4449 int
4450 main ()
4451 {
4452
4453   ;
4454   return 0;
4455 }
4456 _ACEOF
4457 if ac_fn_c_try_compile "$LINENO"; then :
4458   ac_cv_prog_cc_g=yes
4459 else
4460   CFLAGS=""
4461       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4462 /* end confdefs.h.  */
4463
4464 int
4465 main ()
4466 {
4467
4468   ;
4469   return 0;
4470 }
4471 _ACEOF
4472 if ac_fn_c_try_compile "$LINENO"; then :
4473
4474 else
4475   ac_c_werror_flag=$ac_save_c_werror_flag
4476          CFLAGS="-g"
4477          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4478 /* end confdefs.h.  */
4479
4480 int
4481 main ()
4482 {
4483
4484   ;
4485   return 0;
4486 }
4487 _ACEOF
4488 if ac_fn_c_try_compile "$LINENO"; then :
4489   ac_cv_prog_cc_g=yes
4490 fi
4491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4492 fi
4493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4494 fi
4495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4496    ac_c_werror_flag=$ac_save_c_werror_flag
4497 fi
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4499 $as_echo "$ac_cv_prog_cc_g" >&6; }
4500 if test "$ac_test_CFLAGS" = set; then
4501   CFLAGS=$ac_save_CFLAGS
4502 elif test $ac_cv_prog_cc_g = yes; then
4503   if test "$GCC" = yes; then
4504     CFLAGS="-g -O2"
4505   else
4506     CFLAGS="-g"
4507   fi
4508 else
4509   if test "$GCC" = yes; then
4510     CFLAGS="-O2"
4511   else
4512     CFLAGS=
4513   fi
4514 fi
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4516 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4517 if ${ac_cv_prog_cc_c89+:} false; then :
4518   $as_echo_n "(cached) " >&6
4519 else
4520   ac_cv_prog_cc_c89=no
4521 ac_save_CC=$CC
4522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4523 /* end confdefs.h.  */
4524 #include <stdarg.h>
4525 #include <stdio.h>
4526 struct stat;
4527 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4528 struct buf { int x; };
4529 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4530 static char *e (p, i)
4531      char **p;
4532      int i;
4533 {
4534   return p[i];
4535 }
4536 static char *f (char * (*g) (char **, int), char **p, ...)
4537 {
4538   char *s;
4539   va_list v;
4540   va_start (v,p);
4541   s = g (p, va_arg (v,int));
4542   va_end (v);
4543   return s;
4544 }
4545
4546 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4547    function prototypes and stuff, but not '\xHH' hex character constants.
4548    These don't provoke an error unfortunately, instead are silently treated
4549    as 'x'.  The following induces an error, until -std is added to get
4550    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4551    array size at least.  It's necessary to write '\x00'==0 to get something
4552    that's true only with -std.  */
4553 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4554
4555 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4556    inside strings and character constants.  */
4557 #define FOO(x) 'x'
4558 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4559
4560 int test (int i, double x);
4561 struct s1 {int (*f) (int a);};
4562 struct s2 {int (*f) (double a);};
4563 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4564 int argc;
4565 char **argv;
4566 int
4567 main ()
4568 {
4569 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4570   ;
4571   return 0;
4572 }
4573 _ACEOF
4574 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4575         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4576 do
4577   CC="$ac_save_CC $ac_arg"
4578   if ac_fn_c_try_compile "$LINENO"; then :
4579   ac_cv_prog_cc_c89=$ac_arg
4580 fi
4581 rm -f core conftest.err conftest.$ac_objext
4582   test "x$ac_cv_prog_cc_c89" != "xno" && break
4583 done
4584 rm -f conftest.$ac_ext
4585 CC=$ac_save_CC
4586
4587 fi
4588 # AC_CACHE_VAL
4589 case "x$ac_cv_prog_cc_c89" in
4590   x)
4591     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4592 $as_echo "none needed" >&6; } ;;
4593   xno)
4594     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4595 $as_echo "unsupported" >&6; } ;;
4596   *)
4597     CC="$CC $ac_cv_prog_cc_c89"
4598     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4599 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4600 esac
4601 if test "x$ac_cv_prog_cc_c89" != xno; then :
4602
4603 fi
4604
4605 ac_ext=c
4606 ac_cpp='$CPP $CPPFLAGS'
4607 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4608 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4609 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4610
4611 depcc="$CC"   am_compiler_list=
4612
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4614 $as_echo_n "checking dependency style of $depcc... " >&6; }
4615 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4616   $as_echo_n "(cached) " >&6
4617 else
4618   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4619   # We make a subdir and do the tests there.  Otherwise we can end up
4620   # making bogus files that we don't know about and never remove.  For
4621   # instance it was reported that on HP-UX the gcc test will end up
4622   # making a dummy file named `D' -- because `-MD' means `put the output
4623   # in D'.
4624   rm -rf conftest.dir
4625   mkdir conftest.dir
4626   # Copy depcomp to subdir because otherwise we won't find it if we're
4627   # using a relative directory.
4628   cp "$am_depcomp" conftest.dir
4629   cd conftest.dir
4630   # We will build objects and dependencies in a subdirectory because
4631   # it helps to detect inapplicable dependency modes.  For instance
4632   # both Tru64's cc and ICC support -MD to output dependencies as a
4633   # side effect of compilation, but ICC will put the dependencies in
4634   # the current directory while Tru64 will put them in the object
4635   # directory.
4636   mkdir sub
4637
4638   am_cv_CC_dependencies_compiler_type=none
4639   if test "$am_compiler_list" = ""; then
4640      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4641   fi
4642   am__universal=false
4643   case " $depcc " in #(
4644      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4645      esac
4646
4647   for depmode in $am_compiler_list; do
4648     # Setup a source with many dependencies, because some compilers
4649     # like to wrap large dependency lists on column 80 (with \), and
4650     # we should not choose a depcomp mode which is confused by this.
4651     #
4652     # We need to recreate these files for each test, as the compiler may
4653     # overwrite some of them when testing with obscure command lines.
4654     # This happens at least with the AIX C compiler.
4655     : > sub/conftest.c
4656     for i in 1 2 3 4 5 6; do
4657       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4658       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4659       # Solaris 8's {/usr,}/bin/sh.
4660       touch sub/conftst$i.h
4661     done
4662     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4663
4664     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4665     # mode.  It turns out that the SunPro C++ compiler does not properly
4666     # handle `-M -o', and we need to detect this.  Also, some Intel
4667     # versions had trouble with output in subdirs
4668     am__obj=sub/conftest.${OBJEXT-o}
4669     am__minus_obj="-o $am__obj"
4670     case $depmode in
4671     gcc)
4672       # This depmode causes a compiler race in universal mode.
4673       test "$am__universal" = false || continue
4674       ;;
4675     nosideeffect)
4676       # after this tag, mechanisms are not by side-effect, so they'll
4677       # only be used when explicitly requested
4678       if test "x$enable_dependency_tracking" = xyes; then
4679         continue
4680       else
4681         break
4682       fi
4683       ;;
4684     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4685       # This compiler won't grok `-c -o', but also, the minuso test has
4686       # not run yet.  These depmodes are late enough in the game, and
4687       # so weak that their functioning should not be impacted.
4688       am__obj=conftest.${OBJEXT-o}
4689       am__minus_obj=
4690       ;;
4691     none) break ;;
4692     esac
4693     if depmode=$depmode \
4694        source=sub/conftest.c object=$am__obj \
4695        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4696        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4697          >/dev/null 2>conftest.err &&
4698        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4699        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4700        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4701        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4702       # icc doesn't choke on unknown options, it will just issue warnings
4703       # or remarks (even with -Werror).  So we grep stderr for any message
4704       # that says an option was ignored or not supported.
4705       # When given -MP, icc 7.0 and 7.1 complain thusly:
4706       #   icc: Command line warning: ignoring option '-M'; no argument required
4707       # The diagnosis changed in icc 8.0:
4708       #   icc: Command line remark: option '-MP' not supported
4709       if (grep 'ignoring option' conftest.err ||
4710           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4711         am_cv_CC_dependencies_compiler_type=$depmode
4712         break
4713       fi
4714     fi
4715   done
4716
4717   cd ..
4718   rm -rf conftest.dir
4719 else
4720   am_cv_CC_dependencies_compiler_type=none
4721 fi
4722
4723 fi
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4725 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4726 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4727
4728  if
4729   test "x$enable_dependency_tracking" != xno \
4730   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4731   am__fastdepCC_TRUE=
4732   am__fastdepCC_FALSE='#'
4733 else
4734   am__fastdepCC_TRUE='#'
4735   am__fastdepCC_FALSE=
4736 fi
4737
4738
4739 ac_ext=c
4740 ac_cpp='$CPP $CPPFLAGS'
4741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4745 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4746 # On Suns, sometimes $CPP names a directory.
4747 if test -n "$CPP" && test -d "$CPP"; then
4748   CPP=
4749 fi
4750 if test -z "$CPP"; then
4751   if ${ac_cv_prog_CPP+:} false; then :
4752   $as_echo_n "(cached) " >&6
4753 else
4754       # Double quotes because CPP needs to be expanded
4755     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4756     do
4757       ac_preproc_ok=false
4758 for ac_c_preproc_warn_flag in '' yes
4759 do
4760   # Use a header file that comes with gcc, so configuring glibc
4761   # with a fresh cross-compiler works.
4762   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4763   # <limits.h> exists even on freestanding compilers.
4764   # On the NeXT, cc -E runs the code through the compiler's parser,
4765   # not just through cpp. "Syntax error" is here to catch this case.
4766   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4767 /* end confdefs.h.  */
4768 #ifdef __STDC__
4769 # include <limits.h>
4770 #else
4771 # include <assert.h>
4772 #endif
4773                      Syntax error
4774 _ACEOF
4775 if ac_fn_c_try_cpp "$LINENO"; then :
4776
4777 else
4778   # Broken: fails on valid input.
4779 continue
4780 fi
4781 rm -f conftest.err conftest.i conftest.$ac_ext
4782
4783   # OK, works on sane cases.  Now check whether nonexistent headers
4784   # can be detected and how.
4785   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4786 /* end confdefs.h.  */
4787 #include <ac_nonexistent.h>
4788 _ACEOF
4789 if ac_fn_c_try_cpp "$LINENO"; then :
4790   # Broken: success on invalid input.
4791 continue
4792 else
4793   # Passes both tests.
4794 ac_preproc_ok=:
4795 break
4796 fi
4797 rm -f conftest.err conftest.i conftest.$ac_ext
4798
4799 done
4800 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4801 rm -f conftest.i conftest.err conftest.$ac_ext
4802 if $ac_preproc_ok; then :
4803   break
4804 fi
4805
4806     done
4807     ac_cv_prog_CPP=$CPP
4808
4809 fi
4810   CPP=$ac_cv_prog_CPP
4811 else
4812   ac_cv_prog_CPP=$CPP
4813 fi
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4815 $as_echo "$CPP" >&6; }
4816 ac_preproc_ok=false
4817 for ac_c_preproc_warn_flag in '' yes
4818 do
4819   # Use a header file that comes with gcc, so configuring glibc
4820   # with a fresh cross-compiler works.
4821   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4822   # <limits.h> exists even on freestanding compilers.
4823   # On the NeXT, cc -E runs the code through the compiler's parser,
4824   # not just through cpp. "Syntax error" is here to catch this case.
4825   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4826 /* end confdefs.h.  */
4827 #ifdef __STDC__
4828 # include <limits.h>
4829 #else
4830 # include <assert.h>
4831 #endif
4832                      Syntax error
4833 _ACEOF
4834 if ac_fn_c_try_cpp "$LINENO"; then :
4835
4836 else
4837   # Broken: fails on valid input.
4838 continue
4839 fi
4840 rm -f conftest.err conftest.i conftest.$ac_ext
4841
4842   # OK, works on sane cases.  Now check whether nonexistent headers
4843   # can be detected and how.
4844   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4845 /* end confdefs.h.  */
4846 #include <ac_nonexistent.h>
4847 _ACEOF
4848 if ac_fn_c_try_cpp "$LINENO"; then :
4849   # Broken: success on invalid input.
4850 continue
4851 else
4852   # Passes both tests.
4853 ac_preproc_ok=:
4854 break
4855 fi
4856 rm -f conftest.err conftest.i conftest.$ac_ext
4857
4858 done
4859 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4860 rm -f conftest.i conftest.err conftest.$ac_ext
4861 if $ac_preproc_ok; then :
4862
4863 else
4864   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4865 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4866 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4867 See \`config.log' for more details" "$LINENO" 5; }
4868 fi
4869
4870 ac_ext=c
4871 ac_cpp='$CPP $CPPFLAGS'
4872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4875
4876
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4878 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4879 if ${ac_cv_path_GREP+:} false; then :
4880   $as_echo_n "(cached) " >&6
4881 else
4882   if test -z "$GREP"; then
4883   ac_path_GREP_found=false
4884   # Loop through the user's path and test for each of PROGNAME-LIST
4885   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4886 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4887 do
4888   IFS=$as_save_IFS
4889   test -z "$as_dir" && as_dir=.
4890     for ac_prog in grep ggrep; do
4891     for ac_exec_ext in '' $ac_executable_extensions; do
4892       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4893       as_fn_executable_p "$ac_path_GREP" || continue
4894 # Check for GNU ac_path_GREP and select it if it is found.
4895   # Check for GNU $ac_path_GREP
4896 case `"$ac_path_GREP" --version 2>&1` in
4897 *GNU*)
4898   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4899 *)
4900   ac_count=0
4901   $as_echo_n 0123456789 >"conftest.in"
4902   while :
4903   do
4904     cat "conftest.in" "conftest.in" >"conftest.tmp"
4905     mv "conftest.tmp" "conftest.in"
4906     cp "conftest.in" "conftest.nl"
4907     $as_echo 'GREP' >> "conftest.nl"
4908     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4909     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4910     as_fn_arith $ac_count + 1 && ac_count=$as_val
4911     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4912       # Best one so far, save it but keep looking for a better one
4913       ac_cv_path_GREP="$ac_path_GREP"
4914       ac_path_GREP_max=$ac_count
4915     fi
4916     # 10*(2^10) chars as input seems more than enough
4917     test $ac_count -gt 10 && break
4918   done
4919   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4920 esac
4921
4922       $ac_path_GREP_found && break 3
4923     done
4924   done
4925   done
4926 IFS=$as_save_IFS
4927   if test -z "$ac_cv_path_GREP"; then
4928     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4929   fi
4930 else
4931   ac_cv_path_GREP=$GREP
4932 fi
4933
4934 fi
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4936 $as_echo "$ac_cv_path_GREP" >&6; }
4937  GREP="$ac_cv_path_GREP"
4938
4939
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4941 $as_echo_n "checking for egrep... " >&6; }
4942 if ${ac_cv_path_EGREP+:} false; then :
4943   $as_echo_n "(cached) " >&6
4944 else
4945   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4946    then ac_cv_path_EGREP="$GREP -E"
4947    else
4948      if test -z "$EGREP"; then
4949   ac_path_EGREP_found=false
4950   # Loop through the user's path and test for each of PROGNAME-LIST
4951   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4952 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4953 do
4954   IFS=$as_save_IFS
4955   test -z "$as_dir" && as_dir=.
4956     for ac_prog in egrep; do
4957     for ac_exec_ext in '' $ac_executable_extensions; do
4958       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4959       as_fn_executable_p "$ac_path_EGREP" || continue
4960 # Check for GNU ac_path_EGREP and select it if it is found.
4961   # Check for GNU $ac_path_EGREP
4962 case `"$ac_path_EGREP" --version 2>&1` in
4963 *GNU*)
4964   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4965 *)
4966   ac_count=0
4967   $as_echo_n 0123456789 >"conftest.in"
4968   while :
4969   do
4970     cat "conftest.in" "conftest.in" >"conftest.tmp"
4971     mv "conftest.tmp" "conftest.in"
4972     cp "conftest.in" "conftest.nl"
4973     $as_echo 'EGREP' >> "conftest.nl"
4974     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4975     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4976     as_fn_arith $ac_count + 1 && ac_count=$as_val
4977     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4978       # Best one so far, save it but keep looking for a better one
4979       ac_cv_path_EGREP="$ac_path_EGREP"
4980       ac_path_EGREP_max=$ac_count
4981     fi
4982     # 10*(2^10) chars as input seems more than enough
4983     test $ac_count -gt 10 && break
4984   done
4985   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4986 esac
4987
4988       $ac_path_EGREP_found && break 3
4989     done
4990   done
4991   done
4992 IFS=$as_save_IFS
4993   if test -z "$ac_cv_path_EGREP"; then
4994     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4995   fi
4996 else
4997   ac_cv_path_EGREP=$EGREP
4998 fi
4999
5000    fi
5001 fi
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5003 $as_echo "$ac_cv_path_EGREP" >&6; }
5004  EGREP="$ac_cv_path_EGREP"
5005
5006
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5008 $as_echo_n "checking for ANSI C header files... " >&6; }
5009 if ${ac_cv_header_stdc+:} false; then :
5010   $as_echo_n "(cached) " >&6
5011 else
5012   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5013 /* end confdefs.h.  */
5014 #include <stdlib.h>
5015 #include <stdarg.h>
5016 #include <string.h>
5017 #include <float.h>
5018
5019 int
5020 main ()
5021 {
5022
5023   ;
5024   return 0;
5025 }
5026 _ACEOF
5027 if ac_fn_c_try_compile "$LINENO"; then :
5028   ac_cv_header_stdc=yes
5029 else
5030   ac_cv_header_stdc=no
5031 fi
5032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5033
5034 if test $ac_cv_header_stdc = yes; then
5035   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5036   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5037 /* end confdefs.h.  */
5038 #include <string.h>
5039
5040 _ACEOF
5041 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5042   $EGREP "memchr" >/dev/null 2>&1; then :
5043
5044 else
5045   ac_cv_header_stdc=no
5046 fi
5047 rm -f conftest*
5048
5049 fi
5050
5051 if test $ac_cv_header_stdc = yes; then
5052   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5053   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5054 /* end confdefs.h.  */
5055 #include <stdlib.h>
5056
5057 _ACEOF
5058 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5059   $EGREP "free" >/dev/null 2>&1; then :
5060
5061 else
5062   ac_cv_header_stdc=no
5063 fi
5064 rm -f conftest*
5065
5066 fi
5067
5068 if test $ac_cv_header_stdc = yes; then
5069   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5070   if test "$cross_compiling" = yes; then :
5071   :
5072 else
5073   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5074 /* end confdefs.h.  */
5075 #include <ctype.h>
5076 #include <stdlib.h>
5077 #if ((' ' & 0x0FF) == 0x020)
5078 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5079 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5080 #else
5081 # define ISLOWER(c) \
5082                    (('a' <= (c) && (c) <= 'i') \
5083                      || ('j' <= (c) && (c) <= 'r') \
5084                      || ('s' <= (c) && (c) <= 'z'))
5085 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5086 #endif
5087
5088 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5089 int
5090 main ()
5091 {
5092   int i;
5093   for (i = 0; i < 256; i++)
5094     if (XOR (islower (i), ISLOWER (i))
5095         || toupper (i) != TOUPPER (i))
5096       return 2;
5097   return 0;
5098 }
5099 _ACEOF
5100 if ac_fn_c_try_run "$LINENO"; then :
5101
5102 else
5103   ac_cv_header_stdc=no
5104 fi
5105 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5106   conftest.$ac_objext conftest.beam conftest.$ac_ext
5107 fi
5108
5109 fi
5110 fi
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5112 $as_echo "$ac_cv_header_stdc" >&6; }
5113 if test $ac_cv_header_stdc = yes; then
5114
5115 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5116
5117 fi
5118
5119
5120
5121 case `pwd` in
5122   *\ * | *\     *)
5123     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5124 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5125 esac
5126
5127
5128
5129 macro_version='2.4.2'
5130 macro_revision='1.3337'
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144 ltmain="$ac_aux_dir/ltmain.sh"
5145
5146 # Make sure we can run config.sub.
5147 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5148   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5149
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5151 $as_echo_n "checking build system type... " >&6; }
5152 if ${ac_cv_build+:} false; then :
5153   $as_echo_n "(cached) " >&6
5154 else
5155   ac_build_alias=$build_alias
5156 test "x$ac_build_alias" = x &&
5157   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5158 test "x$ac_build_alias" = x &&
5159   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5160 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5161   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5162
5163 fi
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5165 $as_echo "$ac_cv_build" >&6; }
5166 case $ac_cv_build in
5167 *-*-*) ;;
5168 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5169 esac
5170 build=$ac_cv_build
5171 ac_save_IFS=$IFS; IFS='-'
5172 set x $ac_cv_build
5173 shift
5174 build_cpu=$1
5175 build_vendor=$2
5176 shift; shift
5177 # Remember, the first character of IFS is used to create $*,
5178 # except with old shells:
5179 build_os=$*
5180 IFS=$ac_save_IFS
5181 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5182
5183
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5185 $as_echo_n "checking host system type... " >&6; }
5186 if ${ac_cv_host+:} false; then :
5187   $as_echo_n "(cached) " >&6
5188 else
5189   if test "x$host_alias" = x; then
5190   ac_cv_host=$ac_cv_build
5191 else
5192   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5193     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5194 fi
5195
5196 fi
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5198 $as_echo "$ac_cv_host" >&6; }
5199 case $ac_cv_host in
5200 *-*-*) ;;
5201 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5202 esac
5203 host=$ac_cv_host
5204 ac_save_IFS=$IFS; IFS='-'
5205 set x $ac_cv_host
5206 shift
5207 host_cpu=$1
5208 host_vendor=$2
5209 shift; shift
5210 # Remember, the first character of IFS is used to create $*,
5211 # except with old shells:
5212 host_os=$*
5213 IFS=$ac_save_IFS
5214 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5215
5216
5217 # Backslashify metacharacters that are still active within
5218 # double-quoted strings.
5219 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5220
5221 # Same as above, but do not quote variable references.
5222 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5223
5224 # Sed substitution to delay expansion of an escaped shell variable in a
5225 # double_quote_subst'ed string.
5226 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5227
5228 # Sed substitution to delay expansion of an escaped single quote.
5229 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5230
5231 # Sed substitution to avoid accidental globbing in evaled expressions
5232 no_glob_subst='s/\*/\\\*/g'
5233
5234 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5235 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5236 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5237
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5239 $as_echo_n "checking how to print strings... " >&6; }
5240 # Test print first, because it will be a builtin if present.
5241 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5242    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5243   ECHO='print -r --'
5244 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5245   ECHO='printf %s\n'
5246 else
5247   # Use this function as a fallback that always works.
5248   func_fallback_echo ()
5249   {
5250     eval 'cat <<_LTECHO_EOF
5251 $1
5252 _LTECHO_EOF'
5253   }
5254   ECHO='func_fallback_echo'
5255 fi
5256
5257 # func_echo_all arg...
5258 # Invoke $ECHO with all args, space-separated.
5259 func_echo_all ()
5260 {
5261     $ECHO ""
5262 }
5263
5264 case "$ECHO" in
5265   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5266 $as_echo "printf" >&6; } ;;
5267   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5268 $as_echo "print -r" >&6; } ;;
5269   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5270 $as_echo "cat" >&6; } ;;
5271 esac
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5287 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5288 if ${ac_cv_path_SED+:} false; then :
5289   $as_echo_n "(cached) " >&6
5290 else
5291             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5292      for ac_i in 1 2 3 4 5 6 7; do
5293        ac_script="$ac_script$as_nl$ac_script"
5294      done
5295      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5296      { ac_script=; unset ac_script;}
5297      if test -z "$SED"; then
5298   ac_path_SED_found=false
5299   # Loop through the user's path and test for each of PROGNAME-LIST
5300   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5301 for as_dir in $PATH
5302 do
5303   IFS=$as_save_IFS
5304   test -z "$as_dir" && as_dir=.
5305     for ac_prog in sed gsed; do
5306     for ac_exec_ext in '' $ac_executable_extensions; do
5307       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5308       as_fn_executable_p "$ac_path_SED" || continue
5309 # Check for GNU ac_path_SED and select it if it is found.
5310   # Check for GNU $ac_path_SED
5311 case `"$ac_path_SED" --version 2>&1` in
5312 *GNU*)
5313   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5314 *)
5315   ac_count=0
5316   $as_echo_n 0123456789 >"conftest.in"
5317   while :
5318   do
5319     cat "conftest.in" "conftest.in" >"conftest.tmp"
5320     mv "conftest.tmp" "conftest.in"
5321     cp "conftest.in" "conftest.nl"
5322     $as_echo '' >> "conftest.nl"
5323     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5324     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5325     as_fn_arith $ac_count + 1 && ac_count=$as_val
5326     if test $ac_count -gt ${ac_path_SED_max-0}; then
5327       # Best one so far, save it but keep looking for a better one
5328       ac_cv_path_SED="$ac_path_SED"
5329       ac_path_SED_max=$ac_count
5330     fi
5331     # 10*(2^10) chars as input seems more than enough
5332     test $ac_count -gt 10 && break
5333   done
5334   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5335 esac
5336
5337       $ac_path_SED_found && break 3
5338     done
5339   done
5340   done
5341 IFS=$as_save_IFS
5342   if test -z "$ac_cv_path_SED"; then
5343     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5344   fi
5345 else
5346   ac_cv_path_SED=$SED
5347 fi
5348
5349 fi
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5351 $as_echo "$ac_cv_path_SED" >&6; }
5352  SED="$ac_cv_path_SED"
5353   rm -f conftest.sed
5354
5355 test -z "$SED" && SED=sed
5356 Xsed="$SED -e 1s/^X//"
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5369 $as_echo_n "checking for fgrep... " >&6; }
5370 if ${ac_cv_path_FGREP+:} false; then :
5371   $as_echo_n "(cached) " >&6
5372 else
5373   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5374    then ac_cv_path_FGREP="$GREP -F"
5375    else
5376      if test -z "$FGREP"; then
5377   ac_path_FGREP_found=false
5378   # Loop through the user's path and test for each of PROGNAME-LIST
5379   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5380 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5381 do
5382   IFS=$as_save_IFS
5383   test -z "$as_dir" && as_dir=.
5384     for ac_prog in fgrep; do
5385     for ac_exec_ext in '' $ac_executable_extensions; do
5386       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5387       as_fn_executable_p "$ac_path_FGREP" || continue
5388 # Check for GNU ac_path_FGREP and select it if it is found.
5389   # Check for GNU $ac_path_FGREP
5390 case `"$ac_path_FGREP" --version 2>&1` in
5391 *GNU*)
5392   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5393 *)
5394   ac_count=0
5395   $as_echo_n 0123456789 >"conftest.in"
5396   while :
5397   do
5398     cat "conftest.in" "conftest.in" >"conftest.tmp"
5399     mv "conftest.tmp" "conftest.in"
5400     cp "conftest.in" "conftest.nl"
5401     $as_echo 'FGREP' >> "conftest.nl"
5402     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5403     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5404     as_fn_arith $ac_count + 1 && ac_count=$as_val
5405     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5406       # Best one so far, save it but keep looking for a better one
5407       ac_cv_path_FGREP="$ac_path_FGREP"
5408       ac_path_FGREP_max=$ac_count
5409     fi
5410     # 10*(2^10) chars as input seems more than enough
5411     test $ac_count -gt 10 && break
5412   done
5413   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5414 esac
5415
5416       $ac_path_FGREP_found && break 3
5417     done
5418   done
5419   done
5420 IFS=$as_save_IFS
5421   if test -z "$ac_cv_path_FGREP"; then
5422     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5423   fi
5424 else
5425   ac_cv_path_FGREP=$FGREP
5426 fi
5427
5428    fi
5429 fi
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5431 $as_echo "$ac_cv_path_FGREP" >&6; }
5432  FGREP="$ac_cv_path_FGREP"
5433
5434
5435 test -z "$GREP" && GREP=grep
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455 # Check whether --with-gnu-ld was given.
5456 if test "${with_gnu_ld+set}" = set; then :
5457   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5458 else
5459   with_gnu_ld=no
5460 fi
5461
5462 ac_prog=ld
5463 if test "$GCC" = yes; then
5464   # Check if gcc -print-prog-name=ld gives a path.
5465   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5466 $as_echo_n "checking for ld used by $CC... " >&6; }
5467   case $host in
5468   *-*-mingw*)
5469     # gcc leaves a trailing carriage return which upsets mingw
5470     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5471   *)
5472     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5473   esac
5474   case $ac_prog in
5475     # Accept absolute paths.
5476     [\\/]* | ?:[\\/]*)
5477       re_direlt='/[^/][^/]*/\.\./'
5478       # Canonicalize the pathname of ld
5479       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5480       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5481         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5482       done
5483       test -z "$LD" && LD="$ac_prog"
5484       ;;
5485   "")
5486     # If it fails, then pretend we aren't using GCC.
5487     ac_prog=ld
5488     ;;
5489   *)
5490     # If it is relative, then search for the first ld in PATH.
5491     with_gnu_ld=unknown
5492     ;;
5493   esac
5494 elif test "$with_gnu_ld" = yes; then
5495   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5496 $as_echo_n "checking for GNU ld... " >&6; }
5497 else
5498   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5499 $as_echo_n "checking for non-GNU ld... " >&6; }
5500 fi
5501 if ${lt_cv_path_LD+:} false; then :
5502   $as_echo_n "(cached) " >&6
5503 else
5504   if test -z "$LD"; then
5505   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5506   for ac_dir in $PATH; do
5507     IFS="$lt_save_ifs"
5508     test -z "$ac_dir" && ac_dir=.
5509     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5510       lt_cv_path_LD="$ac_dir/$ac_prog"
5511       # Check to see if the program is GNU ld.  I'd rather use --version,
5512       # but apparently some variants of GNU ld only accept -v.
5513       # Break only if it was the GNU/non-GNU ld that we prefer.
5514       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5515       *GNU* | *'with BFD'*)
5516         test "$with_gnu_ld" != no && break
5517         ;;
5518       *)
5519         test "$with_gnu_ld" != yes && break
5520         ;;
5521       esac
5522     fi
5523   done
5524   IFS="$lt_save_ifs"
5525 else
5526   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5527 fi
5528 fi
5529
5530 LD="$lt_cv_path_LD"
5531 if test -n "$LD"; then
5532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5533 $as_echo "$LD" >&6; }
5534 else
5535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5536 $as_echo "no" >&6; }
5537 fi
5538 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5540 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5541 if ${lt_cv_prog_gnu_ld+:} false; then :
5542   $as_echo_n "(cached) " >&6
5543 else
5544   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5545 case `$LD -v 2>&1 </dev/null` in
5546 *GNU* | *'with BFD'*)
5547   lt_cv_prog_gnu_ld=yes
5548   ;;
5549 *)
5550   lt_cv_prog_gnu_ld=no
5551   ;;
5552 esac
5553 fi
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5555 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5556 with_gnu_ld=$lt_cv_prog_gnu_ld
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5567 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5568 if ${lt_cv_path_NM+:} false; then :
5569   $as_echo_n "(cached) " >&6
5570 else
5571   if test -n "$NM"; then
5572   # Let the user override the test.
5573   lt_cv_path_NM="$NM"
5574 else
5575   lt_nm_to_check="${ac_tool_prefix}nm"
5576   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5577     lt_nm_to_check="$lt_nm_to_check nm"
5578   fi
5579   for lt_tmp_nm in $lt_nm_to_check; do
5580     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5581     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5582       IFS="$lt_save_ifs"
5583       test -z "$ac_dir" && ac_dir=.
5584       tmp_nm="$ac_dir/$lt_tmp_nm"
5585       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5586         # Check to see if the nm accepts a BSD-compat flag.
5587         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5588         #   nm: unknown option "B" ignored
5589         # Tru64's nm complains that /dev/null is an invalid object file
5590         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5591         */dev/null* | *'Invalid file or object type'*)
5592           lt_cv_path_NM="$tmp_nm -B"
5593           break
5594           ;;
5595         *)
5596           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5597           */dev/null*)
5598             lt_cv_path_NM="$tmp_nm -p"
5599             break
5600             ;;
5601           *)
5602             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5603             continue # so that we can try to find one that supports BSD flags
5604             ;;
5605           esac
5606           ;;
5607         esac
5608       fi
5609     done
5610     IFS="$lt_save_ifs"
5611   done
5612   : ${lt_cv_path_NM=no}
5613 fi
5614 fi
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5616 $as_echo "$lt_cv_path_NM" >&6; }
5617 if test "$lt_cv_path_NM" != "no"; then
5618   NM="$lt_cv_path_NM"
5619 else
5620   # Didn't find any BSD compatible name lister, look for dumpbin.
5621   if test -n "$DUMPBIN"; then :
5622     # Let the user override the test.
5623   else
5624     if test -n "$ac_tool_prefix"; then
5625   for ac_prog in dumpbin "link -dump"
5626   do
5627     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5628 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5630 $as_echo_n "checking for $ac_word... " >&6; }
5631 if ${ac_cv_prog_DUMPBIN+:} false; then :
5632   $as_echo_n "(cached) " >&6
5633 else
5634   if test -n "$DUMPBIN"; then
5635   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5636 else
5637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5638 for as_dir in $PATH
5639 do
5640   IFS=$as_save_IFS
5641   test -z "$as_dir" && as_dir=.
5642     for ac_exec_ext in '' $ac_executable_extensions; do
5643   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5644     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5645     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5646     break 2
5647   fi
5648 done
5649   done
5650 IFS=$as_save_IFS
5651
5652 fi
5653 fi
5654 DUMPBIN=$ac_cv_prog_DUMPBIN
5655 if test -n "$DUMPBIN"; then
5656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5657 $as_echo "$DUMPBIN" >&6; }
5658 else
5659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5660 $as_echo "no" >&6; }
5661 fi
5662
5663
5664     test -n "$DUMPBIN" && break
5665   done
5666 fi
5667 if test -z "$DUMPBIN"; then
5668   ac_ct_DUMPBIN=$DUMPBIN
5669   for ac_prog in dumpbin "link -dump"
5670 do
5671   # Extract the first word of "$ac_prog", so it can be a program name with args.
5672 set dummy $ac_prog; ac_word=$2
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5674 $as_echo_n "checking for $ac_word... " >&6; }
5675 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5676   $as_echo_n "(cached) " >&6
5677 else
5678   if test -n "$ac_ct_DUMPBIN"; then
5679   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5680 else
5681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5682 for as_dir in $PATH
5683 do
5684   IFS=$as_save_IFS
5685   test -z "$as_dir" && as_dir=.
5686     for ac_exec_ext in '' $ac_executable_extensions; do
5687   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5688     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5689     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5690     break 2
5691   fi
5692 done
5693   done
5694 IFS=$as_save_IFS
5695
5696 fi
5697 fi
5698 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5699 if test -n "$ac_ct_DUMPBIN"; then
5700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5701 $as_echo "$ac_ct_DUMPBIN" >&6; }
5702 else
5703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5704 $as_echo "no" >&6; }
5705 fi
5706
5707
5708   test -n "$ac_ct_DUMPBIN" && break
5709 done
5710
5711   if test "x$ac_ct_DUMPBIN" = x; then
5712     DUMPBIN=":"
5713   else
5714     case $cross_compiling:$ac_tool_warned in
5715 yes:)
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5717 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5718 ac_tool_warned=yes ;;
5719 esac
5720     DUMPBIN=$ac_ct_DUMPBIN
5721   fi
5722 fi
5723
5724     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5725     *COFF*)
5726       DUMPBIN="$DUMPBIN -symbols"
5727       ;;
5728     *)
5729       DUMPBIN=:
5730       ;;
5731     esac
5732   fi
5733
5734   if test "$DUMPBIN" != ":"; then
5735     NM="$DUMPBIN"
5736   fi
5737 fi
5738 test -z "$NM" && NM=nm
5739
5740
5741
5742
5743
5744
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5746 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5747 if ${lt_cv_nm_interface+:} false; then :
5748   $as_echo_n "(cached) " >&6
5749 else
5750   lt_cv_nm_interface="BSD nm"
5751   echo "int some_variable = 0;" > conftest.$ac_ext
5752   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5753   (eval "$ac_compile" 2>conftest.err)
5754   cat conftest.err >&5
5755   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5756   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5757   cat conftest.err >&5
5758   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5759   cat conftest.out >&5
5760   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5761     lt_cv_nm_interface="MS dumpbin"
5762   fi
5763   rm -f conftest*
5764 fi
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5766 $as_echo "$lt_cv_nm_interface" >&6; }
5767
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5769 $as_echo_n "checking whether ln -s works... " >&6; }
5770 LN_S=$as_ln_s
5771 if test "$LN_S" = "ln -s"; then
5772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5773 $as_echo "yes" >&6; }
5774 else
5775   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5776 $as_echo "no, using $LN_S" >&6; }
5777 fi
5778
5779 # find the maximum length of command line arguments
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5781 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5782 if ${lt_cv_sys_max_cmd_len+:} false; then :
5783   $as_echo_n "(cached) " >&6
5784 else
5785     i=0
5786   teststring="ABCD"
5787
5788   case $build_os in
5789   msdosdjgpp*)
5790     # On DJGPP, this test can blow up pretty badly due to problems in libc
5791     # (any single argument exceeding 2000 bytes causes a buffer overrun
5792     # during glob expansion).  Even if it were fixed, the result of this
5793     # check would be larger than it should be.
5794     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5795     ;;
5796
5797   gnu*)
5798     # Under GNU Hurd, this test is not required because there is
5799     # no limit to the length of command line arguments.
5800     # Libtool will interpret -1 as no limit whatsoever
5801     lt_cv_sys_max_cmd_len=-1;
5802     ;;
5803
5804   cygwin* | mingw* | cegcc*)
5805     # On Win9x/ME, this test blows up -- it succeeds, but takes
5806     # about 5 minutes as the teststring grows exponentially.
5807     # Worse, since 9x/ME are not pre-emptively multitasking,
5808     # you end up with a "frozen" computer, even though with patience
5809     # the test eventually succeeds (with a max line length of 256k).
5810     # Instead, let's just punt: use the minimum linelength reported by
5811     # all of the supported platforms: 8192 (on NT/2K/XP).
5812     lt_cv_sys_max_cmd_len=8192;
5813     ;;
5814
5815   mint*)
5816     # On MiNT this can take a long time and run out of memory.
5817     lt_cv_sys_max_cmd_len=8192;
5818     ;;
5819
5820   amigaos*)
5821     # On AmigaOS with pdksh, this test takes hours, literally.
5822     # So we just punt and use a minimum line length of 8192.
5823     lt_cv_sys_max_cmd_len=8192;
5824     ;;
5825
5826   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5827     # This has been around since 386BSD, at least.  Likely further.
5828     if test -x /sbin/sysctl; then
5829       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5830     elif test -x /usr/sbin/sysctl; then
5831       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5832     else
5833       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5834     fi
5835     # And add a safety zone
5836     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5837     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5838     ;;
5839
5840   interix*)
5841     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5842     lt_cv_sys_max_cmd_len=196608
5843     ;;
5844
5845   os2*)
5846     # The test takes a long time on OS/2.
5847     lt_cv_sys_max_cmd_len=8192
5848     ;;
5849
5850   osf*)
5851     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5852     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5853     # nice to cause kernel panics so lets avoid the loop below.
5854     # First set a reasonable default.
5855     lt_cv_sys_max_cmd_len=16384
5856     #
5857     if test -x /sbin/sysconfig; then
5858       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5859         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5860       esac
5861     fi
5862     ;;
5863   sco3.2v5*)
5864     lt_cv_sys_max_cmd_len=102400
5865     ;;
5866   sysv5* | sco5v6* | sysv4.2uw2*)
5867     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5868     if test -n "$kargmax"; then
5869       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5870     else
5871       lt_cv_sys_max_cmd_len=32768
5872     fi
5873     ;;
5874   *)
5875     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5876     if test -n "$lt_cv_sys_max_cmd_len" && \
5877         test undefined != "$lt_cv_sys_max_cmd_len"; then
5878       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5879       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5880     else
5881       # Make teststring a little bigger before we do anything with it.
5882       # a 1K string should be a reasonable start.
5883       for i in 1 2 3 4 5 6 7 8 ; do
5884         teststring=$teststring$teststring
5885       done
5886       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5887       # If test is not a shell built-in, we'll probably end up computing a
5888       # maximum length that is only half of the actual maximum length, but
5889       # we can't tell.
5890       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5891                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5892               test $i != 17 # 1/2 MB should be enough
5893       do
5894         i=`expr $i + 1`
5895         teststring=$teststring$teststring
5896       done
5897       # Only check the string length outside the loop.
5898       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5899       teststring=
5900       # Add a significant safety factor because C++ compilers can tack on
5901       # massive amounts of additional arguments before passing them to the
5902       # linker.  It appears as though 1/2 is a usable value.
5903       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5904     fi
5905     ;;
5906   esac
5907
5908 fi
5909
5910 if test -n $lt_cv_sys_max_cmd_len ; then
5911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5912 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5913 else
5914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5915 $as_echo "none" >&6; }
5916 fi
5917 max_cmd_len=$lt_cv_sys_max_cmd_len
5918
5919
5920
5921
5922
5923
5924 : ${CP="cp -f"}
5925 : ${MV="mv -f"}
5926 : ${RM="rm -f"}
5927
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5929 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5930 # Try some XSI features
5931 xsi_shell=no
5932 ( _lt_dummy="a/b/c"
5933   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5934       = c,a/b,b/c, \
5935     && eval 'test $(( 1 + 1 )) -eq 2 \
5936     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5937   && xsi_shell=yes
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5939 $as_echo "$xsi_shell" >&6; }
5940
5941
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5943 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5944 lt_shell_append=no
5945 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5946     >/dev/null 2>&1 \
5947   && lt_shell_append=yes
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5949 $as_echo "$lt_shell_append" >&6; }
5950
5951
5952 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5953   lt_unset=unset
5954 else
5955   lt_unset=false
5956 fi
5957
5958
5959
5960
5961
5962 # test EBCDIC or ASCII
5963 case `echo X|tr X '\101'` in
5964  A) # ASCII based system
5965     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5966   lt_SP2NL='tr \040 \012'
5967   lt_NL2SP='tr \015\012 \040\040'
5968   ;;
5969  *) # EBCDIC based system
5970   lt_SP2NL='tr \100 \n'
5971   lt_NL2SP='tr \r\n \100\100'
5972   ;;
5973 esac
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5984 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5985 if ${lt_cv_to_host_file_cmd+:} false; then :
5986   $as_echo_n "(cached) " >&6
5987 else
5988   case $host in
5989   *-*-mingw* )
5990     case $build in
5991       *-*-mingw* ) # actually msys
5992         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5993         ;;
5994       *-*-cygwin* )
5995         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5996         ;;
5997       * ) # otherwise, assume *nix
5998         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5999         ;;
6000     esac
6001     ;;
6002   *-*-cygwin* )
6003     case $build in
6004       *-*-mingw* ) # actually msys
6005         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6006         ;;
6007       *-*-cygwin* )
6008         lt_cv_to_host_file_cmd=func_convert_file_noop
6009         ;;
6010       * ) # otherwise, assume *nix
6011         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6012         ;;
6013     esac
6014     ;;
6015   * ) # unhandled hosts (and "normal" native builds)
6016     lt_cv_to_host_file_cmd=func_convert_file_noop
6017     ;;
6018 esac
6019
6020 fi
6021
6022 to_host_file_cmd=$lt_cv_to_host_file_cmd
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6024 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6025
6026
6027
6028
6029
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6031 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6032 if ${lt_cv_to_tool_file_cmd+:} false; then :
6033   $as_echo_n "(cached) " >&6
6034 else
6035   #assume ordinary cross tools, or native build.
6036 lt_cv_to_tool_file_cmd=func_convert_file_noop
6037 case $host in
6038   *-*-mingw* )
6039     case $build in
6040       *-*-mingw* ) # actually msys
6041         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6042         ;;
6043     esac
6044     ;;
6045 esac
6046
6047 fi
6048
6049 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6051 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6052
6053
6054
6055
6056
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6058 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6059 if ${lt_cv_ld_reload_flag+:} false; then :
6060   $as_echo_n "(cached) " >&6
6061 else
6062   lt_cv_ld_reload_flag='-r'
6063 fi
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6065 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6066 reload_flag=$lt_cv_ld_reload_flag
6067 case $reload_flag in
6068 "" | " "*) ;;
6069 *) reload_flag=" $reload_flag" ;;
6070 esac
6071 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6072 case $host_os in
6073   cygwin* | mingw* | pw32* | cegcc*)
6074     if test "$GCC" != yes; then
6075       reload_cmds=false
6076     fi
6077     ;;
6078   darwin*)
6079     if test "$GCC" = yes; then
6080       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6081     else
6082       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6083     fi
6084     ;;
6085 esac
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095 if test -n "$ac_tool_prefix"; then
6096   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6097 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6099 $as_echo_n "checking for $ac_word... " >&6; }
6100 if ${ac_cv_prog_OBJDUMP+:} false; then :
6101   $as_echo_n "(cached) " >&6
6102 else
6103   if test -n "$OBJDUMP"; then
6104   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6105 else
6106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6107 for as_dir in $PATH
6108 do
6109   IFS=$as_save_IFS
6110   test -z "$as_dir" && as_dir=.
6111     for ac_exec_ext in '' $ac_executable_extensions; do
6112   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6113     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6114     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6115     break 2
6116   fi
6117 done
6118   done
6119 IFS=$as_save_IFS
6120
6121 fi
6122 fi
6123 OBJDUMP=$ac_cv_prog_OBJDUMP
6124 if test -n "$OBJDUMP"; then
6125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6126 $as_echo "$OBJDUMP" >&6; }
6127 else
6128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6129 $as_echo "no" >&6; }
6130 fi
6131
6132
6133 fi
6134 if test -z "$ac_cv_prog_OBJDUMP"; then
6135   ac_ct_OBJDUMP=$OBJDUMP
6136   # Extract the first word of "objdump", so it can be a program name with args.
6137 set dummy objdump; ac_word=$2
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6139 $as_echo_n "checking for $ac_word... " >&6; }
6140 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6141   $as_echo_n "(cached) " >&6
6142 else
6143   if test -n "$ac_ct_OBJDUMP"; then
6144   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6145 else
6146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6147 for as_dir in $PATH
6148 do
6149   IFS=$as_save_IFS
6150   test -z "$as_dir" && as_dir=.
6151     for ac_exec_ext in '' $ac_executable_extensions; do
6152   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6153     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6154     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6155     break 2
6156   fi
6157 done
6158   done
6159 IFS=$as_save_IFS
6160
6161 fi
6162 fi
6163 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6164 if test -n "$ac_ct_OBJDUMP"; then
6165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6166 $as_echo "$ac_ct_OBJDUMP" >&6; }
6167 else
6168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6169 $as_echo "no" >&6; }
6170 fi
6171
6172   if test "x$ac_ct_OBJDUMP" = x; then
6173     OBJDUMP="false"
6174   else
6175     case $cross_compiling:$ac_tool_warned in
6176 yes:)
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6178 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6179 ac_tool_warned=yes ;;
6180 esac
6181     OBJDUMP=$ac_ct_OBJDUMP
6182   fi
6183 else
6184   OBJDUMP="$ac_cv_prog_OBJDUMP"
6185 fi
6186
6187 test -z "$OBJDUMP" && OBJDUMP=objdump
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6198 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6199 if ${lt_cv_deplibs_check_method+:} false; then :
6200   $as_echo_n "(cached) " >&6
6201 else
6202   lt_cv_file_magic_cmd='$MAGIC_CMD'
6203 lt_cv_file_magic_test_file=
6204 lt_cv_deplibs_check_method='unknown'
6205 # Need to set the preceding variable on all platforms that support
6206 # interlibrary dependencies.
6207 # 'none' -- dependencies not supported.
6208 # `unknown' -- same as none, but documents that we really don't know.
6209 # 'pass_all' -- all dependencies passed with no checks.
6210 # 'test_compile' -- check by making test program.
6211 # 'file_magic [[regex]]' -- check by looking for files in library path
6212 # which responds to the $file_magic_cmd with a given extended regex.
6213 # If you have `file' or equivalent on your system and you're not sure
6214 # whether `pass_all' will *always* work, you probably want this one.
6215
6216 case $host_os in
6217 aix[4-9]*)
6218   lt_cv_deplibs_check_method=pass_all
6219   ;;
6220
6221 beos*)
6222   lt_cv_deplibs_check_method=pass_all
6223   ;;
6224
6225 bsdi[45]*)
6226   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6227   lt_cv_file_magic_cmd='/usr/bin/file -L'
6228   lt_cv_file_magic_test_file=/shlib/libc.so
6229   ;;
6230
6231 cygwin*)
6232   # func_win32_libid is a shell function defined in ltmain.sh
6233   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6234   lt_cv_file_magic_cmd='func_win32_libid'
6235   ;;
6236
6237 mingw* | pw32*)
6238   # Base MSYS/MinGW do not provide the 'file' command needed by
6239   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6240   # unless we find 'file', for example because we are cross-compiling.
6241   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6242   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6243     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6244     lt_cv_file_magic_cmd='func_win32_libid'
6245   else
6246     # Keep this pattern in sync with the one in func_win32_libid.
6247     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6248     lt_cv_file_magic_cmd='$OBJDUMP -f'
6249   fi
6250   ;;
6251
6252 cegcc*)
6253   # use the weaker test based on 'objdump'. See mingw*.
6254   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6255   lt_cv_file_magic_cmd='$OBJDUMP -f'
6256   ;;
6257
6258 darwin* | rhapsody*)
6259   lt_cv_deplibs_check_method=pass_all
6260   ;;
6261
6262 freebsd* | dragonfly*)
6263   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6264     case $host_cpu in
6265     i*86 )
6266       # Not sure whether the presence of OpenBSD here was a mistake.
6267       # Let's accept both of them until this is cleared up.
6268       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6269       lt_cv_file_magic_cmd=/usr/bin/file
6270       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6271       ;;
6272     esac
6273   else
6274     lt_cv_deplibs_check_method=pass_all
6275   fi
6276   ;;
6277
6278 haiku*)
6279   lt_cv_deplibs_check_method=pass_all
6280   ;;
6281
6282 hpux10.20* | hpux11*)
6283   lt_cv_file_magic_cmd=/usr/bin/file
6284   case $host_cpu in
6285   ia64*)
6286     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6287     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6288     ;;
6289   hppa*64*)
6290     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]'
6291     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6292     ;;
6293   *)
6294     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6295     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6296     ;;
6297   esac
6298   ;;
6299
6300 interix[3-9]*)
6301   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6302   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6303   ;;
6304
6305 irix5* | irix6* | nonstopux*)
6306   case $LD in
6307   *-32|*"-32 ") libmagic=32-bit;;
6308   *-n32|*"-n32 ") libmagic=N32;;
6309   *-64|*"-64 ") libmagic=64-bit;;
6310   *) libmagic=never-match;;
6311   esac
6312   lt_cv_deplibs_check_method=pass_all
6313   ;;
6314
6315 # This must be glibc/ELF.
6316 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6317   lt_cv_deplibs_check_method=pass_all
6318   ;;
6319
6320 netbsd* | netbsdelf*-gnu)
6321   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6322     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6323   else
6324     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6325   fi
6326   ;;
6327
6328 newos6*)
6329   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6330   lt_cv_file_magic_cmd=/usr/bin/file
6331   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6332   ;;
6333
6334 *nto* | *qnx*)
6335   lt_cv_deplibs_check_method=pass_all
6336   ;;
6337
6338 openbsd*)
6339   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6340     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6341   else
6342     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6343   fi
6344   ;;
6345
6346 osf3* | osf4* | osf5*)
6347   lt_cv_deplibs_check_method=pass_all
6348   ;;
6349
6350 rdos*)
6351   lt_cv_deplibs_check_method=pass_all
6352   ;;
6353
6354 solaris*)
6355   lt_cv_deplibs_check_method=pass_all
6356   ;;
6357
6358 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6359   lt_cv_deplibs_check_method=pass_all
6360   ;;
6361
6362 sysv4 | sysv4.3*)
6363   case $host_vendor in
6364   motorola)
6365     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]'
6366     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6367     ;;
6368   ncr)
6369     lt_cv_deplibs_check_method=pass_all
6370     ;;
6371   sequent)
6372     lt_cv_file_magic_cmd='/bin/file'
6373     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6374     ;;
6375   sni)
6376     lt_cv_file_magic_cmd='/bin/file'
6377     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6378     lt_cv_file_magic_test_file=/lib/libc.so
6379     ;;
6380   siemens)
6381     lt_cv_deplibs_check_method=pass_all
6382     ;;
6383   pc)
6384     lt_cv_deplibs_check_method=pass_all
6385     ;;
6386   esac
6387   ;;
6388
6389 tpf*)
6390   lt_cv_deplibs_check_method=pass_all
6391   ;;
6392 esac
6393
6394 fi
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6396 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6397
6398 file_magic_glob=
6399 want_nocaseglob=no
6400 if test "$build" = "$host"; then
6401   case $host_os in
6402   mingw* | pw32*)
6403     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6404       want_nocaseglob=yes
6405     else
6406       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6407     fi
6408     ;;
6409   esac
6410 fi
6411
6412 file_magic_cmd=$lt_cv_file_magic_cmd
6413 deplibs_check_method=$lt_cv_deplibs_check_method
6414 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437 if test -n "$ac_tool_prefix"; then
6438   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6439 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6441 $as_echo_n "checking for $ac_word... " >&6; }
6442 if ${ac_cv_prog_DLLTOOL+:} false; then :
6443   $as_echo_n "(cached) " >&6
6444 else
6445   if test -n "$DLLTOOL"; then
6446   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6447 else
6448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6449 for as_dir in $PATH
6450 do
6451   IFS=$as_save_IFS
6452   test -z "$as_dir" && as_dir=.
6453     for ac_exec_ext in '' $ac_executable_extensions; do
6454   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6455     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6456     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6457     break 2
6458   fi
6459 done
6460   done
6461 IFS=$as_save_IFS
6462
6463 fi
6464 fi
6465 DLLTOOL=$ac_cv_prog_DLLTOOL
6466 if test -n "$DLLTOOL"; then
6467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6468 $as_echo "$DLLTOOL" >&6; }
6469 else
6470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6471 $as_echo "no" >&6; }
6472 fi
6473
6474
6475 fi
6476 if test -z "$ac_cv_prog_DLLTOOL"; then
6477   ac_ct_DLLTOOL=$DLLTOOL
6478   # Extract the first word of "dlltool", so it can be a program name with args.
6479 set dummy dlltool; ac_word=$2
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6481 $as_echo_n "checking for $ac_word... " >&6; }
6482 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6483   $as_echo_n "(cached) " >&6
6484 else
6485   if test -n "$ac_ct_DLLTOOL"; then
6486   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6487 else
6488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6489 for as_dir in $PATH
6490 do
6491   IFS=$as_save_IFS
6492   test -z "$as_dir" && as_dir=.
6493     for ac_exec_ext in '' $ac_executable_extensions; do
6494   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6495     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6496     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6497     break 2
6498   fi
6499 done
6500   done
6501 IFS=$as_save_IFS
6502
6503 fi
6504 fi
6505 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6506 if test -n "$ac_ct_DLLTOOL"; then
6507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6508 $as_echo "$ac_ct_DLLTOOL" >&6; }
6509 else
6510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6511 $as_echo "no" >&6; }
6512 fi
6513
6514   if test "x$ac_ct_DLLTOOL" = x; then
6515     DLLTOOL="false"
6516   else
6517     case $cross_compiling:$ac_tool_warned in
6518 yes:)
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6520 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6521 ac_tool_warned=yes ;;
6522 esac
6523     DLLTOOL=$ac_ct_DLLTOOL
6524   fi
6525 else
6526   DLLTOOL="$ac_cv_prog_DLLTOOL"
6527 fi
6528
6529 test -z "$DLLTOOL" && DLLTOOL=dlltool
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6541 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6542 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6543   $as_echo_n "(cached) " >&6
6544 else
6545   lt_cv_sharedlib_from_linklib_cmd='unknown'
6546
6547 case $host_os in
6548 cygwin* | mingw* | pw32* | cegcc*)
6549   # two different shell functions defined in ltmain.sh
6550   # decide which to use based on capabilities of $DLLTOOL
6551   case `$DLLTOOL --help 2>&1` in
6552   *--identify-strict*)
6553     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6554     ;;
6555   *)
6556     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6557     ;;
6558   esac
6559   ;;
6560 *)
6561   # fallback: assume linklib IS sharedlib
6562   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6563   ;;
6564 esac
6565
6566 fi
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6568 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6569 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6570 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6571
6572
6573
6574
6575
6576
6577
6578 if test -n "$ac_tool_prefix"; then
6579   for ac_prog in ar
6580   do
6581     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6582 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6584 $as_echo_n "checking for $ac_word... " >&6; }
6585 if ${ac_cv_prog_AR+:} false; then :
6586   $as_echo_n "(cached) " >&6
6587 else
6588   if test -n "$AR"; then
6589   ac_cv_prog_AR="$AR" # Let the user override the test.
6590 else
6591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6592 for as_dir in $PATH
6593 do
6594   IFS=$as_save_IFS
6595   test -z "$as_dir" && as_dir=.
6596     for ac_exec_ext in '' $ac_executable_extensions; do
6597   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6598     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6599     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6600     break 2
6601   fi
6602 done
6603   done
6604 IFS=$as_save_IFS
6605
6606 fi
6607 fi
6608 AR=$ac_cv_prog_AR
6609 if test -n "$AR"; then
6610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6611 $as_echo "$AR" >&6; }
6612 else
6613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6614 $as_echo "no" >&6; }
6615 fi
6616
6617
6618     test -n "$AR" && break
6619   done
6620 fi
6621 if test -z "$AR"; then
6622   ac_ct_AR=$AR
6623   for ac_prog in ar
6624 do
6625   # Extract the first word of "$ac_prog", so it can be a program name with args.
6626 set dummy $ac_prog; ac_word=$2
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6628 $as_echo_n "checking for $ac_word... " >&6; }
6629 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6630   $as_echo_n "(cached) " >&6
6631 else
6632   if test -n "$ac_ct_AR"; then
6633   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6634 else
6635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6636 for as_dir in $PATH
6637 do
6638   IFS=$as_save_IFS
6639   test -z "$as_dir" && as_dir=.
6640     for ac_exec_ext in '' $ac_executable_extensions; do
6641   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6642     ac_cv_prog_ac_ct_AR="$ac_prog"
6643     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6644     break 2
6645   fi
6646 done
6647   done
6648 IFS=$as_save_IFS
6649
6650 fi
6651 fi
6652 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6653 if test -n "$ac_ct_AR"; then
6654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6655 $as_echo "$ac_ct_AR" >&6; }
6656 else
6657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6658 $as_echo "no" >&6; }
6659 fi
6660
6661
6662   test -n "$ac_ct_AR" && break
6663 done
6664
6665   if test "x$ac_ct_AR" = x; then
6666     AR="false"
6667   else
6668     case $cross_compiling:$ac_tool_warned in
6669 yes:)
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6671 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6672 ac_tool_warned=yes ;;
6673 esac
6674     AR=$ac_ct_AR
6675   fi
6676 fi
6677
6678 : ${AR=ar}
6679 : ${AR_FLAGS=cru}
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6692 $as_echo_n "checking for archiver @FILE support... " >&6; }
6693 if ${lt_cv_ar_at_file+:} false; then :
6694   $as_echo_n "(cached) " >&6
6695 else
6696   lt_cv_ar_at_file=no
6697    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6698 /* end confdefs.h.  */
6699
6700 int
6701 main ()
6702 {
6703
6704   ;
6705   return 0;
6706 }
6707 _ACEOF
6708 if ac_fn_c_try_compile "$LINENO"; then :
6709   echo conftest.$ac_objext > conftest.lst
6710       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6711       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6712   (eval $lt_ar_try) 2>&5
6713   ac_status=$?
6714   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6715   test $ac_status = 0; }
6716       if test "$ac_status" -eq 0; then
6717         # Ensure the archiver fails upon bogus file names.
6718         rm -f conftest.$ac_objext libconftest.a
6719         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6720   (eval $lt_ar_try) 2>&5
6721   ac_status=$?
6722   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6723   test $ac_status = 0; }
6724         if test "$ac_status" -ne 0; then
6725           lt_cv_ar_at_file=@
6726         fi
6727       fi
6728       rm -f conftest.* libconftest.a
6729
6730 fi
6731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6732
6733 fi
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6735 $as_echo "$lt_cv_ar_at_file" >&6; }
6736
6737 if test "x$lt_cv_ar_at_file" = xno; then
6738   archiver_list_spec=
6739 else
6740   archiver_list_spec=$lt_cv_ar_at_file
6741 fi
6742
6743
6744
6745
6746
6747
6748
6749 if test -n "$ac_tool_prefix"; then
6750   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6751 set dummy ${ac_tool_prefix}strip; ac_word=$2
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6753 $as_echo_n "checking for $ac_word... " >&6; }
6754 if ${ac_cv_prog_STRIP+:} false; then :
6755   $as_echo_n "(cached) " >&6
6756 else
6757   if test -n "$STRIP"; then
6758   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6759 else
6760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6761 for as_dir in $PATH
6762 do
6763   IFS=$as_save_IFS
6764   test -z "$as_dir" && as_dir=.
6765     for ac_exec_ext in '' $ac_executable_extensions; do
6766   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6767     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6768     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6769     break 2
6770   fi
6771 done
6772   done
6773 IFS=$as_save_IFS
6774
6775 fi
6776 fi
6777 STRIP=$ac_cv_prog_STRIP
6778 if test -n "$STRIP"; then
6779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6780 $as_echo "$STRIP" >&6; }
6781 else
6782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6783 $as_echo "no" >&6; }
6784 fi
6785
6786
6787 fi
6788 if test -z "$ac_cv_prog_STRIP"; then
6789   ac_ct_STRIP=$STRIP
6790   # Extract the first word of "strip", so it can be a program name with args.
6791 set dummy strip; ac_word=$2
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6793 $as_echo_n "checking for $ac_word... " >&6; }
6794 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6795   $as_echo_n "(cached) " >&6
6796 else
6797   if test -n "$ac_ct_STRIP"; then
6798   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6799 else
6800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6801 for as_dir in $PATH
6802 do
6803   IFS=$as_save_IFS
6804   test -z "$as_dir" && as_dir=.
6805     for ac_exec_ext in '' $ac_executable_extensions; do
6806   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6807     ac_cv_prog_ac_ct_STRIP="strip"
6808     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6809     break 2
6810   fi
6811 done
6812   done
6813 IFS=$as_save_IFS
6814
6815 fi
6816 fi
6817 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6818 if test -n "$ac_ct_STRIP"; then
6819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6820 $as_echo "$ac_ct_STRIP" >&6; }
6821 else
6822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6823 $as_echo "no" >&6; }
6824 fi
6825
6826   if test "x$ac_ct_STRIP" = x; then
6827     STRIP=":"
6828   else
6829     case $cross_compiling:$ac_tool_warned in
6830 yes:)
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6832 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6833 ac_tool_warned=yes ;;
6834 esac
6835     STRIP=$ac_ct_STRIP
6836   fi
6837 else
6838   STRIP="$ac_cv_prog_STRIP"
6839 fi
6840
6841 test -z "$STRIP" && STRIP=:
6842
6843
6844
6845
6846
6847
6848 if test -n "$ac_tool_prefix"; then
6849   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6850 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6852 $as_echo_n "checking for $ac_word... " >&6; }
6853 if ${ac_cv_prog_RANLIB+:} false; then :
6854   $as_echo_n "(cached) " >&6
6855 else
6856   if test -n "$RANLIB"; then
6857   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6858 else
6859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6860 for as_dir in $PATH
6861 do
6862   IFS=$as_save_IFS
6863   test -z "$as_dir" && as_dir=.
6864     for ac_exec_ext in '' $ac_executable_extensions; do
6865   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6866     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6867     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6868     break 2
6869   fi
6870 done
6871   done
6872 IFS=$as_save_IFS
6873
6874 fi
6875 fi
6876 RANLIB=$ac_cv_prog_RANLIB
6877 if test -n "$RANLIB"; then
6878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6879 $as_echo "$RANLIB" >&6; }
6880 else
6881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6882 $as_echo "no" >&6; }
6883 fi
6884
6885
6886 fi
6887 if test -z "$ac_cv_prog_RANLIB"; then
6888   ac_ct_RANLIB=$RANLIB
6889   # Extract the first word of "ranlib", so it can be a program name with args.
6890 set dummy ranlib; ac_word=$2
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6892 $as_echo_n "checking for $ac_word... " >&6; }
6893 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6894   $as_echo_n "(cached) " >&6
6895 else
6896   if test -n "$ac_ct_RANLIB"; then
6897   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6898 else
6899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6900 for as_dir in $PATH
6901 do
6902   IFS=$as_save_IFS
6903   test -z "$as_dir" && as_dir=.
6904     for ac_exec_ext in '' $ac_executable_extensions; do
6905   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6906     ac_cv_prog_ac_ct_RANLIB="ranlib"
6907     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6908     break 2
6909   fi
6910 done
6911   done
6912 IFS=$as_save_IFS
6913
6914 fi
6915 fi
6916 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6917 if test -n "$ac_ct_RANLIB"; then
6918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6919 $as_echo "$ac_ct_RANLIB" >&6; }
6920 else
6921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6922 $as_echo "no" >&6; }
6923 fi
6924
6925   if test "x$ac_ct_RANLIB" = x; then
6926     RANLIB=":"
6927   else
6928     case $cross_compiling:$ac_tool_warned in
6929 yes:)
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6931 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6932 ac_tool_warned=yes ;;
6933 esac
6934     RANLIB=$ac_ct_RANLIB
6935   fi
6936 else
6937   RANLIB="$ac_cv_prog_RANLIB"
6938 fi
6939
6940 test -z "$RANLIB" && RANLIB=:
6941
6942
6943
6944
6945
6946
6947 # Determine commands to create old-style static archives.
6948 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6949 old_postinstall_cmds='chmod 644 $oldlib'
6950 old_postuninstall_cmds=
6951
6952 if test -n "$RANLIB"; then
6953   case $host_os in
6954   openbsd*)
6955     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6956     ;;
6957   *)
6958     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6959     ;;
6960   esac
6961   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6962 fi
6963
6964 case $host_os in
6965   darwin*)
6966     lock_old_archive_extraction=yes ;;
6967   *)
6968     lock_old_archive_extraction=no ;;
6969 esac
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009 # If no C compiler was specified, use CC.
7010 LTCC=${LTCC-"$CC"}
7011
7012 # If no C compiler flags were specified, use CFLAGS.
7013 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7014
7015 # Allow CC to be a program name with arguments.
7016 compiler=$CC
7017
7018
7019 # Check for command to grab the raw symbol name followed by C symbol from nm.
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7021 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7022 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7023   $as_echo_n "(cached) " >&6
7024 else
7025
7026 # These are sane defaults that work on at least a few old systems.
7027 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7028
7029 # Character class describing NM global symbol codes.
7030 symcode='[BCDEGRST]'
7031
7032 # Regexp to match symbols that can be accessed directly from C.
7033 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7034
7035 # Define system-specific variables.
7036 case $host_os in
7037 aix*)
7038   symcode='[BCDT]'
7039   ;;
7040 cygwin* | mingw* | pw32* | cegcc*)
7041   symcode='[ABCDGISTW]'
7042   ;;
7043 hpux*)
7044   if test "$host_cpu" = ia64; then
7045     symcode='[ABCDEGRST]'
7046   fi
7047   ;;
7048 irix* | nonstopux*)
7049   symcode='[BCDEGRST]'
7050   ;;
7051 osf*)
7052   symcode='[BCDEGQRST]'
7053   ;;
7054 solaris*)
7055   symcode='[BDRT]'
7056   ;;
7057 sco3.2v5*)
7058   symcode='[DT]'
7059   ;;
7060 sysv4.2uw2*)
7061   symcode='[DT]'
7062   ;;
7063 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7064   symcode='[ABDT]'
7065   ;;
7066 sysv4)
7067   symcode='[DFNSTU]'
7068   ;;
7069 esac
7070
7071 # If we're using GNU nm, then use its standard symbol codes.
7072 case `$NM -V 2>&1` in
7073 *GNU* | *'with BFD'*)
7074   symcode='[ABCDGIRSTW]' ;;
7075 esac
7076
7077 # Transform an extracted symbol line into a proper C declaration.
7078 # Some systems (esp. on ia64) link data and code symbols differently,
7079 # so use this general approach.
7080 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7081
7082 # Transform an extracted symbol line into symbol name and symbol address
7083 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7084 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'"
7085
7086 # Handle CRLF in mingw tool chain
7087 opt_cr=
7088 case $build_os in
7089 mingw*)
7090   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7091   ;;
7092 esac
7093
7094 # Try without a prefix underscore, then with it.
7095 for ac_symprfx in "" "_"; do
7096
7097   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7098   symxfrm="\\1 $ac_symprfx\\2 \\2"
7099
7100   # Write the raw and C identifiers.
7101   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7102     # Fake it for dumpbin and say T for any non-static function
7103     # and D for any global variable.
7104     # Also find C++ and __fastcall symbols from MSVC++,
7105     # which start with @ or ?.
7106     lt_cv_sys_global_symbol_pipe="$AWK '"\
7107 "     {last_section=section; section=\$ 3};"\
7108 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7109 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7110 "     \$ 0!~/External *\|/{next};"\
7111 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7112 "     {if(hide[section]) next};"\
7113 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7114 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7115 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7116 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7117 "     ' prfx=^$ac_symprfx"
7118   else
7119     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7120   fi
7121   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7122
7123   # Check to see that the pipe works correctly.
7124   pipe_works=no
7125
7126   rm -f conftest*
7127   cat > conftest.$ac_ext <<_LT_EOF
7128 #ifdef __cplusplus
7129 extern "C" {
7130 #endif
7131 char nm_test_var;
7132 void nm_test_func(void);
7133 void nm_test_func(void){}
7134 #ifdef __cplusplus
7135 }
7136 #endif
7137 int main(){nm_test_var='a';nm_test_func();return(0);}
7138 _LT_EOF
7139
7140   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7141   (eval $ac_compile) 2>&5
7142   ac_status=$?
7143   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7144   test $ac_status = 0; }; then
7145     # Now try to grab the symbols.
7146     nlist=conftest.nm
7147     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7148   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7149   ac_status=$?
7150   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7151   test $ac_status = 0; } && test -s "$nlist"; then
7152       # Try sorting and uniquifying the output.
7153       if sort "$nlist" | uniq > "$nlist"T; then
7154         mv -f "$nlist"T "$nlist"
7155       else
7156         rm -f "$nlist"T
7157       fi
7158
7159       # Make sure that we snagged all the symbols we need.
7160       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7161         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7162           cat <<_LT_EOF > conftest.$ac_ext
7163 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7164 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7165 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7166    relocations are performed -- see ld's documentation on pseudo-relocs.  */
7167 # define LT_DLSYM_CONST
7168 #elif defined(__osf__)
7169 /* This system does not cope well with relocations in const data.  */
7170 # define LT_DLSYM_CONST
7171 #else
7172 # define LT_DLSYM_CONST const
7173 #endif
7174
7175 #ifdef __cplusplus
7176 extern "C" {
7177 #endif
7178
7179 _LT_EOF
7180           # Now generate the symbol file.
7181           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7182
7183           cat <<_LT_EOF >> conftest.$ac_ext
7184
7185 /* The mapping between symbol names and symbols.  */
7186 LT_DLSYM_CONST struct {
7187   const char *name;
7188   void       *address;
7189 }
7190 lt__PROGRAM__LTX_preloaded_symbols[] =
7191 {
7192   { "@PROGRAM@", (void *) 0 },
7193 _LT_EOF
7194           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7195           cat <<\_LT_EOF >> conftest.$ac_ext
7196   {0, (void *) 0}
7197 };
7198
7199 /* This works around a problem in FreeBSD linker */
7200 #ifdef FREEBSD_WORKAROUND
7201 static const void *lt_preloaded_setup() {
7202   return lt__PROGRAM__LTX_preloaded_symbols;
7203 }
7204 #endif
7205
7206 #ifdef __cplusplus
7207 }
7208 #endif
7209 _LT_EOF
7210           # Now try linking the two files.
7211           mv conftest.$ac_objext conftstm.$ac_objext
7212           lt_globsym_save_LIBS=$LIBS
7213           lt_globsym_save_CFLAGS=$CFLAGS
7214           LIBS="conftstm.$ac_objext"
7215           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7216           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7217   (eval $ac_link) 2>&5
7218   ac_status=$?
7219   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7220   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7221             pipe_works=yes
7222           fi
7223           LIBS=$lt_globsym_save_LIBS
7224           CFLAGS=$lt_globsym_save_CFLAGS
7225         else
7226           echo "cannot find nm_test_func in $nlist" >&5
7227         fi
7228       else
7229         echo "cannot find nm_test_var in $nlist" >&5
7230       fi
7231     else
7232       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7233     fi
7234   else
7235     echo "$progname: failed program was:" >&5
7236     cat conftest.$ac_ext >&5
7237   fi
7238   rm -rf conftest* conftst*
7239
7240   # Do not use the global_symbol_pipe unless it works.
7241   if test "$pipe_works" = yes; then
7242     break
7243   else
7244     lt_cv_sys_global_symbol_pipe=
7245   fi
7246 done
7247
7248 fi
7249
7250 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7251   lt_cv_sys_global_symbol_to_cdecl=
7252 fi
7253 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7255 $as_echo "failed" >&6; }
7256 else
7257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7258 $as_echo "ok" >&6; }
7259 fi
7260
7261 # Response file support.
7262 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7263   nm_file_list_spec='@'
7264 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7265   nm_file_list_spec='@'
7266 fi
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7295 $as_echo_n "checking for sysroot... " >&6; }
7296
7297 # Check whether --with-sysroot was given.
7298 if test "${with_sysroot+set}" = set; then :
7299   withval=$with_sysroot;
7300 else
7301   with_sysroot=no
7302 fi
7303
7304
7305 lt_sysroot=
7306 case ${with_sysroot} in #(
7307  yes)
7308    if test "$GCC" = yes; then
7309      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7310    fi
7311    ;; #(
7312  /*)
7313    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7314    ;; #(
7315  no|'')
7316    ;; #(
7317  *)
7318    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7319 $as_echo "${with_sysroot}" >&6; }
7320    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7321    ;;
7322 esac
7323
7324  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7325 $as_echo "${lt_sysroot:-no}" >&6; }
7326
7327
7328
7329
7330
7331 # Check whether --enable-libtool-lock was given.
7332 if test "${enable_libtool_lock+set}" = set; then :
7333   enableval=$enable_libtool_lock;
7334 fi
7335
7336 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7337
7338 # Some flags need to be propagated to the compiler or linker for good
7339 # libtool support.
7340 case $host in
7341 ia64-*-hpux*)
7342   # Find out which ABI we are using.
7343   echo 'int i;' > conftest.$ac_ext
7344   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7345   (eval $ac_compile) 2>&5
7346   ac_status=$?
7347   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7348   test $ac_status = 0; }; then
7349     case `/usr/bin/file conftest.$ac_objext` in
7350       *ELF-32*)
7351         HPUX_IA64_MODE="32"
7352         ;;
7353       *ELF-64*)
7354         HPUX_IA64_MODE="64"
7355         ;;
7356     esac
7357   fi
7358   rm -rf conftest*
7359   ;;
7360 *-*-irix6*)
7361   # Find out which ABI we are using.
7362   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7363   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7364   (eval $ac_compile) 2>&5
7365   ac_status=$?
7366   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7367   test $ac_status = 0; }; then
7368     if test "$lt_cv_prog_gnu_ld" = yes; then
7369       case `/usr/bin/file conftest.$ac_objext` in
7370         *32-bit*)
7371           LD="${LD-ld} -melf32bsmip"
7372           ;;
7373         *N32*)
7374           LD="${LD-ld} -melf32bmipn32"
7375           ;;
7376         *64-bit*)
7377           LD="${LD-ld} -melf64bmip"
7378         ;;
7379       esac
7380     else
7381       case `/usr/bin/file conftest.$ac_objext` in
7382         *32-bit*)
7383           LD="${LD-ld} -32"
7384           ;;
7385         *N32*)
7386           LD="${LD-ld} -n32"
7387           ;;
7388         *64-bit*)
7389           LD="${LD-ld} -64"
7390           ;;
7391       esac
7392     fi
7393   fi
7394   rm -rf conftest*
7395   ;;
7396
7397 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7398 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7399   # Find out which ABI we are using.
7400   echo 'int i;' > conftest.$ac_ext
7401   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7402   (eval $ac_compile) 2>&5
7403   ac_status=$?
7404   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7405   test $ac_status = 0; }; then
7406     case `/usr/bin/file conftest.o` in
7407       *32-bit*)
7408         case $host in
7409           x86_64-*kfreebsd*-gnu)
7410             LD="${LD-ld} -m elf_i386_fbsd"
7411             ;;
7412           x86_64-*linux*)
7413             case `/usr/bin/file conftest.o` in
7414               *x86-64*)
7415                 LD="${LD-ld} -m elf32_x86_64"
7416                 ;;
7417               *)
7418                 LD="${LD-ld} -m elf_i386"
7419                 ;;
7420             esac
7421             ;;
7422           ppc64-*linux*|powerpc64-*linux*)
7423             LD="${LD-ld} -m elf32ppclinux"
7424             ;;
7425           s390x-*linux*)
7426             LD="${LD-ld} -m elf_s390"
7427             ;;
7428           sparc64-*linux*)
7429             LD="${LD-ld} -m elf32_sparc"
7430             ;;
7431         esac
7432         ;;
7433       *64-bit*)
7434         case $host in
7435           x86_64-*kfreebsd*-gnu)
7436             LD="${LD-ld} -m elf_x86_64_fbsd"
7437             ;;
7438           x86_64-*linux*)
7439             LD="${LD-ld} -m elf_x86_64"
7440             ;;
7441           ppc*-*linux*|powerpc*-*linux*)
7442             LD="${LD-ld} -m elf64ppc"
7443             ;;
7444           s390*-*linux*|s390*-*tpf*)
7445             LD="${LD-ld} -m elf64_s390"
7446             ;;
7447           sparc*-*linux*)
7448             LD="${LD-ld} -m elf64_sparc"
7449             ;;
7450         esac
7451         ;;
7452     esac
7453   fi
7454   rm -rf conftest*
7455   ;;
7456
7457 *-*-sco3.2v5*)
7458   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7459   SAVE_CFLAGS="$CFLAGS"
7460   CFLAGS="$CFLAGS -belf"
7461   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7462 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7463 if ${lt_cv_cc_needs_belf+:} false; then :
7464   $as_echo_n "(cached) " >&6
7465 else
7466   ac_ext=c
7467 ac_cpp='$CPP $CPPFLAGS'
7468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7471
7472      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7473 /* end confdefs.h.  */
7474
7475 int
7476 main ()
7477 {
7478
7479   ;
7480   return 0;
7481 }
7482 _ACEOF
7483 if ac_fn_c_try_link "$LINENO"; then :
7484   lt_cv_cc_needs_belf=yes
7485 else
7486   lt_cv_cc_needs_belf=no
7487 fi
7488 rm -f core conftest.err conftest.$ac_objext \
7489     conftest$ac_exeext conftest.$ac_ext
7490      ac_ext=c
7491 ac_cpp='$CPP $CPPFLAGS'
7492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7495
7496 fi
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7498 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7499   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7500     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7501     CFLAGS="$SAVE_CFLAGS"
7502   fi
7503   ;;
7504 *-*solaris*)
7505   # Find out which ABI we are using.
7506   echo 'int i;' > conftest.$ac_ext
7507   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7508   (eval $ac_compile) 2>&5
7509   ac_status=$?
7510   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7511   test $ac_status = 0; }; then
7512     case `/usr/bin/file conftest.o` in
7513     *64-bit*)
7514       case $lt_cv_prog_gnu_ld in
7515       yes*)
7516         case $host in
7517         i?86-*-solaris*)
7518           LD="${LD-ld} -m elf_x86_64"
7519           ;;
7520         sparc*-*-solaris*)
7521           LD="${LD-ld} -m elf64_sparc"
7522           ;;
7523         esac
7524         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7525         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7526           LD="${LD-ld}_sol2"
7527         fi
7528         ;;
7529       *)
7530         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7531           LD="${LD-ld} -64"
7532         fi
7533         ;;
7534       esac
7535       ;;
7536     esac
7537   fi
7538   rm -rf conftest*
7539   ;;
7540 esac
7541
7542 need_locks="$enable_libtool_lock"
7543
7544 if test -n "$ac_tool_prefix"; then
7545   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7546 set dummy ${ac_tool_prefix}mt; ac_word=$2
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7548 $as_echo_n "checking for $ac_word... " >&6; }
7549 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7550   $as_echo_n "(cached) " >&6
7551 else
7552   if test -n "$MANIFEST_TOOL"; then
7553   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7554 else
7555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7556 for as_dir in $PATH
7557 do
7558   IFS=$as_save_IFS
7559   test -z "$as_dir" && as_dir=.
7560     for ac_exec_ext in '' $ac_executable_extensions; do
7561   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7562     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7563     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7564     break 2
7565   fi
7566 done
7567   done
7568 IFS=$as_save_IFS
7569
7570 fi
7571 fi
7572 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7573 if test -n "$MANIFEST_TOOL"; then
7574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7575 $as_echo "$MANIFEST_TOOL" >&6; }
7576 else
7577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7578 $as_echo "no" >&6; }
7579 fi
7580
7581
7582 fi
7583 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7584   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7585   # Extract the first word of "mt", so it can be a program name with args.
7586 set dummy mt; ac_word=$2
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7588 $as_echo_n "checking for $ac_word... " >&6; }
7589 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7590   $as_echo_n "(cached) " >&6
7591 else
7592   if test -n "$ac_ct_MANIFEST_TOOL"; then
7593   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7594 else
7595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7596 for as_dir in $PATH
7597 do
7598   IFS=$as_save_IFS
7599   test -z "$as_dir" && as_dir=.
7600     for ac_exec_ext in '' $ac_executable_extensions; do
7601   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7602     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7603     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7604     break 2
7605   fi
7606 done
7607   done
7608 IFS=$as_save_IFS
7609
7610 fi
7611 fi
7612 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7613 if test -n "$ac_ct_MANIFEST_TOOL"; then
7614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7615 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7616 else
7617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7618 $as_echo "no" >&6; }
7619 fi
7620
7621   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7622     MANIFEST_TOOL=":"
7623   else
7624     case $cross_compiling:$ac_tool_warned in
7625 yes:)
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7627 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7628 ac_tool_warned=yes ;;
7629 esac
7630     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7631   fi
7632 else
7633   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7634 fi
7635
7636 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7638 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7639 if ${lt_cv_path_mainfest_tool+:} false; then :
7640   $as_echo_n "(cached) " >&6
7641 else
7642   lt_cv_path_mainfest_tool=no
7643   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7644   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7645   cat conftest.err >&5
7646   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7647     lt_cv_path_mainfest_tool=yes
7648   fi
7649   rm -f conftest*
7650 fi
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7652 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7653 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7654   MANIFEST_TOOL=:
7655 fi
7656
7657
7658
7659
7660
7661
7662   case $host_os in
7663     rhapsody* | darwin*)
7664     if test -n "$ac_tool_prefix"; then
7665   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7666 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7668 $as_echo_n "checking for $ac_word... " >&6; }
7669 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7670   $as_echo_n "(cached) " >&6
7671 else
7672   if test -n "$DSYMUTIL"; then
7673   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7674 else
7675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7676 for as_dir in $PATH
7677 do
7678   IFS=$as_save_IFS
7679   test -z "$as_dir" && as_dir=.
7680     for ac_exec_ext in '' $ac_executable_extensions; do
7681   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7682     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7683     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7684     break 2
7685   fi
7686 done
7687   done
7688 IFS=$as_save_IFS
7689
7690 fi
7691 fi
7692 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7693 if test -n "$DSYMUTIL"; then
7694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7695 $as_echo "$DSYMUTIL" >&6; }
7696 else
7697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7698 $as_echo "no" >&6; }
7699 fi
7700
7701
7702 fi
7703 if test -z "$ac_cv_prog_DSYMUTIL"; then
7704   ac_ct_DSYMUTIL=$DSYMUTIL
7705   # Extract the first word of "dsymutil", so it can be a program name with args.
7706 set dummy dsymutil; ac_word=$2
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7708 $as_echo_n "checking for $ac_word... " >&6; }
7709 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7710   $as_echo_n "(cached) " >&6
7711 else
7712   if test -n "$ac_ct_DSYMUTIL"; then
7713   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7714 else
7715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7716 for as_dir in $PATH
7717 do
7718   IFS=$as_save_IFS
7719   test -z "$as_dir" && as_dir=.
7720     for ac_exec_ext in '' $ac_executable_extensions; do
7721   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7722     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7723     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7724     break 2
7725   fi
7726 done
7727   done
7728 IFS=$as_save_IFS
7729
7730 fi
7731 fi
7732 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7733 if test -n "$ac_ct_DSYMUTIL"; then
7734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7735 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7736 else
7737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7738 $as_echo "no" >&6; }
7739 fi
7740
7741   if test "x$ac_ct_DSYMUTIL" = x; then
7742     DSYMUTIL=":"
7743   else
7744     case $cross_compiling:$ac_tool_warned in
7745 yes:)
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7747 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7748 ac_tool_warned=yes ;;
7749 esac
7750     DSYMUTIL=$ac_ct_DSYMUTIL
7751   fi
7752 else
7753   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7754 fi
7755
7756     if test -n "$ac_tool_prefix"; then
7757   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7758 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7760 $as_echo_n "checking for $ac_word... " >&6; }
7761 if ${ac_cv_prog_NMEDIT+:} false; then :
7762   $as_echo_n "(cached) " >&6
7763 else
7764   if test -n "$NMEDIT"; then
7765   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7766 else
7767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7768 for as_dir in $PATH
7769 do
7770   IFS=$as_save_IFS
7771   test -z "$as_dir" && as_dir=.
7772     for ac_exec_ext in '' $ac_executable_extensions; do
7773   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7774     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7775     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7776     break 2
7777   fi
7778 done
7779   done
7780 IFS=$as_save_IFS
7781
7782 fi
7783 fi
7784 NMEDIT=$ac_cv_prog_NMEDIT
7785 if test -n "$NMEDIT"; then
7786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7787 $as_echo "$NMEDIT" >&6; }
7788 else
7789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7790 $as_echo "no" >&6; }
7791 fi
7792
7793
7794 fi
7795 if test -z "$ac_cv_prog_NMEDIT"; then
7796   ac_ct_NMEDIT=$NMEDIT
7797   # Extract the first word of "nmedit", so it can be a program name with args.
7798 set dummy nmedit; ac_word=$2
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7800 $as_echo_n "checking for $ac_word... " >&6; }
7801 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7802   $as_echo_n "(cached) " >&6
7803 else
7804   if test -n "$ac_ct_NMEDIT"; then
7805   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7806 else
7807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7808 for as_dir in $PATH
7809 do
7810   IFS=$as_save_IFS
7811   test -z "$as_dir" && as_dir=.
7812     for ac_exec_ext in '' $ac_executable_extensions; do
7813   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7814     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7815     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7816     break 2
7817   fi
7818 done
7819   done
7820 IFS=$as_save_IFS
7821
7822 fi
7823 fi
7824 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7825 if test -n "$ac_ct_NMEDIT"; then
7826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7827 $as_echo "$ac_ct_NMEDIT" >&6; }
7828 else
7829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7830 $as_echo "no" >&6; }
7831 fi
7832
7833   if test "x$ac_ct_NMEDIT" = x; then
7834     NMEDIT=":"
7835   else
7836     case $cross_compiling:$ac_tool_warned in
7837 yes:)
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7839 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7840 ac_tool_warned=yes ;;
7841 esac
7842     NMEDIT=$ac_ct_NMEDIT
7843   fi
7844 else
7845   NMEDIT="$ac_cv_prog_NMEDIT"
7846 fi
7847
7848     if test -n "$ac_tool_prefix"; then
7849   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7850 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7852 $as_echo_n "checking for $ac_word... " >&6; }
7853 if ${ac_cv_prog_LIPO+:} false; then :
7854   $as_echo_n "(cached) " >&6
7855 else
7856   if test -n "$LIPO"; then
7857   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7858 else
7859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7860 for as_dir in $PATH
7861 do
7862   IFS=$as_save_IFS
7863   test -z "$as_dir" && as_dir=.
7864     for ac_exec_ext in '' $ac_executable_extensions; do
7865   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7866     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7867     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7868     break 2
7869   fi
7870 done
7871   done
7872 IFS=$as_save_IFS
7873
7874 fi
7875 fi
7876 LIPO=$ac_cv_prog_LIPO
7877 if test -n "$LIPO"; then
7878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7879 $as_echo "$LIPO" >&6; }
7880 else
7881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7882 $as_echo "no" >&6; }
7883 fi
7884
7885
7886 fi
7887 if test -z "$ac_cv_prog_LIPO"; then
7888   ac_ct_LIPO=$LIPO
7889   # Extract the first word of "lipo", so it can be a program name with args.
7890 set dummy lipo; ac_word=$2
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7892 $as_echo_n "checking for $ac_word... " >&6; }
7893 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7894   $as_echo_n "(cached) " >&6
7895 else
7896   if test -n "$ac_ct_LIPO"; then
7897   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7898 else
7899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7900 for as_dir in $PATH
7901 do
7902   IFS=$as_save_IFS
7903   test -z "$as_dir" && as_dir=.
7904     for ac_exec_ext in '' $ac_executable_extensions; do
7905   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7906     ac_cv_prog_ac_ct_LIPO="lipo"
7907     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7908     break 2
7909   fi
7910 done
7911   done
7912 IFS=$as_save_IFS
7913
7914 fi
7915 fi
7916 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7917 if test -n "$ac_ct_LIPO"; then
7918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7919 $as_echo "$ac_ct_LIPO" >&6; }
7920 else
7921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7922 $as_echo "no" >&6; }
7923 fi
7924
7925   if test "x$ac_ct_LIPO" = x; then
7926     LIPO=":"
7927   else
7928     case $cross_compiling:$ac_tool_warned in
7929 yes:)
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7931 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7932 ac_tool_warned=yes ;;
7933 esac
7934     LIPO=$ac_ct_LIPO
7935   fi
7936 else
7937   LIPO="$ac_cv_prog_LIPO"
7938 fi
7939
7940     if test -n "$ac_tool_prefix"; then
7941   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7942 set dummy ${ac_tool_prefix}otool; ac_word=$2
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7944 $as_echo_n "checking for $ac_word... " >&6; }
7945 if ${ac_cv_prog_OTOOL+:} false; then :
7946   $as_echo_n "(cached) " >&6
7947 else
7948   if test -n "$OTOOL"; then
7949   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7950 else
7951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7952 for as_dir in $PATH
7953 do
7954   IFS=$as_save_IFS
7955   test -z "$as_dir" && as_dir=.
7956     for ac_exec_ext in '' $ac_executable_extensions; do
7957   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7958     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7959     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7960     break 2
7961   fi
7962 done
7963   done
7964 IFS=$as_save_IFS
7965
7966 fi
7967 fi
7968 OTOOL=$ac_cv_prog_OTOOL
7969 if test -n "$OTOOL"; then
7970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7971 $as_echo "$OTOOL" >&6; }
7972 else
7973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7974 $as_echo "no" >&6; }
7975 fi
7976
7977
7978 fi
7979 if test -z "$ac_cv_prog_OTOOL"; then
7980   ac_ct_OTOOL=$OTOOL
7981   # Extract the first word of "otool", so it can be a program name with args.
7982 set dummy otool; ac_word=$2
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7984 $as_echo_n "checking for $ac_word... " >&6; }
7985 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7986   $as_echo_n "(cached) " >&6
7987 else
7988   if test -n "$ac_ct_OTOOL"; then
7989   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7990 else
7991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7992 for as_dir in $PATH
7993 do
7994   IFS=$as_save_IFS
7995   test -z "$as_dir" && as_dir=.
7996     for ac_exec_ext in '' $ac_executable_extensions; do
7997   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7998     ac_cv_prog_ac_ct_OTOOL="otool"
7999     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8000     break 2
8001   fi
8002 done
8003   done
8004 IFS=$as_save_IFS
8005
8006 fi
8007 fi
8008 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8009 if test -n "$ac_ct_OTOOL"; then
8010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8011 $as_echo "$ac_ct_OTOOL" >&6; }
8012 else
8013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8014 $as_echo "no" >&6; }
8015 fi
8016
8017   if test "x$ac_ct_OTOOL" = x; then
8018     OTOOL=":"
8019   else
8020     case $cross_compiling:$ac_tool_warned in
8021 yes:)
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8023 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8024 ac_tool_warned=yes ;;
8025 esac
8026     OTOOL=$ac_ct_OTOOL
8027   fi
8028 else
8029   OTOOL="$ac_cv_prog_OTOOL"
8030 fi
8031
8032     if test -n "$ac_tool_prefix"; then
8033   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8034 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8036 $as_echo_n "checking for $ac_word... " >&6; }
8037 if ${ac_cv_prog_OTOOL64+:} false; then :
8038   $as_echo_n "(cached) " >&6
8039 else
8040   if test -n "$OTOOL64"; then
8041   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8042 else
8043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8044 for as_dir in $PATH
8045 do
8046   IFS=$as_save_IFS
8047   test -z "$as_dir" && as_dir=.
8048     for ac_exec_ext in '' $ac_executable_extensions; do
8049   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8050     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8051     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8052     break 2
8053   fi
8054 done
8055   done
8056 IFS=$as_save_IFS
8057
8058 fi
8059 fi
8060 OTOOL64=$ac_cv_prog_OTOOL64
8061 if test -n "$OTOOL64"; then
8062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8063 $as_echo "$OTOOL64" >&6; }
8064 else
8065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8066 $as_echo "no" >&6; }
8067 fi
8068
8069
8070 fi
8071 if test -z "$ac_cv_prog_OTOOL64"; then
8072   ac_ct_OTOOL64=$OTOOL64
8073   # Extract the first word of "otool64", so it can be a program name with args.
8074 set dummy otool64; ac_word=$2
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8076 $as_echo_n "checking for $ac_word... " >&6; }
8077 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8078   $as_echo_n "(cached) " >&6
8079 else
8080   if test -n "$ac_ct_OTOOL64"; then
8081   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8082 else
8083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8084 for as_dir in $PATH
8085 do
8086   IFS=$as_save_IFS
8087   test -z "$as_dir" && as_dir=.
8088     for ac_exec_ext in '' $ac_executable_extensions; do
8089   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8090     ac_cv_prog_ac_ct_OTOOL64="otool64"
8091     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8092     break 2
8093   fi
8094 done
8095   done
8096 IFS=$as_save_IFS
8097
8098 fi
8099 fi
8100 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8101 if test -n "$ac_ct_OTOOL64"; then
8102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8103 $as_echo "$ac_ct_OTOOL64" >&6; }
8104 else
8105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8106 $as_echo "no" >&6; }
8107 fi
8108
8109   if test "x$ac_ct_OTOOL64" = x; then
8110     OTOOL64=":"
8111   else
8112     case $cross_compiling:$ac_tool_warned in
8113 yes:)
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8115 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8116 ac_tool_warned=yes ;;
8117 esac
8118     OTOOL64=$ac_ct_OTOOL64
8119   fi
8120 else
8121   OTOOL64="$ac_cv_prog_OTOOL64"
8122 fi
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8151 $as_echo_n "checking for -single_module linker flag... " >&6; }
8152 if ${lt_cv_apple_cc_single_mod+:} false; then :
8153   $as_echo_n "(cached) " >&6
8154 else
8155   lt_cv_apple_cc_single_mod=no
8156       if test -z "${LT_MULTI_MODULE}"; then
8157         # By default we will add the -single_module flag. You can override
8158         # by either setting the environment variable LT_MULTI_MODULE
8159         # non-empty at configure time, or by adding -multi_module to the
8160         # link flags.
8161         rm -rf libconftest.dylib*
8162         echo "int foo(void){return 1;}" > conftest.c
8163         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8164 -dynamiclib -Wl,-single_module conftest.c" >&5
8165         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8166           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8167         _lt_result=$?
8168         # If there is a non-empty error log, and "single_module"
8169         # appears in it, assume the flag caused a linker warning
8170         if test -s conftest.err && $GREP single_module conftest.err; then
8171           cat conftest.err >&5
8172         # Otherwise, if the output was created with a 0 exit code from
8173         # the compiler, it worked.
8174         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8175           lt_cv_apple_cc_single_mod=yes
8176         else
8177           cat conftest.err >&5
8178         fi
8179         rm -rf libconftest.dylib*
8180         rm -f conftest.*
8181       fi
8182 fi
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8184 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8185
8186     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8187 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8188 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8189   $as_echo_n "(cached) " >&6
8190 else
8191   lt_cv_ld_exported_symbols_list=no
8192       save_LDFLAGS=$LDFLAGS
8193       echo "_main" > conftest.sym
8194       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8195       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8196 /* end confdefs.h.  */
8197
8198 int
8199 main ()
8200 {
8201
8202   ;
8203   return 0;
8204 }
8205 _ACEOF
8206 if ac_fn_c_try_link "$LINENO"; then :
8207   lt_cv_ld_exported_symbols_list=yes
8208 else
8209   lt_cv_ld_exported_symbols_list=no
8210 fi
8211 rm -f core conftest.err conftest.$ac_objext \
8212     conftest$ac_exeext conftest.$ac_ext
8213         LDFLAGS="$save_LDFLAGS"
8214
8215 fi
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8217 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8218
8219     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8220 $as_echo_n "checking for -force_load linker flag... " >&6; }
8221 if ${lt_cv_ld_force_load+:} false; then :
8222   $as_echo_n "(cached) " >&6
8223 else
8224   lt_cv_ld_force_load=no
8225       cat > conftest.c << _LT_EOF
8226 int forced_loaded() { return 2;}
8227 _LT_EOF
8228       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8229       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8230       echo "$AR cru libconftest.a conftest.o" >&5
8231       $AR cru libconftest.a conftest.o 2>&5
8232       echo "$RANLIB libconftest.a" >&5
8233       $RANLIB libconftest.a 2>&5
8234       cat > conftest.c << _LT_EOF
8235 int main() { return 0;}
8236 _LT_EOF
8237       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8238       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8239       _lt_result=$?
8240       if test -s conftest.err && $GREP force_load conftest.err; then
8241         cat conftest.err >&5
8242       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8243         lt_cv_ld_force_load=yes
8244       else
8245         cat conftest.err >&5
8246       fi
8247         rm -f conftest.err libconftest.a conftest conftest.c
8248         rm -rf conftest.dSYM
8249
8250 fi
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8252 $as_echo "$lt_cv_ld_force_load" >&6; }
8253     case $host_os in
8254     rhapsody* | darwin1.[012])
8255       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8256     darwin1.*)
8257       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8258     darwin*) # darwin 5.x on
8259       # if running on 10.5 or later, the deployment target defaults
8260       # to the OS version, if on x86, and 10.4, the deployment
8261       # target defaults to 10.4. Don't you love it?
8262       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8263         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8264           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8265         10.[012]*)
8266           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8267         10.*)
8268           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8269       esac
8270     ;;
8271   esac
8272     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8273       _lt_dar_single_mod='$single_module'
8274     fi
8275     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8276       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8277     else
8278       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8279     fi
8280     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8281       _lt_dsymutil='~$DSYMUTIL $lib || :'
8282     else
8283       _lt_dsymutil=
8284     fi
8285     ;;
8286   esac
8287
8288 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8289 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8290                   inttypes.h stdint.h unistd.h
8291 do :
8292   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8293 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8294 "
8295 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8296   cat >>confdefs.h <<_ACEOF
8297 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8298 _ACEOF
8299
8300 fi
8301
8302 done
8303
8304
8305 for ac_header in dlfcn.h
8306 do :
8307   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8308 "
8309 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8310   cat >>confdefs.h <<_ACEOF
8311 #define HAVE_DLFCN_H 1
8312 _ACEOF
8313
8314 fi
8315
8316 done
8317
8318
8319
8320
8321
8322 # Set options
8323
8324
8325
8326         enable_dlopen=no
8327
8328
8329   enable_win32_dll=no
8330
8331
8332             # Check whether --enable-shared was given.
8333 if test "${enable_shared+set}" = set; then :
8334   enableval=$enable_shared; p=${PACKAGE-default}
8335     case $enableval in
8336     yes) enable_shared=yes ;;
8337     no) enable_shared=no ;;
8338     *)
8339       enable_shared=no
8340       # Look at the argument we got.  We use all the common list separators.
8341       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8342       for pkg in $enableval; do
8343         IFS="$lt_save_ifs"
8344         if test "X$pkg" = "X$p"; then
8345           enable_shared=yes
8346         fi
8347       done
8348       IFS="$lt_save_ifs"
8349       ;;
8350     esac
8351 else
8352   enable_shared=yes
8353 fi
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363   # Check whether --enable-static was given.
8364 if test "${enable_static+set}" = set; then :
8365   enableval=$enable_static; p=${PACKAGE-default}
8366     case $enableval in
8367     yes) enable_static=yes ;;
8368     no) enable_static=no ;;
8369     *)
8370      enable_static=no
8371       # Look at the argument we got.  We use all the common list separators.
8372       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8373       for pkg in $enableval; do
8374         IFS="$lt_save_ifs"
8375         if test "X$pkg" = "X$p"; then
8376           enable_static=yes
8377         fi
8378       done
8379       IFS="$lt_save_ifs"
8380       ;;
8381     esac
8382 else
8383   enable_static=yes
8384 fi
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395 # Check whether --with-pic was given.
8396 if test "${with_pic+set}" = set; then :
8397   withval=$with_pic; lt_p=${PACKAGE-default}
8398     case $withval in
8399     yes|no) pic_mode=$withval ;;
8400     *)
8401       pic_mode=default
8402       # Look at the argument we got.  We use all the common list separators.
8403       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8404       for lt_pkg in $withval; do
8405         IFS="$lt_save_ifs"
8406         if test "X$lt_pkg" = "X$lt_p"; then
8407           pic_mode=yes
8408         fi
8409       done
8410       IFS="$lt_save_ifs"
8411       ;;
8412     esac
8413 else
8414   pic_mode=default
8415 fi
8416
8417
8418 test -z "$pic_mode" && pic_mode=default
8419
8420
8421
8422
8423
8424
8425
8426   # Check whether --enable-fast-install was given.
8427 if test "${enable_fast_install+set}" = set; then :
8428   enableval=$enable_fast_install; p=${PACKAGE-default}
8429     case $enableval in
8430     yes) enable_fast_install=yes ;;
8431     no) enable_fast_install=no ;;
8432     *)
8433       enable_fast_install=no
8434       # Look at the argument we got.  We use all the common list separators.
8435       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8436       for pkg in $enableval; do
8437         IFS="$lt_save_ifs"
8438         if test "X$pkg" = "X$p"; then
8439           enable_fast_install=yes
8440         fi
8441       done
8442       IFS="$lt_save_ifs"
8443       ;;
8444     esac
8445 else
8446   enable_fast_install=yes
8447 fi
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459 # This can be used to rebuild libtool when needed
8460 LIBTOOL_DEPS="$ltmain"
8461
8462 # Always use our own libtool.
8463 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494 test -z "$LN_S" && LN_S="ln -s"
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509 if test -n "${ZSH_VERSION+set}" ; then
8510    setopt NO_GLOB_SUBST
8511 fi
8512
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8514 $as_echo_n "checking for objdir... " >&6; }
8515 if ${lt_cv_objdir+:} false; then :
8516   $as_echo_n "(cached) " >&6
8517 else
8518   rm -f .libs 2>/dev/null
8519 mkdir .libs 2>/dev/null
8520 if test -d .libs; then
8521   lt_cv_objdir=.libs
8522 else
8523   # MS-DOS does not allow filenames that begin with a dot.
8524   lt_cv_objdir=_libs
8525 fi
8526 rmdir .libs 2>/dev/null
8527 fi
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8529 $as_echo "$lt_cv_objdir" >&6; }
8530 objdir=$lt_cv_objdir
8531
8532
8533
8534
8535
8536 cat >>confdefs.h <<_ACEOF
8537 #define LT_OBJDIR "$lt_cv_objdir/"
8538 _ACEOF
8539
8540
8541
8542
8543 case $host_os in
8544 aix3*)
8545   # AIX sometimes has problems with the GCC collect2 program.  For some
8546   # reason, if we set the COLLECT_NAMES environment variable, the problems
8547   # vanish in a puff of smoke.
8548   if test "X${COLLECT_NAMES+set}" != Xset; then
8549     COLLECT_NAMES=
8550     export COLLECT_NAMES
8551   fi
8552   ;;
8553 esac
8554
8555 # Global variables:
8556 ofile=libtool
8557 can_build_shared=yes
8558
8559 # All known linkers require a `.a' archive for static linking (except MSVC,
8560 # which needs '.lib').
8561 libext=a
8562
8563 with_gnu_ld="$lt_cv_prog_gnu_ld"
8564
8565 old_CC="$CC"
8566 old_CFLAGS="$CFLAGS"
8567
8568 # Set sane defaults for various variables
8569 test -z "$CC" && CC=cc
8570 test -z "$LTCC" && LTCC=$CC
8571 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8572 test -z "$LD" && LD=ld
8573 test -z "$ac_objext" && ac_objext=o
8574
8575 for cc_temp in $compiler""; do
8576   case $cc_temp in
8577     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8578     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8579     \-*) ;;
8580     *) break;;
8581   esac
8582 done
8583 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8584
8585
8586 # Only perform the check for file, if the check method requires it
8587 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8588 case $deplibs_check_method in
8589 file_magic*)
8590   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8591     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8592 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8593 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8594   $as_echo_n "(cached) " >&6
8595 else
8596   case $MAGIC_CMD in
8597 [\\/*] |  ?:[\\/]*)
8598   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8599   ;;
8600 *)
8601   lt_save_MAGIC_CMD="$MAGIC_CMD"
8602   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8603   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8604   for ac_dir in $ac_dummy; do
8605     IFS="$lt_save_ifs"
8606     test -z "$ac_dir" && ac_dir=.
8607     if test -f $ac_dir/${ac_tool_prefix}file; then
8608       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8609       if test -n "$file_magic_test_file"; then
8610         case $deplibs_check_method in
8611         "file_magic "*)
8612           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8613           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8614           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8615             $EGREP "$file_magic_regex" > /dev/null; then
8616             :
8617           else
8618             cat <<_LT_EOF 1>&2
8619
8620 *** Warning: the command libtool uses to detect shared libraries,
8621 *** $file_magic_cmd, produces output that libtool cannot recognize.
8622 *** The result is that libtool may fail to recognize shared libraries
8623 *** as such.  This will affect the creation of libtool libraries that
8624 *** depend on shared libraries, but programs linked with such libtool
8625 *** libraries will work regardless of this problem.  Nevertheless, you
8626 *** may want to report the problem to your system manager and/or to
8627 *** bug-libtool@gnu.org
8628
8629 _LT_EOF
8630           fi ;;
8631         esac
8632       fi
8633       break
8634     fi
8635   done
8636   IFS="$lt_save_ifs"
8637   MAGIC_CMD="$lt_save_MAGIC_CMD"
8638   ;;
8639 esac
8640 fi
8641
8642 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8643 if test -n "$MAGIC_CMD"; then
8644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8645 $as_echo "$MAGIC_CMD" >&6; }
8646 else
8647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8648 $as_echo "no" >&6; }
8649 fi
8650
8651
8652
8653
8654
8655 if test -z "$lt_cv_path_MAGIC_CMD"; then
8656   if test -n "$ac_tool_prefix"; then
8657     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8658 $as_echo_n "checking for file... " >&6; }
8659 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8660   $as_echo_n "(cached) " >&6
8661 else
8662   case $MAGIC_CMD in
8663 [\\/*] |  ?:[\\/]*)
8664   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8665   ;;
8666 *)
8667   lt_save_MAGIC_CMD="$MAGIC_CMD"
8668   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8669   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8670   for ac_dir in $ac_dummy; do
8671     IFS="$lt_save_ifs"
8672     test -z "$ac_dir" && ac_dir=.
8673     if test -f $ac_dir/file; then
8674       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8675       if test -n "$file_magic_test_file"; then
8676         case $deplibs_check_method in
8677         "file_magic "*)
8678           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8679           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8680           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8681             $EGREP "$file_magic_regex" > /dev/null; then
8682             :
8683           else
8684             cat <<_LT_EOF 1>&2
8685
8686 *** Warning: the command libtool uses to detect shared libraries,
8687 *** $file_magic_cmd, produces output that libtool cannot recognize.
8688 *** The result is that libtool may fail to recognize shared libraries
8689 *** as such.  This will affect the creation of libtool libraries that
8690 *** depend on shared libraries, but programs linked with such libtool
8691 *** libraries will work regardless of this problem.  Nevertheless, you
8692 *** may want to report the problem to your system manager and/or to
8693 *** bug-libtool@gnu.org
8694
8695 _LT_EOF
8696           fi ;;
8697         esac
8698       fi
8699       break
8700     fi
8701   done
8702   IFS="$lt_save_ifs"
8703   MAGIC_CMD="$lt_save_MAGIC_CMD"
8704   ;;
8705 esac
8706 fi
8707
8708 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8709 if test -n "$MAGIC_CMD"; then
8710   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8711 $as_echo "$MAGIC_CMD" >&6; }
8712 else
8713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8714 $as_echo "no" >&6; }
8715 fi
8716
8717
8718   else
8719     MAGIC_CMD=:
8720   fi
8721 fi
8722
8723   fi
8724   ;;
8725 esac
8726
8727 # Use C for the default configuration in the libtool script
8728
8729 lt_save_CC="$CC"
8730 ac_ext=c
8731 ac_cpp='$CPP $CPPFLAGS'
8732 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8733 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8734 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8735
8736
8737 # Source file extension for C test sources.
8738 ac_ext=c
8739
8740 # Object file extension for compiled C test sources.
8741 objext=o
8742 objext=$objext
8743
8744 # Code to be used in simple compile tests
8745 lt_simple_compile_test_code="int some_variable = 0;"
8746
8747 # Code to be used in simple link tests
8748 lt_simple_link_test_code='int main(){return(0);}'
8749
8750
8751
8752
8753
8754
8755
8756 # If no C compiler was specified, use CC.
8757 LTCC=${LTCC-"$CC"}
8758
8759 # If no C compiler flags were specified, use CFLAGS.
8760 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8761
8762 # Allow CC to be a program name with arguments.
8763 compiler=$CC
8764
8765 # Save the default compiler, since it gets overwritten when the other
8766 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8767 compiler_DEFAULT=$CC
8768
8769 # save warnings/boilerplate of simple test code
8770 ac_outfile=conftest.$ac_objext
8771 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8772 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8773 _lt_compiler_boilerplate=`cat conftest.err`
8774 $RM conftest*
8775
8776 ac_outfile=conftest.$ac_objext
8777 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8778 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8779 _lt_linker_boilerplate=`cat conftest.err`
8780 $RM -r conftest*
8781
8782
8783 ## CAVEAT EMPTOR:
8784 ## There is no encapsulation within the following macros, do not change
8785 ## the running order or otherwise move them around unless you know exactly
8786 ## what you are doing...
8787 if test -n "$compiler"; then
8788
8789 lt_prog_compiler_no_builtin_flag=
8790
8791 if test "$GCC" = yes; then
8792   case $cc_basename in
8793   nvcc*)
8794     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8795   *)
8796     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8797   esac
8798
8799   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8800 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8801 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8802   $as_echo_n "(cached) " >&6
8803 else
8804   lt_cv_prog_compiler_rtti_exceptions=no
8805    ac_outfile=conftest.$ac_objext
8806    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8807    lt_compiler_flag="-fno-rtti -fno-exceptions"
8808    # Insert the option either (1) after the last *FLAGS variable, or
8809    # (2) before a word containing "conftest.", or (3) at the end.
8810    # Note that $ac_compile itself does not contain backslashes and begins
8811    # with a dollar sign (not a hyphen), so the echo should work correctly.
8812    # The option is referenced via a variable to avoid confusing sed.
8813    lt_compile=`echo "$ac_compile" | $SED \
8814    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8815    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8816    -e 's:$: $lt_compiler_flag:'`
8817    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8818    (eval "$lt_compile" 2>conftest.err)
8819    ac_status=$?
8820    cat conftest.err >&5
8821    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8822    if (exit $ac_status) && test -s "$ac_outfile"; then
8823      # The compiler can only warn and ignore the option if not recognized
8824      # So say no if there are warnings other than the usual output.
8825      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8826      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8827      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8828        lt_cv_prog_compiler_rtti_exceptions=yes
8829      fi
8830    fi
8831    $RM conftest*
8832
8833 fi
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8835 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8836
8837 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8838     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8839 else
8840     :
8841 fi
8842
8843 fi
8844
8845
8846
8847
8848
8849
8850   lt_prog_compiler_wl=
8851 lt_prog_compiler_pic=
8852 lt_prog_compiler_static=
8853
8854
8855   if test "$GCC" = yes; then
8856     lt_prog_compiler_wl='-Wl,'
8857     lt_prog_compiler_static='-static'
8858
8859     case $host_os in
8860       aix*)
8861       # All AIX code is PIC.
8862       if test "$host_cpu" = ia64; then
8863         # AIX 5 now supports IA64 processor
8864         lt_prog_compiler_static='-Bstatic'
8865       fi
8866       ;;
8867
8868     amigaos*)
8869       case $host_cpu in
8870       powerpc)
8871             # see comment about AmigaOS4 .so support
8872             lt_prog_compiler_pic='-fPIC'
8873         ;;
8874       m68k)
8875             # FIXME: we need at least 68020 code to build shared libraries, but
8876             # adding the `-m68020' flag to GCC prevents building anything better,
8877             # like `-m68040'.
8878             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8879         ;;
8880       esac
8881       ;;
8882
8883     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8884       # PIC is the default for these OSes.
8885       ;;
8886
8887     mingw* | cygwin* | pw32* | os2* | cegcc*)
8888       # This hack is so that the source file can tell whether it is being
8889       # built for inclusion in a dll (and should export symbols for example).
8890       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8891       # (--disable-auto-import) libraries
8892       lt_prog_compiler_pic='-DDLL_EXPORT'
8893       ;;
8894
8895     darwin* | rhapsody*)
8896       # PIC is the default on this platform
8897       # Common symbols not allowed in MH_DYLIB files
8898       lt_prog_compiler_pic='-fno-common'
8899       ;;
8900
8901     haiku*)
8902       # PIC is the default for Haiku.
8903       # The "-static" flag exists, but is broken.
8904       lt_prog_compiler_static=
8905       ;;
8906
8907     hpux*)
8908       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8909       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8910       # sets the default TLS model and affects inlining.
8911       case $host_cpu in
8912       hppa*64*)
8913         # +Z the default
8914         ;;
8915       *)
8916         lt_prog_compiler_pic='-fPIC'
8917         ;;
8918       esac
8919       ;;
8920
8921     interix[3-9]*)
8922       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8923       # Instead, we relocate shared libraries at runtime.
8924       ;;
8925
8926     msdosdjgpp*)
8927       # Just because we use GCC doesn't mean we suddenly get shared libraries
8928       # on systems that don't support them.
8929       lt_prog_compiler_can_build_shared=no
8930       enable_shared=no
8931       ;;
8932
8933     *nto* | *qnx*)
8934       # QNX uses GNU C++, but need to define -shared option too, otherwise
8935       # it will coredump.
8936       lt_prog_compiler_pic='-fPIC -shared'
8937       ;;
8938
8939     sysv4*MP*)
8940       if test -d /usr/nec; then
8941         lt_prog_compiler_pic=-Kconform_pic
8942       fi
8943       ;;
8944
8945     *)
8946       lt_prog_compiler_pic='-fPIC'
8947       ;;
8948     esac
8949
8950     case $cc_basename in
8951     nvcc*) # Cuda Compiler Driver 2.2
8952       lt_prog_compiler_wl='-Xlinker '
8953       if test -n "$lt_prog_compiler_pic"; then
8954         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8955       fi
8956       ;;
8957     esac
8958   else
8959     # PORTME Check for flag to pass linker flags through the system compiler.
8960     case $host_os in
8961     aix*)
8962       lt_prog_compiler_wl='-Wl,'
8963       if test "$host_cpu" = ia64; then
8964         # AIX 5 now supports IA64 processor
8965         lt_prog_compiler_static='-Bstatic'
8966       else
8967         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8968       fi
8969       ;;
8970
8971     mingw* | cygwin* | pw32* | os2* | cegcc*)
8972       # This hack is so that the source file can tell whether it is being
8973       # built for inclusion in a dll (and should export symbols for example).
8974       lt_prog_compiler_pic='-DDLL_EXPORT'
8975       ;;
8976
8977     hpux9* | hpux10* | hpux11*)
8978       lt_prog_compiler_wl='-Wl,'
8979       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8980       # not for PA HP-UX.
8981       case $host_cpu in
8982       hppa*64*|ia64*)
8983         # +Z the default
8984         ;;
8985       *)
8986         lt_prog_compiler_pic='+Z'
8987         ;;
8988       esac
8989       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8990       lt_prog_compiler_static='${wl}-a ${wl}archive'
8991       ;;
8992
8993     irix5* | irix6* | nonstopux*)
8994       lt_prog_compiler_wl='-Wl,'
8995       # PIC (with -KPIC) is the default.
8996       lt_prog_compiler_static='-non_shared'
8997       ;;
8998
8999     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9000       case $cc_basename in
9001       # old Intel for x86_64 which still supported -KPIC.
9002       ecc*)
9003         lt_prog_compiler_wl='-Wl,'
9004         lt_prog_compiler_pic='-KPIC'
9005         lt_prog_compiler_static='-static'
9006         ;;
9007       # icc used to be incompatible with GCC.
9008       # ICC 10 doesn't accept -KPIC any more.
9009       icc* | ifort*)
9010         lt_prog_compiler_wl='-Wl,'
9011         lt_prog_compiler_pic='-fPIC'
9012         lt_prog_compiler_static='-static'
9013         ;;
9014       # Lahey Fortran 8.1.
9015       lf95*)
9016         lt_prog_compiler_wl='-Wl,'
9017         lt_prog_compiler_pic='--shared'
9018         lt_prog_compiler_static='--static'
9019         ;;
9020       nagfor*)
9021         # NAG Fortran compiler
9022         lt_prog_compiler_wl='-Wl,-Wl,,'
9023         lt_prog_compiler_pic='-PIC'
9024         lt_prog_compiler_static='-Bstatic'
9025         ;;
9026       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9027         # Portland Group compilers (*not* the Pentium gcc compiler,
9028         # which looks to be a dead project)
9029         lt_prog_compiler_wl='-Wl,'
9030         lt_prog_compiler_pic='-fpic'
9031         lt_prog_compiler_static='-Bstatic'
9032         ;;
9033       ccc*)
9034         lt_prog_compiler_wl='-Wl,'
9035         # All Alpha code is PIC.
9036         lt_prog_compiler_static='-non_shared'
9037         ;;
9038       xl* | bgxl* | bgf* | mpixl*)
9039         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9040         lt_prog_compiler_wl='-Wl,'
9041         lt_prog_compiler_pic='-qpic'
9042         lt_prog_compiler_static='-qstaticlink'
9043         ;;
9044       *)
9045         case `$CC -V 2>&1 | sed 5q` in
9046         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9047           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9048           lt_prog_compiler_pic='-KPIC'
9049           lt_prog_compiler_static='-Bstatic'
9050           lt_prog_compiler_wl=''
9051           ;;
9052         *Sun\ F* | *Sun*Fortran*)
9053           lt_prog_compiler_pic='-KPIC'
9054           lt_prog_compiler_static='-Bstatic'
9055           lt_prog_compiler_wl='-Qoption ld '
9056           ;;
9057         *Sun\ C*)
9058           # Sun C 5.9
9059           lt_prog_compiler_pic='-KPIC'
9060           lt_prog_compiler_static='-Bstatic'
9061           lt_prog_compiler_wl='-Wl,'
9062           ;;
9063         *Intel*\ [CF]*Compiler*)
9064           lt_prog_compiler_wl='-Wl,'
9065           lt_prog_compiler_pic='-fPIC'
9066           lt_prog_compiler_static='-static'
9067           ;;
9068         *Portland\ Group*)
9069           lt_prog_compiler_wl='-Wl,'
9070           lt_prog_compiler_pic='-fpic'
9071           lt_prog_compiler_static='-Bstatic'
9072           ;;
9073         esac
9074         ;;
9075       esac
9076       ;;
9077
9078     newsos6)
9079       lt_prog_compiler_pic='-KPIC'
9080       lt_prog_compiler_static='-Bstatic'
9081       ;;
9082
9083     *nto* | *qnx*)
9084       # QNX uses GNU C++, but need to define -shared option too, otherwise
9085       # it will coredump.
9086       lt_prog_compiler_pic='-fPIC -shared'
9087       ;;
9088
9089     osf3* | osf4* | osf5*)
9090       lt_prog_compiler_wl='-Wl,'
9091       # All OSF/1 code is PIC.
9092       lt_prog_compiler_static='-non_shared'
9093       ;;
9094
9095     rdos*)
9096       lt_prog_compiler_static='-non_shared'
9097       ;;
9098
9099     solaris*)
9100       lt_prog_compiler_pic='-KPIC'
9101       lt_prog_compiler_static='-Bstatic'
9102       case $cc_basename in
9103       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9104         lt_prog_compiler_wl='-Qoption ld ';;
9105       *)
9106         lt_prog_compiler_wl='-Wl,';;
9107       esac
9108       ;;
9109
9110     sunos4*)
9111       lt_prog_compiler_wl='-Qoption ld '
9112       lt_prog_compiler_pic='-PIC'
9113       lt_prog_compiler_static='-Bstatic'
9114       ;;
9115
9116     sysv4 | sysv4.2uw2* | sysv4.3*)
9117       lt_prog_compiler_wl='-Wl,'
9118       lt_prog_compiler_pic='-KPIC'
9119       lt_prog_compiler_static='-Bstatic'
9120       ;;
9121
9122     sysv4*MP*)
9123       if test -d /usr/nec ;then
9124         lt_prog_compiler_pic='-Kconform_pic'
9125         lt_prog_compiler_static='-Bstatic'
9126       fi
9127       ;;
9128
9129     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9130       lt_prog_compiler_wl='-Wl,'
9131       lt_prog_compiler_pic='-KPIC'
9132       lt_prog_compiler_static='-Bstatic'
9133       ;;
9134
9135     unicos*)
9136       lt_prog_compiler_wl='-Wl,'
9137       lt_prog_compiler_can_build_shared=no
9138       ;;
9139
9140     uts4*)
9141       lt_prog_compiler_pic='-pic'
9142       lt_prog_compiler_static='-Bstatic'
9143       ;;
9144
9145     *)
9146       lt_prog_compiler_can_build_shared=no
9147       ;;
9148     esac
9149   fi
9150
9151 case $host_os in
9152   # For platforms which do not support PIC, -DPIC is meaningless:
9153   *djgpp*)
9154     lt_prog_compiler_pic=
9155     ;;
9156   *)
9157     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9158     ;;
9159 esac
9160
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9162 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9163 if ${lt_cv_prog_compiler_pic+:} false; then :
9164   $as_echo_n "(cached) " >&6
9165 else
9166   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9167 fi
9168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9169 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9170 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9171
9172 #
9173 # Check to make sure the PIC flag actually works.
9174 #
9175 if test -n "$lt_prog_compiler_pic"; then
9176   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9177 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9178 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9179   $as_echo_n "(cached) " >&6
9180 else
9181   lt_cv_prog_compiler_pic_works=no
9182    ac_outfile=conftest.$ac_objext
9183    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9184    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9185    # Insert the option either (1) after the last *FLAGS variable, or
9186    # (2) before a word containing "conftest.", or (3) at the end.
9187    # Note that $ac_compile itself does not contain backslashes and begins
9188    # with a dollar sign (not a hyphen), so the echo should work correctly.
9189    # The option is referenced via a variable to avoid confusing sed.
9190    lt_compile=`echo "$ac_compile" | $SED \
9191    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9192    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9193    -e 's:$: $lt_compiler_flag:'`
9194    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9195    (eval "$lt_compile" 2>conftest.err)
9196    ac_status=$?
9197    cat conftest.err >&5
9198    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9199    if (exit $ac_status) && test -s "$ac_outfile"; then
9200      # The compiler can only warn and ignore the option if not recognized
9201      # So say no if there are warnings other than the usual output.
9202      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9203      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9204      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9205        lt_cv_prog_compiler_pic_works=yes
9206      fi
9207    fi
9208    $RM conftest*
9209
9210 fi
9211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9212 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9213
9214 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9215     case $lt_prog_compiler_pic in
9216      "" | " "*) ;;
9217      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9218      esac
9219 else
9220     lt_prog_compiler_pic=
9221      lt_prog_compiler_can_build_shared=no
9222 fi
9223
9224 fi
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236 #
9237 # Check to make sure the static flag actually works.
9238 #
9239 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9241 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9242 if ${lt_cv_prog_compiler_static_works+:} false; then :
9243   $as_echo_n "(cached) " >&6
9244 else
9245   lt_cv_prog_compiler_static_works=no
9246    save_LDFLAGS="$LDFLAGS"
9247    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9248    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9249    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9250      # The linker can only warn and ignore the option if not recognized
9251      # So say no if there are warnings
9252      if test -s conftest.err; then
9253        # Append any errors to the config.log.
9254        cat conftest.err 1>&5
9255        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9256        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9257        if diff conftest.exp conftest.er2 >/dev/null; then
9258          lt_cv_prog_compiler_static_works=yes
9259        fi
9260      else
9261        lt_cv_prog_compiler_static_works=yes
9262      fi
9263    fi
9264    $RM -r conftest*
9265    LDFLAGS="$save_LDFLAGS"
9266
9267 fi
9268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9269 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9270
9271 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9272     :
9273 else
9274     lt_prog_compiler_static=
9275 fi
9276
9277
9278
9279
9280
9281
9282
9283   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9284 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9285 if ${lt_cv_prog_compiler_c_o+:} false; then :
9286   $as_echo_n "(cached) " >&6
9287 else
9288   lt_cv_prog_compiler_c_o=no
9289    $RM -r conftest 2>/dev/null
9290    mkdir conftest
9291    cd conftest
9292    mkdir out
9293    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9294
9295    lt_compiler_flag="-o out/conftest2.$ac_objext"
9296    # Insert the option either (1) after the last *FLAGS variable, or
9297    # (2) before a word containing "conftest.", or (3) at the end.
9298    # Note that $ac_compile itself does not contain backslashes and begins
9299    # with a dollar sign (not a hyphen), so the echo should work correctly.
9300    lt_compile=`echo "$ac_compile" | $SED \
9301    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9302    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9303    -e 's:$: $lt_compiler_flag:'`
9304    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9305    (eval "$lt_compile" 2>out/conftest.err)
9306    ac_status=$?
9307    cat out/conftest.err >&5
9308    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9309    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9310    then
9311      # The compiler can only warn and ignore the option if not recognized
9312      # So say no if there are warnings
9313      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9314      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9315      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9316        lt_cv_prog_compiler_c_o=yes
9317      fi
9318    fi
9319    chmod u+w . 2>&5
9320    $RM conftest*
9321    # SGI C++ compiler will create directory out/ii_files/ for
9322    # template instantiation
9323    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9324    $RM out/* && rmdir out
9325    cd ..
9326    $RM -r conftest
9327    $RM conftest*
9328
9329 fi
9330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9331 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9332
9333
9334
9335
9336
9337
9338   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9339 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9340 if ${lt_cv_prog_compiler_c_o+:} false; then :
9341   $as_echo_n "(cached) " >&6
9342 else
9343   lt_cv_prog_compiler_c_o=no
9344    $RM -r conftest 2>/dev/null
9345    mkdir conftest
9346    cd conftest
9347    mkdir out
9348    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9349
9350    lt_compiler_flag="-o out/conftest2.$ac_objext"
9351    # Insert the option either (1) after the last *FLAGS variable, or
9352    # (2) before a word containing "conftest.", or (3) at the end.
9353    # Note that $ac_compile itself does not contain backslashes and begins
9354    # with a dollar sign (not a hyphen), so the echo should work correctly.
9355    lt_compile=`echo "$ac_compile" | $SED \
9356    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9357    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9358    -e 's:$: $lt_compiler_flag:'`
9359    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9360    (eval "$lt_compile" 2>out/conftest.err)
9361    ac_status=$?
9362    cat out/conftest.err >&5
9363    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9364    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9365    then
9366      # The compiler can only warn and ignore the option if not recognized
9367      # So say no if there are warnings
9368      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9369      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9370      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9371        lt_cv_prog_compiler_c_o=yes
9372      fi
9373    fi
9374    chmod u+w . 2>&5
9375    $RM conftest*
9376    # SGI C++ compiler will create directory out/ii_files/ for
9377    # template instantiation
9378    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9379    $RM out/* && rmdir out
9380    cd ..
9381    $RM -r conftest
9382    $RM conftest*
9383
9384 fi
9385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9386 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9387
9388
9389
9390
9391 hard_links="nottested"
9392 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9393   # do not overwrite the value of need_locks provided by the user
9394   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9395 $as_echo_n "checking if we can lock with hard links... " >&6; }
9396   hard_links=yes
9397   $RM conftest*
9398   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9399   touch conftest.a
9400   ln conftest.a conftest.b 2>&5 || hard_links=no
9401   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9403 $as_echo "$hard_links" >&6; }
9404   if test "$hard_links" = no; then
9405     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9406 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9407     need_locks=warn
9408   fi
9409 else
9410   need_locks=no
9411 fi
9412
9413
9414
9415
9416
9417
9418   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9419 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9420
9421   runpath_var=
9422   allow_undefined_flag=
9423   always_export_symbols=no
9424   archive_cmds=
9425   archive_expsym_cmds=
9426   compiler_needs_object=no
9427   enable_shared_with_static_runtimes=no
9428   export_dynamic_flag_spec=
9429   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9430   hardcode_automatic=no
9431   hardcode_direct=no
9432   hardcode_direct_absolute=no
9433   hardcode_libdir_flag_spec=
9434   hardcode_libdir_separator=
9435   hardcode_minus_L=no
9436   hardcode_shlibpath_var=unsupported
9437   inherit_rpath=no
9438   link_all_deplibs=unknown
9439   module_cmds=
9440   module_expsym_cmds=
9441   old_archive_from_new_cmds=
9442   old_archive_from_expsyms_cmds=
9443   thread_safe_flag_spec=
9444   whole_archive_flag_spec=
9445   # include_expsyms should be a list of space-separated symbols to be *always*
9446   # included in the symbol list
9447   include_expsyms=
9448   # exclude_expsyms can be an extended regexp of symbols to exclude
9449   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9450   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9451   # as well as any symbol that contains `d'.
9452   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9453   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9454   # platforms (ab)use it in PIC code, but their linkers get confused if
9455   # the symbol is explicitly referenced.  Since portable code cannot
9456   # rely on this symbol name, it's probably fine to never include it in
9457   # preloaded symbol tables.
9458   # Exclude shared library initialization/finalization symbols.
9459   extract_expsyms_cmds=
9460
9461   case $host_os in
9462   cygwin* | mingw* | pw32* | cegcc*)
9463     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9464     # When not using gcc, we currently assume that we are using
9465     # Microsoft Visual C++.
9466     if test "$GCC" != yes; then
9467       with_gnu_ld=no
9468     fi
9469     ;;
9470   interix*)
9471     # we just hope/assume this is gcc and not c89 (= MSVC++)
9472     with_gnu_ld=yes
9473     ;;
9474   openbsd*)
9475     with_gnu_ld=no
9476     ;;
9477   linux* | k*bsd*-gnu | gnu*)
9478     link_all_deplibs=no
9479     ;;
9480   esac
9481
9482   ld_shlibs=yes
9483
9484   # On some targets, GNU ld is compatible enough with the native linker
9485   # that we're better off using the native interface for both.
9486   lt_use_gnu_ld_interface=no
9487   if test "$with_gnu_ld" = yes; then
9488     case $host_os in
9489       aix*)
9490         # The AIX port of GNU ld has always aspired to compatibility
9491         # with the native linker.  However, as the warning in the GNU ld
9492         # block says, versions before 2.19.5* couldn't really create working
9493         # shared libraries, regardless of the interface used.
9494         case `$LD -v 2>&1` in
9495           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9496           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9497           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9498           *)
9499             lt_use_gnu_ld_interface=yes
9500             ;;
9501         esac
9502         ;;
9503       *)
9504         lt_use_gnu_ld_interface=yes
9505         ;;
9506     esac
9507   fi
9508
9509   if test "$lt_use_gnu_ld_interface" = yes; then
9510     # If archive_cmds runs LD, not CC, wlarc should be empty
9511     wlarc='${wl}'
9512
9513     # Set some defaults for GNU ld with shared library support. These
9514     # are reset later if shared libraries are not supported. Putting them
9515     # here allows them to be overridden if necessary.
9516     runpath_var=LD_RUN_PATH
9517     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9518     export_dynamic_flag_spec='${wl}--export-dynamic'
9519     # ancient GNU ld didn't support --whole-archive et. al.
9520     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9521       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9522     else
9523       whole_archive_flag_spec=
9524     fi
9525     supports_anon_versioning=no
9526     case `$LD -v 2>&1` in
9527       *GNU\ gold*) supports_anon_versioning=yes ;;
9528       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9529       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9530       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9531       *\ 2.11.*) ;; # other 2.11 versions
9532       *) supports_anon_versioning=yes ;;
9533     esac
9534
9535     # See if GNU ld supports shared libraries.
9536     case $host_os in
9537     aix[3-9]*)
9538       # On AIX/PPC, the GNU linker is very broken
9539       if test "$host_cpu" != ia64; then
9540         ld_shlibs=no
9541         cat <<_LT_EOF 1>&2
9542
9543 *** Warning: the GNU linker, at least up to release 2.19, is reported
9544 *** to be unable to reliably create shared libraries on AIX.
9545 *** Therefore, libtool is disabling shared libraries support.  If you
9546 *** really care for shared libraries, you may want to install binutils
9547 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9548 *** You will then need to restart the configuration process.
9549
9550 _LT_EOF
9551       fi
9552       ;;
9553
9554     amigaos*)
9555       case $host_cpu in
9556       powerpc)
9557             # see comment about AmigaOS4 .so support
9558             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9559             archive_expsym_cmds=''
9560         ;;
9561       m68k)
9562             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)'
9563             hardcode_libdir_flag_spec='-L$libdir'
9564             hardcode_minus_L=yes
9565         ;;
9566       esac
9567       ;;
9568
9569     beos*)
9570       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9571         allow_undefined_flag=unsupported
9572         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9573         # support --undefined.  This deserves some investigation.  FIXME
9574         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9575       else
9576         ld_shlibs=no
9577       fi
9578       ;;
9579
9580     cygwin* | mingw* | pw32* | cegcc*)
9581       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9582       # as there is no search path for DLLs.
9583       hardcode_libdir_flag_spec='-L$libdir'
9584       export_dynamic_flag_spec='${wl}--export-all-symbols'
9585       allow_undefined_flag=unsupported
9586       always_export_symbols=no
9587       enable_shared_with_static_runtimes=yes
9588       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'
9589       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9590
9591       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9592         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9593         # If the export-symbols file already is a .def file (1st line
9594         # is EXPORTS), use it as is; otherwise, prepend...
9595         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9596           cp $export_symbols $output_objdir/$soname.def;
9597         else
9598           echo EXPORTS > $output_objdir/$soname.def;
9599           cat $export_symbols >> $output_objdir/$soname.def;
9600         fi~
9601         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9602       else
9603         ld_shlibs=no
9604       fi
9605       ;;
9606
9607     haiku*)
9608       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9609       link_all_deplibs=yes
9610       ;;
9611
9612     interix[3-9]*)
9613       hardcode_direct=no
9614       hardcode_shlibpath_var=no
9615       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9616       export_dynamic_flag_spec='${wl}-E'
9617       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9618       # Instead, shared libraries are loaded at an image base (0x10000000 by
9619       # default) and relocated if they conflict, which is a slow very memory
9620       # consuming and fragmenting process.  To avoid this, we pick a random,
9621       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9622       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9623       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9624       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'
9625       ;;
9626
9627     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9628       tmp_diet=no
9629       if test "$host_os" = linux-dietlibc; then
9630         case $cc_basename in
9631           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9632         esac
9633       fi
9634       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9635          && test "$tmp_diet" = no
9636       then
9637         tmp_addflag=' $pic_flag'
9638         tmp_sharedflag='-shared'
9639         case $cc_basename,$host_cpu in
9640         pgcc*)                          # Portland Group C compiler
9641           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'
9642           tmp_addflag=' $pic_flag'
9643           ;;
9644         pgf77* | pgf90* | pgf95* | pgfortran*)
9645                                         # Portland Group f77 and f90 compilers
9646           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'
9647           tmp_addflag=' $pic_flag -Mnomain' ;;
9648         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9649           tmp_addflag=' -i_dynamic' ;;
9650         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9651           tmp_addflag=' -i_dynamic -nofor_main' ;;
9652         ifc* | ifort*)                  # Intel Fortran compiler
9653           tmp_addflag=' -nofor_main' ;;
9654         lf95*)                          # Lahey Fortran 8.1
9655           whole_archive_flag_spec=
9656           tmp_sharedflag='--shared' ;;
9657         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9658           tmp_sharedflag='-qmkshrobj'
9659           tmp_addflag= ;;
9660         nvcc*)  # Cuda Compiler Driver 2.2
9661           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'
9662           compiler_needs_object=yes
9663           ;;
9664         esac
9665         case `$CC -V 2>&1 | sed 5q` in
9666         *Sun\ C*)                       # Sun C 5.9
9667           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'
9668           compiler_needs_object=yes
9669           tmp_sharedflag='-G' ;;
9670         *Sun\ F*)                       # Sun Fortran 8.3
9671           tmp_sharedflag='-G' ;;
9672         esac
9673         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9674
9675         if test "x$supports_anon_versioning" = xyes; then
9676           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9677             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9678             echo "local: *; };" >> $output_objdir/$libname.ver~
9679             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9680         fi
9681
9682         case $cc_basename in
9683         xlf* | bgf* | bgxlf* | mpixlf*)
9684           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9685           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9686           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9687           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9688           if test "x$supports_anon_versioning" = xyes; then
9689             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9690               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9691               echo "local: *; };" >> $output_objdir/$libname.ver~
9692               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9693           fi
9694           ;;
9695         esac
9696       else
9697         ld_shlibs=no
9698       fi
9699       ;;
9700
9701     netbsd* | netbsdelf*-gnu)
9702       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9703         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9704         wlarc=
9705       else
9706         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9707         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9708       fi
9709       ;;
9710
9711     solaris*)
9712       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9713         ld_shlibs=no
9714         cat <<_LT_EOF 1>&2
9715
9716 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9717 *** create shared libraries on Solaris systems.  Therefore, libtool
9718 *** is disabling shared libraries support.  We urge you to upgrade GNU
9719 *** binutils to release 2.9.1 or newer.  Another option is to modify
9720 *** your PATH or compiler configuration so that the native linker is
9721 *** used, and then restart.
9722
9723 _LT_EOF
9724       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9725         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9726         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9727       else
9728         ld_shlibs=no
9729       fi
9730       ;;
9731
9732     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9733       case `$LD -v 2>&1` in
9734         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9735         ld_shlibs=no
9736         cat <<_LT_EOF 1>&2
9737
9738 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9739 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9740 *** is disabling shared libraries support.  We urge you to upgrade GNU
9741 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9742 *** your PATH or compiler configuration so that the native linker is
9743 *** used, and then restart.
9744
9745 _LT_EOF
9746         ;;
9747         *)
9748           # For security reasons, it is highly recommended that you always
9749           # use absolute paths for naming shared libraries, and exclude the
9750           # DT_RUNPATH tag from executables and libraries.  But doing so
9751           # requires that you compile everything twice, which is a pain.
9752           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9753             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9754             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9755             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9756           else
9757             ld_shlibs=no
9758           fi
9759         ;;
9760       esac
9761       ;;
9762
9763     sunos4*)
9764       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9765       wlarc=
9766       hardcode_direct=yes
9767       hardcode_shlibpath_var=no
9768       ;;
9769
9770     *)
9771       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9772         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9773         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9774       else
9775         ld_shlibs=no
9776       fi
9777       ;;
9778     esac
9779
9780     if test "$ld_shlibs" = no; then
9781       runpath_var=
9782       hardcode_libdir_flag_spec=
9783       export_dynamic_flag_spec=
9784       whole_archive_flag_spec=
9785     fi
9786   else
9787     # PORTME fill in a description of your system's linker (not GNU ld)
9788     case $host_os in
9789     aix3*)
9790       allow_undefined_flag=unsupported
9791       always_export_symbols=yes
9792       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'
9793       # Note: this linker hardcodes the directories in LIBPATH if there
9794       # are no directories specified by -L.
9795       hardcode_minus_L=yes
9796       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9797         # Neither direct hardcoding nor static linking is supported with a
9798         # broken collect2.
9799         hardcode_direct=unsupported
9800       fi
9801       ;;
9802
9803     aix[4-9]*)
9804       if test "$host_cpu" = ia64; then
9805         # On IA64, the linker does run time linking by default, so we don't
9806         # have to do anything special.
9807         aix_use_runtimelinking=no
9808         exp_sym_flag='-Bexport'
9809         no_entry_flag=""
9810       else
9811         # If we're using GNU nm, then we don't want the "-C" option.
9812         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9813         # Also, AIX nm treats weak defined symbols like other global
9814         # defined symbols, whereas GNU nm marks them as "W".
9815         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9816           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'
9817         else
9818           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'
9819         fi
9820         aix_use_runtimelinking=no
9821
9822         # Test if we are trying to use run time linking or normal
9823         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9824         # need to do runtime linking.
9825         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9826           for ld_flag in $LDFLAGS; do
9827           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9828             aix_use_runtimelinking=yes
9829             break
9830           fi
9831           done
9832           ;;
9833         esac
9834
9835         exp_sym_flag='-bexport'
9836         no_entry_flag='-bnoentry'
9837       fi
9838
9839       # When large executables or shared objects are built, AIX ld can
9840       # have problems creating the table of contents.  If linking a library
9841       # or program results in "error TOC overflow" add -mminimal-toc to
9842       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9843       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9844
9845       archive_cmds=''
9846       hardcode_direct=yes
9847       hardcode_direct_absolute=yes
9848       hardcode_libdir_separator=':'
9849       link_all_deplibs=yes
9850       file_list_spec='${wl}-f,'
9851
9852       if test "$GCC" = yes; then
9853         case $host_os in aix4.[012]|aix4.[012].*)
9854         # We only want to do this on AIX 4.2 and lower, the check
9855         # below for broken collect2 doesn't work under 4.3+
9856           collect2name=`${CC} -print-prog-name=collect2`
9857           if test -f "$collect2name" &&
9858            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9859           then
9860           # We have reworked collect2
9861           :
9862           else
9863           # We have old collect2
9864           hardcode_direct=unsupported
9865           # It fails to find uninstalled libraries when the uninstalled
9866           # path is not listed in the libpath.  Setting hardcode_minus_L
9867           # to unsupported forces relinking
9868           hardcode_minus_L=yes
9869           hardcode_libdir_flag_spec='-L$libdir'
9870           hardcode_libdir_separator=
9871           fi
9872           ;;
9873         esac
9874         shared_flag='-shared'
9875         if test "$aix_use_runtimelinking" = yes; then
9876           shared_flag="$shared_flag "'${wl}-G'
9877         fi
9878         link_all_deplibs=no
9879       else
9880         # not using gcc
9881         if test "$host_cpu" = ia64; then
9882         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9883         # chokes on -Wl,-G. The following line is correct:
9884           shared_flag='-G'
9885         else
9886           if test "$aix_use_runtimelinking" = yes; then
9887             shared_flag='${wl}-G'
9888           else
9889             shared_flag='${wl}-bM:SRE'
9890           fi
9891         fi
9892       fi
9893
9894       export_dynamic_flag_spec='${wl}-bexpall'
9895       # It seems that -bexpall does not export symbols beginning with
9896       # underscore (_), so it is better to generate a list of symbols to export.
9897       always_export_symbols=yes
9898       if test "$aix_use_runtimelinking" = yes; then
9899         # Warning - without using the other runtime loading flags (-brtl),
9900         # -berok will link without error, but may produce a broken library.
9901         allow_undefined_flag='-berok'
9902         # Determine the default libpath from the value encoded in an
9903         # empty executable.
9904         if test "${lt_cv_aix_libpath+set}" = set; then
9905   aix_libpath=$lt_cv_aix_libpath
9906 else
9907   if ${lt_cv_aix_libpath_+:} false; then :
9908   $as_echo_n "(cached) " >&6
9909 else
9910   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9911 /* end confdefs.h.  */
9912
9913 int
9914 main ()
9915 {
9916
9917   ;
9918   return 0;
9919 }
9920 _ACEOF
9921 if ac_fn_c_try_link "$LINENO"; then :
9922
9923   lt_aix_libpath_sed='
9924       /Import File Strings/,/^$/ {
9925           /^0/ {
9926               s/^0  *\([^ ]*\) *$/\1/
9927               p
9928           }
9929       }'
9930   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9931   # Check for a 64-bit object if we didn't find anything.
9932   if test -z "$lt_cv_aix_libpath_"; then
9933     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9934   fi
9935 fi
9936 rm -f core conftest.err conftest.$ac_objext \
9937     conftest$ac_exeext conftest.$ac_ext
9938   if test -z "$lt_cv_aix_libpath_"; then
9939     lt_cv_aix_libpath_="/usr/lib:/lib"
9940   fi
9941
9942 fi
9943
9944   aix_libpath=$lt_cv_aix_libpath_
9945 fi
9946
9947         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9948         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"
9949       else
9950         if test "$host_cpu" = ia64; then
9951           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9952           allow_undefined_flag="-z nodefs"
9953           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"
9954         else
9955          # Determine the default libpath from the value encoded in an
9956          # empty executable.
9957          if test "${lt_cv_aix_libpath+set}" = set; then
9958   aix_libpath=$lt_cv_aix_libpath
9959 else
9960   if ${lt_cv_aix_libpath_+:} false; then :
9961   $as_echo_n "(cached) " >&6
9962 else
9963   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9964 /* end confdefs.h.  */
9965
9966 int
9967 main ()
9968 {
9969
9970   ;
9971   return 0;
9972 }
9973 _ACEOF
9974 if ac_fn_c_try_link "$LINENO"; then :
9975
9976   lt_aix_libpath_sed='
9977       /Import File Strings/,/^$/ {
9978           /^0/ {
9979               s/^0  *\([^ ]*\) *$/\1/
9980               p
9981           }
9982       }'
9983   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9984   # Check for a 64-bit object if we didn't find anything.
9985   if test -z "$lt_cv_aix_libpath_"; then
9986     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9987   fi
9988 fi
9989 rm -f core conftest.err conftest.$ac_objext \
9990     conftest$ac_exeext conftest.$ac_ext
9991   if test -z "$lt_cv_aix_libpath_"; then
9992     lt_cv_aix_libpath_="/usr/lib:/lib"
9993   fi
9994
9995 fi
9996
9997   aix_libpath=$lt_cv_aix_libpath_
9998 fi
9999
10000          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10001           # Warning - without using the other run time loading flags,
10002           # -berok will link without error, but may produce a broken library.
10003           no_undefined_flag=' ${wl}-bernotok'
10004           allow_undefined_flag=' ${wl}-berok'
10005           if test "$with_gnu_ld" = yes; then
10006             # We only use this code for GNU lds that support --whole-archive.
10007             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10008           else
10009             # Exported symbols can be pulled into shared objects from archives
10010             whole_archive_flag_spec='$convenience'
10011           fi
10012           archive_cmds_need_lc=yes
10013           # This is similar to how AIX traditionally builds its shared libraries.
10014           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'
10015         fi
10016       fi
10017       ;;
10018
10019     amigaos*)
10020       case $host_cpu in
10021       powerpc)
10022             # see comment about AmigaOS4 .so support
10023             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10024             archive_expsym_cmds=''
10025         ;;
10026       m68k)
10027             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)'
10028             hardcode_libdir_flag_spec='-L$libdir'
10029             hardcode_minus_L=yes
10030         ;;
10031       esac
10032       ;;
10033
10034     bsdi[45]*)
10035       export_dynamic_flag_spec=-rdynamic
10036       ;;
10037
10038     cygwin* | mingw* | pw32* | cegcc*)
10039       # When not using gcc, we currently assume that we are using
10040       # Microsoft Visual C++.
10041       # hardcode_libdir_flag_spec is actually meaningless, as there is
10042       # no search path for DLLs.
10043       case $cc_basename in
10044       cl*)
10045         # Native MSVC
10046         hardcode_libdir_flag_spec=' '
10047         allow_undefined_flag=unsupported
10048         always_export_symbols=yes
10049         file_list_spec='@'
10050         # Tell ltmain to make .lib files, not .a files.
10051         libext=lib
10052         # Tell ltmain to make .dll files, not .so files.
10053         shrext_cmds=".dll"
10054         # FIXME: Setting linknames here is a bad hack.
10055         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10056         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10057             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10058           else
10059             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10060           fi~
10061           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10062           linknames='
10063         # The linker will not automatically build a static lib if we build a DLL.
10064         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10065         enable_shared_with_static_runtimes=yes
10066         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10067         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10068         # Don't use ranlib
10069         old_postinstall_cmds='chmod 644 $oldlib'
10070         postlink_cmds='lt_outputfile="@OUTPUT@"~
10071           lt_tool_outputfile="@TOOL_OUTPUT@"~
10072           case $lt_outputfile in
10073             *.exe|*.EXE) ;;
10074             *)
10075               lt_outputfile="$lt_outputfile.exe"
10076               lt_tool_outputfile="$lt_tool_outputfile.exe"
10077               ;;
10078           esac~
10079           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10080             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10081             $RM "$lt_outputfile.manifest";
10082           fi'
10083         ;;
10084       *)
10085         # Assume MSVC wrapper
10086         hardcode_libdir_flag_spec=' '
10087         allow_undefined_flag=unsupported
10088         # Tell ltmain to make .lib files, not .a files.
10089         libext=lib
10090         # Tell ltmain to make .dll files, not .so files.
10091         shrext_cmds=".dll"
10092         # FIXME: Setting linknames here is a bad hack.
10093         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10094         # The linker will automatically build a .lib file if we build a DLL.
10095         old_archive_from_new_cmds='true'
10096         # FIXME: Should let the user specify the lib program.
10097         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10098         enable_shared_with_static_runtimes=yes
10099         ;;
10100       esac
10101       ;;
10102
10103     darwin* | rhapsody*)
10104
10105
10106   archive_cmds_need_lc=no
10107   hardcode_direct=no
10108   hardcode_automatic=yes
10109   hardcode_shlibpath_var=unsupported
10110   if test "$lt_cv_ld_force_load" = "yes"; then
10111     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\"`'
10112
10113   else
10114     whole_archive_flag_spec=''
10115   fi
10116   link_all_deplibs=yes
10117   allow_undefined_flag="$_lt_dar_allow_undefined"
10118   case $cc_basename in
10119      ifort*) _lt_dar_can_shared=yes ;;
10120      *) _lt_dar_can_shared=$GCC ;;
10121   esac
10122   if test "$_lt_dar_can_shared" = "yes"; then
10123     output_verbose_link_cmd=func_echo_all
10124     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10125     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10126     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}"
10127     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}"
10128
10129   else
10130   ld_shlibs=no
10131   fi
10132
10133       ;;
10134
10135     dgux*)
10136       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10137       hardcode_libdir_flag_spec='-L$libdir'
10138       hardcode_shlibpath_var=no
10139       ;;
10140
10141     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10142     # support.  Future versions do this automatically, but an explicit c++rt0.o
10143     # does not break anything, and helps significantly (at the cost of a little
10144     # extra space).
10145     freebsd2.2*)
10146       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10147       hardcode_libdir_flag_spec='-R$libdir'
10148       hardcode_direct=yes
10149       hardcode_shlibpath_var=no
10150       ;;
10151
10152     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10153     freebsd2.*)
10154       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10155       hardcode_direct=yes
10156       hardcode_minus_L=yes
10157       hardcode_shlibpath_var=no
10158       ;;
10159
10160     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10161     freebsd* | dragonfly*)
10162       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10163       hardcode_libdir_flag_spec='-R$libdir'
10164       hardcode_direct=yes
10165       hardcode_shlibpath_var=no
10166       ;;
10167
10168     hpux9*)
10169       if test "$GCC" = yes; then
10170         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'
10171       else
10172         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'
10173       fi
10174       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10175       hardcode_libdir_separator=:
10176       hardcode_direct=yes
10177
10178       # hardcode_minus_L: Not really in the search PATH,
10179       # but as the default location of the library.
10180       hardcode_minus_L=yes
10181       export_dynamic_flag_spec='${wl}-E'
10182       ;;
10183
10184     hpux10*)
10185       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10186         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10187       else
10188         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10189       fi
10190       if test "$with_gnu_ld" = no; then
10191         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10192         hardcode_libdir_separator=:
10193         hardcode_direct=yes
10194         hardcode_direct_absolute=yes
10195         export_dynamic_flag_spec='${wl}-E'
10196         # hardcode_minus_L: Not really in the search PATH,
10197         # but as the default location of the library.
10198         hardcode_minus_L=yes
10199       fi
10200       ;;
10201
10202     hpux11*)
10203       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10204         case $host_cpu in
10205         hppa*64*)
10206           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10207           ;;
10208         ia64*)
10209           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10210           ;;
10211         *)
10212           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10213           ;;
10214         esac
10215       else
10216         case $host_cpu in
10217         hppa*64*)
10218           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10219           ;;
10220         ia64*)
10221           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10222           ;;
10223         *)
10224
10225           # Older versions of the 11.00 compiler do not understand -b yet
10226           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10227           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10228 $as_echo_n "checking if $CC understands -b... " >&6; }
10229 if ${lt_cv_prog_compiler__b+:} false; then :
10230   $as_echo_n "(cached) " >&6
10231 else
10232   lt_cv_prog_compiler__b=no
10233    save_LDFLAGS="$LDFLAGS"
10234    LDFLAGS="$LDFLAGS -b"
10235    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10236    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10237      # The linker can only warn and ignore the option if not recognized
10238      # So say no if there are warnings
10239      if test -s conftest.err; then
10240        # Append any errors to the config.log.
10241        cat conftest.err 1>&5
10242        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10243        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10244        if diff conftest.exp conftest.er2 >/dev/null; then
10245          lt_cv_prog_compiler__b=yes
10246        fi
10247      else
10248        lt_cv_prog_compiler__b=yes
10249      fi
10250    fi
10251    $RM -r conftest*
10252    LDFLAGS="$save_LDFLAGS"
10253
10254 fi
10255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10256 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10257
10258 if test x"$lt_cv_prog_compiler__b" = xyes; then
10259     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10260 else
10261     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10262 fi
10263
10264           ;;
10265         esac
10266       fi
10267       if test "$with_gnu_ld" = no; then
10268         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10269         hardcode_libdir_separator=:
10270
10271         case $host_cpu in
10272         hppa*64*|ia64*)
10273           hardcode_direct=no
10274           hardcode_shlibpath_var=no
10275           ;;
10276         *)
10277           hardcode_direct=yes
10278           hardcode_direct_absolute=yes
10279           export_dynamic_flag_spec='${wl}-E'
10280
10281           # hardcode_minus_L: Not really in the search PATH,
10282           # but as the default location of the library.
10283           hardcode_minus_L=yes
10284           ;;
10285         esac
10286       fi
10287       ;;
10288
10289     irix5* | irix6* | nonstopux*)
10290       if test "$GCC" = yes; then
10291         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'
10292         # Try to use the -exported_symbol ld option, if it does not
10293         # work, assume that -exports_file does not work either and
10294         # implicitly export all symbols.
10295         # This should be the same for all languages, so no per-tag cache variable.
10296         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10297 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10298 if ${lt_cv_irix_exported_symbol+:} false; then :
10299   $as_echo_n "(cached) " >&6
10300 else
10301   save_LDFLAGS="$LDFLAGS"
10302            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10303            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10304 /* end confdefs.h.  */
10305 int foo (void) { return 0; }
10306 _ACEOF
10307 if ac_fn_c_try_link "$LINENO"; then :
10308   lt_cv_irix_exported_symbol=yes
10309 else
10310   lt_cv_irix_exported_symbol=no
10311 fi
10312 rm -f core conftest.err conftest.$ac_objext \
10313     conftest$ac_exeext conftest.$ac_ext
10314            LDFLAGS="$save_LDFLAGS"
10315 fi
10316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10317 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10318         if test "$lt_cv_irix_exported_symbol" = yes; then
10319           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'
10320         fi
10321       else
10322         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'
10323         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'
10324       fi
10325       archive_cmds_need_lc='no'
10326       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10327       hardcode_libdir_separator=:
10328       inherit_rpath=yes
10329       link_all_deplibs=yes
10330       ;;
10331
10332     netbsd* | netbsdelf*-gnu)
10333       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10334         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10335       else
10336         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10337       fi
10338       hardcode_libdir_flag_spec='-R$libdir'
10339       hardcode_direct=yes
10340       hardcode_shlibpath_var=no
10341       ;;
10342
10343     newsos6)
10344       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10345       hardcode_direct=yes
10346       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10347       hardcode_libdir_separator=:
10348       hardcode_shlibpath_var=no
10349       ;;
10350
10351     *nto* | *qnx*)
10352       ;;
10353
10354     openbsd*)
10355       if test -f /usr/libexec/ld.so; then
10356         hardcode_direct=yes
10357         hardcode_shlibpath_var=no
10358         hardcode_direct_absolute=yes
10359         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10360           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10361           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10362           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10363           export_dynamic_flag_spec='${wl}-E'
10364         else
10365           case $host_os in
10366            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10367              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10368              hardcode_libdir_flag_spec='-R$libdir'
10369              ;;
10370            *)
10371              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10372              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10373              ;;
10374           esac
10375         fi
10376       else
10377         ld_shlibs=no
10378       fi
10379       ;;
10380
10381     os2*)
10382       hardcode_libdir_flag_spec='-L$libdir'
10383       hardcode_minus_L=yes
10384       allow_undefined_flag=unsupported
10385       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'
10386       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10387       ;;
10388
10389     osf3*)
10390       if test "$GCC" = yes; then
10391         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10392         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'
10393       else
10394         allow_undefined_flag=' -expect_unresolved \*'
10395         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'
10396       fi
10397       archive_cmds_need_lc='no'
10398       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10399       hardcode_libdir_separator=:
10400       ;;
10401
10402     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10403       if test "$GCC" = yes; then
10404         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10405         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'
10406         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10407       else
10408         allow_undefined_flag=' -expect_unresolved \*'
10409         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'
10410         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~
10411         $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'
10412
10413         # Both c and cxx compiler support -rpath directly
10414         hardcode_libdir_flag_spec='-rpath $libdir'
10415       fi
10416       archive_cmds_need_lc='no'
10417       hardcode_libdir_separator=:
10418       ;;
10419
10420     solaris*)
10421       no_undefined_flag=' -z defs'
10422       if test "$GCC" = yes; then
10423         wlarc='${wl}'
10424         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10425         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10426           $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'
10427       else
10428         case `$CC -V 2>&1` in
10429         *"Compilers 5.0"*)
10430           wlarc=''
10431           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10432           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10433           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10434           ;;
10435         *)
10436           wlarc='${wl}'
10437           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10438           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10439           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10440           ;;
10441         esac
10442       fi
10443       hardcode_libdir_flag_spec='-R$libdir'
10444       hardcode_shlibpath_var=no
10445       case $host_os in
10446       solaris2.[0-5] | solaris2.[0-5].*) ;;
10447       *)
10448         # The compiler driver will combine and reorder linker options,
10449         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10450         # but is careful enough not to reorder.
10451         # Supported since Solaris 2.6 (maybe 2.5.1?)
10452         if test "$GCC" = yes; then
10453           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10454         else
10455           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10456         fi
10457         ;;
10458       esac
10459       link_all_deplibs=yes
10460       ;;
10461
10462     sunos4*)
10463       if test "x$host_vendor" = xsequent; then
10464         # Use $CC to link under sequent, because it throws in some extra .o
10465         # files that make .init and .fini sections work.
10466         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10467       else
10468         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10469       fi
10470       hardcode_libdir_flag_spec='-L$libdir'
10471       hardcode_direct=yes
10472       hardcode_minus_L=yes
10473       hardcode_shlibpath_var=no
10474       ;;
10475
10476     sysv4)
10477       case $host_vendor in
10478         sni)
10479           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10480           hardcode_direct=yes # is this really true???
10481         ;;
10482         siemens)
10483           ## LD is ld it makes a PLAMLIB
10484           ## CC just makes a GrossModule.
10485           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10486           reload_cmds='$CC -r -o $output$reload_objs'
10487           hardcode_direct=no
10488         ;;
10489         motorola)
10490           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10491           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10492         ;;
10493       esac
10494       runpath_var='LD_RUN_PATH'
10495       hardcode_shlibpath_var=no
10496       ;;
10497
10498     sysv4.3*)
10499       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10500       hardcode_shlibpath_var=no
10501       export_dynamic_flag_spec='-Bexport'
10502       ;;
10503
10504     sysv4*MP*)
10505       if test -d /usr/nec; then
10506         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10507         hardcode_shlibpath_var=no
10508         runpath_var=LD_RUN_PATH
10509         hardcode_runpath_var=yes
10510         ld_shlibs=yes
10511       fi
10512       ;;
10513
10514     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10515       no_undefined_flag='${wl}-z,text'
10516       archive_cmds_need_lc=no
10517       hardcode_shlibpath_var=no
10518       runpath_var='LD_RUN_PATH'
10519
10520       if test "$GCC" = yes; then
10521         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10522         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10523       else
10524         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10525         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10526       fi
10527       ;;
10528
10529     sysv5* | sco3.2v5* | sco5v6*)
10530       # Note: We can NOT use -z defs as we might desire, because we do not
10531       # link with -lc, and that would cause any symbols used from libc to
10532       # always be unresolved, which means just about no library would
10533       # ever link correctly.  If we're not using GNU ld we use -z text
10534       # though, which does catch some bad symbols but isn't as heavy-handed
10535       # as -z defs.
10536       no_undefined_flag='${wl}-z,text'
10537       allow_undefined_flag='${wl}-z,nodefs'
10538       archive_cmds_need_lc=no
10539       hardcode_shlibpath_var=no
10540       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10541       hardcode_libdir_separator=':'
10542       link_all_deplibs=yes
10543       export_dynamic_flag_spec='${wl}-Bexport'
10544       runpath_var='LD_RUN_PATH'
10545
10546       if test "$GCC" = yes; then
10547         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10548         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10549       else
10550         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10551         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10552       fi
10553       ;;
10554
10555     uts4*)
10556       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10557       hardcode_libdir_flag_spec='-L$libdir'
10558       hardcode_shlibpath_var=no
10559       ;;
10560
10561     *)
10562       ld_shlibs=no
10563       ;;
10564     esac
10565
10566     if test x$host_vendor = xsni; then
10567       case $host in
10568       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10569         export_dynamic_flag_spec='${wl}-Blargedynsym'
10570         ;;
10571       esac
10572     fi
10573   fi
10574
10575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10576 $as_echo "$ld_shlibs" >&6; }
10577 test "$ld_shlibs" = no && can_build_shared=no
10578
10579 with_gnu_ld=$with_gnu_ld
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595 #
10596 # Do we need to explicitly link libc?
10597 #
10598 case "x$archive_cmds_need_lc" in
10599 x|xyes)
10600   # Assume -lc should be added
10601   archive_cmds_need_lc=yes
10602
10603   if test "$enable_shared" = yes && test "$GCC" = yes; then
10604     case $archive_cmds in
10605     *'~'*)
10606       # FIXME: we may have to deal with multi-command sequences.
10607       ;;
10608     '$CC '*)
10609       # Test whether the compiler implicitly links with -lc since on some
10610       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10611       # to ld, don't add -lc before -lgcc.
10612       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10613 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10614 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10615   $as_echo_n "(cached) " >&6
10616 else
10617   $RM conftest*
10618         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10619
10620         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10621   (eval $ac_compile) 2>&5
10622   ac_status=$?
10623   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10624   test $ac_status = 0; } 2>conftest.err; then
10625           soname=conftest
10626           lib=conftest
10627           libobjs=conftest.$ac_objext
10628           deplibs=
10629           wl=$lt_prog_compiler_wl
10630           pic_flag=$lt_prog_compiler_pic
10631           compiler_flags=-v
10632           linker_flags=-v
10633           verstring=
10634           output_objdir=.
10635           libname=conftest
10636           lt_save_allow_undefined_flag=$allow_undefined_flag
10637           allow_undefined_flag=
10638           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10639   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10640   ac_status=$?
10641   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10642   test $ac_status = 0; }
10643           then
10644             lt_cv_archive_cmds_need_lc=no
10645           else
10646             lt_cv_archive_cmds_need_lc=yes
10647           fi
10648           allow_undefined_flag=$lt_save_allow_undefined_flag
10649         else
10650           cat conftest.err 1>&5
10651         fi
10652         $RM conftest*
10653
10654 fi
10655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10656 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10657       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10658       ;;
10659     esac
10660   fi
10661   ;;
10662 esac
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10816 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10817
10818 if test "$GCC" = yes; then
10819   case $host_os in
10820     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10821     *) lt_awk_arg="/^libraries:/" ;;
10822   esac
10823   case $host_os in
10824     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10825     *) lt_sed_strip_eq="s,=/,/,g" ;;
10826   esac
10827   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10828   case $lt_search_path_spec in
10829   *\;*)
10830     # if the path contains ";" then we assume it to be the separator
10831     # otherwise default to the standard path separator (i.e. ":") - it is
10832     # assumed that no part of a normal pathname contains ";" but that should
10833     # okay in the real world where ";" in dirpaths is itself problematic.
10834     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10835     ;;
10836   *)
10837     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10838     ;;
10839   esac
10840   # Ok, now we have the path, separated by spaces, we can step through it
10841   # and add multilib dir if necessary.
10842   lt_tmp_lt_search_path_spec=
10843   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10844   for lt_sys_path in $lt_search_path_spec; do
10845     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10846       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10847     else
10848       test -d "$lt_sys_path" && \
10849         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10850     fi
10851   done
10852   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10853 BEGIN {RS=" "; FS="/|\n";} {
10854   lt_foo="";
10855   lt_count=0;
10856   for (lt_i = NF; lt_i > 0; lt_i--) {
10857     if ($lt_i != "" && $lt_i != ".") {
10858       if ($lt_i == "..") {
10859         lt_count++;
10860       } else {
10861         if (lt_count == 0) {
10862           lt_foo="/" $lt_i lt_foo;
10863         } else {
10864           lt_count--;
10865         }
10866       }
10867     }
10868   }
10869   if (lt_foo != "") { lt_freq[lt_foo]++; }
10870   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10871 }'`
10872   # AWK program above erroneously prepends '/' to C:/dos/paths
10873   # for these hosts.
10874   case $host_os in
10875     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10876       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10877   esac
10878   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10879 else
10880   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10881 fi
10882 library_names_spec=
10883 libname_spec='lib$name'
10884 soname_spec=
10885 shrext_cmds=".so"
10886 postinstall_cmds=
10887 postuninstall_cmds=
10888 finish_cmds=
10889 finish_eval=
10890 shlibpath_var=
10891 shlibpath_overrides_runpath=unknown
10892 version_type=none
10893 dynamic_linker="$host_os ld.so"
10894 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10895 need_lib_prefix=unknown
10896 hardcode_into_libs=no
10897
10898 # when you set need_version to no, make sure it does not cause -set_version
10899 # flags to be left without arguments
10900 need_version=unknown
10901
10902 case $host_os in
10903 aix3*)
10904   version_type=linux # correct to gnu/linux during the next big refactor
10905   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10906   shlibpath_var=LIBPATH
10907
10908   # AIX 3 has no versioning support, so we append a major version to the name.
10909   soname_spec='${libname}${release}${shared_ext}$major'
10910   ;;
10911
10912 aix[4-9]*)
10913   version_type=linux # correct to gnu/linux during the next big refactor
10914   need_lib_prefix=no
10915   need_version=no
10916   hardcode_into_libs=yes
10917   if test "$host_cpu" = ia64; then
10918     # AIX 5 supports IA64
10919     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10920     shlibpath_var=LD_LIBRARY_PATH
10921   else
10922     # With GCC up to 2.95.x, collect2 would create an import file
10923     # for dependence libraries.  The import file would start with
10924     # the line `#! .'.  This would cause the generated library to
10925     # depend on `.', always an invalid library.  This was fixed in
10926     # development snapshots of GCC prior to 3.0.
10927     case $host_os in
10928       aix4 | aix4.[01] | aix4.[01].*)
10929       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10930            echo ' yes '
10931            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10932         :
10933       else
10934         can_build_shared=no
10935       fi
10936       ;;
10937     esac
10938     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10939     # soname into executable. Probably we can add versioning support to
10940     # collect2, so additional links can be useful in future.
10941     if test "$aix_use_runtimelinking" = yes; then
10942       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10943       # instead of lib<name>.a to let people know that these are not
10944       # typical AIX shared libraries.
10945       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10946     else
10947       # We preserve .a as extension for shared libraries through AIX4.2
10948       # and later when we are not doing run time linking.
10949       library_names_spec='${libname}${release}.a $libname.a'
10950       soname_spec='${libname}${release}${shared_ext}$major'
10951     fi
10952     shlibpath_var=LIBPATH
10953   fi
10954   ;;
10955
10956 amigaos*)
10957   case $host_cpu in
10958   powerpc)
10959     # Since July 2007 AmigaOS4 officially supports .so libraries.
10960     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10961     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10962     ;;
10963   m68k)
10964     library_names_spec='$libname.ixlibrary $libname.a'
10965     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10966     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'
10967     ;;
10968   esac
10969   ;;
10970
10971 beos*)
10972   library_names_spec='${libname}${shared_ext}'
10973   dynamic_linker="$host_os ld.so"
10974   shlibpath_var=LIBRARY_PATH
10975   ;;
10976
10977 bsdi[45]*)
10978   version_type=linux # correct to gnu/linux during the next big refactor
10979   need_version=no
10980   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10981   soname_spec='${libname}${release}${shared_ext}$major'
10982   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10983   shlibpath_var=LD_LIBRARY_PATH
10984   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10985   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10986   # the default ld.so.conf also contains /usr/contrib/lib and
10987   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10988   # libtool to hard-code these into programs
10989   ;;
10990
10991 cygwin* | mingw* | pw32* | cegcc*)
10992   version_type=windows
10993   shrext_cmds=".dll"
10994   need_version=no
10995   need_lib_prefix=no
10996
10997   case $GCC,$cc_basename in
10998   yes,*)
10999     # gcc
11000     library_names_spec='$libname.dll.a'
11001     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11002     postinstall_cmds='base_file=`basename \${file}`~
11003       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11004       dldir=$destdir/`dirname \$dlpath`~
11005       test -d \$dldir || mkdir -p \$dldir~
11006       $install_prog $dir/$dlname \$dldir/$dlname~
11007       chmod a+x \$dldir/$dlname~
11008       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11009         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11010       fi'
11011     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11012       dlpath=$dir/\$dldll~
11013        $RM \$dlpath'
11014     shlibpath_overrides_runpath=yes
11015
11016     case $host_os in
11017     cygwin*)
11018       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11019       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11020
11021       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11022       ;;
11023     mingw* | cegcc*)
11024       # MinGW DLLs use traditional 'lib' prefix
11025       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11026       ;;
11027     pw32*)
11028       # pw32 DLLs use 'pw' prefix rather than 'lib'
11029       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11030       ;;
11031     esac
11032     dynamic_linker='Win32 ld.exe'
11033     ;;
11034
11035   *,cl*)
11036     # Native MSVC
11037     libname_spec='$name'
11038     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11039     library_names_spec='${libname}.dll.lib'
11040
11041     case $build_os in
11042     mingw*)
11043       sys_lib_search_path_spec=
11044       lt_save_ifs=$IFS
11045       IFS=';'
11046       for lt_path in $LIB
11047       do
11048         IFS=$lt_save_ifs
11049         # Let DOS variable expansion print the short 8.3 style file name.
11050         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11051         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11052       done
11053       IFS=$lt_save_ifs
11054       # Convert to MSYS style.
11055       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11056       ;;
11057     cygwin*)
11058       # Convert to unix form, then to dos form, then back to unix form
11059       # but this time dos style (no spaces!) so that the unix form looks
11060       # like /cygdrive/c/PROGRA~1:/cygdr...
11061       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11062       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11063       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11064       ;;
11065     *)
11066       sys_lib_search_path_spec="$LIB"
11067       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11068         # It is most probably a Windows format PATH.
11069         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11070       else
11071         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11072       fi
11073       # FIXME: find the short name or the path components, as spaces are
11074       # common. (e.g. "Program Files" -> "PROGRA~1")
11075       ;;
11076     esac
11077
11078     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11079     postinstall_cmds='base_file=`basename \${file}`~
11080       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11081       dldir=$destdir/`dirname \$dlpath`~
11082       test -d \$dldir || mkdir -p \$dldir~
11083       $install_prog $dir/$dlname \$dldir/$dlname'
11084     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11085       dlpath=$dir/\$dldll~
11086        $RM \$dlpath'
11087     shlibpath_overrides_runpath=yes
11088     dynamic_linker='Win32 link.exe'
11089     ;;
11090
11091   *)
11092     # Assume MSVC wrapper
11093     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11094     dynamic_linker='Win32 ld.exe'
11095     ;;
11096   esac
11097   # FIXME: first we should search . and the directory the executable is in
11098   shlibpath_var=PATH
11099   ;;
11100
11101 darwin* | rhapsody*)
11102   dynamic_linker="$host_os dyld"
11103   version_type=darwin
11104   need_lib_prefix=no
11105   need_version=no
11106   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11107   soname_spec='${libname}${release}${major}$shared_ext'
11108   shlibpath_overrides_runpath=yes
11109   shlibpath_var=DYLD_LIBRARY_PATH
11110   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11111
11112   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11113   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11114   ;;
11115
11116 dgux*)
11117   version_type=linux # correct to gnu/linux during the next big refactor
11118   need_lib_prefix=no
11119   need_version=no
11120   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11121   soname_spec='${libname}${release}${shared_ext}$major'
11122   shlibpath_var=LD_LIBRARY_PATH
11123   ;;
11124
11125 freebsd* | dragonfly*)
11126   # DragonFly does not have aout.  When/if they implement a new
11127   # versioning mechanism, adjust this.
11128   if test -x /usr/bin/objformat; then
11129     objformat=`/usr/bin/objformat`
11130   else
11131     case $host_os in
11132     freebsd[23].*) objformat=aout ;;
11133     *) objformat=elf ;;
11134     esac
11135   fi
11136   version_type=freebsd-$objformat
11137   case $version_type in
11138     freebsd-elf*)
11139       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11140       need_version=no
11141       need_lib_prefix=no
11142       ;;
11143     freebsd-*)
11144       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11145       need_version=yes
11146       ;;
11147   esac
11148   shlibpath_var=LD_LIBRARY_PATH
11149   case $host_os in
11150   freebsd2.*)
11151     shlibpath_overrides_runpath=yes
11152     ;;
11153   freebsd3.[01]* | freebsdelf3.[01]*)
11154     shlibpath_overrides_runpath=yes
11155     hardcode_into_libs=yes
11156     ;;
11157   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11158   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11159     shlibpath_overrides_runpath=no
11160     hardcode_into_libs=yes
11161     ;;
11162   *) # from 4.6 on, and DragonFly
11163     shlibpath_overrides_runpath=yes
11164     hardcode_into_libs=yes
11165     ;;
11166   esac
11167   ;;
11168
11169 haiku*)
11170   version_type=linux # correct to gnu/linux during the next big refactor
11171   need_lib_prefix=no
11172   need_version=no
11173   dynamic_linker="$host_os runtime_loader"
11174   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11175   soname_spec='${libname}${release}${shared_ext}$major'
11176   shlibpath_var=LIBRARY_PATH
11177   shlibpath_overrides_runpath=yes
11178   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11179   hardcode_into_libs=yes
11180   ;;
11181
11182 hpux9* | hpux10* | hpux11*)
11183   # Give a soname corresponding to the major version so that dld.sl refuses to
11184   # link against other versions.
11185   version_type=sunos
11186   need_lib_prefix=no
11187   need_version=no
11188   case $host_cpu in
11189   ia64*)
11190     shrext_cmds='.so'
11191     hardcode_into_libs=yes
11192     dynamic_linker="$host_os dld.so"
11193     shlibpath_var=LD_LIBRARY_PATH
11194     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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     if test "X$HPUX_IA64_MODE" = X32; then
11198       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11199     else
11200       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11201     fi
11202     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11203     ;;
11204   hppa*64*)
11205     shrext_cmds='.sl'
11206     hardcode_into_libs=yes
11207     dynamic_linker="$host_os dld.sl"
11208     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11209     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11210     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11211     soname_spec='${libname}${release}${shared_ext}$major'
11212     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11213     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11214     ;;
11215   *)
11216     shrext_cmds='.sl'
11217     dynamic_linker="$host_os dld.sl"
11218     shlibpath_var=SHLIB_PATH
11219     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11220     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11221     soname_spec='${libname}${release}${shared_ext}$major'
11222     ;;
11223   esac
11224   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11225   postinstall_cmds='chmod 555 $lib'
11226   # or fails outright, so override atomically:
11227   install_override_mode=555
11228   ;;
11229
11230 interix[3-9]*)
11231   version_type=linux # correct to gnu/linux during the next big refactor
11232   need_lib_prefix=no
11233   need_version=no
11234   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11235   soname_spec='${libname}${release}${shared_ext}$major'
11236   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11237   shlibpath_var=LD_LIBRARY_PATH
11238   shlibpath_overrides_runpath=no
11239   hardcode_into_libs=yes
11240   ;;
11241
11242 irix5* | irix6* | nonstopux*)
11243   case $host_os in
11244     nonstopux*) version_type=nonstopux ;;
11245     *)
11246         if test "$lt_cv_prog_gnu_ld" = yes; then
11247                 version_type=linux # correct to gnu/linux during the next big refactor
11248         else
11249                 version_type=irix
11250         fi ;;
11251   esac
11252   need_lib_prefix=no
11253   need_version=no
11254   soname_spec='${libname}${release}${shared_ext}$major'
11255   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11256   case $host_os in
11257   irix5* | nonstopux*)
11258     libsuff= shlibsuff=
11259     ;;
11260   *)
11261     case $LD in # libtool.m4 will add one of these switches to LD
11262     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11263       libsuff= shlibsuff= libmagic=32-bit;;
11264     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11265       libsuff=32 shlibsuff=N32 libmagic=N32;;
11266     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11267       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11268     *) libsuff= shlibsuff= libmagic=never-match;;
11269     esac
11270     ;;
11271   esac
11272   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11273   shlibpath_overrides_runpath=no
11274   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11275   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11276   hardcode_into_libs=yes
11277   ;;
11278
11279 # No shared lib support for Linux oldld, aout, or coff.
11280 linux*oldld* | linux*aout* | linux*coff*)
11281   dynamic_linker=no
11282   ;;
11283
11284 # This must be glibc/ELF.
11285 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11286   version_type=linux # correct to gnu/linux during the next big refactor
11287   need_lib_prefix=no
11288   need_version=no
11289   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11290   soname_spec='${libname}${release}${shared_ext}$major'
11291   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11292   shlibpath_var=LD_LIBRARY_PATH
11293   shlibpath_overrides_runpath=no
11294
11295   # Some binutils ld are patched to set DT_RUNPATH
11296   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11297   $as_echo_n "(cached) " >&6
11298 else
11299   lt_cv_shlibpath_overrides_runpath=no
11300     save_LDFLAGS=$LDFLAGS
11301     save_libdir=$libdir
11302     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11303          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11304     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11305 /* end confdefs.h.  */
11306
11307 int
11308 main ()
11309 {
11310
11311   ;
11312   return 0;
11313 }
11314 _ACEOF
11315 if ac_fn_c_try_link "$LINENO"; then :
11316   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11317   lt_cv_shlibpath_overrides_runpath=yes
11318 fi
11319 fi
11320 rm -f core conftest.err conftest.$ac_objext \
11321     conftest$ac_exeext conftest.$ac_ext
11322     LDFLAGS=$save_LDFLAGS
11323     libdir=$save_libdir
11324
11325 fi
11326
11327   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11328
11329   # This implies no fast_install, which is unacceptable.
11330   # Some rework will be needed to allow for fast_install
11331   # before this can be enabled.
11332   hardcode_into_libs=yes
11333
11334   # Append ld.so.conf contents to the search path
11335   if test -f /etc/ld.so.conf; then
11336     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' ' '`
11337     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11338   fi
11339
11340   # We used to test for /lib/ld.so.1 and disable shared libraries on
11341   # powerpc, because MkLinux only supported shared libraries with the
11342   # GNU dynamic linker.  Since this was broken with cross compilers,
11343   # most powerpc-linux boxes support dynamic linking these days and
11344   # people can always --disable-shared, the test was removed, and we
11345   # assume the GNU/Linux dynamic linker is in use.
11346   dynamic_linker='GNU/Linux ld.so'
11347   ;;
11348
11349 netbsdelf*-gnu)
11350   version_type=linux
11351   need_lib_prefix=no
11352   need_version=no
11353   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11354   soname_spec='${libname}${release}${shared_ext}$major'
11355   shlibpath_var=LD_LIBRARY_PATH
11356   shlibpath_overrides_runpath=no
11357   hardcode_into_libs=yes
11358   dynamic_linker='NetBSD ld.elf_so'
11359   ;;
11360
11361 netbsd*)
11362   version_type=sunos
11363   need_lib_prefix=no
11364   need_version=no
11365   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11366     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11367     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11368     dynamic_linker='NetBSD (a.out) ld.so'
11369   else
11370     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11371     soname_spec='${libname}${release}${shared_ext}$major'
11372     dynamic_linker='NetBSD ld.elf_so'
11373   fi
11374   shlibpath_var=LD_LIBRARY_PATH
11375   shlibpath_overrides_runpath=yes
11376   hardcode_into_libs=yes
11377   ;;
11378
11379 newsos6)
11380   version_type=linux # correct to gnu/linux during the next big refactor
11381   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11382   shlibpath_var=LD_LIBRARY_PATH
11383   shlibpath_overrides_runpath=yes
11384   ;;
11385
11386 *nto* | *qnx*)
11387   version_type=qnx
11388   need_lib_prefix=no
11389   need_version=no
11390   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11391   soname_spec='${libname}${release}${shared_ext}$major'
11392   shlibpath_var=LD_LIBRARY_PATH
11393   shlibpath_overrides_runpath=no
11394   hardcode_into_libs=yes
11395   dynamic_linker='ldqnx.so'
11396   ;;
11397
11398 openbsd*)
11399   version_type=sunos
11400   sys_lib_dlsearch_path_spec="/usr/lib"
11401   need_lib_prefix=no
11402   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11403   case $host_os in
11404     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11405     *)                          need_version=no  ;;
11406   esac
11407   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11408   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11409   shlibpath_var=LD_LIBRARY_PATH
11410   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11411     case $host_os in
11412       openbsd2.[89] | openbsd2.[89].*)
11413         shlibpath_overrides_runpath=no
11414         ;;
11415       *)
11416         shlibpath_overrides_runpath=yes
11417         ;;
11418       esac
11419   else
11420     shlibpath_overrides_runpath=yes
11421   fi
11422   ;;
11423
11424 os2*)
11425   libname_spec='$name'
11426   shrext_cmds=".dll"
11427   need_lib_prefix=no
11428   library_names_spec='$libname${shared_ext} $libname.a'
11429   dynamic_linker='OS/2 ld.exe'
11430   shlibpath_var=LIBPATH
11431   ;;
11432
11433 osf3* | osf4* | osf5*)
11434   version_type=osf
11435   need_lib_prefix=no
11436   need_version=no
11437   soname_spec='${libname}${release}${shared_ext}$major'
11438   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11439   shlibpath_var=LD_LIBRARY_PATH
11440   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11441   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11442   ;;
11443
11444 rdos*)
11445   dynamic_linker=no
11446   ;;
11447
11448 solaris*)
11449   version_type=linux # correct to gnu/linux during the next big refactor
11450   need_lib_prefix=no
11451   need_version=no
11452   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11453   soname_spec='${libname}${release}${shared_ext}$major'
11454   shlibpath_var=LD_LIBRARY_PATH
11455   shlibpath_overrides_runpath=yes
11456   hardcode_into_libs=yes
11457   # ldd complains unless libraries are executable
11458   postinstall_cmds='chmod +x $lib'
11459   ;;
11460
11461 sunos4*)
11462   version_type=sunos
11463   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11464   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11465   shlibpath_var=LD_LIBRARY_PATH
11466   shlibpath_overrides_runpath=yes
11467   if test "$with_gnu_ld" = yes; then
11468     need_lib_prefix=no
11469   fi
11470   need_version=yes
11471   ;;
11472
11473 sysv4 | sysv4.3*)
11474   version_type=linux # correct to gnu/linux during the next big refactor
11475   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11476   soname_spec='${libname}${release}${shared_ext}$major'
11477   shlibpath_var=LD_LIBRARY_PATH
11478   case $host_vendor in
11479     sni)
11480       shlibpath_overrides_runpath=no
11481       need_lib_prefix=no
11482       runpath_var=LD_RUN_PATH
11483       ;;
11484     siemens)
11485       need_lib_prefix=no
11486       ;;
11487     motorola)
11488       need_lib_prefix=no
11489       need_version=no
11490       shlibpath_overrides_runpath=no
11491       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11492       ;;
11493   esac
11494   ;;
11495
11496 sysv4*MP*)
11497   if test -d /usr/nec ;then
11498     version_type=linux # correct to gnu/linux during the next big refactor
11499     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11500     soname_spec='$libname${shared_ext}.$major'
11501     shlibpath_var=LD_LIBRARY_PATH
11502   fi
11503   ;;
11504
11505 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11506   version_type=freebsd-elf
11507   need_lib_prefix=no
11508   need_version=no
11509   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11510   soname_spec='${libname}${release}${shared_ext}$major'
11511   shlibpath_var=LD_LIBRARY_PATH
11512   shlibpath_overrides_runpath=yes
11513   hardcode_into_libs=yes
11514   if test "$with_gnu_ld" = yes; then
11515     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11516   else
11517     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11518     case $host_os in
11519       sco3.2v5*)
11520         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11521         ;;
11522     esac
11523   fi
11524   sys_lib_dlsearch_path_spec='/usr/lib'
11525   ;;
11526
11527 tpf*)
11528   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11529   version_type=linux # correct to gnu/linux during the next big refactor
11530   need_lib_prefix=no
11531   need_version=no
11532   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11533   shlibpath_var=LD_LIBRARY_PATH
11534   shlibpath_overrides_runpath=no
11535   hardcode_into_libs=yes
11536   ;;
11537
11538 uts4*)
11539   version_type=linux # correct to gnu/linux during the next big refactor
11540   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11541   soname_spec='${libname}${release}${shared_ext}$major'
11542   shlibpath_var=LD_LIBRARY_PATH
11543   ;;
11544
11545 *)
11546   dynamic_linker=no
11547   ;;
11548 esac
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11550 $as_echo "$dynamic_linker" >&6; }
11551 test "$dynamic_linker" = no && can_build_shared=no
11552
11553 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11554 if test "$GCC" = yes; then
11555   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11556 fi
11557
11558 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11559   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11560 fi
11561 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11562   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11563 fi
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11657 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11658 hardcode_action=
11659 if test -n "$hardcode_libdir_flag_spec" ||
11660    test -n "$runpath_var" ||
11661    test "X$hardcode_automatic" = "Xyes" ; then
11662
11663   # We can hardcode non-existent directories.
11664   if test "$hardcode_direct" != no &&
11665      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11666      # have to relink, otherwise we might link with an installed library
11667      # when we should be linking with a yet-to-be-installed one
11668      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11669      test "$hardcode_minus_L" != no; then
11670     # Linking always hardcodes the temporary library directory.
11671     hardcode_action=relink
11672   else
11673     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11674     hardcode_action=immediate
11675   fi
11676 else
11677   # We cannot hardcode anything, or else we can only hardcode existing
11678   # directories.
11679   hardcode_action=unsupported
11680 fi
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11682 $as_echo "$hardcode_action" >&6; }
11683
11684 if test "$hardcode_action" = relink ||
11685    test "$inherit_rpath" = yes; then
11686   # Fast installation is not supported
11687   enable_fast_install=no
11688 elif test "$shlibpath_overrides_runpath" = yes ||
11689      test "$enable_shared" = no; then
11690   # Fast installation is not necessary
11691   enable_fast_install=needless
11692 fi
11693
11694
11695
11696
11697
11698
11699   if test "x$enable_dlopen" != xyes; then
11700   enable_dlopen=unknown
11701   enable_dlopen_self=unknown
11702   enable_dlopen_self_static=unknown
11703 else
11704   lt_cv_dlopen=no
11705   lt_cv_dlopen_libs=
11706
11707   case $host_os in
11708   beos*)
11709     lt_cv_dlopen="load_add_on"
11710     lt_cv_dlopen_libs=
11711     lt_cv_dlopen_self=yes
11712     ;;
11713
11714   mingw* | pw32* | cegcc*)
11715     lt_cv_dlopen="LoadLibrary"
11716     lt_cv_dlopen_libs=
11717     ;;
11718
11719   cygwin*)
11720     lt_cv_dlopen="dlopen"
11721     lt_cv_dlopen_libs=
11722     ;;
11723
11724   darwin*)
11725   # if libdl is installed we need to link against it
11726     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11727 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11728 if ${ac_cv_lib_dl_dlopen+:} false; then :
11729   $as_echo_n "(cached) " >&6
11730 else
11731   ac_check_lib_save_LIBS=$LIBS
11732 LIBS="-ldl  $LIBS"
11733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11734 /* end confdefs.h.  */
11735
11736 /* Override any GCC internal prototype to avoid an error.
11737    Use char because int might match the return type of a GCC
11738    builtin and then its argument prototype would still apply.  */
11739 #ifdef __cplusplus
11740 extern "C"
11741 #endif
11742 char dlopen ();
11743 int
11744 main ()
11745 {
11746 return dlopen ();
11747   ;
11748   return 0;
11749 }
11750 _ACEOF
11751 if ac_fn_c_try_link "$LINENO"; then :
11752   ac_cv_lib_dl_dlopen=yes
11753 else
11754   ac_cv_lib_dl_dlopen=no
11755 fi
11756 rm -f core conftest.err conftest.$ac_objext \
11757     conftest$ac_exeext conftest.$ac_ext
11758 LIBS=$ac_check_lib_save_LIBS
11759 fi
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11761 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11762 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11763   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11764 else
11765
11766     lt_cv_dlopen="dyld"
11767     lt_cv_dlopen_libs=
11768     lt_cv_dlopen_self=yes
11769
11770 fi
11771
11772     ;;
11773
11774   *)
11775     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11776 if test "x$ac_cv_func_shl_load" = xyes; then :
11777   lt_cv_dlopen="shl_load"
11778 else
11779   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11780 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11781 if ${ac_cv_lib_dld_shl_load+:} false; then :
11782   $as_echo_n "(cached) " >&6
11783 else
11784   ac_check_lib_save_LIBS=$LIBS
11785 LIBS="-ldld  $LIBS"
11786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11787 /* end confdefs.h.  */
11788
11789 /* Override any GCC internal prototype to avoid an error.
11790    Use char because int might match the return type of a GCC
11791    builtin and then its argument prototype would still apply.  */
11792 #ifdef __cplusplus
11793 extern "C"
11794 #endif
11795 char shl_load ();
11796 int
11797 main ()
11798 {
11799 return shl_load ();
11800   ;
11801   return 0;
11802 }
11803 _ACEOF
11804 if ac_fn_c_try_link "$LINENO"; then :
11805   ac_cv_lib_dld_shl_load=yes
11806 else
11807   ac_cv_lib_dld_shl_load=no
11808 fi
11809 rm -f core conftest.err conftest.$ac_objext \
11810     conftest$ac_exeext conftest.$ac_ext
11811 LIBS=$ac_check_lib_save_LIBS
11812 fi
11813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11814 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11815 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11816   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11817 else
11818   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11819 if test "x$ac_cv_func_dlopen" = xyes; then :
11820   lt_cv_dlopen="dlopen"
11821 else
11822   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11823 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11824 if ${ac_cv_lib_dl_dlopen+:} false; then :
11825   $as_echo_n "(cached) " >&6
11826 else
11827   ac_check_lib_save_LIBS=$LIBS
11828 LIBS="-ldl  $LIBS"
11829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11830 /* end confdefs.h.  */
11831
11832 /* Override any GCC internal prototype to avoid an error.
11833    Use char because int might match the return type of a GCC
11834    builtin and then its argument prototype would still apply.  */
11835 #ifdef __cplusplus
11836 extern "C"
11837 #endif
11838 char dlopen ();
11839 int
11840 main ()
11841 {
11842 return dlopen ();
11843   ;
11844   return 0;
11845 }
11846 _ACEOF
11847 if ac_fn_c_try_link "$LINENO"; then :
11848   ac_cv_lib_dl_dlopen=yes
11849 else
11850   ac_cv_lib_dl_dlopen=no
11851 fi
11852 rm -f core conftest.err conftest.$ac_objext \
11853     conftest$ac_exeext conftest.$ac_ext
11854 LIBS=$ac_check_lib_save_LIBS
11855 fi
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11857 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11858 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11859   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11860 else
11861   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11862 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11863 if ${ac_cv_lib_svld_dlopen+:} false; then :
11864   $as_echo_n "(cached) " >&6
11865 else
11866   ac_check_lib_save_LIBS=$LIBS
11867 LIBS="-lsvld  $LIBS"
11868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11869 /* end confdefs.h.  */
11870
11871 /* Override any GCC internal prototype to avoid an error.
11872    Use char because int might match the return type of a GCC
11873    builtin and then its argument prototype would still apply.  */
11874 #ifdef __cplusplus
11875 extern "C"
11876 #endif
11877 char dlopen ();
11878 int
11879 main ()
11880 {
11881 return dlopen ();
11882   ;
11883   return 0;
11884 }
11885 _ACEOF
11886 if ac_fn_c_try_link "$LINENO"; then :
11887   ac_cv_lib_svld_dlopen=yes
11888 else
11889   ac_cv_lib_svld_dlopen=no
11890 fi
11891 rm -f core conftest.err conftest.$ac_objext \
11892     conftest$ac_exeext conftest.$ac_ext
11893 LIBS=$ac_check_lib_save_LIBS
11894 fi
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11896 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11897 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11898   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11899 else
11900   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11901 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11902 if ${ac_cv_lib_dld_dld_link+:} false; then :
11903   $as_echo_n "(cached) " >&6
11904 else
11905   ac_check_lib_save_LIBS=$LIBS
11906 LIBS="-ldld  $LIBS"
11907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11908 /* end confdefs.h.  */
11909
11910 /* Override any GCC internal prototype to avoid an error.
11911    Use char because int might match the return type of a GCC
11912    builtin and then its argument prototype would still apply.  */
11913 #ifdef __cplusplus
11914 extern "C"
11915 #endif
11916 char dld_link ();
11917 int
11918 main ()
11919 {
11920 return dld_link ();
11921   ;
11922   return 0;
11923 }
11924 _ACEOF
11925 if ac_fn_c_try_link "$LINENO"; then :
11926   ac_cv_lib_dld_dld_link=yes
11927 else
11928   ac_cv_lib_dld_dld_link=no
11929 fi
11930 rm -f core conftest.err conftest.$ac_objext \
11931     conftest$ac_exeext conftest.$ac_ext
11932 LIBS=$ac_check_lib_save_LIBS
11933 fi
11934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11935 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11936 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11937   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11938 fi
11939
11940
11941 fi
11942
11943
11944 fi
11945
11946
11947 fi
11948
11949
11950 fi
11951
11952
11953 fi
11954
11955     ;;
11956   esac
11957
11958   if test "x$lt_cv_dlopen" != xno; then
11959     enable_dlopen=yes
11960   else
11961     enable_dlopen=no
11962   fi
11963
11964   case $lt_cv_dlopen in
11965   dlopen)
11966     save_CPPFLAGS="$CPPFLAGS"
11967     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11968
11969     save_LDFLAGS="$LDFLAGS"
11970     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11971
11972     save_LIBS="$LIBS"
11973     LIBS="$lt_cv_dlopen_libs $LIBS"
11974
11975     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11976 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11977 if ${lt_cv_dlopen_self+:} false; then :
11978   $as_echo_n "(cached) " >&6
11979 else
11980           if test "$cross_compiling" = yes; then :
11981   lt_cv_dlopen_self=cross
11982 else
11983   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11984   lt_status=$lt_dlunknown
11985   cat > conftest.$ac_ext <<_LT_EOF
11986 #line $LINENO "configure"
11987 #include "confdefs.h"
11988
11989 #if HAVE_DLFCN_H
11990 #include <dlfcn.h>
11991 #endif
11992
11993 #include <stdio.h>
11994
11995 #ifdef RTLD_GLOBAL
11996 #  define LT_DLGLOBAL           RTLD_GLOBAL
11997 #else
11998 #  ifdef DL_GLOBAL
11999 #    define LT_DLGLOBAL         DL_GLOBAL
12000 #  else
12001 #    define LT_DLGLOBAL         0
12002 #  endif
12003 #endif
12004
12005 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12006    find out it does not work in some platform. */
12007 #ifndef LT_DLLAZY_OR_NOW
12008 #  ifdef RTLD_LAZY
12009 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12010 #  else
12011 #    ifdef DL_LAZY
12012 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12013 #    else
12014 #      ifdef RTLD_NOW
12015 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12016 #      else
12017 #        ifdef DL_NOW
12018 #          define LT_DLLAZY_OR_NOW      DL_NOW
12019 #        else
12020 #          define LT_DLLAZY_OR_NOW      0
12021 #        endif
12022 #      endif
12023 #    endif
12024 #  endif
12025 #endif
12026
12027 /* When -fvisbility=hidden is used, assume the code has been annotated
12028    correspondingly for the symbols needed.  */
12029 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12030 int fnord () __attribute__((visibility("default")));
12031 #endif
12032
12033 int fnord () { return 42; }
12034 int main ()
12035 {
12036   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12037   int status = $lt_dlunknown;
12038
12039   if (self)
12040     {
12041       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12042       else
12043         {
12044           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12045           else puts (dlerror ());
12046         }
12047       /* dlclose (self); */
12048     }
12049   else
12050     puts (dlerror ());
12051
12052   return status;
12053 }
12054 _LT_EOF
12055   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12056   (eval $ac_link) 2>&5
12057   ac_status=$?
12058   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12059   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12060     (./conftest; exit; ) >&5 2>/dev/null
12061     lt_status=$?
12062     case x$lt_status in
12063       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12064       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12065       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12066     esac
12067   else :
12068     # compilation failed
12069     lt_cv_dlopen_self=no
12070   fi
12071 fi
12072 rm -fr conftest*
12073
12074
12075 fi
12076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12077 $as_echo "$lt_cv_dlopen_self" >&6; }
12078
12079     if test "x$lt_cv_dlopen_self" = xyes; then
12080       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12081       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12082 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12083 if ${lt_cv_dlopen_self_static+:} false; then :
12084   $as_echo_n "(cached) " >&6
12085 else
12086           if test "$cross_compiling" = yes; then :
12087   lt_cv_dlopen_self_static=cross
12088 else
12089   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12090   lt_status=$lt_dlunknown
12091   cat > conftest.$ac_ext <<_LT_EOF
12092 #line $LINENO "configure"
12093 #include "confdefs.h"
12094
12095 #if HAVE_DLFCN_H
12096 #include <dlfcn.h>
12097 #endif
12098
12099 #include <stdio.h>
12100
12101 #ifdef RTLD_GLOBAL
12102 #  define LT_DLGLOBAL           RTLD_GLOBAL
12103 #else
12104 #  ifdef DL_GLOBAL
12105 #    define LT_DLGLOBAL         DL_GLOBAL
12106 #  else
12107 #    define LT_DLGLOBAL         0
12108 #  endif
12109 #endif
12110
12111 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12112    find out it does not work in some platform. */
12113 #ifndef LT_DLLAZY_OR_NOW
12114 #  ifdef RTLD_LAZY
12115 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12116 #  else
12117 #    ifdef DL_LAZY
12118 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12119 #    else
12120 #      ifdef RTLD_NOW
12121 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12122 #      else
12123 #        ifdef DL_NOW
12124 #          define LT_DLLAZY_OR_NOW      DL_NOW
12125 #        else
12126 #          define LT_DLLAZY_OR_NOW      0
12127 #        endif
12128 #      endif
12129 #    endif
12130 #  endif
12131 #endif
12132
12133 /* When -fvisbility=hidden is used, assume the code has been annotated
12134    correspondingly for the symbols needed.  */
12135 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12136 int fnord () __attribute__((visibility("default")));
12137 #endif
12138
12139 int fnord () { return 42; }
12140 int main ()
12141 {
12142   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12143   int status = $lt_dlunknown;
12144
12145   if (self)
12146     {
12147       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12148       else
12149         {
12150           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12151           else puts (dlerror ());
12152         }
12153       /* dlclose (self); */
12154     }
12155   else
12156     puts (dlerror ());
12157
12158   return status;
12159 }
12160 _LT_EOF
12161   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12162   (eval $ac_link) 2>&5
12163   ac_status=$?
12164   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12165   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12166     (./conftest; exit; ) >&5 2>/dev/null
12167     lt_status=$?
12168     case x$lt_status in
12169       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12170       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12171       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12172     esac
12173   else :
12174     # compilation failed
12175     lt_cv_dlopen_self_static=no
12176   fi
12177 fi
12178 rm -fr conftest*
12179
12180
12181 fi
12182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12183 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12184     fi
12185
12186     CPPFLAGS="$save_CPPFLAGS"
12187     LDFLAGS="$save_LDFLAGS"
12188     LIBS="$save_LIBS"
12189     ;;
12190   esac
12191
12192   case $lt_cv_dlopen_self in
12193   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12194   *) enable_dlopen_self=unknown ;;
12195   esac
12196
12197   case $lt_cv_dlopen_self_static in
12198   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12199   *) enable_dlopen_self_static=unknown ;;
12200   esac
12201 fi
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215
12216
12217
12218
12219 striplib=
12220 old_striplib=
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12222 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12223 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12224   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12225   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12227 $as_echo "yes" >&6; }
12228 else
12229 # FIXME - insert some real tests, host_os isn't really good enough
12230   case $host_os in
12231   darwin*)
12232     if test -n "$STRIP" ; then
12233       striplib="$STRIP -x"
12234       old_striplib="$STRIP -S"
12235       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12236 $as_echo "yes" >&6; }
12237     else
12238       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12239 $as_echo "no" >&6; }
12240     fi
12241     ;;
12242   *)
12243     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12244 $as_echo "no" >&6; }
12245     ;;
12246   esac
12247 fi
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258
12259
12260   # Report which library types will actually be built
12261   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12262 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12264 $as_echo "$can_build_shared" >&6; }
12265
12266   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12267 $as_echo_n "checking whether to build shared libraries... " >&6; }
12268   test "$can_build_shared" = "no" && enable_shared=no
12269
12270   # On AIX, shared libraries and static libraries use the same namespace, and
12271   # are all built from PIC.
12272   case $host_os in
12273   aix3*)
12274     test "$enable_shared" = yes && enable_static=no
12275     if test -n "$RANLIB"; then
12276       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12277       postinstall_cmds='$RANLIB $lib'
12278     fi
12279     ;;
12280
12281   aix[4-9]*)
12282     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12283       test "$enable_shared" = yes && enable_static=no
12284     fi
12285     ;;
12286   esac
12287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12288 $as_echo "$enable_shared" >&6; }
12289
12290   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12291 $as_echo_n "checking whether to build static libraries... " >&6; }
12292   # Make sure either enable_shared or enable_static is yes.
12293   test "$enable_shared" = yes || enable_static=yes
12294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12295 $as_echo "$enable_static" >&6; }
12296
12297
12298
12299
12300 fi
12301 ac_ext=c
12302 ac_cpp='$CPP $CPPFLAGS'
12303 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12304 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12305 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12306
12307 CC="$lt_save_CC"
12308
12309
12310
12311
12312
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323         ac_config_commands="$ac_config_commands libtool"
12324
12325
12326
12327
12328 # Only expand once:
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12340         if test -n "$ac_tool_prefix"; then
12341   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12342 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12344 $as_echo_n "checking for $ac_word... " >&6; }
12345 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12346   $as_echo_n "(cached) " >&6
12347 else
12348   case $PKG_CONFIG in
12349   [\\/]* | ?:[\\/]*)
12350   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12351   ;;
12352   *)
12353   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12354 for as_dir in $PATH
12355 do
12356   IFS=$as_save_IFS
12357   test -z "$as_dir" && as_dir=.
12358     for ac_exec_ext in '' $ac_executable_extensions; do
12359   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12360     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12361     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12362     break 2
12363   fi
12364 done
12365   done
12366 IFS=$as_save_IFS
12367
12368   ;;
12369 esac
12370 fi
12371 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12372 if test -n "$PKG_CONFIG"; then
12373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12374 $as_echo "$PKG_CONFIG" >&6; }
12375 else
12376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12377 $as_echo "no" >&6; }
12378 fi
12379
12380
12381 fi
12382 if test -z "$ac_cv_path_PKG_CONFIG"; then
12383   ac_pt_PKG_CONFIG=$PKG_CONFIG
12384   # Extract the first word of "pkg-config", so it can be a program name with args.
12385 set dummy pkg-config; ac_word=$2
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12387 $as_echo_n "checking for $ac_word... " >&6; }
12388 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12389   $as_echo_n "(cached) " >&6
12390 else
12391   case $ac_pt_PKG_CONFIG in
12392   [\\/]* | ?:[\\/]*)
12393   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12394   ;;
12395   *)
12396   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12397 for as_dir in $PATH
12398 do
12399   IFS=$as_save_IFS
12400   test -z "$as_dir" && as_dir=.
12401     for ac_exec_ext in '' $ac_executable_extensions; do
12402   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12403     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12404     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12405     break 2
12406   fi
12407 done
12408   done
12409 IFS=$as_save_IFS
12410
12411   ;;
12412 esac
12413 fi
12414 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12415 if test -n "$ac_pt_PKG_CONFIG"; then
12416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12417 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12418 else
12419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12420 $as_echo "no" >&6; }
12421 fi
12422
12423   if test "x$ac_pt_PKG_CONFIG" = x; then
12424     PKG_CONFIG=""
12425   else
12426     case $cross_compiling:$ac_tool_warned in
12427 yes:)
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12429 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12430 ac_tool_warned=yes ;;
12431 esac
12432     PKG_CONFIG=$ac_pt_PKG_CONFIG
12433   fi
12434 else
12435   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12436 fi
12437
12438 fi
12439 if test -n "$PKG_CONFIG"; then
12440         _pkg_min_version=0.9.0
12441         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12442 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12443         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12444                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12445 $as_echo "yes" >&6; }
12446         else
12447                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12448 $as_echo "no" >&6; }
12449                 PKG_CONFIG=""
12450         fi
12451 fi
12452
12453 pkg_failed=no
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGSSDP" >&5
12455 $as_echo_n "checking for LIBGSSDP... " >&6; }
12456
12457 if test -n "$LIBGSSDP_CFLAGS"; then
12458     pkg_cv_LIBGSSDP_CFLAGS="$LIBGSSDP_CFLAGS"
12459  elif test -n "$PKG_CONFIG"; then
12460     if test -n "$PKG_CONFIG" && \
12461     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.32 \\
12462                             gobject-2.0 >= 2.32 \\
12463                             gio-2.0 >= 2.32 \\
12464                             libsoup-2.4 >= 2.26.1\""; } >&5
12465   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.32 \
12466                             gobject-2.0 >= 2.32 \
12467                             gio-2.0 >= 2.32 \
12468                             libsoup-2.4 >= 2.26.1") 2>&5
12469   ac_status=$?
12470   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12471   test $ac_status = 0; }; then
12472   pkg_cv_LIBGSSDP_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.32 \
12473                             gobject-2.0 >= 2.32 \
12474                             gio-2.0 >= 2.32 \
12475                             libsoup-2.4 >= 2.26.1" 2>/dev/null`
12476                       test "x$?" != "x0" && pkg_failed=yes
12477 else
12478   pkg_failed=yes
12479 fi
12480  else
12481     pkg_failed=untried
12482 fi
12483 if test -n "$LIBGSSDP_LIBS"; then
12484     pkg_cv_LIBGSSDP_LIBS="$LIBGSSDP_LIBS"
12485  elif test -n "$PKG_CONFIG"; then
12486     if test -n "$PKG_CONFIG" && \
12487     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.32 \\
12488                             gobject-2.0 >= 2.32 \\
12489                             gio-2.0 >= 2.32 \\
12490                             libsoup-2.4 >= 2.26.1\""; } >&5
12491   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.32 \
12492                             gobject-2.0 >= 2.32 \
12493                             gio-2.0 >= 2.32 \
12494                             libsoup-2.4 >= 2.26.1") 2>&5
12495   ac_status=$?
12496   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12497   test $ac_status = 0; }; then
12498   pkg_cv_LIBGSSDP_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.32 \
12499                             gobject-2.0 >= 2.32 \
12500                             gio-2.0 >= 2.32 \
12501                             libsoup-2.4 >= 2.26.1" 2>/dev/null`
12502                       test "x$?" != "x0" && pkg_failed=yes
12503 else
12504   pkg_failed=yes
12505 fi
12506  else
12507     pkg_failed=untried
12508 fi
12509
12510
12511
12512 if test $pkg_failed = yes; then
12513         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12514 $as_echo "no" >&6; }
12515
12516 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12517         _pkg_short_errors_supported=yes
12518 else
12519         _pkg_short_errors_supported=no
12520 fi
12521         if test $_pkg_short_errors_supported = yes; then
12522                 LIBGSSDP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.32 \
12523                             gobject-2.0 >= 2.32 \
12524                             gio-2.0 >= 2.32 \
12525                             libsoup-2.4 >= 2.26.1" 2>&1`
12526         else
12527                 LIBGSSDP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.32 \
12528                             gobject-2.0 >= 2.32 \
12529                             gio-2.0 >= 2.32 \
12530                             libsoup-2.4 >= 2.26.1" 2>&1`
12531         fi
12532         # Put the nasty error message in config.log where it belongs
12533         echo "$LIBGSSDP_PKG_ERRORS" >&5
12534
12535         as_fn_error $? "Package requirements (glib-2.0 >= 2.32 \
12536                             gobject-2.0 >= 2.32 \
12537                             gio-2.0 >= 2.32 \
12538                             libsoup-2.4 >= 2.26.1) were not met:
12539
12540 $LIBGSSDP_PKG_ERRORS
12541
12542 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12543 installed software in a non-standard prefix.
12544
12545 Alternatively, you may set the environment variables LIBGSSDP_CFLAGS
12546 and LIBGSSDP_LIBS to avoid the need to call pkg-config.
12547 See the pkg-config man page for more details." "$LINENO" 5
12548 elif test $pkg_failed = untried; then
12549         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12550 $as_echo "no" >&6; }
12551         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12552 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12553 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
12554 is in your PATH or set the PKG_CONFIG environment variable to the full
12555 path to pkg-config.
12556
12557 Alternatively, you may set the environment variables LIBGSSDP_CFLAGS
12558 and LIBGSSDP_LIBS to avoid the need to call pkg-config.
12559 See the pkg-config man page for more details.
12560
12561 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12562 See \`config.log' for more details" "$LINENO" 5; }
12563 else
12564         LIBGSSDP_CFLAGS=$pkg_cv_LIBGSSDP_CFLAGS
12565         LIBGSSDP_LIBS=$pkg_cv_LIBGSSDP_LIBS
12566         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12567 $as_echo "yes" >&6; }
12568
12569 fi
12570
12571 LIBGTK_REQUIRED=3.0
12572
12573
12574 # Check whether --with-gtk was given.
12575 if test "${with_gtk+set}" = set; then :
12576   withval=$with_gtk; try_gtk=$withval
12577 else
12578   try_gtk=yes
12579 fi
12580
12581
12582 HAVE_LIBGTK=no
12583 if test x$try_gtk = xyes ; then
12584
12585 pkg_failed=no
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGTK" >&5
12587 $as_echo_n "checking for LIBGTK... " >&6; }
12588
12589 if test -n "$LIBGTK_CFLAGS"; then
12590     pkg_cv_LIBGTK_CFLAGS="$LIBGTK_CFLAGS"
12591  elif test -n "$PKG_CONFIG"; then
12592     if test -n "$PKG_CONFIG" && \
12593     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0 >= \$LIBGTK_REQUIRED \""; } >&5
12594   ($PKG_CONFIG --exists --print-errors "gtk+-3.0 >= $LIBGTK_REQUIRED ") 2>&5
12595   ac_status=$?
12596   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12597   test $ac_status = 0; }; then
12598   pkg_cv_LIBGTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-3.0 >= $LIBGTK_REQUIRED " 2>/dev/null`
12599                       test "x$?" != "x0" && pkg_failed=yes
12600 else
12601   pkg_failed=yes
12602 fi
12603  else
12604     pkg_failed=untried
12605 fi
12606 if test -n "$LIBGTK_LIBS"; then
12607     pkg_cv_LIBGTK_LIBS="$LIBGTK_LIBS"
12608  elif test -n "$PKG_CONFIG"; then
12609     if test -n "$PKG_CONFIG" && \
12610     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-3.0 >= \$LIBGTK_REQUIRED \""; } >&5
12611   ($PKG_CONFIG --exists --print-errors "gtk+-3.0 >= $LIBGTK_REQUIRED ") 2>&5
12612   ac_status=$?
12613   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12614   test $ac_status = 0; }; then
12615   pkg_cv_LIBGTK_LIBS=`$PKG_CONFIG --libs "gtk+-3.0 >= $LIBGTK_REQUIRED " 2>/dev/null`
12616                       test "x$?" != "x0" && pkg_failed=yes
12617 else
12618   pkg_failed=yes
12619 fi
12620  else
12621     pkg_failed=untried
12622 fi
12623
12624
12625
12626 if test $pkg_failed = yes; then
12627         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12628 $as_echo "no" >&6; }
12629
12630 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12631         _pkg_short_errors_supported=yes
12632 else
12633         _pkg_short_errors_supported=no
12634 fi
12635         if test $_pkg_short_errors_supported = yes; then
12636                 LIBGTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-3.0 >= $LIBGTK_REQUIRED " 2>&1`
12637         else
12638                 LIBGTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-3.0 >= $LIBGTK_REQUIRED " 2>&1`
12639         fi
12640         # Put the nasty error message in config.log where it belongs
12641         echo "$LIBGTK_PKG_ERRORS" >&5
12642
12643
12644         HAVE_LIBGTK=no
12645         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gtk+ $LIBGTK_REQUIRED or greater not found, some tools will not build." >&5
12646 $as_echo "$as_me: WARNING: gtk+ $LIBGTK_REQUIRED or greater not found, some tools will not build." >&2;}
12647
12648 elif test $pkg_failed = untried; then
12649         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12650 $as_echo "no" >&6; }
12651
12652         HAVE_LIBGTK=no
12653         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gtk+ $LIBGTK_REQUIRED or greater not found, some tools will not build." >&5
12654 $as_echo "$as_me: WARNING: gtk+ $LIBGTK_REQUIRED or greater not found, some tools will not build." >&2;}
12655
12656 else
12657         LIBGTK_CFLAGS=$pkg_cv_LIBGTK_CFLAGS
12658         LIBGTK_LIBS=$pkg_cv_LIBGTK_LIBS
12659         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12660 $as_echo "yes" >&6; }
12661
12662         HAVE_LIBGTK=yes
12663
12664
12665
12666 fi
12667 else
12668     { $as_echo "$as_me:${as_lineno-$LINENO}: gtk+ usage disabled, some tools may not build." >&5
12669 $as_echo "$as_me: gtk+ usage disabled, some tools may not build." >&6;}
12670 fi
12671
12672 if test x$HAVE_LIBGTK = xno; then
12673   USE_LIBGTK=no
12674 else
12675   USE_LIBGTK=yes
12676
12677 $as_echo "#define HAVE_LIBGTK /**/" >>confdefs.h
12678
12679 fi
12680
12681
12682  if test x$USE_LIBGTK = xyes; then
12683   USE_LIBGTK_TRUE=
12684   USE_LIBGTK_FALSE='#'
12685 else
12686   USE_LIBGTK_TRUE='#'
12687   USE_LIBGTK_FALSE=
12688 fi
12689
12690
12691 # glib-genmarshal
12692 GLIB_GENMARSHAL=`pkg-config --variable=glib_genmarshal glib-2.0`
12693
12694
12695 # Debugging
12696 # Check whether --enable-debug was given.
12697 if test "${enable_debug+set}" = set; then :
12698   enableval=$enable_debug;
12699 else
12700   enable_debug=no
12701 fi
12702
12703 if test "x$enable_debug" = "xyes"; then
12704         CFLAGS="$CFLAGS -g -Wall"
12705 fi
12706
12707 # Check whether --enable-strict-c was given.
12708 if test "${enable_strict_c+set}" = set; then :
12709   enableval=$enable_strict_c;
12710 else
12711   enable_strict_c=no
12712 fi
12713
12714 if test "x$enable_strict_c" = "xyes"; then :
12715   CFLAGS="$CFLAGS -Werror"
12716 fi
12717
12718
12719
12720
12721                 # Check whether --enable-introspection was given.
12722 if test "${enable_introspection+set}" = set; then :
12723   enableval=$enable_introspection;
12724 else
12725   enable_introspection=auto
12726 fi
12727
12728
12729     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-introspection" >&5
12730 $as_echo_n "checking for gobject-introspection... " >&6; }
12731
12732         case $enable_introspection in #(
12733   no) :
12734             found_introspection="no (disabled, use --enable-introspection to enable)"
12735      ;; #(
12736       yes) :
12737             if test -n "$PKG_CONFIG" && \
12738     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0\""; } >&5
12739   ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0") 2>&5
12740   ac_status=$?
12741   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12742   test $ac_status = 0; }; then
12743   :
12744 else
12745   as_fn_error $? "gobject-introspection-1.0 is not installed" "$LINENO" 5
12746 fi
12747         if test -n "$PKG_CONFIG" && \
12748     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 0.6.7\""; } >&5
12749   ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 0.6.7") 2>&5
12750   ac_status=$?
12751   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12752   test $ac_status = 0; }; then
12753   found_introspection=yes
12754 else
12755   as_fn_error $? "You need to have gobject-introspection >= 0.6.7 installed to build gssdp" "$LINENO" 5
12756 fi
12757      ;; #(
12758       auto) :
12759             if test -n "$PKG_CONFIG" && \
12760     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 0.6.7\""; } >&5
12761   ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 0.6.7") 2>&5
12762   ac_status=$?
12763   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12764   test $ac_status = 0; }; then
12765   found_introspection=yes
12766 else
12767   found_introspection=no
12768 fi
12769      ;; #(
12770   *) :
12771                 as_fn_error $? "invalid argument passed to --enable-introspection, should be one of [no/auto/yes]" "$LINENO" 5
12772      ;;
12773 esac
12774     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_introspection" >&5
12775 $as_echo "$found_introspection" >&6; }
12776
12777     INTROSPECTION_SCANNER=
12778     INTROSPECTION_COMPILER=
12779     INTROSPECTION_GENERATE=
12780     INTROSPECTION_GIRDIR=
12781     INTROSPECTION_TYPELIBDIR=
12782     if test "x$found_introspection" = "xyes"; then
12783        INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
12784        INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
12785        INTROSPECTION_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0`
12786        INTROSPECTION_GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0`
12787        INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)"
12788        INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0`
12789        INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0`
12790        INTROSPECTION_MAKEFILE=`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection
12791     fi
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801      if test "x$found_introspection" = "xyes"; then
12802   HAVE_INTROSPECTION_TRUE=
12803   HAVE_INTROSPECTION_FALSE='#'
12804 else
12805   HAVE_INTROSPECTION_TRUE='#'
12806   HAVE_INTROSPECTION_FALSE=
12807 fi
12808
12809
12810
12811
12812 # vapigen
12813 have_vapigen=no
12814 if test "x$found_introspection" = "xyes"; then :
12815
12816               { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether G-I is 1.36 or newer" >&5
12817 $as_echo_n "checking whether G-I is 1.36 or newer... " >&6; }
12818        VAPIGEN_MIN_VERSION=0.14
12819        if pkg-config --atleast-version=1.36.0 gobject-introspection-1.0; then :
12820
12821               { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12822 $as_echo "yes" >&6; }
12823               VAPIGEN_MIN_VERSION=0.20
12824
12825 else
12826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12827 $as_echo "no" >&6; }
12828
12829 fi
12830        # Extract the first word of "vapigen", so it can be a program name with args.
12831 set dummy vapigen; ac_word=$2
12832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12833 $as_echo_n "checking for $ac_word... " >&6; }
12834 if ${ac_cv_path_VAPIGEN+:} false; then :
12835   $as_echo_n "(cached) " >&6
12836 else
12837   case $VAPIGEN in
12838   [\\/]* | ?:[\\/]*)
12839   ac_cv_path_VAPIGEN="$VAPIGEN" # Let the user override the test with a path.
12840   ;;
12841   *)
12842   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12843 for as_dir in $PATH
12844 do
12845   IFS=$as_save_IFS
12846   test -z "$as_dir" && as_dir=.
12847     for ac_exec_ext in '' $ac_executable_extensions; do
12848   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12849     ac_cv_path_VAPIGEN="$as_dir/$ac_word$ac_exec_ext"
12850     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12851     break 2
12852   fi
12853 done
12854   done
12855 IFS=$as_save_IFS
12856
12857   ;;
12858 esac
12859 fi
12860 VAPIGEN=$ac_cv_path_VAPIGEN
12861 if test -n "$VAPIGEN"; then
12862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VAPIGEN" >&5
12863 $as_echo "$VAPIGEN" >&6; }
12864 else
12865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12866 $as_echo "no" >&6; }
12867 fi
12868
12869
12870   if test -z "$VAPIGEN"; then :
12871   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No Vala API Generator found. You will not be able to generate .vapi files." >&5
12872 $as_echo "$as_me: WARNING: No Vala API Generator found. You will not be able to generate .vapi files." >&2;}
12873 else
12874   if test -n "$VAPIGEN_MIN_VERSION"; then :
12875   { $as_echo "$as_me:${as_lineno-$LINENO}: checking $VAPIGEN is at least version $VAPIGEN_MIN_VERSION" >&5
12876 $as_echo_n "checking $VAPIGEN is at least version $VAPIGEN_MIN_VERSION... " >&6; }
12877          am__vapigen_version=`$VAPIGEN --version | sed 's/Vala API Generator  *//'`
12878          as_arg_v1=$VAPIGEN_MIN_VERSION
12879 as_arg_v2="$am__vapigen_version"
12880 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
12881 case $? in #(
12882   1) :
12883     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12884 $as_echo "yes" >&6; } ;; #(
12885   0) :
12886     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12887 $as_echo "yes" >&6; } ;; #(
12888   2) :
12889     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12890 $as_echo "no" >&6; }
12891             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Vala API Generator $VAPIGEN_MIN_VERSION not found." >&5
12892 $as_echo "$as_me: WARNING: Vala API Generator $VAPIGEN_MIN_VERSION not found." >&2;}
12893             VAPIGEN=""
12894             ;; #(
12895   *) :
12896      ;;
12897 esac
12898 fi
12899 fi
12900
12901
12902
12903 fi
12904 if test "x$VAPIGEN" != "x"; then :
12905   have_vapigen=yes
12906 fi
12907  if test "x$VAPIGEN" != "x"; then
12908   HAVE_VAPIGEN_TRUE=
12909   HAVE_VAPIGEN_FALSE='#'
12910 else
12911   HAVE_VAPIGEN_TRUE='#'
12912   HAVE_VAPIGEN_FALSE=
12913 fi
12914
12915
12916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Win32" >&5
12917 $as_echo_n "checking for Win32... " >&6; }
12918 case "$host" in
12919     *-*-mingw*)
12920         os_win32=yes
12921         ;;
12922     *)
12923         os_win32=no
12924         ;;
12925 esac
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $os_win32" >&5
12927 $as_echo "$os_win32" >&6; }
12928  if test $os_win32 = yes; then
12929   OS_WIN32_TRUE=
12930   OS_WIN32_FALSE='#'
12931 else
12932   OS_WIN32_TRUE='#'
12933   OS_WIN32_FALSE=
12934 fi
12935
12936
12937
12938
12939
12940     # Extract the first word of "gtkdoc-check", so it can be a program name with args.
12941 set dummy gtkdoc-check; ac_word=$2
12942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12943 $as_echo_n "checking for $ac_word... " >&6; }
12944 if ${ac_cv_path_GTKDOC_CHECK+:} false; then :
12945   $as_echo_n "(cached) " >&6
12946 else
12947   case $GTKDOC_CHECK in
12948   [\\/]* | ?:[\\/]*)
12949   ac_cv_path_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test with a path.
12950   ;;
12951   *)
12952   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12953 for as_dir in $PATH
12954 do
12955   IFS=$as_save_IFS
12956   test -z "$as_dir" && as_dir=.
12957     for ac_exec_ext in '' $ac_executable_extensions; do
12958   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12959     ac_cv_path_GTKDOC_CHECK="$as_dir/$ac_word$ac_exec_ext"
12960     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12961     break 2
12962   fi
12963 done
12964   done
12965 IFS=$as_save_IFS
12966
12967   ;;
12968 esac
12969 fi
12970 GTKDOC_CHECK=$ac_cv_path_GTKDOC_CHECK
12971 if test -n "$GTKDOC_CHECK"; then
12972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
12973 $as_echo "$GTKDOC_CHECK" >&6; }
12974 else
12975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12976 $as_echo "no" >&6; }
12977 fi
12978
12979
12980   for ac_prog in gtkdoc-rebase
12981 do
12982   # Extract the first word of "$ac_prog", so it can be a program name with args.
12983 set dummy $ac_prog; ac_word=$2
12984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12985 $as_echo_n "checking for $ac_word... " >&6; }
12986 if ${ac_cv_path_GTKDOC_REBASE+:} false; then :
12987   $as_echo_n "(cached) " >&6
12988 else
12989   case $GTKDOC_REBASE in
12990   [\\/]* | ?:[\\/]*)
12991   ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path.
12992   ;;
12993   *)
12994   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12995 for as_dir in $PATH
12996 do
12997   IFS=$as_save_IFS
12998   test -z "$as_dir" && as_dir=.
12999     for ac_exec_ext in '' $ac_executable_extensions; do
13000   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13001     ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext"
13002     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13003     break 2
13004   fi
13005 done
13006   done
13007 IFS=$as_save_IFS
13008
13009   ;;
13010 esac
13011 fi
13012 GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE
13013 if test -n "$GTKDOC_REBASE"; then
13014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5
13015 $as_echo "$GTKDOC_REBASE" >&6; }
13016 else
13017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13018 $as_echo "no" >&6; }
13019 fi
13020
13021
13022   test -n "$GTKDOC_REBASE" && break
13023 done
13024 test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true"
13025
13026   # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args.
13027 set dummy gtkdoc-mkpdf; ac_word=$2
13028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13029 $as_echo_n "checking for $ac_word... " >&6; }
13030 if ${ac_cv_path_GTKDOC_MKPDF+:} false; then :
13031   $as_echo_n "(cached) " >&6
13032 else
13033   case $GTKDOC_MKPDF in
13034   [\\/]* | ?:[\\/]*)
13035   ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path.
13036   ;;
13037   *)
13038   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13039 for as_dir in $PATH
13040 do
13041   IFS=$as_save_IFS
13042   test -z "$as_dir" && as_dir=.
13043     for ac_exec_ext in '' $ac_executable_extensions; do
13044   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13045     ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext"
13046     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13047     break 2
13048   fi
13049 done
13050   done
13051 IFS=$as_save_IFS
13052
13053   ;;
13054 esac
13055 fi
13056 GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF
13057 if test -n "$GTKDOC_MKPDF"; then
13058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5
13059 $as_echo "$GTKDOC_MKPDF" >&6; }
13060 else
13061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13062 $as_echo "no" >&6; }
13063 fi
13064
13065
13066
13067
13068 # Check whether --with-html-dir was given.
13069 if test "${with_html_dir+set}" = set; then :
13070   withval=$with_html_dir;
13071 else
13072   with_html_dir='${datadir}/gtk-doc/html'
13073 fi
13074
13075   HTML_DIR="$with_html_dir"
13076
13077
13078     # Check whether --enable-gtk-doc was given.
13079 if test "${enable_gtk_doc+set}" = set; then :
13080   enableval=$enable_gtk_doc;
13081 else
13082   enable_gtk_doc=no
13083 fi
13084
13085
13086   if test x$enable_gtk_doc = xyes; then
13087     if test -n "$PKG_CONFIG" && \
13088     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-doc >= 1.0\""; } >&5
13089   ($PKG_CONFIG --exists --print-errors "gtk-doc >= 1.0") 2>&5
13090   ac_status=$?
13091   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13092   test $ac_status = 0; }; then
13093   :
13094 else
13095   as_fn_error $? "You need to have gtk-doc >= 1.0 installed to build $PACKAGE_NAME" "$LINENO" 5
13096 fi
13097         if test "x$PACKAGE_NAME" != "xglib"; then
13098
13099 pkg_failed=no
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTKDOC_DEPS" >&5
13101 $as_echo_n "checking for GTKDOC_DEPS... " >&6; }
13102
13103 if test -n "$GTKDOC_DEPS_CFLAGS"; then
13104     pkg_cv_GTKDOC_DEPS_CFLAGS="$GTKDOC_DEPS_CFLAGS"
13105  elif test -n "$PKG_CONFIG"; then
13106     if test -n "$PKG_CONFIG" && \
13107     { { $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
13108   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0") 2>&5
13109   ac_status=$?
13110   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13111   test $ac_status = 0; }; then
13112   pkg_cv_GTKDOC_DEPS_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>/dev/null`
13113                       test "x$?" != "x0" && pkg_failed=yes
13114 else
13115   pkg_failed=yes
13116 fi
13117  else
13118     pkg_failed=untried
13119 fi
13120 if test -n "$GTKDOC_DEPS_LIBS"; then
13121     pkg_cv_GTKDOC_DEPS_LIBS="$GTKDOC_DEPS_LIBS"
13122  elif test -n "$PKG_CONFIG"; then
13123     if test -n "$PKG_CONFIG" && \
13124     { { $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
13125   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0") 2>&5
13126   ac_status=$?
13127   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13128   test $ac_status = 0; }; then
13129   pkg_cv_GTKDOC_DEPS_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>/dev/null`
13130                       test "x$?" != "x0" && pkg_failed=yes
13131 else
13132   pkg_failed=yes
13133 fi
13134  else
13135     pkg_failed=untried
13136 fi
13137
13138
13139
13140 if test $pkg_failed = yes; then
13141         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13142 $as_echo "no" >&6; }
13143
13144 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13145         _pkg_short_errors_supported=yes
13146 else
13147         _pkg_short_errors_supported=no
13148 fi
13149         if test $_pkg_short_errors_supported = yes; then
13150                 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`
13151         else
13152                 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>&1`
13153         fi
13154         # Put the nasty error message in config.log where it belongs
13155         echo "$GTKDOC_DEPS_PKG_ERRORS" >&5
13156
13157         as_fn_error $? "Package requirements (glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0) were not met:
13158
13159 $GTKDOC_DEPS_PKG_ERRORS
13160
13161 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13162 installed software in a non-standard prefix.
13163
13164 Alternatively, you may set the environment variables GTKDOC_DEPS_CFLAGS
13165 and GTKDOC_DEPS_LIBS to avoid the need to call pkg-config.
13166 See the pkg-config man page for more details." "$LINENO" 5
13167 elif test $pkg_failed = untried; then
13168         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13169 $as_echo "no" >&6; }
13170         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13171 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13172 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
13173 is in your PATH or set the PKG_CONFIG environment variable to the full
13174 path to pkg-config.
13175
13176 Alternatively, you may set the environment variables GTKDOC_DEPS_CFLAGS
13177 and GTKDOC_DEPS_LIBS to avoid the need to call pkg-config.
13178 See the pkg-config man page for more details.
13179
13180 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13181 See \`config.log' for more details" "$LINENO" 5; }
13182 else
13183         GTKDOC_DEPS_CFLAGS=$pkg_cv_GTKDOC_DEPS_CFLAGS
13184         GTKDOC_DEPS_LIBS=$pkg_cv_GTKDOC_DEPS_LIBS
13185         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13186 $as_echo "yes" >&6; }
13187
13188 fi
13189     fi
13190   fi
13191
13192   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
13193 $as_echo_n "checking whether to build gtk-doc documentation... " >&6; }
13194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
13195 $as_echo "$enable_gtk_doc" >&6; }
13196
13197     # Check whether --enable-gtk-doc-html was given.
13198 if test "${enable_gtk_doc_html+set}" = set; then :
13199   enableval=$enable_gtk_doc_html;
13200 else
13201   enable_gtk_doc_html=yes
13202 fi
13203
13204     # Check whether --enable-gtk-doc-pdf was given.
13205 if test "${enable_gtk_doc_pdf+set}" = set; then :
13206   enableval=$enable_gtk_doc_pdf;
13207 else
13208   enable_gtk_doc_pdf=no
13209 fi
13210
13211
13212   if test -z "$GTKDOC_MKPDF"; then
13213     enable_gtk_doc_pdf=no
13214   fi
13215
13216
13217    if test x$enable_gtk_doc = xyes; then
13218   ENABLE_GTK_DOC_TRUE=
13219   ENABLE_GTK_DOC_FALSE='#'
13220 else
13221   ENABLE_GTK_DOC_TRUE='#'
13222   ENABLE_GTK_DOC_FALSE=
13223 fi
13224
13225    if test x$enable_gtk_doc_html = xyes; then
13226   GTK_DOC_BUILD_HTML_TRUE=
13227   GTK_DOC_BUILD_HTML_FALSE='#'
13228 else
13229   GTK_DOC_BUILD_HTML_TRUE='#'
13230   GTK_DOC_BUILD_HTML_FALSE=
13231 fi
13232
13233    if test x$enable_gtk_doc_pdf = xyes; then
13234   GTK_DOC_BUILD_PDF_TRUE=
13235   GTK_DOC_BUILD_PDF_FALSE='#'
13236 else
13237   GTK_DOC_BUILD_PDF_TRUE='#'
13238   GTK_DOC_BUILD_PDF_FALSE=
13239 fi
13240
13241    if test -n "$LIBTOOL"; then
13242   GTK_DOC_USE_LIBTOOL_TRUE=
13243   GTK_DOC_USE_LIBTOOL_FALSE='#'
13244 else
13245   GTK_DOC_USE_LIBTOOL_TRUE='#'
13246   GTK_DOC_USE_LIBTOOL_FALSE=
13247 fi
13248
13249    if test -n "$GTKDOC_REBASE"; then
13250   GTK_DOC_USE_REBASE_TRUE=
13251   GTK_DOC_USE_REBASE_FALSE='#'
13252 else
13253   GTK_DOC_USE_REBASE_TRUE='#'
13254   GTK_DOC_USE_REBASE_FALSE=
13255 fi
13256
13257
13258
13259 ac_config_files="$ac_config_files Makefile libgssdp/Makefile tools/Makefile tests/Makefile tests/gtest/Makefile vala/Makefile doc/Makefile doc/version.xml gssdp-1.0.pc gssdp-1.0-uninstalled.pc"
13260
13261 cat >confcache <<\_ACEOF
13262 # This file is a shell script that caches the results of configure
13263 # tests run on this system so they can be shared between configure
13264 # scripts and configure runs, see configure's option --config-cache.
13265 # It is not useful on other systems.  If it contains results you don't
13266 # want to keep, you may remove or edit it.
13267 #
13268 # config.status only pays attention to the cache file if you give it
13269 # the --recheck option to rerun configure.
13270 #
13271 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13272 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13273 # following values.
13274
13275 _ACEOF
13276
13277 # The following way of writing the cache mishandles newlines in values,
13278 # but we know of no workaround that is simple, portable, and efficient.
13279 # So, we kill variables containing newlines.
13280 # Ultrix sh set writes to stderr and can't be redirected directly,
13281 # and sets the high bit in the cache file unless we assign to the vars.
13282 (
13283   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13284     eval ac_val=\$$ac_var
13285     case $ac_val in #(
13286     *${as_nl}*)
13287       case $ac_var in #(
13288       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13289 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13290       esac
13291       case $ac_var in #(
13292       _ | IFS | as_nl) ;; #(
13293       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13294       *) { eval $ac_var=; unset $ac_var;} ;;
13295       esac ;;
13296     esac
13297   done
13298
13299   (set) 2>&1 |
13300     case $as_nl`(ac_space=' '; set) 2>&1` in #(
13301     *${as_nl}ac_space=\ *)
13302       # `set' does not quote correctly, so add quotes: double-quote
13303       # substitution turns \\\\ into \\, and sed turns \\ into \.
13304       sed -n \
13305         "s/'/'\\\\''/g;
13306           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13307       ;; #(
13308     *)
13309       # `set' quotes correctly as required by POSIX, so do not add quotes.
13310       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13311       ;;
13312     esac |
13313     sort
13314 ) |
13315   sed '
13316      /^ac_cv_env_/b end
13317      t clear
13318      :clear
13319      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13320      t end
13321      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13322      :end' >>confcache
13323 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13324   if test -w "$cache_file"; then
13325     if test "x$cache_file" != "x/dev/null"; then
13326       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13327 $as_echo "$as_me: updating cache $cache_file" >&6;}
13328       if test ! -f "$cache_file" || test -h "$cache_file"; then
13329         cat confcache >"$cache_file"
13330       else
13331         case $cache_file in #(
13332         */* | ?:*)
13333           mv -f confcache "$cache_file"$$ &&
13334           mv -f "$cache_file"$$ "$cache_file" ;; #(
13335         *)
13336           mv -f confcache "$cache_file" ;;
13337         esac
13338       fi
13339     fi
13340   else
13341     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13342 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13343   fi
13344 fi
13345 rm -f confcache
13346
13347 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13348 # Let make expand exec_prefix.
13349 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13350
13351 DEFS=-DHAVE_CONFIG_H
13352
13353 ac_libobjs=
13354 ac_ltlibobjs=
13355 U=
13356 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13357   # 1. Remove the extension, and $U if already installed.
13358   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13359   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13360   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13361   #    will be set to the directory where LIBOBJS objects are built.
13362   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13363   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13364 done
13365 LIBOBJS=$ac_libobjs
13366
13367 LTLIBOBJS=$ac_ltlibobjs
13368
13369
13370  if test -n "$EXEEXT"; then
13371   am__EXEEXT_TRUE=
13372   am__EXEEXT_FALSE='#'
13373 else
13374   am__EXEEXT_TRUE='#'
13375   am__EXEEXT_FALSE=
13376 fi
13377
13378 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13379   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
13380 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13381 fi
13382 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13383   as_fn_error $? "conditional \"AMDEP\" was never defined.
13384 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13385 fi
13386 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13387   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13388 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13389 fi
13390 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13391   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13392 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13393 fi
13394 if test -z "${USE_LIBGTK_TRUE}" && test -z "${USE_LIBGTK_FALSE}"; then
13395   as_fn_error $? "conditional \"USE_LIBGTK\" was never defined.
13396 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13397 fi
13398 if test -z "${HAVE_INTROSPECTION_TRUE}" && test -z "${HAVE_INTROSPECTION_FALSE}"; then
13399   as_fn_error $? "conditional \"HAVE_INTROSPECTION\" was never defined.
13400 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13401 fi
13402 if test -z "${HAVE_VAPIGEN_TRUE}" && test -z "${HAVE_VAPIGEN_FALSE}"; then
13403   as_fn_error $? "conditional \"HAVE_VAPIGEN\" was never defined.
13404 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13405 fi
13406 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
13407   as_fn_error $? "conditional \"OS_WIN32\" was never defined.
13408 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13409 fi
13410 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
13411   as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
13412 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13413 fi
13414 if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then
13415   as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined.
13416 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13417 fi
13418 if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then
13419   as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined.
13420 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13421 fi
13422 if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
13423   as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
13424 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13425 fi
13426 if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then
13427   as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined.
13428 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13429 fi
13430
13431 : "${CONFIG_STATUS=./config.status}"
13432 ac_write_fail=0
13433 ac_clean_files_save=$ac_clean_files
13434 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13435 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13436 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13437 as_write_fail=0
13438 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13439 #! $SHELL
13440 # Generated by $as_me.
13441 # Run this file to recreate the current configuration.
13442 # Compiler output produced by configure, useful for debugging
13443 # configure, is in config.log if it exists.
13444
13445 debug=false
13446 ac_cs_recheck=false
13447 ac_cs_silent=false
13448
13449 SHELL=\${CONFIG_SHELL-$SHELL}
13450 export SHELL
13451 _ASEOF
13452 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13453 ## -------------------- ##
13454 ## M4sh Initialization. ##
13455 ## -------------------- ##
13456
13457 # Be more Bourne compatible
13458 DUALCASE=1; export DUALCASE # for MKS sh
13459 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13460   emulate sh
13461   NULLCMD=:
13462   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13463   # is contrary to our usage.  Disable this feature.
13464   alias -g '${1+"$@"}'='"$@"'
13465   setopt NO_GLOB_SUBST
13466 else
13467   case `(set -o) 2>/dev/null` in #(
13468   *posix*) :
13469     set -o posix ;; #(
13470   *) :
13471      ;;
13472 esac
13473 fi
13474
13475
13476 as_nl='
13477 '
13478 export as_nl
13479 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13480 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13481 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13482 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13483 # Prefer a ksh shell builtin over an external printf program on Solaris,
13484 # but without wasting forks for bash or zsh.
13485 if test -z "$BASH_VERSION$ZSH_VERSION" \
13486     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13487   as_echo='print -r --'
13488   as_echo_n='print -rn --'
13489 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13490   as_echo='printf %s\n'
13491   as_echo_n='printf %s'
13492 else
13493   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13494     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13495     as_echo_n='/usr/ucb/echo -n'
13496   else
13497     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13498     as_echo_n_body='eval
13499       arg=$1;
13500       case $arg in #(
13501       *"$as_nl"*)
13502         expr "X$arg" : "X\\(.*\\)$as_nl";
13503         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13504       esac;
13505       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13506     '
13507     export as_echo_n_body
13508     as_echo_n='sh -c $as_echo_n_body as_echo'
13509   fi
13510   export as_echo_body
13511   as_echo='sh -c $as_echo_body as_echo'
13512 fi
13513
13514 # The user is always right.
13515 if test "${PATH_SEPARATOR+set}" != set; then
13516   PATH_SEPARATOR=:
13517   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13518     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13519       PATH_SEPARATOR=';'
13520   }
13521 fi
13522
13523
13524 # IFS
13525 # We need space, tab and new line, in precisely that order.  Quoting is
13526 # there to prevent editors from complaining about space-tab.
13527 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13528 # splitting by setting IFS to empty value.)
13529 IFS=" ""        $as_nl"
13530
13531 # Find who we are.  Look in the path if we contain no directory separator.
13532 as_myself=
13533 case $0 in #((
13534   *[\\/]* ) as_myself=$0 ;;
13535   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13536 for as_dir in $PATH
13537 do
13538   IFS=$as_save_IFS
13539   test -z "$as_dir" && as_dir=.
13540     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13541   done
13542 IFS=$as_save_IFS
13543
13544      ;;
13545 esac
13546 # We did not find ourselves, most probably we were run as `sh COMMAND'
13547 # in which case we are not to be found in the path.
13548 if test "x$as_myself" = x; then
13549   as_myself=$0
13550 fi
13551 if test ! -f "$as_myself"; then
13552   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13553   exit 1
13554 fi
13555
13556 # Unset variables that we do not need and which cause bugs (e.g. in
13557 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13558 # suppresses any "Segmentation fault" message there.  '((' could
13559 # trigger a bug in pdksh 5.2.14.
13560 for as_var in BASH_ENV ENV MAIL MAILPATH
13561 do eval test x\${$as_var+set} = xset \
13562   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13563 done
13564 PS1='$ '
13565 PS2='> '
13566 PS4='+ '
13567
13568 # NLS nuisances.
13569 LC_ALL=C
13570 export LC_ALL
13571 LANGUAGE=C
13572 export LANGUAGE
13573
13574 # CDPATH.
13575 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13576
13577
13578 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13579 # ----------------------------------------
13580 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13581 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13582 # script with STATUS, using 1 if that was 0.
13583 as_fn_error ()
13584 {
13585   as_status=$1; test $as_status -eq 0 && as_status=1
13586   if test "$4"; then
13587     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13588     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13589   fi
13590   $as_echo "$as_me: error: $2" >&2
13591   as_fn_exit $as_status
13592 } # as_fn_error
13593
13594
13595 # as_fn_set_status STATUS
13596 # -----------------------
13597 # Set $? to STATUS, without forking.
13598 as_fn_set_status ()
13599 {
13600   return $1
13601 } # as_fn_set_status
13602
13603 # as_fn_exit STATUS
13604 # -----------------
13605 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13606 as_fn_exit ()
13607 {
13608   set +e
13609   as_fn_set_status $1
13610   exit $1
13611 } # as_fn_exit
13612
13613 # as_fn_unset VAR
13614 # ---------------
13615 # Portably unset VAR.
13616 as_fn_unset ()
13617 {
13618   { eval $1=; unset $1;}
13619 }
13620 as_unset=as_fn_unset
13621 # as_fn_append VAR VALUE
13622 # ----------------------
13623 # Append the text in VALUE to the end of the definition contained in VAR. Take
13624 # advantage of any shell optimizations that allow amortized linear growth over
13625 # repeated appends, instead of the typical quadratic growth present in naive
13626 # implementations.
13627 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13628   eval 'as_fn_append ()
13629   {
13630     eval $1+=\$2
13631   }'
13632 else
13633   as_fn_append ()
13634   {
13635     eval $1=\$$1\$2
13636   }
13637 fi # as_fn_append
13638
13639 # as_fn_arith ARG...
13640 # ------------------
13641 # Perform arithmetic evaluation on the ARGs, and store the result in the
13642 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13643 # must be portable across $(()) and expr.
13644 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13645   eval 'as_fn_arith ()
13646   {
13647     as_val=$(( $* ))
13648   }'
13649 else
13650   as_fn_arith ()
13651   {
13652     as_val=`expr "$@" || test $? -eq 1`
13653   }
13654 fi # as_fn_arith
13655
13656
13657 if expr a : '\(a\)' >/dev/null 2>&1 &&
13658    test "X`expr 00001 : '.*\(...\)'`" = X001; then
13659   as_expr=expr
13660 else
13661   as_expr=false
13662 fi
13663
13664 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13665   as_basename=basename
13666 else
13667   as_basename=false
13668 fi
13669
13670 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13671   as_dirname=dirname
13672 else
13673   as_dirname=false
13674 fi
13675
13676 as_me=`$as_basename -- "$0" ||
13677 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13678          X"$0" : 'X\(//\)$' \| \
13679          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13680 $as_echo X/"$0" |
13681     sed '/^.*\/\([^/][^/]*\)\/*$/{
13682             s//\1/
13683             q
13684           }
13685           /^X\/\(\/\/\)$/{
13686             s//\1/
13687             q
13688           }
13689           /^X\/\(\/\).*/{
13690             s//\1/
13691             q
13692           }
13693           s/.*/./; q'`
13694
13695 # Avoid depending upon Character Ranges.
13696 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13697 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13698 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13699 as_cr_digits='0123456789'
13700 as_cr_alnum=$as_cr_Letters$as_cr_digits
13701
13702 ECHO_C= ECHO_N= ECHO_T=
13703 case `echo -n x` in #(((((
13704 -n*)
13705   case `echo 'xy\c'` in
13706   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
13707   xy)  ECHO_C='\c';;
13708   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13709        ECHO_T=' ';;
13710   esac;;
13711 *)
13712   ECHO_N='-n';;
13713 esac
13714
13715 rm -f conf$$ conf$$.exe conf$$.file
13716 if test -d conf$$.dir; then
13717   rm -f conf$$.dir/conf$$.file
13718 else
13719   rm -f conf$$.dir
13720   mkdir conf$$.dir 2>/dev/null
13721 fi
13722 if (echo >conf$$.file) 2>/dev/null; then
13723   if ln -s conf$$.file conf$$ 2>/dev/null; then
13724     as_ln_s='ln -s'
13725     # ... but there are two gotchas:
13726     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13727     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13728     # In both cases, we have to default to `cp -pR'.
13729     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13730       as_ln_s='cp -pR'
13731   elif ln conf$$.file conf$$ 2>/dev/null; then
13732     as_ln_s=ln
13733   else
13734     as_ln_s='cp -pR'
13735   fi
13736 else
13737   as_ln_s='cp -pR'
13738 fi
13739 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13740 rmdir conf$$.dir 2>/dev/null
13741
13742
13743 # as_fn_mkdir_p
13744 # -------------
13745 # Create "$as_dir" as a directory, including parents if necessary.
13746 as_fn_mkdir_p ()
13747 {
13748
13749   case $as_dir in #(
13750   -*) as_dir=./$as_dir;;
13751   esac
13752   test -d "$as_dir" || eval $as_mkdir_p || {
13753     as_dirs=
13754     while :; do
13755       case $as_dir in #(
13756       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13757       *) as_qdir=$as_dir;;
13758       esac
13759       as_dirs="'$as_qdir' $as_dirs"
13760       as_dir=`$as_dirname -- "$as_dir" ||
13761 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13762          X"$as_dir" : 'X\(//\)[^/]' \| \
13763          X"$as_dir" : 'X\(//\)$' \| \
13764          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13765 $as_echo X"$as_dir" |
13766     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13767             s//\1/
13768             q
13769           }
13770           /^X\(\/\/\)[^/].*/{
13771             s//\1/
13772             q
13773           }
13774           /^X\(\/\/\)$/{
13775             s//\1/
13776             q
13777           }
13778           /^X\(\/\).*/{
13779             s//\1/
13780             q
13781           }
13782           s/.*/./; q'`
13783       test -d "$as_dir" && break
13784     done
13785     test -z "$as_dirs" || eval "mkdir $as_dirs"
13786   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13787
13788
13789 } # as_fn_mkdir_p
13790 if mkdir -p . 2>/dev/null; then
13791   as_mkdir_p='mkdir -p "$as_dir"'
13792 else
13793   test -d ./-p && rmdir ./-p
13794   as_mkdir_p=false
13795 fi
13796
13797
13798 # as_fn_executable_p FILE
13799 # -----------------------
13800 # Test if FILE is an executable regular file.
13801 as_fn_executable_p ()
13802 {
13803   test -f "$1" && test -x "$1"
13804 } # as_fn_executable_p
13805 as_test_x='test -x'
13806 as_executable_p=as_fn_executable_p
13807
13808 # Sed expression to map a string onto a valid CPP name.
13809 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13810
13811 # Sed expression to map a string onto a valid variable name.
13812 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13813
13814
13815 exec 6>&1
13816 ## ----------------------------------- ##
13817 ## Main body of $CONFIG_STATUS script. ##
13818 ## ----------------------------------- ##
13819 _ASEOF
13820 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13821
13822 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13823 # Save the log message, to keep $0 and so on meaningful, and to
13824 # report actual input values of CONFIG_FILES etc. instead of their
13825 # values after options handling.
13826 ac_log="
13827 This file was extended by gssdp $as_me 0.14.4, which was
13828 generated by GNU Autoconf 2.69.  Invocation command line was
13829
13830   CONFIG_FILES    = $CONFIG_FILES
13831   CONFIG_HEADERS  = $CONFIG_HEADERS
13832   CONFIG_LINKS    = $CONFIG_LINKS
13833   CONFIG_COMMANDS = $CONFIG_COMMANDS
13834   $ $0 $@
13835
13836 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13837 "
13838
13839 _ACEOF
13840
13841 case $ac_config_files in *"
13842 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13843 esac
13844
13845 case $ac_config_headers in *"
13846 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13847 esac
13848
13849
13850 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13851 # Files that config.status was made for.
13852 config_files="$ac_config_files"
13853 config_headers="$ac_config_headers"
13854 config_commands="$ac_config_commands"
13855
13856 _ACEOF
13857
13858 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13859 ac_cs_usage="\
13860 \`$as_me' instantiates files and other configuration actions
13861 from templates according to the current configuration.  Unless the files
13862 and actions are specified as TAGs, all are instantiated by default.
13863
13864 Usage: $0 [OPTION]... [TAG]...
13865
13866   -h, --help       print this help, then exit
13867   -V, --version    print version number and configuration settings, then exit
13868       --config     print configuration, then exit
13869   -q, --quiet, --silent
13870                    do not print progress messages
13871   -d, --debug      don't remove temporary files
13872       --recheck    update $as_me by reconfiguring in the same conditions
13873       --file=FILE[:TEMPLATE]
13874                    instantiate the configuration file FILE
13875       --header=FILE[:TEMPLATE]
13876                    instantiate the configuration header FILE
13877
13878 Configuration files:
13879 $config_files
13880
13881 Configuration headers:
13882 $config_headers
13883
13884 Configuration commands:
13885 $config_commands
13886
13887 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=gupnp&component=gssdp>.
13888 gssdp home page: <http://www.gupnp.org/>."
13889
13890 _ACEOF
13891 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13892 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13893 ac_cs_version="\\
13894 gssdp config.status 0.14.4
13895 configured by $0, generated by GNU Autoconf 2.69,
13896   with options \\"\$ac_cs_config\\"
13897
13898 Copyright (C) 2012 Free Software Foundation, Inc.
13899 This config.status script is free software; the Free Software Foundation
13900 gives unlimited permission to copy, distribute and modify it."
13901
13902 ac_pwd='$ac_pwd'
13903 srcdir='$srcdir'
13904 INSTALL='$INSTALL'
13905 MKDIR_P='$MKDIR_P'
13906 AWK='$AWK'
13907 test -n "\$AWK" || AWK=awk
13908 _ACEOF
13909
13910 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13911 # The default lists apply if the user does not specify any file.
13912 ac_need_defaults=:
13913 while test $# != 0
13914 do
13915   case $1 in
13916   --*=?*)
13917     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13918     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13919     ac_shift=:
13920     ;;
13921   --*=)
13922     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13923     ac_optarg=
13924     ac_shift=:
13925     ;;
13926   *)
13927     ac_option=$1
13928     ac_optarg=$2
13929     ac_shift=shift
13930     ;;
13931   esac
13932
13933   case $ac_option in
13934   # Handling of the options.
13935   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13936     ac_cs_recheck=: ;;
13937   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13938     $as_echo "$ac_cs_version"; exit ;;
13939   --config | --confi | --conf | --con | --co | --c )
13940     $as_echo "$ac_cs_config"; exit ;;
13941   --debug | --debu | --deb | --de | --d | -d )
13942     debug=: ;;
13943   --file | --fil | --fi | --f )
13944     $ac_shift
13945     case $ac_optarg in
13946     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13947     '') as_fn_error $? "missing file argument" ;;
13948     esac
13949     as_fn_append CONFIG_FILES " '$ac_optarg'"
13950     ac_need_defaults=false;;
13951   --header | --heade | --head | --hea )
13952     $ac_shift
13953     case $ac_optarg in
13954     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13955     esac
13956     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13957     ac_need_defaults=false;;
13958   --he | --h)
13959     # Conflict between --help and --header
13960     as_fn_error $? "ambiguous option: \`$1'
13961 Try \`$0 --help' for more information.";;
13962   --help | --hel | -h )
13963     $as_echo "$ac_cs_usage"; exit ;;
13964   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13965   | -silent | --silent | --silen | --sile | --sil | --si | --s)
13966     ac_cs_silent=: ;;
13967
13968   # This is an error.
13969   -*) as_fn_error $? "unrecognized option: \`$1'
13970 Try \`$0 --help' for more information." ;;
13971
13972   *) as_fn_append ac_config_targets " $1"
13973      ac_need_defaults=false ;;
13974
13975   esac
13976   shift
13977 done
13978
13979 ac_configure_extra_args=
13980
13981 if $ac_cs_silent; then
13982   exec 6>/dev/null
13983   ac_configure_extra_args="$ac_configure_extra_args --silent"
13984 fi
13985
13986 _ACEOF
13987 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13988 if \$ac_cs_recheck; then
13989   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13990   shift
13991   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13992   CONFIG_SHELL='$SHELL'
13993   export CONFIG_SHELL
13994   exec "\$@"
13995 fi
13996
13997 _ACEOF
13998 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13999 exec 5>>config.log
14000 {
14001   echo
14002   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14003 ## Running $as_me. ##
14004 _ASBOX
14005   $as_echo "$ac_log"
14006 } >&5
14007
14008 _ACEOF
14009 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14010 #
14011 # INIT-COMMANDS
14012 #
14013 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14014
14015
14016 # The HP-UX ksh and POSIX shell print the target directory to stdout
14017 # if CDPATH is set.
14018 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14019
14020 sed_quote_subst='$sed_quote_subst'
14021 double_quote_subst='$double_quote_subst'
14022 delay_variable_subst='$delay_variable_subst'
14023 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14024 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14025 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14026 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14027 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14028 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14029 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14030 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14031 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14032 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14033 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14034 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14035 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14036 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14037 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14038 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14039 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14040 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14041 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14042 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14043 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14044 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14045 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14046 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14047 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14048 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14049 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14050 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14051 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14052 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14053 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14054 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14055 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14056 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14057 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14058 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14059 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14060 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14061 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14062 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14063 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14064 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14065 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14066 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14067 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14068 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14069 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14070 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14071 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14072 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14073 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14074 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14075 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14076 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14077 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14078 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14079 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"`'
14080 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14081 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14082 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14083 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14084 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14085 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14086 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14087 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14088 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14089 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14090 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14091 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14092 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14093 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14094 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14095 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14096 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14097 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14098 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14099 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14100 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14101 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14102 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14103 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14104 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14105 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14106 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14107 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14108 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14109 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14110 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14111 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14112 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14113 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14114 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14115 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14116 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14117 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14118 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14119 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14120 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14121 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14122 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14123 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14124 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14125 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14126 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14127 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14128 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14129 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14130 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14131 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14132 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14133 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14134 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14135 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14136 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14137 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14138 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14139 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14140 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14141 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14142 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14143 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14144 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14145 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14146 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14147 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14148 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14149 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14150 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14151 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14152 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14153
14154 LTCC='$LTCC'
14155 LTCFLAGS='$LTCFLAGS'
14156 compiler='$compiler_DEFAULT'
14157
14158 # A function that is used when there is no print builtin or printf.
14159 func_fallback_echo ()
14160 {
14161   eval 'cat <<_LTECHO_EOF
14162 \$1
14163 _LTECHO_EOF'
14164 }
14165
14166 # Quote evaled strings.
14167 for var in SHELL \
14168 ECHO \
14169 PATH_SEPARATOR \
14170 SED \
14171 GREP \
14172 EGREP \
14173 FGREP \
14174 LD \
14175 NM \
14176 LN_S \
14177 lt_SP2NL \
14178 lt_NL2SP \
14179 reload_flag \
14180 OBJDUMP \
14181 deplibs_check_method \
14182 file_magic_cmd \
14183 file_magic_glob \
14184 want_nocaseglob \
14185 DLLTOOL \
14186 sharedlib_from_linklib_cmd \
14187 AR \
14188 AR_FLAGS \
14189 archiver_list_spec \
14190 STRIP \
14191 RANLIB \
14192 CC \
14193 CFLAGS \
14194 compiler \
14195 lt_cv_sys_global_symbol_pipe \
14196 lt_cv_sys_global_symbol_to_cdecl \
14197 lt_cv_sys_global_symbol_to_c_name_address \
14198 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14199 nm_file_list_spec \
14200 lt_prog_compiler_no_builtin_flag \
14201 lt_prog_compiler_pic \
14202 lt_prog_compiler_wl \
14203 lt_prog_compiler_static \
14204 lt_cv_prog_compiler_c_o \
14205 need_locks \
14206 MANIFEST_TOOL \
14207 DSYMUTIL \
14208 NMEDIT \
14209 LIPO \
14210 OTOOL \
14211 OTOOL64 \
14212 shrext_cmds \
14213 export_dynamic_flag_spec \
14214 whole_archive_flag_spec \
14215 compiler_needs_object \
14216 with_gnu_ld \
14217 allow_undefined_flag \
14218 no_undefined_flag \
14219 hardcode_libdir_flag_spec \
14220 hardcode_libdir_separator \
14221 exclude_expsyms \
14222 include_expsyms \
14223 file_list_spec \
14224 variables_saved_for_relink \
14225 libname_spec \
14226 library_names_spec \
14227 soname_spec \
14228 install_override_mode \
14229 finish_eval \
14230 old_striplib \
14231 striplib; do
14232     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14233     *[\\\\\\\`\\"\\\$]*)
14234       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14235       ;;
14236     *)
14237       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14238       ;;
14239     esac
14240 done
14241
14242 # Double-quote double-evaled strings.
14243 for var in reload_cmds \
14244 old_postinstall_cmds \
14245 old_postuninstall_cmds \
14246 old_archive_cmds \
14247 extract_expsyms_cmds \
14248 old_archive_from_new_cmds \
14249 old_archive_from_expsyms_cmds \
14250 archive_cmds \
14251 archive_expsym_cmds \
14252 module_cmds \
14253 module_expsym_cmds \
14254 export_symbols_cmds \
14255 prelink_cmds \
14256 postlink_cmds \
14257 postinstall_cmds \
14258 postuninstall_cmds \
14259 finish_cmds \
14260 sys_lib_search_path_spec \
14261 sys_lib_dlsearch_path_spec; do
14262     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14263     *[\\\\\\\`\\"\\\$]*)
14264       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14265       ;;
14266     *)
14267       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14268       ;;
14269     esac
14270 done
14271
14272 ac_aux_dir='$ac_aux_dir'
14273 xsi_shell='$xsi_shell'
14274 lt_shell_append='$lt_shell_append'
14275
14276 # See if we are running on zsh, and set the options which allow our
14277 # commands through without removal of \ escapes INIT.
14278 if test -n "\${ZSH_VERSION+set}" ; then
14279    setopt NO_GLOB_SUBST
14280 fi
14281
14282
14283     PACKAGE='$PACKAGE'
14284     VERSION='$VERSION'
14285     TIMESTAMP='$TIMESTAMP'
14286     RM='$RM'
14287     ofile='$ofile'
14288
14289
14290
14291
14292 _ACEOF
14293
14294 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14295
14296 # Handling of arguments.
14297 for ac_config_target in $ac_config_targets
14298 do
14299   case $ac_config_target in
14300     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14301     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14302     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14303     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14304     "libgssdp/Makefile") CONFIG_FILES="$CONFIG_FILES libgssdp/Makefile" ;;
14305     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
14306     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
14307     "tests/gtest/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gtest/Makefile" ;;
14308     "vala/Makefile") CONFIG_FILES="$CONFIG_FILES vala/Makefile" ;;
14309     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14310     "doc/version.xml") CONFIG_FILES="$CONFIG_FILES doc/version.xml" ;;
14311     "gssdp-1.0.pc") CONFIG_FILES="$CONFIG_FILES gssdp-1.0.pc" ;;
14312     "gssdp-1.0-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES gssdp-1.0-uninstalled.pc" ;;
14313
14314   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14315   esac
14316 done
14317
14318
14319 # If the user did not use the arguments to specify the items to instantiate,
14320 # then the envvar interface is used.  Set only those that are not.
14321 # We use the long form for the default assignment because of an extremely
14322 # bizarre bug on SunOS 4.1.3.
14323 if $ac_need_defaults; then
14324   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14325   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14326   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14327 fi
14328
14329 # Have a temporary directory for convenience.  Make it in the build tree
14330 # simply because there is no reason against having it here, and in addition,
14331 # creating and moving files from /tmp can sometimes cause problems.
14332 # Hook for its removal unless debugging.
14333 # Note that there is a small window in which the directory will not be cleaned:
14334 # after its creation but before its name has been assigned to `$tmp'.
14335 $debug ||
14336 {
14337   tmp= ac_tmp=
14338   trap 'exit_status=$?
14339   : "${ac_tmp:=$tmp}"
14340   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14341 ' 0
14342   trap 'as_fn_exit 1' 1 2 13 15
14343 }
14344 # Create a (secure) tmp directory for tmp files.
14345
14346 {
14347   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14348   test -d "$tmp"
14349 }  ||
14350 {
14351   tmp=./conf$$-$RANDOM
14352   (umask 077 && mkdir "$tmp")
14353 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14354 ac_tmp=$tmp
14355
14356 # Set up the scripts for CONFIG_FILES section.
14357 # No need to generate them if there are no CONFIG_FILES.
14358 # This happens for instance with `./config.status config.h'.
14359 if test -n "$CONFIG_FILES"; then
14360
14361
14362 ac_cr=`echo X | tr X '\015'`
14363 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14364 # But we know of no other shell where ac_cr would be empty at this
14365 # point, so we can use a bashism as a fallback.
14366 if test "x$ac_cr" = x; then
14367   eval ac_cr=\$\'\\r\'
14368 fi
14369 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14370 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14371   ac_cs_awk_cr='\\r'
14372 else
14373   ac_cs_awk_cr=$ac_cr
14374 fi
14375
14376 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14377 _ACEOF
14378
14379
14380 {
14381   echo "cat >conf$$subs.awk <<_ACEOF" &&
14382   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14383   echo "_ACEOF"
14384 } >conf$$subs.sh ||
14385   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14386 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14387 ac_delim='%!_!# '
14388 for ac_last_try in false false false false false :; do
14389   . ./conf$$subs.sh ||
14390     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14391
14392   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14393   if test $ac_delim_n = $ac_delim_num; then
14394     break
14395   elif $ac_last_try; then
14396     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14397   else
14398     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14399   fi
14400 done
14401 rm -f conf$$subs.sh
14402
14403 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14404 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14405 _ACEOF
14406 sed -n '
14407 h
14408 s/^/S["/; s/!.*/"]=/
14409 p
14410 g
14411 s/^[^!]*!//
14412 :repl
14413 t repl
14414 s/'"$ac_delim"'$//
14415 t delim
14416 :nl
14417 h
14418 s/\(.\{148\}\)..*/\1/
14419 t more1
14420 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14421 p
14422 n
14423 b repl
14424 :more1
14425 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14426 p
14427 g
14428 s/.\{148\}//
14429 t nl
14430 :delim
14431 h
14432 s/\(.\{148\}\)..*/\1/
14433 t more2
14434 s/["\\]/\\&/g; s/^/"/; s/$/"/
14435 p
14436 b
14437 :more2
14438 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14439 p
14440 g
14441 s/.\{148\}//
14442 t delim
14443 ' <conf$$subs.awk | sed '
14444 /^[^""]/{
14445   N
14446   s/\n//
14447 }
14448 ' >>$CONFIG_STATUS || ac_write_fail=1
14449 rm -f conf$$subs.awk
14450 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14451 _ACAWK
14452 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14453   for (key in S) S_is_set[key] = 1
14454   FS = "\a"
14455
14456 }
14457 {
14458   line = $ 0
14459   nfields = split(line, field, "@")
14460   substed = 0
14461   len = length(field[1])
14462   for (i = 2; i < nfields; i++) {
14463     key = field[i]
14464     keylen = length(key)
14465     if (S_is_set[key]) {
14466       value = S[key]
14467       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14468       len += length(value) + length(field[++i])
14469       substed = 1
14470     } else
14471       len += 1 + keylen
14472   }
14473
14474   print line
14475 }
14476
14477 _ACAWK
14478 _ACEOF
14479 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14480 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14481   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14482 else
14483   cat
14484 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14485   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14486 _ACEOF
14487
14488 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14489 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14490 # trailing colons and then remove the whole line if VPATH becomes empty
14491 # (actually we leave an empty line to preserve line numbers).
14492 if test "x$srcdir" = x.; then
14493   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
14494 h
14495 s///
14496 s/^/:/
14497 s/[      ]*$/:/
14498 s/:\$(srcdir):/:/g
14499 s/:\${srcdir}:/:/g
14500 s/:@srcdir@:/:/g
14501 s/^:*//
14502 s/:*$//
14503 x
14504 s/\(=[   ]*\).*/\1/
14505 G
14506 s/\n//
14507 s/^[^=]*=[       ]*$//
14508 }'
14509 fi
14510
14511 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14512 fi # test -n "$CONFIG_FILES"
14513
14514 # Set up the scripts for CONFIG_HEADERS section.
14515 # No need to generate them if there are no CONFIG_HEADERS.
14516 # This happens for instance with `./config.status Makefile'.
14517 if test -n "$CONFIG_HEADERS"; then
14518 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14519 BEGIN {
14520 _ACEOF
14521
14522 # Transform confdefs.h into an awk script `defines.awk', embedded as
14523 # here-document in config.status, that substitutes the proper values into
14524 # config.h.in to produce config.h.
14525
14526 # Create a delimiter string that does not exist in confdefs.h, to ease
14527 # handling of long lines.
14528 ac_delim='%!_!# '
14529 for ac_last_try in false false :; do
14530   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14531   if test -z "$ac_tt"; then
14532     break
14533   elif $ac_last_try; then
14534     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14535   else
14536     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14537   fi
14538 done
14539
14540 # For the awk script, D is an array of macro values keyed by name,
14541 # likewise P contains macro parameters if any.  Preserve backslash
14542 # newline sequences.
14543
14544 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14545 sed -n '
14546 s/.\{148\}/&'"$ac_delim"'/g
14547 t rset
14548 :rset
14549 s/^[     ]*#[    ]*define[       ][      ]*/ /
14550 t def
14551 d
14552 :def
14553 s/\\$//
14554 t bsnl
14555 s/["\\]/\\&/g
14556 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14557 D["\1"]=" \3"/p
14558 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
14559 d
14560 :bsnl
14561 s/["\\]/\\&/g
14562 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14563 D["\1"]=" \3\\\\\\n"\\/p
14564 t cont
14565 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14566 t cont
14567 d
14568 :cont
14569 n
14570 s/.\{148\}/&'"$ac_delim"'/g
14571 t clear
14572 :clear
14573 s/\\$//
14574 t bsnlc
14575 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14576 d
14577 :bsnlc
14578 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14579 b cont
14580 ' <confdefs.h | sed '
14581 s/'"$ac_delim"'/"\\\
14582 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14583
14584 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14585   for (key in D) D_is_set[key] = 1
14586   FS = "\a"
14587 }
14588 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14589   line = \$ 0
14590   split(line, arg, " ")
14591   if (arg[1] == "#") {
14592     defundef = arg[2]
14593     mac1 = arg[3]
14594   } else {
14595     defundef = substr(arg[1], 2)
14596     mac1 = arg[2]
14597   }
14598   split(mac1, mac2, "(") #)
14599   macro = mac2[1]
14600   prefix = substr(line, 1, index(line, defundef) - 1)
14601   if (D_is_set[macro]) {
14602     # Preserve the white space surrounding the "#".
14603     print prefix "define", macro P[macro] D[macro]
14604     next
14605   } else {
14606     # Replace #undef with comments.  This is necessary, for example,
14607     # in the case of _POSIX_SOURCE, which is predefined and required
14608     # on some systems where configure will not decide to define it.
14609     if (defundef == "undef") {
14610       print "/*", prefix defundef, macro, "*/"
14611       next
14612     }
14613   }
14614 }
14615 { print }
14616 _ACAWK
14617 _ACEOF
14618 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14619   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14620 fi # test -n "$CONFIG_HEADERS"
14621
14622
14623 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14624 shift
14625 for ac_tag
14626 do
14627   case $ac_tag in
14628   :[FHLC]) ac_mode=$ac_tag; continue;;
14629   esac
14630   case $ac_mode$ac_tag in
14631   :[FHL]*:*);;
14632   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14633   :[FH]-) ac_tag=-:-;;
14634   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14635   esac
14636   ac_save_IFS=$IFS
14637   IFS=:
14638   set x $ac_tag
14639   IFS=$ac_save_IFS
14640   shift
14641   ac_file=$1
14642   shift
14643
14644   case $ac_mode in
14645   :L) ac_source=$1;;
14646   :[FH])
14647     ac_file_inputs=
14648     for ac_f
14649     do
14650       case $ac_f in
14651       -) ac_f="$ac_tmp/stdin";;
14652       *) # Look for the file first in the build tree, then in the source tree
14653          # (if the path is not absolute).  The absolute path cannot be DOS-style,
14654          # because $ac_f cannot contain `:'.
14655          test -f "$ac_f" ||
14656            case $ac_f in
14657            [\\/$]*) false;;
14658            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14659            esac ||
14660            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14661       esac
14662       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14663       as_fn_append ac_file_inputs " '$ac_f'"
14664     done
14665
14666     # Let's still pretend it is `configure' which instantiates (i.e., don't
14667     # use $as_me), people would be surprised to read:
14668     #    /* config.h.  Generated by config.status.  */
14669     configure_input='Generated from '`
14670           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14671         `' by configure.'
14672     if test x"$ac_file" != x-; then
14673       configure_input="$ac_file.  $configure_input"
14674       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14675 $as_echo "$as_me: creating $ac_file" >&6;}
14676     fi
14677     # Neutralize special characters interpreted by sed in replacement strings.
14678     case $configure_input in #(
14679     *\&* | *\|* | *\\* )
14680        ac_sed_conf_input=`$as_echo "$configure_input" |
14681        sed 's/[\\\\&|]/\\\\&/g'`;; #(
14682     *) ac_sed_conf_input=$configure_input;;
14683     esac
14684
14685     case $ac_tag in
14686     *:-:* | *:-) cat >"$ac_tmp/stdin" \
14687       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14688     esac
14689     ;;
14690   esac
14691
14692   ac_dir=`$as_dirname -- "$ac_file" ||
14693 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14694          X"$ac_file" : 'X\(//\)[^/]' \| \
14695          X"$ac_file" : 'X\(//\)$' \| \
14696          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14697 $as_echo X"$ac_file" |
14698     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14699             s//\1/
14700             q
14701           }
14702           /^X\(\/\/\)[^/].*/{
14703             s//\1/
14704             q
14705           }
14706           /^X\(\/\/\)$/{
14707             s//\1/
14708             q
14709           }
14710           /^X\(\/\).*/{
14711             s//\1/
14712             q
14713           }
14714           s/.*/./; q'`
14715   as_dir="$ac_dir"; as_fn_mkdir_p
14716   ac_builddir=.
14717
14718 case "$ac_dir" in
14719 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14720 *)
14721   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14722   # A ".." for each directory in $ac_dir_suffix.
14723   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14724   case $ac_top_builddir_sub in
14725   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14726   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14727   esac ;;
14728 esac
14729 ac_abs_top_builddir=$ac_pwd
14730 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14731 # for backward compatibility:
14732 ac_top_builddir=$ac_top_build_prefix
14733
14734 case $srcdir in
14735   .)  # We are building in place.
14736     ac_srcdir=.
14737     ac_top_srcdir=$ac_top_builddir_sub
14738     ac_abs_top_srcdir=$ac_pwd ;;
14739   [\\/]* | ?:[\\/]* )  # Absolute name.
14740     ac_srcdir=$srcdir$ac_dir_suffix;
14741     ac_top_srcdir=$srcdir
14742     ac_abs_top_srcdir=$srcdir ;;
14743   *) # Relative name.
14744     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14745     ac_top_srcdir=$ac_top_build_prefix$srcdir
14746     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14747 esac
14748 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14749
14750
14751   case $ac_mode in
14752   :F)
14753   #
14754   # CONFIG_FILE
14755   #
14756
14757   case $INSTALL in
14758   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14759   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14760   esac
14761   ac_MKDIR_P=$MKDIR_P
14762   case $MKDIR_P in
14763   [\\/$]* | ?:[\\/]* ) ;;
14764   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14765   esac
14766 _ACEOF
14767
14768 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14769 # If the template does not know about datarootdir, expand it.
14770 # FIXME: This hack should be removed a few years after 2.60.
14771 ac_datarootdir_hack=; ac_datarootdir_seen=
14772 ac_sed_dataroot='
14773 /datarootdir/ {
14774   p
14775   q
14776 }
14777 /@datadir@/p
14778 /@docdir@/p
14779 /@infodir@/p
14780 /@localedir@/p
14781 /@mandir@/p'
14782 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14783 *datarootdir*) ac_datarootdir_seen=yes;;
14784 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14785   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14786 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14787 _ACEOF
14788 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14789   ac_datarootdir_hack='
14790   s&@datadir@&$datadir&g
14791   s&@docdir@&$docdir&g
14792   s&@infodir@&$infodir&g
14793   s&@localedir@&$localedir&g
14794   s&@mandir@&$mandir&g
14795   s&\\\${datarootdir}&$datarootdir&g' ;;
14796 esac
14797 _ACEOF
14798
14799 # Neutralize VPATH when `$srcdir' = `.'.
14800 # Shell code in configure.ac might set extrasub.
14801 # FIXME: do we really want to maintain this feature?
14802 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14803 ac_sed_extra="$ac_vpsub
14804 $extrasub
14805 _ACEOF
14806 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14807 :t
14808 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14809 s|@configure_input@|$ac_sed_conf_input|;t t
14810 s&@top_builddir@&$ac_top_builddir_sub&;t t
14811 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14812 s&@srcdir@&$ac_srcdir&;t t
14813 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14814 s&@top_srcdir@&$ac_top_srcdir&;t t
14815 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14816 s&@builddir@&$ac_builddir&;t t
14817 s&@abs_builddir@&$ac_abs_builddir&;t t
14818 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14819 s&@INSTALL@&$ac_INSTALL&;t t
14820 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14821 $ac_datarootdir_hack
14822 "
14823 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14824   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14825
14826 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14827   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14828   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
14829       "$ac_tmp/out"`; test -z "$ac_out"; } &&
14830   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14831 which seems to be undefined.  Please make sure it is defined" >&5
14832 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14833 which seems to be undefined.  Please make sure it is defined" >&2;}
14834
14835   rm -f "$ac_tmp/stdin"
14836   case $ac_file in
14837   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14838   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14839   esac \
14840   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14841  ;;
14842   :H)
14843   #
14844   # CONFIG_HEADER
14845   #
14846   if test x"$ac_file" != x-; then
14847     {
14848       $as_echo "/* $configure_input  */" \
14849       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14850     } >"$ac_tmp/config.h" \
14851       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14852     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14853       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14854 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14855     else
14856       rm -f "$ac_file"
14857       mv "$ac_tmp/config.h" "$ac_file" \
14858         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14859     fi
14860   else
14861     $as_echo "/* $configure_input  */" \
14862       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14863       || as_fn_error $? "could not create -" "$LINENO" 5
14864   fi
14865 # Compute "$ac_file"'s index in $config_headers.
14866 _am_arg="$ac_file"
14867 _am_stamp_count=1
14868 for _am_header in $config_headers :; do
14869   case $_am_header in
14870     $_am_arg | $_am_arg:* )
14871       break ;;
14872     * )
14873       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14874   esac
14875 done
14876 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14877 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14878          X"$_am_arg" : 'X\(//\)[^/]' \| \
14879          X"$_am_arg" : 'X\(//\)$' \| \
14880          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14881 $as_echo X"$_am_arg" |
14882     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14883             s//\1/
14884             q
14885           }
14886           /^X\(\/\/\)[^/].*/{
14887             s//\1/
14888             q
14889           }
14890           /^X\(\/\/\)$/{
14891             s//\1/
14892             q
14893           }
14894           /^X\(\/\).*/{
14895             s//\1/
14896             q
14897           }
14898           s/.*/./; q'`/stamp-h$_am_stamp_count
14899  ;;
14900
14901   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14902 $as_echo "$as_me: executing $ac_file commands" >&6;}
14903  ;;
14904   esac
14905
14906
14907   case $ac_file$ac_mode in
14908     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14909   # Autoconf 2.62 quotes --file arguments for eval, but not when files
14910   # are listed without --file.  Let's play safe and only enable the eval
14911   # if we detect the quoting.
14912   case $CONFIG_FILES in
14913   *\'*) eval set x "$CONFIG_FILES" ;;
14914   *)   set x $CONFIG_FILES ;;
14915   esac
14916   shift
14917   for mf
14918   do
14919     # Strip MF so we end up with the name of the file.
14920     mf=`echo "$mf" | sed -e 's/:.*$//'`
14921     # Check whether this is an Automake generated Makefile or not.
14922     # We used to match only the files named `Makefile.in', but
14923     # some people rename them; so instead we look at the file content.
14924     # Grep'ing the first line is not enough: some people post-process
14925     # each Makefile.in and add a new line on top of each file to say so.
14926     # Grep'ing the whole file is not good either: AIX grep has a line
14927     # limit of 2048, but all sed's we know have understand at least 4000.
14928     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14929       dirpart=`$as_dirname -- "$mf" ||
14930 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14931          X"$mf" : 'X\(//\)[^/]' \| \
14932          X"$mf" : 'X\(//\)$' \| \
14933          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14934 $as_echo X"$mf" |
14935     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14936             s//\1/
14937             q
14938           }
14939           /^X\(\/\/\)[^/].*/{
14940             s//\1/
14941             q
14942           }
14943           /^X\(\/\/\)$/{
14944             s//\1/
14945             q
14946           }
14947           /^X\(\/\).*/{
14948             s//\1/
14949             q
14950           }
14951           s/.*/./; q'`
14952     else
14953       continue
14954     fi
14955     # Extract the definition of DEPDIR, am__include, and am__quote
14956     # from the Makefile without running `make'.
14957     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14958     test -z "$DEPDIR" && continue
14959     am__include=`sed -n 's/^am__include = //p' < "$mf"`
14960     test -z "am__include" && continue
14961     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14962     # When using ansi2knr, U may be empty or an underscore; expand it
14963     U=`sed -n 's/^U = //p' < "$mf"`
14964     # Find all dependency output files, they are included files with
14965     # $(DEPDIR) in their names.  We invoke sed twice because it is the
14966     # simplest approach to changing $(DEPDIR) to its actual value in the
14967     # expansion.
14968     for file in `sed -n "
14969       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14970          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14971       # Make sure the directory exists.
14972       test -f "$dirpart/$file" && continue
14973       fdir=`$as_dirname -- "$file" ||
14974 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14975          X"$file" : 'X\(//\)[^/]' \| \
14976          X"$file" : 'X\(//\)$' \| \
14977          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14978 $as_echo X"$file" |
14979     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14980             s//\1/
14981             q
14982           }
14983           /^X\(\/\/\)[^/].*/{
14984             s//\1/
14985             q
14986           }
14987           /^X\(\/\/\)$/{
14988             s//\1/
14989             q
14990           }
14991           /^X\(\/\).*/{
14992             s//\1/
14993             q
14994           }
14995           s/.*/./; q'`
14996       as_dir=$dirpart/$fdir; as_fn_mkdir_p
14997       # echo "creating $dirpart/$file"
14998       echo '# dummy' > "$dirpart/$file"
14999     done
15000   done
15001 }
15002  ;;
15003     "libtool":C)
15004
15005     # See if we are running on zsh, and set the options which allow our
15006     # commands through without removal of \ escapes.
15007     if test -n "${ZSH_VERSION+set}" ; then
15008       setopt NO_GLOB_SUBST
15009     fi
15010
15011     cfgfile="${ofile}T"
15012     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15013     $RM "$cfgfile"
15014
15015     cat <<_LT_EOF >> "$cfgfile"
15016 #! $SHELL
15017
15018 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15019 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15020 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15021 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15022 #
15023 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15024 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
15025 #                 Foundation, Inc.
15026 #   Written by Gordon Matzigkeit, 1996
15027 #
15028 #   This file is part of GNU Libtool.
15029 #
15030 # GNU Libtool is free software; you can redistribute it and/or
15031 # modify it under the terms of the GNU General Public License as
15032 # published by the Free Software Foundation; either version 2 of
15033 # the License, or (at your option) any later version.
15034 #
15035 # As a special exception to the GNU General Public License,
15036 # if you distribute this file as part of a program or library that
15037 # is built using GNU Libtool, you may include this file under the
15038 # same distribution terms that you use for the rest of that program.
15039 #
15040 # GNU Libtool is distributed in the hope that it will be useful,
15041 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15042 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15043 # GNU General Public License for more details.
15044 #
15045 # You should have received a copy of the GNU General Public License
15046 # along with GNU Libtool; see the file COPYING.  If not, a copy
15047 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15048 # obtained by writing to the Free Software Foundation, Inc.,
15049 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15050
15051
15052 # The names of the tagged configurations supported by this script.
15053 available_tags=""
15054
15055 # ### BEGIN LIBTOOL CONFIG
15056
15057 # Which release of libtool.m4 was used?
15058 macro_version=$macro_version
15059 macro_revision=$macro_revision
15060
15061 # Whether or not to build shared libraries.
15062 build_libtool_libs=$enable_shared
15063
15064 # Whether or not to build static libraries.
15065 build_old_libs=$enable_static
15066
15067 # What type of objects to build.
15068 pic_mode=$pic_mode
15069
15070 # Whether or not to optimize for fast installation.
15071 fast_install=$enable_fast_install
15072
15073 # Shell to use when invoking shell scripts.
15074 SHELL=$lt_SHELL
15075
15076 # An echo program that protects backslashes.
15077 ECHO=$lt_ECHO
15078
15079 # The PATH separator for the build system.
15080 PATH_SEPARATOR=$lt_PATH_SEPARATOR
15081
15082 # The host system.
15083 host_alias=$host_alias
15084 host=$host
15085 host_os=$host_os
15086
15087 # The build system.
15088 build_alias=$build_alias
15089 build=$build
15090 build_os=$build_os
15091
15092 # A sed program that does not truncate output.
15093 SED=$lt_SED
15094
15095 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15096 Xsed="\$SED -e 1s/^X//"
15097
15098 # A grep program that handles long lines.
15099 GREP=$lt_GREP
15100
15101 # An ERE matcher.
15102 EGREP=$lt_EGREP
15103
15104 # A literal string matcher.
15105 FGREP=$lt_FGREP
15106
15107 # A BSD- or MS-compatible name lister.
15108 NM=$lt_NM
15109
15110 # Whether we need soft or hard links.
15111 LN_S=$lt_LN_S
15112
15113 # What is the maximum length of a command?
15114 max_cmd_len=$max_cmd_len
15115
15116 # Object file suffix (normally "o").
15117 objext=$ac_objext
15118
15119 # Executable file suffix (normally "").
15120 exeext=$exeext
15121
15122 # whether the shell understands "unset".
15123 lt_unset=$lt_unset
15124
15125 # turn spaces into newlines.
15126 SP2NL=$lt_lt_SP2NL
15127
15128 # turn newlines into spaces.
15129 NL2SP=$lt_lt_NL2SP
15130
15131 # convert \$build file names to \$host format.
15132 to_host_file_cmd=$lt_cv_to_host_file_cmd
15133
15134 # convert \$build files to toolchain format.
15135 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15136
15137 # An object symbol dumper.
15138 OBJDUMP=$lt_OBJDUMP
15139
15140 # Method to check whether dependent libraries are shared objects.
15141 deplibs_check_method=$lt_deplibs_check_method
15142
15143 # Command to use when deplibs_check_method = "file_magic".
15144 file_magic_cmd=$lt_file_magic_cmd
15145
15146 # How to find potential files when deplibs_check_method = "file_magic".
15147 file_magic_glob=$lt_file_magic_glob
15148
15149 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15150 want_nocaseglob=$lt_want_nocaseglob
15151
15152 # DLL creation program.
15153 DLLTOOL=$lt_DLLTOOL
15154
15155 # Command to associate shared and link libraries.
15156 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15157
15158 # The archiver.
15159 AR=$lt_AR
15160
15161 # Flags to create an archive.
15162 AR_FLAGS=$lt_AR_FLAGS
15163
15164 # How to feed a file listing to the archiver.
15165 archiver_list_spec=$lt_archiver_list_spec
15166
15167 # A symbol stripping program.
15168 STRIP=$lt_STRIP
15169
15170 # Commands used to install an old-style archive.
15171 RANLIB=$lt_RANLIB
15172 old_postinstall_cmds=$lt_old_postinstall_cmds
15173 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15174
15175 # Whether to use a lock for old archive extraction.
15176 lock_old_archive_extraction=$lock_old_archive_extraction
15177
15178 # A C compiler.
15179 LTCC=$lt_CC
15180
15181 # LTCC compiler flags.
15182 LTCFLAGS=$lt_CFLAGS
15183
15184 # Take the output of nm and produce a listing of raw symbols and C names.
15185 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15186
15187 # Transform the output of nm in a proper C declaration.
15188 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15189
15190 # Transform the output of nm in a C name address pair.
15191 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15192
15193 # Transform the output of nm in a C name address pair when lib prefix is needed.
15194 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15195
15196 # Specify filename containing input files for \$NM.
15197 nm_file_list_spec=$lt_nm_file_list_spec
15198
15199 # The root where to search for dependent libraries,and in which our libraries should be installed.
15200 lt_sysroot=$lt_sysroot
15201
15202 # The name of the directory that contains temporary libtool files.
15203 objdir=$objdir
15204
15205 # Used to examine libraries when file_magic_cmd begins with "file".
15206 MAGIC_CMD=$MAGIC_CMD
15207
15208 # Must we lock files when doing compilation?
15209 need_locks=$lt_need_locks
15210
15211 # Manifest tool.
15212 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15213
15214 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15215 DSYMUTIL=$lt_DSYMUTIL
15216
15217 # Tool to change global to local symbols on Mac OS X.
15218 NMEDIT=$lt_NMEDIT
15219
15220 # Tool to manipulate fat objects and archives on Mac OS X.
15221 LIPO=$lt_LIPO
15222
15223 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15224 OTOOL=$lt_OTOOL
15225
15226 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15227 OTOOL64=$lt_OTOOL64
15228
15229 # Old archive suffix (normally "a").
15230 libext=$libext
15231
15232 # Shared library suffix (normally ".so").
15233 shrext_cmds=$lt_shrext_cmds
15234
15235 # The commands to extract the exported symbol list from a shared archive.
15236 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15237
15238 # Variables whose values should be saved in libtool wrapper scripts and
15239 # restored at link time.
15240 variables_saved_for_relink=$lt_variables_saved_for_relink
15241
15242 # Do we need the "lib" prefix for modules?
15243 need_lib_prefix=$need_lib_prefix
15244
15245 # Do we need a version for libraries?
15246 need_version=$need_version
15247
15248 # Library versioning type.
15249 version_type=$version_type
15250
15251 # Shared library runtime path variable.
15252 runpath_var=$runpath_var
15253
15254 # Shared library path variable.
15255 shlibpath_var=$shlibpath_var
15256
15257 # Is shlibpath searched before the hard-coded library search path?
15258 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15259
15260 # Format of library name prefix.
15261 libname_spec=$lt_libname_spec
15262
15263 # List of archive names.  First name is the real one, the rest are links.
15264 # The last name is the one that the linker finds with -lNAME
15265 library_names_spec=$lt_library_names_spec
15266
15267 # The coded name of the library, if different from the real name.
15268 soname_spec=$lt_soname_spec
15269
15270 # Permission mode override for installation of shared libraries.
15271 install_override_mode=$lt_install_override_mode
15272
15273 # Command to use after installation of a shared archive.
15274 postinstall_cmds=$lt_postinstall_cmds
15275
15276 # Command to use after uninstallation of a shared archive.
15277 postuninstall_cmds=$lt_postuninstall_cmds
15278
15279 # Commands used to finish a libtool library installation in a directory.
15280 finish_cmds=$lt_finish_cmds
15281
15282 # As "finish_cmds", except a single script fragment to be evaled but
15283 # not shown.
15284 finish_eval=$lt_finish_eval
15285
15286 # Whether we should hardcode library paths into libraries.
15287 hardcode_into_libs=$hardcode_into_libs
15288
15289 # Compile-time system search path for libraries.
15290 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15291
15292 # Run-time system search path for libraries.
15293 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15294
15295 # Whether dlopen is supported.
15296 dlopen_support=$enable_dlopen
15297
15298 # Whether dlopen of programs is supported.
15299 dlopen_self=$enable_dlopen_self
15300
15301 # Whether dlopen of statically linked programs is supported.
15302 dlopen_self_static=$enable_dlopen_self_static
15303
15304 # Commands to strip libraries.
15305 old_striplib=$lt_old_striplib
15306 striplib=$lt_striplib
15307
15308
15309 # The linker used to build libraries.
15310 LD=$lt_LD
15311
15312 # How to create reloadable object files.
15313 reload_flag=$lt_reload_flag
15314 reload_cmds=$lt_reload_cmds
15315
15316 # Commands used to build an old-style archive.
15317 old_archive_cmds=$lt_old_archive_cmds
15318
15319 # A language specific compiler.
15320 CC=$lt_compiler
15321
15322 # Is the compiler the GNU compiler?
15323 with_gcc=$GCC
15324
15325 # Compiler flag to turn off builtin functions.
15326 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15327
15328 # Additional compiler flags for building library objects.
15329 pic_flag=$lt_lt_prog_compiler_pic
15330
15331 # How to pass a linker flag through the compiler.
15332 wl=$lt_lt_prog_compiler_wl
15333
15334 # Compiler flag to prevent dynamic linking.
15335 link_static_flag=$lt_lt_prog_compiler_static
15336
15337 # Does compiler simultaneously support -c and -o options?
15338 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15339
15340 # Whether or not to add -lc for building shared libraries.
15341 build_libtool_need_lc=$archive_cmds_need_lc
15342
15343 # Whether or not to disallow shared libs when runtime libs are static.
15344 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15345
15346 # Compiler flag to allow reflexive dlopens.
15347 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15348
15349 # Compiler flag to generate shared objects directly from archives.
15350 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15351
15352 # Whether the compiler copes with passing no objects directly.
15353 compiler_needs_object=$lt_compiler_needs_object
15354
15355 # Create an old-style archive from a shared archive.
15356 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15357
15358 # Create a temporary old-style archive to link instead of a shared archive.
15359 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15360
15361 # Commands used to build a shared archive.
15362 archive_cmds=$lt_archive_cmds
15363 archive_expsym_cmds=$lt_archive_expsym_cmds
15364
15365 # Commands used to build a loadable module if different from building
15366 # a shared archive.
15367 module_cmds=$lt_module_cmds
15368 module_expsym_cmds=$lt_module_expsym_cmds
15369
15370 # Whether we are building with GNU ld or not.
15371 with_gnu_ld=$lt_with_gnu_ld
15372
15373 # Flag that allows shared libraries with undefined symbols to be built.
15374 allow_undefined_flag=$lt_allow_undefined_flag
15375
15376 # Flag that enforces no undefined symbols.
15377 no_undefined_flag=$lt_no_undefined_flag
15378
15379 # Flag to hardcode \$libdir into a binary during linking.
15380 # This must work even if \$libdir does not exist
15381 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15382
15383 # Whether we need a single "-rpath" flag with a separated argument.
15384 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15385
15386 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15387 # DIR into the resulting binary.
15388 hardcode_direct=$hardcode_direct
15389
15390 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15391 # DIR into the resulting binary and the resulting library dependency is
15392 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15393 # library is relocated.
15394 hardcode_direct_absolute=$hardcode_direct_absolute
15395
15396 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15397 # into the resulting binary.
15398 hardcode_minus_L=$hardcode_minus_L
15399
15400 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15401 # into the resulting binary.
15402 hardcode_shlibpath_var=$hardcode_shlibpath_var
15403
15404 # Set to "yes" if building a shared library automatically hardcodes DIR
15405 # into the library and all subsequent libraries and executables linked
15406 # against it.
15407 hardcode_automatic=$hardcode_automatic
15408
15409 # Set to yes if linker adds runtime paths of dependent libraries
15410 # to runtime path list.
15411 inherit_rpath=$inherit_rpath
15412
15413 # Whether libtool must link a program against all its dependency libraries.
15414 link_all_deplibs=$link_all_deplibs
15415
15416 # Set to "yes" if exported symbols are required.
15417 always_export_symbols=$always_export_symbols
15418
15419 # The commands to list exported symbols.
15420 export_symbols_cmds=$lt_export_symbols_cmds
15421
15422 # Symbols that should not be listed in the preloaded symbols.
15423 exclude_expsyms=$lt_exclude_expsyms
15424
15425 # Symbols that must always be exported.
15426 include_expsyms=$lt_include_expsyms
15427
15428 # Commands necessary for linking programs (against libraries) with templates.
15429 prelink_cmds=$lt_prelink_cmds
15430
15431 # Commands necessary for finishing linking programs.
15432 postlink_cmds=$lt_postlink_cmds
15433
15434 # Specify filename containing input files.
15435 file_list_spec=$lt_file_list_spec
15436
15437 # How to hardcode a shared library path into an executable.
15438 hardcode_action=$hardcode_action
15439
15440 # ### END LIBTOOL CONFIG
15441
15442 _LT_EOF
15443
15444   case $host_os in
15445   aix3*)
15446     cat <<\_LT_EOF >> "$cfgfile"
15447 # AIX sometimes has problems with the GCC collect2 program.  For some
15448 # reason, if we set the COLLECT_NAMES environment variable, the problems
15449 # vanish in a puff of smoke.
15450 if test "X${COLLECT_NAMES+set}" != Xset; then
15451   COLLECT_NAMES=
15452   export COLLECT_NAMES
15453 fi
15454 _LT_EOF
15455     ;;
15456   esac
15457
15458
15459 ltmain="$ac_aux_dir/ltmain.sh"
15460
15461
15462   # We use sed instead of cat because bash on DJGPP gets confused if
15463   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15464   # text mode, it properly converts lines to CR/LF.  This bash problem
15465   # is reportedly fixed, but why not run on old versions too?
15466   sed '$q' "$ltmain" >> "$cfgfile" \
15467      || (rm -f "$cfgfile"; exit 1)
15468
15469   if test x"$xsi_shell" = xyes; then
15470   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
15471 func_dirname ()\
15472 {\
15473 \    case ${1} in\
15474 \      */*) func_dirname_result="${1%/*}${2}" ;;\
15475 \      *  ) func_dirname_result="${3}" ;;\
15476 \    esac\
15477 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
15478   && mv -f "$cfgfile.tmp" "$cfgfile" \
15479     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15480 test 0 -eq $? || _lt_function_replace_fail=:
15481
15482
15483   sed -e '/^func_basename ()$/,/^} # func_basename /c\
15484 func_basename ()\
15485 {\
15486 \    func_basename_result="${1##*/}"\
15487 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
15488   && mv -f "$cfgfile.tmp" "$cfgfile" \
15489     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15490 test 0 -eq $? || _lt_function_replace_fail=:
15491
15492
15493   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
15494 func_dirname_and_basename ()\
15495 {\
15496 \    case ${1} in\
15497 \      */*) func_dirname_result="${1%/*}${2}" ;;\
15498 \      *  ) func_dirname_result="${3}" ;;\
15499 \    esac\
15500 \    func_basename_result="${1##*/}"\
15501 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
15502   && mv -f "$cfgfile.tmp" "$cfgfile" \
15503     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15504 test 0 -eq $? || _lt_function_replace_fail=:
15505
15506
15507   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
15508 func_stripname ()\
15509 {\
15510 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
15511 \    # positional parameters, so assign one to ordinary parameter first.\
15512 \    func_stripname_result=${3}\
15513 \    func_stripname_result=${func_stripname_result#"${1}"}\
15514 \    func_stripname_result=${func_stripname_result%"${2}"}\
15515 } # Extended-shell func_stripname 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_split_long_opt ()$/,/^} # func_split_long_opt /c\
15522 func_split_long_opt ()\
15523 {\
15524 \    func_split_long_opt_name=${1%%=*}\
15525 \    func_split_long_opt_arg=${1#*=}\
15526 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
15527   && mv -f "$cfgfile.tmp" "$cfgfile" \
15528     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15529 test 0 -eq $? || _lt_function_replace_fail=:
15530
15531
15532   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
15533 func_split_short_opt ()\
15534 {\
15535 \    func_split_short_opt_arg=${1#??}\
15536 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
15537 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
15538   && mv -f "$cfgfile.tmp" "$cfgfile" \
15539     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15540 test 0 -eq $? || _lt_function_replace_fail=:
15541
15542
15543   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
15544 func_lo2o ()\
15545 {\
15546 \    case ${1} in\
15547 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
15548 \      *)    func_lo2o_result=${1} ;;\
15549 \    esac\
15550 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
15551   && mv -f "$cfgfile.tmp" "$cfgfile" \
15552     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15553 test 0 -eq $? || _lt_function_replace_fail=:
15554
15555
15556   sed -e '/^func_xform ()$/,/^} # func_xform /c\
15557 func_xform ()\
15558 {\
15559     func_xform_result=${1%.*}.lo\
15560 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
15561   && mv -f "$cfgfile.tmp" "$cfgfile" \
15562     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15563 test 0 -eq $? || _lt_function_replace_fail=:
15564
15565
15566   sed -e '/^func_arith ()$/,/^} # func_arith /c\
15567 func_arith ()\
15568 {\
15569     func_arith_result=$(( $* ))\
15570 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
15571   && mv -f "$cfgfile.tmp" "$cfgfile" \
15572     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15573 test 0 -eq $? || _lt_function_replace_fail=:
15574
15575
15576   sed -e '/^func_len ()$/,/^} # func_len /c\
15577 func_len ()\
15578 {\
15579     func_len_result=${#1}\
15580 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
15581   && mv -f "$cfgfile.tmp" "$cfgfile" \
15582     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15583 test 0 -eq $? || _lt_function_replace_fail=:
15584
15585 fi
15586
15587 if test x"$lt_shell_append" = xyes; then
15588   sed -e '/^func_append ()$/,/^} # func_append /c\
15589 func_append ()\
15590 {\
15591     eval "${1}+=\\${2}"\
15592 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
15593   && mv -f "$cfgfile.tmp" "$cfgfile" \
15594     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15595 test 0 -eq $? || _lt_function_replace_fail=:
15596
15597
15598   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
15599 func_append_quoted ()\
15600 {\
15601 \    func_quote_for_eval "${2}"\
15602 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
15603 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
15604   && mv -f "$cfgfile.tmp" "$cfgfile" \
15605     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15606 test 0 -eq $? || _lt_function_replace_fail=:
15607
15608
15609   # Save a `func_append' function call where possible by direct use of '+='
15610   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
15611     && mv -f "$cfgfile.tmp" "$cfgfile" \
15612       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15613   test 0 -eq $? || _lt_function_replace_fail=:
15614 else
15615   # Save a `func_append' function call even when '+=' is not available
15616   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
15617     && mv -f "$cfgfile.tmp" "$cfgfile" \
15618       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15619   test 0 -eq $? || _lt_function_replace_fail=:
15620 fi
15621
15622 if test x"$_lt_function_replace_fail" = x":"; then
15623   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
15624 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
15625 fi
15626
15627
15628    mv -f "$cfgfile" "$ofile" ||
15629     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15630   chmod +x "$ofile"
15631
15632  ;;
15633
15634   esac
15635 done # for ac_tag
15636
15637
15638 as_fn_exit 0
15639 _ACEOF
15640 ac_clean_files=$ac_clean_files_save
15641
15642 test $ac_write_fail = 0 ||
15643   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15644
15645
15646 # configure is writing to config.log, and then calls config.status.
15647 # config.status does its own redirection, appending to config.log.
15648 # Unfortunately, on DOS this fails, as config.log is still kept open
15649 # by configure, so config.status won't be able to write to it; its
15650 # output is simply discarded.  So we exec the FD to /dev/null,
15651 # effectively closing config.log, so it can be properly (re)opened and
15652 # appended to by config.status.  When coming back to configure, we
15653 # need to make the FD available again.
15654 if test "$no_create" != yes; then
15655   ac_cs_success=:
15656   ac_config_status_args=
15657   test "$silent" = yes &&
15658     ac_config_status_args="$ac_config_status_args --quiet"
15659   exec 5>/dev/null
15660   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15661   exec 5>>config.log
15662   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15663   # would make configure fail if this is the last instruction.
15664   $ac_cs_success || as_fn_exit 1
15665 fi
15666 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15667   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15668 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15669 fi
15670
15671
15672 echo "
15673     ${PACKAGE} ${VERSION}
15674     ---------------------
15675
15676     Prefix:                ${prefix}
15677     GObject-Introspection: ${found_introspection}
15678     VALA bindings:         ${have_vapigen}
15679 "