2.0 beta init
[framework/multimedia/gstreamer0.10.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for GStreamer 0.10.36.
4 #
5 # Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22   emulate sh
23   NULLCMD=:
24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25   # is contrary to our usage.  Disable this feature.
26   alias -g '${1+"$@"}'='"$@"'
27   setopt NO_GLOB_SUBST
28 else
29   case `(set -o) 2>/dev/null` in #(
30   *posix*) :
31     set -o posix ;; #(
32   *) :
33      ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49   as_echo='print -r --'
50   as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in #(
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order.  Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" ""        $as_nl"
92
93 # Find who we are.  Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96   *[\\/]* ) as_myself=$0 ;;
97   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100   IFS=$as_save_IFS
101   test -z "$as_dir" && as_dir=.
102     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103   done
104 IFS=$as_save_IFS
105
106      ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111   as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115   exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there.  '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141   emulate sh
142   NULLCMD=:
143   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144   # is contrary to our usage.  Disable this feature.
145   alias -g '\${1+\"\$@\"}'='\"\$@\"'
146   setopt NO_GLOB_SUBST
147 else
148   case \`(set -o) 2>/dev/null\` in #(
149   *posix*) :
150     set -o posix ;; #(
151   *) :
152      ;;
153 esac
154 fi
155 "
156   as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170   exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177
178   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182     PATH=/empty FPATH=/empty; export PATH FPATH
183     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185 test \$(( 1 + 1 )) = 2 || exit 1"
186   if (eval "$as_required") 2>/dev/null; then :
187   as_have_required=yes
188 else
189   as_have_required=no
190 fi
191   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193 else
194   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195 as_found=false
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 do
198   IFS=$as_save_IFS
199   test -z "$as_dir" && as_dir=.
200   as_found=:
201   case $as_dir in #(
202          /*)
203            for as_base in sh bash ksh sh5; do
204              # Try only shells that exist, to save several forks.
205              as_shell=$as_dir/$as_base
206              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208   CONFIG_SHELL=$as_shell as_have_required=yes
209                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210   break 2
211 fi
212 fi
213            done;;
214        esac
215   as_found=false
216 done
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219   CONFIG_SHELL=$SHELL as_have_required=yes
220 fi; }
221 IFS=$as_save_IFS
222
223
224       if test "x$CONFIG_SHELL" != x; then :
225   # We cannot yet assume a decent shell, so we have to provide a
226         # neutralization value for shells without unset; and this also
227         # works around shells that cannot unset nonexistent variables.
228         # Preserve -v and -x to the replacement shell.
229         BASH_ENV=/dev/null
230         ENV=/dev/null
231         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232         export CONFIG_SHELL
233         case $- in # ((((
234           *v*x* | *x*v* ) as_opts=-vx ;;
235           *v* ) as_opts=-v ;;
236           *x* ) as_opts=-x ;;
237           * ) as_opts= ;;
238         esac
239         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 fi
241
242     if test x$as_have_required = xno; then :
243   $as_echo "$0: This script requires a shell more modern than all"
244   $as_echo "$0: the shells that I found on your system."
245   if test x${ZSH_VERSION+set} = xset ; then
246     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248   else
249     $as_echo "$0: Please tell bug-autoconf@gnu.org and
250 $0: http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer
251 $0: about your system, including any error possibly output
252 $0: before this message. Then install a modern shell, or
253 $0: manually run the script under such a shell if you do
254 $0: have one."
255   fi
256   exit 1
257 fi
258 fi
259 fi
260 SHELL=${CONFIG_SHELL-/bin/sh}
261 export SHELL
262 # Unset more variables known to interfere with behavior of common tools.
263 CLICOLOR_FORCE= GREP_OPTIONS=
264 unset CLICOLOR_FORCE GREP_OPTIONS
265
266 ## --------------------- ##
267 ## M4sh Shell Functions. ##
268 ## --------------------- ##
269 # as_fn_unset VAR
270 # ---------------
271 # Portably unset VAR.
272 as_fn_unset ()
273 {
274   { eval $1=; unset $1;}
275 }
276 as_unset=as_fn_unset
277
278 # as_fn_set_status STATUS
279 # -----------------------
280 # Set $? to STATUS, without forking.
281 as_fn_set_status ()
282 {
283   return $1
284 } # as_fn_set_status
285
286 # as_fn_exit STATUS
287 # -----------------
288 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
289 as_fn_exit ()
290 {
291   set +e
292   as_fn_set_status $1
293   exit $1
294 } # as_fn_exit
295
296 # as_fn_mkdir_p
297 # -------------
298 # Create "$as_dir" as a directory, including parents if necessary.
299 as_fn_mkdir_p ()
300 {
301
302   case $as_dir in #(
303   -*) as_dir=./$as_dir;;
304   esac
305   test -d "$as_dir" || eval $as_mkdir_p || {
306     as_dirs=
307     while :; do
308       case $as_dir in #(
309       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
310       *) as_qdir=$as_dir;;
311       esac
312       as_dirs="'$as_qdir' $as_dirs"
313       as_dir=`$as_dirname -- "$as_dir" ||
314 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
315          X"$as_dir" : 'X\(//\)[^/]' \| \
316          X"$as_dir" : 'X\(//\)$' \| \
317          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
318 $as_echo X"$as_dir" |
319     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
320             s//\1/
321             q
322           }
323           /^X\(\/\/\)[^/].*/{
324             s//\1/
325             q
326           }
327           /^X\(\/\/\)$/{
328             s//\1/
329             q
330           }
331           /^X\(\/\).*/{
332             s//\1/
333             q
334           }
335           s/.*/./; q'`
336       test -d "$as_dir" && break
337     done
338     test -z "$as_dirs" || eval "mkdir $as_dirs"
339   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
340
341
342 } # as_fn_mkdir_p
343 # as_fn_append VAR VALUE
344 # ----------------------
345 # Append the text in VALUE to the end of the definition contained in VAR. Take
346 # advantage of any shell optimizations that allow amortized linear growth over
347 # repeated appends, instead of the typical quadratic growth present in naive
348 # implementations.
349 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
350   eval 'as_fn_append ()
351   {
352     eval $1+=\$2
353   }'
354 else
355   as_fn_append ()
356   {
357     eval $1=\$$1\$2
358   }
359 fi # as_fn_append
360
361 # as_fn_arith ARG...
362 # ------------------
363 # Perform arithmetic evaluation on the ARGs, and store the result in the
364 # global $as_val. Take advantage of shells that can avoid forks. The arguments
365 # must be portable across $(()) and expr.
366 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
367   eval 'as_fn_arith ()
368   {
369     as_val=$(( $* ))
370   }'
371 else
372   as_fn_arith ()
373   {
374     as_val=`expr "$@" || test $? -eq 1`
375   }
376 fi # as_fn_arith
377
378
379 # as_fn_error STATUS ERROR [LINENO LOG_FD]
380 # ----------------------------------------
381 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
382 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
383 # script with STATUS, using 1 if that was 0.
384 as_fn_error ()
385 {
386   as_status=$1; test $as_status -eq 0 && as_status=1
387   if test "$4"; then
388     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
389     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
390   fi
391   $as_echo "$as_me: error: $2" >&2
392   as_fn_exit $as_status
393 } # as_fn_error
394
395 if expr a : '\(a\)' >/dev/null 2>&1 &&
396    test "X`expr 00001 : '.*\(...\)'`" = X001; then
397   as_expr=expr
398 else
399   as_expr=false
400 fi
401
402 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
403   as_basename=basename
404 else
405   as_basename=false
406 fi
407
408 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
409   as_dirname=dirname
410 else
411   as_dirname=false
412 fi
413
414 as_me=`$as_basename -- "$0" ||
415 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
416          X"$0" : 'X\(//\)$' \| \
417          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
418 $as_echo X/"$0" |
419     sed '/^.*\/\([^/][^/]*\)\/*$/{
420             s//\1/
421             q
422           }
423           /^X\/\(\/\/\)$/{
424             s//\1/
425             q
426           }
427           /^X\/\(\/\).*/{
428             s//\1/
429             q
430           }
431           s/.*/./; q'`
432
433 # Avoid depending upon Character Ranges.
434 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
435 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
436 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
437 as_cr_digits='0123456789'
438 as_cr_alnum=$as_cr_Letters$as_cr_digits
439
440
441   as_lineno_1=$LINENO as_lineno_1a=$LINENO
442   as_lineno_2=$LINENO as_lineno_2a=$LINENO
443   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
444   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
445   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
446   sed -n '
447     p
448     /[$]LINENO/=
449   ' <$as_myself |
450     sed '
451       s/[$]LINENO.*/&-/
452       t lineno
453       b
454       :lineno
455       N
456       :loop
457       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
458       t loop
459       s/-\n.*//
460     ' >$as_me.lineno &&
461   chmod +x "$as_me.lineno" ||
462     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
463
464   # Don't try to exec as it changes $[0], causing all sort of problems
465   # (the dirname of $[0] is not the place where we might find the
466   # original and so on.  Autoconf is especially sensitive to this).
467   . "./$as_me.lineno"
468   # Exit status is that of the last command.
469   exit
470 }
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in #(((((
474 -n*)
475   case `echo 'xy\c'` in
476   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477   xy)  ECHO_C='\c';;
478   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
479        ECHO_T=' ';;
480   esac;;
481 *)
482   ECHO_N='-n';;
483 esac
484
485 rm -f conf$$ conf$$.exe conf$$.file
486 if test -d conf$$.dir; then
487   rm -f conf$$.dir/conf$$.file
488 else
489   rm -f conf$$.dir
490   mkdir conf$$.dir 2>/dev/null
491 fi
492 if (echo >conf$$.file) 2>/dev/null; then
493   if ln -s conf$$.file conf$$ 2>/dev/null; then
494     as_ln_s='ln -s'
495     # ... but there are two gotchas:
496     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
497     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
498     # In both cases, we have to default to `cp -p'.
499     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500       as_ln_s='cp -p'
501   elif ln conf$$.file conf$$ 2>/dev/null; then
502     as_ln_s=ln
503   else
504     as_ln_s='cp -p'
505   fi
506 else
507   as_ln_s='cp -p'
508 fi
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
511
512 if mkdir -p . 2>/dev/null; then
513   as_mkdir_p='mkdir -p "$as_dir"'
514 else
515   test -d ./-p && rmdir ./-p
516   as_mkdir_p=false
517 fi
518
519 if test -x / >/dev/null 2>&1; then
520   as_test_x='test -x'
521 else
522   if ls -dL / >/dev/null 2>&1; then
523     as_ls_L_option=L
524   else
525     as_ls_L_option=
526   fi
527   as_test_x='
528     eval sh -c '\''
529       if test -d "$1"; then
530         test -d "$1/.";
531       else
532         case $1 in #(
533         -*)set "./$1";;
534         esac;
535         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
536         ???[sx]*):;;*)false;;esac;fi
537     '\'' sh
538   '
539 fi
540 as_executable_p=$as_test_x
541
542 # Sed expression to map a string onto a valid CPP name.
543 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
544
545 # Sed expression to map a string onto a valid variable name.
546 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
547
548 SHELL=${CONFIG_SHELL-/bin/sh}
549
550
551 test -n "$DJDIR" || exec 7<&0 </dev/null
552 exec 6>&1
553
554 # Name of the host.
555 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559 #
560 # Initializations.
561 #
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570
571 # Identity of this package.
572 PACKAGE_NAME='GStreamer'
573 PACKAGE_TARNAME='gstreamer'
574 PACKAGE_VERSION='0.10.36'
575 PACKAGE_STRING='GStreamer 0.10.36'
576 PACKAGE_BUGREPORT='http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer'
577 PACKAGE_URL=''
578
579 ac_unique_file="gst/gst.c"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 #  include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 #  include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
615
616 gt_needs=
617 ac_header_list=
618 ac_subst_vars='am__EXEEXT_FALSE
619 am__EXEEXT_TRUE
620 LTLIBOBJS
621 LIBOBJS
622 SUBUNIT_FALSE
623 SUBUNIT_TRUE
624 ENABLE_SUBUNIT
625 CHECK_VERSION
626 CHECK_MICRO_VERSION
627 CHECK_MINOR_VERSION
628 CHECK_MAJOR_VERSION
629 GST_PLUGIN_SCANNER_INSTALLED
630 GST_PLUGIN_LDFLAGS
631 GST_OBJ_LIBS
632 GST_OBJ_CXXFLAGS
633 GST_OBJ_CFLAGS
634 GST_LIB_LDFLAGS
635 GST_ALL_LDFLAGS
636 GST_ALL_LIBS
637 GST_ALL_CXXFLAGS
638 GST_ALL_CFLAGS
639 GST_OPTION_CXXFLAGS
640 GST_OPTION_CFLAGS
641 DEPRECATED_CFLAGS
642 PROFILE_CFLAGS
643 GST_LEVEL_DEFAULT
644 ERROR_CFLAGS
645 WARNING_CFLAGS
646 GST_PKG_DEPS
647 plugindir
648 PLUGINDIR
649 DATADIR
650 LIBDIR
651 GST_LICENSE
652 HAVE_CHECK_FALSE
653 HAVE_CHECK_TRUE
654 GST_DISABLE_XML_DEFINE
655 LIBXML_PKG
656 XML_LIBS
657 XML_CFLAGS
658 LIBXML2_REQ
659 GLIB_PREFIX
660 GLIB_ONLY_LIBS
661 GLIB_ONLY_CFLAGS
662 GST_HAVE_GLIB_2_8_DEFINE
663 GLIB_EXTRA_CFLAGS
664 GLIB_LIBS
665 GLIB_CFLAGS
666 GLIB_REQ
667 INET_ATON_LIBS
668 GST_USING_PRINTF_EXTENSION_DEFINE
669 GST_PRINTF_EXTENSION_SEGMENT_FORMAT_DEFINE
670 GST_PRINTF_EXTENSION_POINTER_FORMAT_DEFINE
671 GST_HAVE_MONOTONIC_CLOCK_FALSE
672 GST_HAVE_MONOTONIC_CLOCK_TRUE
673 GST_HAVE_MONOTONIC_CLOCK_DEFINE
674 GST_HAVE_POSIX_TIMERS_FALSE
675 GST_HAVE_POSIX_TIMERS_TRUE
676 GST_HAVE_POSIX_TIMERS_DEFINE
677 HAVE_MMAP_FALSE
678 HAVE_MMAP_TRUE
679 HAVE_GSL
680 GSL_LIBS
681 HAVE_GMP
682 GMP_LIBS
683 WIN32_LIBS
684 HAVE_WINSOCK2_H_FALSE
685 HAVE_WINSOCK2_H_TRUE
686 HAVE_PTHREAD_H_FALSE
687 HAVE_PTHREAD_H_TRUE
688 HAVE_SYS_TIMES_H_AND_UNISTD_H_FALSE
689 HAVE_SYS_TIMES_H_AND_UNISTD_H_TRUE
690 HAVE_SYS_SOCKET_H_FALSE
691 HAVE_SYS_SOCKET_H_TRUE
692 LIBM
693 ENABLE_PLUGIN_DOCS_FALSE
694 ENABLE_PLUGIN_DOCS_TRUE
695 pkgpyexecdir
696 pyexecdir
697 pkgpythondir
698 pythondir
699 PYTHON_PLATFORM
700 PYTHON_EXEC_PREFIX
701 PYTHON_PREFIX
702 PYTHON_VERSION
703 PYTHON
704 GTK_DOC_USE_LIBTOOL_FALSE
705 GTK_DOC_USE_LIBTOOL_TRUE
706 ENABLE_GTK_DOC_FALSE
707 ENABLE_GTK_DOC_TRUE
708 GTKDOC_CHECK
709 HTML_DIR
710 DOC_PS_FALSE
711 DOC_PS_TRUE
712 DOC_PDF_FALSE
713 DOC_PDF_TRUE
714 DOC_HTML_FALSE
715 DOC_HTML_TRUE
716 ENABLE_DOCBOOK_FALSE
717 ENABLE_DOCBOOK_TRUE
718 HAVE_EPSTOPDF
719 HAVE_PNMTOPS
720 HAVE_PNGTOPNM
721 HAVE_FIG2DEV
722 HAVE_XMLLINT
723 HAVE_DVIPS
724 CAT_ENTRY_END
725 CAT_ENTRY_START
726 DOCBOOK_ROOT
727 XSLTPROC_FLAGS
728 XML_CATALOG
729 XSLTPROC
730 HAVE_PS2PDF
731 HAVE_JADETEX
732 HAVE_DOCBOOK2HTML
733 HAVE_DOCBOOK2PS
734 HAVE_INTROSPECTION_FALSE
735 HAVE_INTROSPECTION_TRUE
736 INTROSPECTION_MAKEFILE
737 INTROSPECTION_LIBS
738 INTROSPECTION_CFLAGS
739 INTROSPECTION_TYPELIBDIR
740 INTROSPECTION_GIRDIR
741 INTROSPECTION_GENERATE
742 INTROSPECTION_COMPILER
743 INTROSPECTION_SCANNER
744 HAVE_VALGRIND_FALSE
745 HAVE_VALGRIND_TRUE
746 VALGRIND_PATH
747 FLEX_PATH
748 BISON_PATH
749 PERL_PATH
750 HAVE_CXX_FALSE
751 HAVE_CXX_TRUE
752 CXXCPP
753 am__fastdepCXX_FALSE
754 am__fastdepCXX_TRUE
755 CXXDEPMODE
756 ac_ct_CXX
757 CXX
758 am__fastdepCCAS_FALSE
759 am__fastdepCCAS_TRUE
760 CCASDEPMODE
761 CCAS
762 GST_HAVE_UNALIGNED_ACCESS_DEFINE
763 HOST_CPU
764 HAVE_CPU_CRISV32_FALSE
765 HAVE_CPU_CRISV32_TRUE
766 HAVE_CPU_CRIS_FALSE
767 HAVE_CPU_CRIS_TRUE
768 HAVE_CPU_X86_64_FALSE
769 HAVE_CPU_X86_64_TRUE
770 HAVE_CPU_M68K_FALSE
771 HAVE_CPU_M68K_TRUE
772 HAVE_CPU_IA64_FALSE
773 HAVE_CPU_IA64_TRUE
774 HAVE_CPU_S390_FALSE
775 HAVE_CPU_S390_TRUE
776 HAVE_CPU_MIPS_FALSE
777 HAVE_CPU_MIPS_TRUE
778 HAVE_CPU_HPPA_FALSE
779 HAVE_CPU_HPPA_TRUE
780 HAVE_CPU_SPARC_FALSE
781 HAVE_CPU_SPARC_TRUE
782 HAVE_CPU_ARM_FALSE
783 HAVE_CPU_ARM_TRUE
784 HAVE_CPU_ALPHA_FALSE
785 HAVE_CPU_ALPHA_TRUE
786 HAVE_CPU_PPC64_FALSE
787 HAVE_CPU_PPC64_TRUE
788 HAVE_CPU_PPC_FALSE
789 HAVE_CPU_PPC_TRUE
790 HAVE_CPU_I386_FALSE
791 HAVE_CPU_I386_TRUE
792 BUILD_FAILING_TESTS_FALSE
793 BUILD_FAILING_TESTS_TRUE
794 BUILD_TESTS_FALSE
795 BUILD_TESTS_TRUE
796 GST_PKG_CONFIG_PATH
797 GST_PACKAGE_ORIGIN
798 GST_PACKAGE_NAME
799 BUILD_EXAMPLES_FALSE
800 BUILD_EXAMPLES_TRUE
801 GST_GCOV_ENABLED_FALSE
802 GST_GCOV_ENABLED_TRUE
803 CCASFLAGS
804 FFLAGS
805 CXXFLAGS
806 GCOV
807 GCOV_LIBS
808 GCOV_CFLAGS
809 VALGRIND_LIBS
810 VALGRIND_CFLAGS
811 PKG_CONFIG
812 GST_DISABLE_PLUGIN_FALSE
813 GST_DISABLE_PLUGIN_TRUE
814 GST_DISABLE_PLUGIN_DEFINE
815 GST_DISABLE_NET_FALSE
816 GST_DISABLE_NET_TRUE
817 GST_DISABLE_NET_DEFINE
818 GST_REGISTRY_DOC_TYPES
819 GST_DISABLE_REGISTRY_FALSE
820 GST_DISABLE_REGISTRY_TRUE
821 GST_DISABLE_REGISTRY_DEFINE
822 GST_DISABLE_ALLOC_TRACE_FALSE
823 GST_DISABLE_ALLOC_TRACE_TRUE
824 GST_DISABLE_ALLOC_TRACE_DEFINE
825 GST_DISABLE_TRACE_FALSE
826 GST_DISABLE_TRACE_TRUE
827 GST_DISABLE_TRACE_DEFINE
828 GST_DISABLE_OPTION_PARSING_FALSE
829 GST_DISABLE_OPTION_PARSING_TRUE
830 GST_DISABLE_OPTION_PARSING_DEFINE
831 GST_DISABLE_PARSE_FALSE
832 GST_DISABLE_PARSE_TRUE
833 GST_DISABLE_PARSE_DEFINE
834 GST_LOADSAVE_DOC_TYPES
835 GST_DISABLE_LOADSAVE_FALSE
836 GST_DISABLE_LOADSAVE_TRUE
837 GST_DISABLE_LOADSAVE_DEFINE
838 GST_DISABLE_GST_DEBUG_FALSE
839 GST_DISABLE_GST_DEBUG_TRUE
840 GST_DISABLE_GST_DEBUG_DEFINE
841 LOCALEDIR
842 GETTEXT_PACKAGE
843 POSUB
844 LTLIBINTL
845 LIBINTL
846 INTLLIBS
847 LTLIBICONV
848 LIBICONV
849 INTL_MACOSX_LIBS
850 XGETTEXT_EXTRA_OPTIONS
851 MSGMERGE
852 XGETTEXT_015
853 XGETTEXT
854 GMSGFMT_015
855 MSGFMT_015
856 GMSGFMT
857 MSGFMT
858 GETTEXT_MACRO_VERSION
859 USE_NLS
860 ACLOCAL_AMFLAGS
861 CPP
862 OTOOL64
863 OTOOL
864 LIPO
865 NMEDIT
866 DSYMUTIL
867 MANIFEST_TOOL
868 RANLIB
869 ac_ct_AR
870 AR
871 LN_S
872 NM
873 ac_ct_DUMPBIN
874 DUMPBIN
875 LD
876 FGREP
877 EGREP
878 GREP
879 SED
880 am__fastdepCC_FALSE
881 am__fastdepCC_TRUE
882 CCDEPMODE
883 am__nodep
884 AMDEPBACKSLASH
885 AMDEP_FALSE
886 AMDEP_TRUE
887 am__quote
888 am__include
889 DEPDIR
890 OBJEXT
891 EXEEXT
892 ac_ct_CC
893 CPPFLAGS
894 LDFLAGS
895 CFLAGS
896 CC
897 LIBTOOL
898 OBJDUMP
899 DLLTOOL
900 AS
901 GST_LT_LDFLAGS
902 GST_LIBVERSION
903 GST_AGE
904 GST_REVISION
905 GST_CURRENT
906 GST_MAJORMINOR
907 AM_BACKSLASH
908 AM_DEFAULT_VERBOSITY
909 AM_DEFAULT_V
910 AM_V
911 host_os
912 host_vendor
913 host_cpu
914 host
915 build_os
916 build_vendor
917 build_cpu
918 build
919 MAINT
920 MAINTAINER_MODE_FALSE
921 MAINTAINER_MODE_TRUE
922 PACKAGE_VERSION_RELEASE
923 PACKAGE_VERSION_NANO
924 PACKAGE_VERSION_MICRO
925 PACKAGE_VERSION_MINOR
926 PACKAGE_VERSION_MAJOR
927 am__untar
928 am__tar
929 AMTAR
930 am__leading_dot
931 SET_MAKE
932 AWK
933 mkdir_p
934 MKDIR_P
935 INSTALL_STRIP_PROGRAM
936 STRIP
937 install_sh
938 MAKEINFO
939 AUTOHEADER
940 AUTOMAKE
941 AUTOCONF
942 ACLOCAL
943 VERSION
944 PACKAGE
945 CYGPATH_W
946 am__isrc
947 INSTALL_DATA
948 INSTALL_SCRIPT
949 INSTALL_PROGRAM
950 target_alias
951 host_alias
952 build_alias
953 LIBS
954 ECHO_T
955 ECHO_N
956 ECHO_C
957 DEFS
958 mandir
959 localedir
960 libdir
961 psdir
962 pdfdir
963 dvidir
964 htmldir
965 infodir
966 docdir
967 oldincludedir
968 includedir
969 localstatedir
970 sharedstatedir
971 sysconfdir
972 datadir
973 datarootdir
974 libexecdir
975 sbindir
976 bindir
977 program_transform_name
978 prefix
979 exec_prefix
980 PACKAGE_URL
981 PACKAGE_BUGREPORT
982 PACKAGE_STRING
983 PACKAGE_VERSION
984 PACKAGE_TARNAME
985 PACKAGE_NAME
986 PATH_SEPARATOR
987 SHELL'
988 ac_subst_files=''
989 ac_user_opts='
990 enable_option_checking
991 enable_maintainer_mode
992 enable_silent_rules
993 enable_shared
994 enable_static
995 with_pic
996 enable_fast_install
997 enable_dependency_tracking
998 with_gnu_ld
999 with_sysroot
1000 enable_libtool_lock
1001 with_autoconf
1002 with_autoheader
1003 with_automake
1004 with_aclocal
1005 enable_nls
1006 enable_rpath
1007 with_libiconv_prefix
1008 with_libintl_prefix
1009 enable_gst_debug
1010 enable_loadsave
1011 enable_parse
1012 enable_option_parsing
1013 enable_trace
1014 enable_alloc_trace
1015 enable_registry
1016 enable_net
1017 enable_plugin
1018 enable_debug
1019 enable_profiling
1020 enable_valgrind
1021 enable_gcov
1022 enable_examples
1023 with_pkg_config_path
1024 with_package_name
1025 with_package_origin
1026 enable_tests
1027 enable_failing_tests
1028 enable_poisoning
1029 enable_largefile
1030 enable_introspection
1031 enable_docbook
1032 with_html_dir
1033 enable_gtk_doc
1034 enable_gobject_cast_checks
1035 enable_glib_asserts
1036 enable_check
1037 with_buffer_alignment
1038 enable_Bsymbolic
1039 '
1040       ac_precious_vars='build_alias
1041 host_alias
1042 target_alias
1043 CC
1044 CFLAGS
1045 LDFLAGS
1046 LIBS
1047 CPPFLAGS
1048 CPP
1049 PKG_CONFIG
1050 VALGRIND_CFLAGS
1051 VALGRIND_LIBS
1052 CCAS
1053 CCASFLAGS
1054 CXX
1055 CXXFLAGS
1056 CCC
1057 CXXCPP
1058 GLIB_CFLAGS
1059 GLIB_LIBS
1060 GLIB_ONLY_CFLAGS
1061 GLIB_ONLY_LIBS
1062 XML_CFLAGS
1063 XML_LIBS'
1064
1065
1066 # Initialize some variables set by options.
1067 ac_init_help=
1068 ac_init_version=false
1069 ac_unrecognized_opts=
1070 ac_unrecognized_sep=
1071 # The variables have the same names as the options, with
1072 # dashes changed to underlines.
1073 cache_file=/dev/null
1074 exec_prefix=NONE
1075 no_create=
1076 no_recursion=
1077 prefix=NONE
1078 program_prefix=NONE
1079 program_suffix=NONE
1080 program_transform_name=s,x,x,
1081 silent=
1082 site=
1083 srcdir=
1084 verbose=
1085 x_includes=NONE
1086 x_libraries=NONE
1087
1088 # Installation directory options.
1089 # These are left unexpanded so users can "make install exec_prefix=/foo"
1090 # and all the variables that are supposed to be based on exec_prefix
1091 # by default will actually change.
1092 # Use braces instead of parens because sh, perl, etc. also accept them.
1093 # (The list follows the same order as the GNU Coding Standards.)
1094 bindir='${exec_prefix}/bin'
1095 sbindir='${exec_prefix}/sbin'
1096 libexecdir='${exec_prefix}/libexec'
1097 datarootdir='${prefix}/share'
1098 datadir='${datarootdir}'
1099 sysconfdir='${prefix}/etc'
1100 sharedstatedir='${prefix}/com'
1101 localstatedir='${prefix}/var'
1102 includedir='${prefix}/include'
1103 oldincludedir='/usr/include'
1104 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1105 infodir='${datarootdir}/info'
1106 htmldir='${docdir}'
1107 dvidir='${docdir}'
1108 pdfdir='${docdir}'
1109 psdir='${docdir}'
1110 libdir='${exec_prefix}/lib'
1111 localedir='${datarootdir}/locale'
1112 mandir='${datarootdir}/man'
1113
1114 ac_prev=
1115 ac_dashdash=
1116 for ac_option
1117 do
1118   # If the previous option needs an argument, assign it.
1119   if test -n "$ac_prev"; then
1120     eval $ac_prev=\$ac_option
1121     ac_prev=
1122     continue
1123   fi
1124
1125   case $ac_option in
1126   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1127   *=)   ac_optarg= ;;
1128   *)    ac_optarg=yes ;;
1129   esac
1130
1131   # Accept the important Cygnus configure options, so we can diagnose typos.
1132
1133   case $ac_dashdash$ac_option in
1134   --)
1135     ac_dashdash=yes ;;
1136
1137   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1138     ac_prev=bindir ;;
1139   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1140     bindir=$ac_optarg ;;
1141
1142   -build | --build | --buil | --bui | --bu)
1143     ac_prev=build_alias ;;
1144   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1145     build_alias=$ac_optarg ;;
1146
1147   -cache-file | --cache-file | --cache-fil | --cache-fi \
1148   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1149     ac_prev=cache_file ;;
1150   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1151   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1152     cache_file=$ac_optarg ;;
1153
1154   --config-cache | -C)
1155     cache_file=config.cache ;;
1156
1157   -datadir | --datadir | --datadi | --datad)
1158     ac_prev=datadir ;;
1159   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1160     datadir=$ac_optarg ;;
1161
1162   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1163   | --dataroo | --dataro | --datar)
1164     ac_prev=datarootdir ;;
1165   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1166   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1167     datarootdir=$ac_optarg ;;
1168
1169   -disable-* | --disable-*)
1170     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1171     # Reject names that are not valid shell variable names.
1172     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1173       as_fn_error $? "invalid feature name: $ac_useropt"
1174     ac_useropt_orig=$ac_useropt
1175     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1176     case $ac_user_opts in
1177       *"
1178 "enable_$ac_useropt"
1179 "*) ;;
1180       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1181          ac_unrecognized_sep=', ';;
1182     esac
1183     eval enable_$ac_useropt=no ;;
1184
1185   -docdir | --docdir | --docdi | --doc | --do)
1186     ac_prev=docdir ;;
1187   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1188     docdir=$ac_optarg ;;
1189
1190   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1191     ac_prev=dvidir ;;
1192   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1193     dvidir=$ac_optarg ;;
1194
1195   -enable-* | --enable-*)
1196     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1197     # Reject names that are not valid shell variable names.
1198     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1199       as_fn_error $? "invalid feature name: $ac_useropt"
1200     ac_useropt_orig=$ac_useropt
1201     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1202     case $ac_user_opts in
1203       *"
1204 "enable_$ac_useropt"
1205 "*) ;;
1206       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1207          ac_unrecognized_sep=', ';;
1208     esac
1209     eval enable_$ac_useropt=\$ac_optarg ;;
1210
1211   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1212   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1213   | --exec | --exe | --ex)
1214     ac_prev=exec_prefix ;;
1215   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1216   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1217   | --exec=* | --exe=* | --ex=*)
1218     exec_prefix=$ac_optarg ;;
1219
1220   -gas | --gas | --ga | --g)
1221     # Obsolete; use --with-gas.
1222     with_gas=yes ;;
1223
1224   -help | --help | --hel | --he | -h)
1225     ac_init_help=long ;;
1226   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1227     ac_init_help=recursive ;;
1228   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1229     ac_init_help=short ;;
1230
1231   -host | --host | --hos | --ho)
1232     ac_prev=host_alias ;;
1233   -host=* | --host=* | --hos=* | --ho=*)
1234     host_alias=$ac_optarg ;;
1235
1236   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1237     ac_prev=htmldir ;;
1238   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1239   | --ht=*)
1240     htmldir=$ac_optarg ;;
1241
1242   -includedir | --includedir | --includedi | --included | --include \
1243   | --includ | --inclu | --incl | --inc)
1244     ac_prev=includedir ;;
1245   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1246   | --includ=* | --inclu=* | --incl=* | --inc=*)
1247     includedir=$ac_optarg ;;
1248
1249   -infodir | --infodir | --infodi | --infod | --info | --inf)
1250     ac_prev=infodir ;;
1251   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1252     infodir=$ac_optarg ;;
1253
1254   -libdir | --libdir | --libdi | --libd)
1255     ac_prev=libdir ;;
1256   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1257     libdir=$ac_optarg ;;
1258
1259   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1260   | --libexe | --libex | --libe)
1261     ac_prev=libexecdir ;;
1262   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1263   | --libexe=* | --libex=* | --libe=*)
1264     libexecdir=$ac_optarg ;;
1265
1266   -localedir | --localedir | --localedi | --localed | --locale)
1267     ac_prev=localedir ;;
1268   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1269     localedir=$ac_optarg ;;
1270
1271   -localstatedir | --localstatedir | --localstatedi | --localstated \
1272   | --localstate | --localstat | --localsta | --localst | --locals)
1273     ac_prev=localstatedir ;;
1274   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1275   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1276     localstatedir=$ac_optarg ;;
1277
1278   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1279     ac_prev=mandir ;;
1280   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1281     mandir=$ac_optarg ;;
1282
1283   -nfp | --nfp | --nf)
1284     # Obsolete; use --without-fp.
1285     with_fp=no ;;
1286
1287   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1288   | --no-cr | --no-c | -n)
1289     no_create=yes ;;
1290
1291   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1292   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1293     no_recursion=yes ;;
1294
1295   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1296   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1297   | --oldin | --oldi | --old | --ol | --o)
1298     ac_prev=oldincludedir ;;
1299   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1300   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1301   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1302     oldincludedir=$ac_optarg ;;
1303
1304   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1305     ac_prev=prefix ;;
1306   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1307     prefix=$ac_optarg ;;
1308
1309   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1310   | --program-pre | --program-pr | --program-p)
1311     ac_prev=program_prefix ;;
1312   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1313   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1314     program_prefix=$ac_optarg ;;
1315
1316   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1317   | --program-suf | --program-su | --program-s)
1318     ac_prev=program_suffix ;;
1319   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1320   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1321     program_suffix=$ac_optarg ;;
1322
1323   -program-transform-name | --program-transform-name \
1324   | --program-transform-nam | --program-transform-na \
1325   | --program-transform-n | --program-transform- \
1326   | --program-transform | --program-transfor \
1327   | --program-transfo | --program-transf \
1328   | --program-trans | --program-tran \
1329   | --progr-tra | --program-tr | --program-t)
1330     ac_prev=program_transform_name ;;
1331   -program-transform-name=* | --program-transform-name=* \
1332   | --program-transform-nam=* | --program-transform-na=* \
1333   | --program-transform-n=* | --program-transform-=* \
1334   | --program-transform=* | --program-transfor=* \
1335   | --program-transfo=* | --program-transf=* \
1336   | --program-trans=* | --program-tran=* \
1337   | --progr-tra=* | --program-tr=* | --program-t=*)
1338     program_transform_name=$ac_optarg ;;
1339
1340   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1341     ac_prev=pdfdir ;;
1342   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1343     pdfdir=$ac_optarg ;;
1344
1345   -psdir | --psdir | --psdi | --psd | --ps)
1346     ac_prev=psdir ;;
1347   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1348     psdir=$ac_optarg ;;
1349
1350   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1351   | -silent | --silent | --silen | --sile | --sil)
1352     silent=yes ;;
1353
1354   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1355     ac_prev=sbindir ;;
1356   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1357   | --sbi=* | --sb=*)
1358     sbindir=$ac_optarg ;;
1359
1360   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1361   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1362   | --sharedst | --shareds | --shared | --share | --shar \
1363   | --sha | --sh)
1364     ac_prev=sharedstatedir ;;
1365   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1366   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1367   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1368   | --sha=* | --sh=*)
1369     sharedstatedir=$ac_optarg ;;
1370
1371   -site | --site | --sit)
1372     ac_prev=site ;;
1373   -site=* | --site=* | --sit=*)
1374     site=$ac_optarg ;;
1375
1376   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1377     ac_prev=srcdir ;;
1378   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1379     srcdir=$ac_optarg ;;
1380
1381   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1382   | --syscon | --sysco | --sysc | --sys | --sy)
1383     ac_prev=sysconfdir ;;
1384   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1385   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1386     sysconfdir=$ac_optarg ;;
1387
1388   -target | --target | --targe | --targ | --tar | --ta | --t)
1389     ac_prev=target_alias ;;
1390   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1391     target_alias=$ac_optarg ;;
1392
1393   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1394     verbose=yes ;;
1395
1396   -version | --version | --versio | --versi | --vers | -V)
1397     ac_init_version=: ;;
1398
1399   -with-* | --with-*)
1400     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1401     # Reject names that are not valid shell variable names.
1402     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1403       as_fn_error $? "invalid package name: $ac_useropt"
1404     ac_useropt_orig=$ac_useropt
1405     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1406     case $ac_user_opts in
1407       *"
1408 "with_$ac_useropt"
1409 "*) ;;
1410       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1411          ac_unrecognized_sep=', ';;
1412     esac
1413     eval with_$ac_useropt=\$ac_optarg ;;
1414
1415   -without-* | --without-*)
1416     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1417     # Reject names that are not valid shell variable names.
1418     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1419       as_fn_error $? "invalid package name: $ac_useropt"
1420     ac_useropt_orig=$ac_useropt
1421     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1422     case $ac_user_opts in
1423       *"
1424 "with_$ac_useropt"
1425 "*) ;;
1426       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1427          ac_unrecognized_sep=', ';;
1428     esac
1429     eval with_$ac_useropt=no ;;
1430
1431   --x)
1432     # Obsolete; use --with-x.
1433     with_x=yes ;;
1434
1435   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1436   | --x-incl | --x-inc | --x-in | --x-i)
1437     ac_prev=x_includes ;;
1438   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1439   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1440     x_includes=$ac_optarg ;;
1441
1442   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1443   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1444     ac_prev=x_libraries ;;
1445   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1446   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1447     x_libraries=$ac_optarg ;;
1448
1449   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1450 Try \`$0 --help' for more information"
1451     ;;
1452
1453   *=*)
1454     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1455     # Reject names that are not valid shell variable names.
1456     case $ac_envvar in #(
1457       '' | [0-9]* | *[!_$as_cr_alnum]* )
1458       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1459     esac
1460     eval $ac_envvar=\$ac_optarg
1461     export $ac_envvar ;;
1462
1463   *)
1464     # FIXME: should be removed in autoconf 3.0.
1465     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1466     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1467       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1468     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1469     ;;
1470
1471   esac
1472 done
1473
1474 if test -n "$ac_prev"; then
1475   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1476   as_fn_error $? "missing argument to $ac_option"
1477 fi
1478
1479 if test -n "$ac_unrecognized_opts"; then
1480   case $enable_option_checking in
1481     no) ;;
1482     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1483     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1484   esac
1485 fi
1486
1487 # Check all directory arguments for consistency.
1488 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1489                 datadir sysconfdir sharedstatedir localstatedir includedir \
1490                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1491                 libdir localedir mandir
1492 do
1493   eval ac_val=\$$ac_var
1494   # Remove trailing slashes.
1495   case $ac_val in
1496     */ )
1497       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1498       eval $ac_var=\$ac_val;;
1499   esac
1500   # Be sure to have absolute directory names.
1501   case $ac_val in
1502     [\\/$]* | ?:[\\/]* )  continue;;
1503     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1504   esac
1505   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1506 done
1507
1508 # There might be people who depend on the old broken behavior: `$host'
1509 # used to hold the argument of --host etc.
1510 # FIXME: To remove some day.
1511 build=$build_alias
1512 host=$host_alias
1513 target=$target_alias
1514
1515 # FIXME: To remove some day.
1516 if test "x$host_alias" != x; then
1517   if test "x$build_alias" = x; then
1518     cross_compiling=maybe
1519     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1520     If a cross compiler is detected then cross compile mode will be used" >&2
1521   elif test "x$build_alias" != "x$host_alias"; then
1522     cross_compiling=yes
1523   fi
1524 fi
1525
1526 ac_tool_prefix=
1527 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1528
1529 test "$silent" = yes && exec 6>/dev/null
1530
1531
1532 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1533 ac_ls_di=`ls -di .` &&
1534 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1535   as_fn_error $? "working directory cannot be determined"
1536 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1537   as_fn_error $? "pwd does not report name of working directory"
1538
1539
1540 # Find the source files, if location was not specified.
1541 if test -z "$srcdir"; then
1542   ac_srcdir_defaulted=yes
1543   # Try the directory containing this script, then the parent directory.
1544   ac_confdir=`$as_dirname -- "$as_myself" ||
1545 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1546          X"$as_myself" : 'X\(//\)[^/]' \| \
1547          X"$as_myself" : 'X\(//\)$' \| \
1548          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1549 $as_echo X"$as_myself" |
1550     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1551             s//\1/
1552             q
1553           }
1554           /^X\(\/\/\)[^/].*/{
1555             s//\1/
1556             q
1557           }
1558           /^X\(\/\/\)$/{
1559             s//\1/
1560             q
1561           }
1562           /^X\(\/\).*/{
1563             s//\1/
1564             q
1565           }
1566           s/.*/./; q'`
1567   srcdir=$ac_confdir
1568   if test ! -r "$srcdir/$ac_unique_file"; then
1569     srcdir=..
1570   fi
1571 else
1572   ac_srcdir_defaulted=no
1573 fi
1574 if test ! -r "$srcdir/$ac_unique_file"; then
1575   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1576   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1577 fi
1578 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1579 ac_abs_confdir=`(
1580         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1581         pwd)`
1582 # When building in place, set srcdir=.
1583 if test "$ac_abs_confdir" = "$ac_pwd"; then
1584   srcdir=.
1585 fi
1586 # Remove unnecessary trailing slashes from srcdir.
1587 # Double slashes in file names in object file debugging info
1588 # mess up M-x gdb in Emacs.
1589 case $srcdir in
1590 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1591 esac
1592 for ac_var in $ac_precious_vars; do
1593   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1594   eval ac_env_${ac_var}_value=\$${ac_var}
1595   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1596   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1597 done
1598
1599 #
1600 # Report the --help message.
1601 #
1602 if test "$ac_init_help" = "long"; then
1603   # Omit some internal or obsolete options to make the list less imposing.
1604   # This message is too long to be a string in the A/UX 3.1 sh.
1605   cat <<_ACEOF
1606 \`configure' configures GStreamer 0.10.36 to adapt to many kinds of systems.
1607
1608 Usage: $0 [OPTION]... [VAR=VALUE]...
1609
1610 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1611 VAR=VALUE.  See below for descriptions of some of the useful variables.
1612
1613 Defaults for the options are specified in brackets.
1614
1615 Configuration:
1616   -h, --help              display this help and exit
1617       --help=short        display options specific to this package
1618       --help=recursive    display the short help of all the included packages
1619   -V, --version           display version information and exit
1620   -q, --quiet, --silent   do not print \`checking ...' messages
1621       --cache-file=FILE   cache test results in FILE [disabled]
1622   -C, --config-cache      alias for \`--cache-file=config.cache'
1623   -n, --no-create         do not create output files
1624       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1625
1626 Installation directories:
1627   --prefix=PREFIX         install architecture-independent files in PREFIX
1628                           [$ac_default_prefix]
1629   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1630                           [PREFIX]
1631
1632 By default, \`make install' will install all the files in
1633 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1634 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1635 for instance \`--prefix=\$HOME'.
1636
1637 For better control, use the options below.
1638
1639 Fine tuning of the installation directories:
1640   --bindir=DIR            user executables [EPREFIX/bin]
1641   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1642   --libexecdir=DIR        program executables [EPREFIX/libexec]
1643   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1644   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1645   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1646   --libdir=DIR            object code libraries [EPREFIX/lib]
1647   --includedir=DIR        C header files [PREFIX/include]
1648   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1649   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1650   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1651   --infodir=DIR           info documentation [DATAROOTDIR/info]
1652   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1653   --mandir=DIR            man documentation [DATAROOTDIR/man]
1654   --docdir=DIR            documentation root [DATAROOTDIR/doc/gstreamer]
1655   --htmldir=DIR           html documentation [DOCDIR]
1656   --dvidir=DIR            dvi documentation [DOCDIR]
1657   --pdfdir=DIR            pdf documentation [DOCDIR]
1658   --psdir=DIR             ps documentation [DOCDIR]
1659 _ACEOF
1660
1661   cat <<\_ACEOF
1662
1663 Program names:
1664   --program-prefix=PREFIX            prepend PREFIX to installed program names
1665   --program-suffix=SUFFIX            append SUFFIX to installed program names
1666   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1667
1668 System types:
1669   --build=BUILD     configure for building on BUILD [guessed]
1670   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1671 _ACEOF
1672 fi
1673
1674 if test -n "$ac_init_help"; then
1675   case $ac_init_help in
1676      short | recursive ) echo "Configuration of GStreamer 0.10.36:";;
1677    esac
1678   cat <<\_ACEOF
1679
1680 Optional Features:
1681   --disable-option-checking  ignore unrecognized --enable/--with options
1682   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1683   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1684   --enable-maintainer-mode  enable make rules and dependencies not useful
1685                           (and sometimes confusing) to the casual installer
1686   --enable-silent-rules          less verbose build output (undo: `make V=1')
1687   --disable-silent-rules         verbose build output (undo: `make V=0')
1688   --enable-shared[=PKGS]  build shared libraries [default=yes]
1689   --enable-static[=PKGS]  build static libraries [default=yes]
1690   --enable-fast-install[=PKGS]
1691                           optimize for fast installation [default=yes]
1692   --disable-dependency-tracking  speeds up one-time build
1693   --enable-dependency-tracking   do not reject slow dependency extractors
1694   --disable-libtool-lock  avoid locking (might break parallel builds)
1695   --disable-nls           do not use Native Language Support
1696   --disable-rpath         do not hardcode runtime library paths
1697   --disable-gst-debug     disable debugging subsystem
1698   --disable-loadsave      disable pipeline XML load/save
1699   --disable-parse         disable command-line parser
1700   --disable-option-parsing
1701                           disable option parsing when gst_init
1702   --disable-trace         disable tracing subsystem
1703   --disable-alloc-trace   disable allocation tracing
1704   --disable-registry      disable plugin registry
1705   --disable-net           disable network distribution
1706   --disable-plugin        disable plugin
1707   --disable-debug         disable addition of -g debugging info
1708   --enable-profiling      adds -pg to compiler commandline, for profiling
1709   --disable-valgrind      disable run-time valgrind detection
1710   --enable-gcov           compile with coverage profiling instrumentation (gcc
1711                           only)
1712   --disable-examples      disable building examples
1713   --disable-tests         disable building test apps
1714   --disable-failing-tests disable building tests known to fail
1715   --enable-poisoning      enable poisoning of deallocated objects
1716   --disable-largefile     omit support for large files
1717   --enable-introspection=[no/auto/yes]
1718                           Enable introspection for this build
1719   --enable-docbook        use docbook to build documentation [default=no]
1720   --enable-gtk-doc        use gtk-doc to build documentation [[default=no]]
1721   --enable-gobject-cast-checks=[no/auto/yes]
1722                           Enable GObject cast checks
1723   --enable-glib-asserts=[no/auto/yes]
1724                           Enable GLib assertion
1725   --disable-check         disable building unit test libraries
1726   --disable-Bsymbolic     avoid linking with -Bsymbolic
1727
1728 Optional Packages:
1729   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1730   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1731   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1732                           both]
1733   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1734   --with-sysroot=DIR Search for dependent libraries within DIR
1735                         (or the compiler's sysroot if not specified).
1736   --with-autoconf         use a different autoconf for regeneration of
1737                           Makefiles
1738   --with-autoheader       use a different autoheader for regeneration of
1739                           Makefiles
1740   --with-automake         use a different automake for regeneration of
1741                           Makefiles
1742   --with-aclocal          use a different aclocal for regeneration of
1743                           Makefiles
1744   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1745   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1746   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1747   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1748   --without-libintl-prefix     don't search for libintl in includedir and libdir
1749   --with-pkg-config-path  colon-separated list of pkg-config(1) dirs
1750   --with-package-name     specify package name to use in plugins
1751   --with-package-origin   specify package origin URL to use in plugins
1752   --with-html-dir=PATH    path to installed docs
1753   --with-buffer-alignment 8,N,malloc,pagesize (default is 32)
1754
1755 Some influential environment variables:
1756   CC          C compiler command
1757   CFLAGS      C compiler flags
1758   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1759               nonstandard directory <lib dir>
1760   LIBS        libraries to pass to the linker, e.g. -l<library>
1761   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1762               you have headers in a nonstandard directory <include dir>
1763   CPP         C preprocessor
1764   PKG_CONFIG  path to pkg-config utility
1765   VALGRIND_CFLAGS
1766               C compiler flags for VALGRIND, overriding pkg-config
1767   VALGRIND_LIBS
1768               linker flags for VALGRIND, overriding pkg-config
1769   CCAS        assembler compiler command (defaults to CC)
1770   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1771   CXX         C++ compiler command
1772   CXXFLAGS    C++ compiler flags
1773   CXXCPP      C++ preprocessor
1774   GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1775   GLIB_LIBS   linker flags for GLIB, overriding pkg-config
1776   GLIB_ONLY_CFLAGS
1777               C compiler flags for GLIB_ONLY, overriding pkg-config
1778   GLIB_ONLY_LIBS
1779               linker flags for GLIB_ONLY, overriding pkg-config
1780   XML_CFLAGS  C compiler flags for XML, overriding pkg-config
1781   XML_LIBS    linker flags for XML, overriding pkg-config
1782
1783 Use these variables to override the choices made by `configure' or to help
1784 it to find libraries and programs with nonstandard names/locations.
1785
1786 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer>.
1787 _ACEOF
1788 ac_status=$?
1789 fi
1790
1791 if test "$ac_init_help" = "recursive"; then
1792   # If there are subdirs, report their specific --help.
1793   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1794     test -d "$ac_dir" ||
1795       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1796       continue
1797     ac_builddir=.
1798
1799 case "$ac_dir" in
1800 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1801 *)
1802   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1803   # A ".." for each directory in $ac_dir_suffix.
1804   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1805   case $ac_top_builddir_sub in
1806   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1807   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1808   esac ;;
1809 esac
1810 ac_abs_top_builddir=$ac_pwd
1811 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1812 # for backward compatibility:
1813 ac_top_builddir=$ac_top_build_prefix
1814
1815 case $srcdir in
1816   .)  # We are building in place.
1817     ac_srcdir=.
1818     ac_top_srcdir=$ac_top_builddir_sub
1819     ac_abs_top_srcdir=$ac_pwd ;;
1820   [\\/]* | ?:[\\/]* )  # Absolute name.
1821     ac_srcdir=$srcdir$ac_dir_suffix;
1822     ac_top_srcdir=$srcdir
1823     ac_abs_top_srcdir=$srcdir ;;
1824   *) # Relative name.
1825     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1826     ac_top_srcdir=$ac_top_build_prefix$srcdir
1827     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1828 esac
1829 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1830
1831     cd "$ac_dir" || { ac_status=$?; continue; }
1832     # Check for guested configure.
1833     if test -f "$ac_srcdir/configure.gnu"; then
1834       echo &&
1835       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1836     elif test -f "$ac_srcdir/configure"; then
1837       echo &&
1838       $SHELL "$ac_srcdir/configure" --help=recursive
1839     else
1840       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1841     fi || ac_status=$?
1842     cd "$ac_pwd" || { ac_status=$?; break; }
1843   done
1844 fi
1845
1846 test -n "$ac_init_help" && exit $ac_status
1847 if $ac_init_version; then
1848   cat <<\_ACEOF
1849 GStreamer configure 0.10.36
1850 generated by GNU Autoconf 2.68
1851
1852 Copyright (C) 2010 Free Software Foundation, Inc.
1853 This configure script is free software; the Free Software Foundation
1854 gives unlimited permission to copy, distribute and modify it.
1855 _ACEOF
1856   exit
1857 fi
1858
1859 ## ------------------------ ##
1860 ## Autoconf initialization. ##
1861 ## ------------------------ ##
1862
1863 # ac_fn_c_try_compile LINENO
1864 # --------------------------
1865 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1866 ac_fn_c_try_compile ()
1867 {
1868   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1869   rm -f conftest.$ac_objext
1870   if { { ac_try="$ac_compile"
1871 case "(($ac_try" in
1872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1873   *) ac_try_echo=$ac_try;;
1874 esac
1875 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1876 $as_echo "$ac_try_echo"; } >&5
1877   (eval "$ac_compile") 2>conftest.err
1878   ac_status=$?
1879   if test -s conftest.err; then
1880     grep -v '^ *+' conftest.err >conftest.er1
1881     cat conftest.er1 >&5
1882     mv -f conftest.er1 conftest.err
1883   fi
1884   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1885   test $ac_status = 0; } && {
1886          test -z "$ac_c_werror_flag" ||
1887          test ! -s conftest.err
1888        } && test -s conftest.$ac_objext; then :
1889   ac_retval=0
1890 else
1891   $as_echo "$as_me: failed program was:" >&5
1892 sed 's/^/| /' conftest.$ac_ext >&5
1893
1894         ac_retval=1
1895 fi
1896   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1897   as_fn_set_status $ac_retval
1898
1899 } # ac_fn_c_try_compile
1900
1901 # ac_fn_c_try_link LINENO
1902 # -----------------------
1903 # Try to link conftest.$ac_ext, and return whether this succeeded.
1904 ac_fn_c_try_link ()
1905 {
1906   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1907   rm -f conftest.$ac_objext conftest$ac_exeext
1908   if { { ac_try="$ac_link"
1909 case "(($ac_try" in
1910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1911   *) ac_try_echo=$ac_try;;
1912 esac
1913 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1914 $as_echo "$ac_try_echo"; } >&5
1915   (eval "$ac_link") 2>conftest.err
1916   ac_status=$?
1917   if test -s conftest.err; then
1918     grep -v '^ *+' conftest.err >conftest.er1
1919     cat conftest.er1 >&5
1920     mv -f conftest.er1 conftest.err
1921   fi
1922   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1923   test $ac_status = 0; } && {
1924          test -z "$ac_c_werror_flag" ||
1925          test ! -s conftest.err
1926        } && test -s conftest$ac_exeext && {
1927          test "$cross_compiling" = yes ||
1928          $as_test_x conftest$ac_exeext
1929        }; then :
1930   ac_retval=0
1931 else
1932   $as_echo "$as_me: failed program was:" >&5
1933 sed 's/^/| /' conftest.$ac_ext >&5
1934
1935         ac_retval=1
1936 fi
1937   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1938   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1939   # interfere with the next link command; also delete a directory that is
1940   # left behind by Apple's compiler.  We do this before executing the actions.
1941   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1942   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1943   as_fn_set_status $ac_retval
1944
1945 } # ac_fn_c_try_link
1946
1947 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1948 # -------------------------------------------------------
1949 # Tests whether HEADER exists and can be compiled using the include files in
1950 # INCLUDES, setting the cache variable VAR accordingly.
1951 ac_fn_c_check_header_compile ()
1952 {
1953   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1954   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1955 $as_echo_n "checking for $2... " >&6; }
1956 if eval \${$3+:} false; then :
1957   $as_echo_n "(cached) " >&6
1958 else
1959   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1960 /* end confdefs.h.  */
1961 $4
1962 #include <$2>
1963 _ACEOF
1964 if ac_fn_c_try_compile "$LINENO"; then :
1965   eval "$3=yes"
1966 else
1967   eval "$3=no"
1968 fi
1969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1970 fi
1971 eval ac_res=\$$3
1972                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1973 $as_echo "$ac_res" >&6; }
1974   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1975
1976 } # ac_fn_c_check_header_compile
1977
1978 # ac_fn_c_try_cpp LINENO
1979 # ----------------------
1980 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1981 ac_fn_c_try_cpp ()
1982 {
1983   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1984   if { { ac_try="$ac_cpp conftest.$ac_ext"
1985 case "(($ac_try" in
1986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1987   *) ac_try_echo=$ac_try;;
1988 esac
1989 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1990 $as_echo "$ac_try_echo"; } >&5
1991   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1992   ac_status=$?
1993   if test -s conftest.err; then
1994     grep -v '^ *+' conftest.err >conftest.er1
1995     cat conftest.er1 >&5
1996     mv -f conftest.er1 conftest.err
1997   fi
1998   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1999   test $ac_status = 0; } > conftest.i && {
2000          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2001          test ! -s conftest.err
2002        }; then :
2003   ac_retval=0
2004 else
2005   $as_echo "$as_me: failed program was:" >&5
2006 sed 's/^/| /' conftest.$ac_ext >&5
2007
2008     ac_retval=1
2009 fi
2010   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2011   as_fn_set_status $ac_retval
2012
2013 } # ac_fn_c_try_cpp
2014
2015 # ac_fn_c_try_run LINENO
2016 # ----------------------
2017 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2018 # that executables *can* be run.
2019 ac_fn_c_try_run ()
2020 {
2021   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2022   if { { ac_try="$ac_link"
2023 case "(($ac_try" in
2024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2025   *) ac_try_echo=$ac_try;;
2026 esac
2027 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2028 $as_echo "$ac_try_echo"; } >&5
2029   (eval "$ac_link") 2>&5
2030   ac_status=$?
2031   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2032   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2033   { { case "(($ac_try" in
2034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2035   *) ac_try_echo=$ac_try;;
2036 esac
2037 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2038 $as_echo "$ac_try_echo"; } >&5
2039   (eval "$ac_try") 2>&5
2040   ac_status=$?
2041   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2042   test $ac_status = 0; }; }; then :
2043   ac_retval=0
2044 else
2045   $as_echo "$as_me: program exited with status $ac_status" >&5
2046        $as_echo "$as_me: failed program was:" >&5
2047 sed 's/^/| /' conftest.$ac_ext >&5
2048
2049        ac_retval=$ac_status
2050 fi
2051   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2052   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2053   as_fn_set_status $ac_retval
2054
2055 } # ac_fn_c_try_run
2056
2057 # ac_fn_c_check_func LINENO FUNC VAR
2058 # ----------------------------------
2059 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2060 ac_fn_c_check_func ()
2061 {
2062   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2063   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2064 $as_echo_n "checking for $2... " >&6; }
2065 if eval \${$3+:} false; then :
2066   $as_echo_n "(cached) " >&6
2067 else
2068   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2069 /* end confdefs.h.  */
2070 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2071    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2072 #define $2 innocuous_$2
2073
2074 /* System header to define __stub macros and hopefully few prototypes,
2075     which can conflict with char $2 (); below.
2076     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2077     <limits.h> exists even on freestanding compilers.  */
2078
2079 #ifdef __STDC__
2080 # include <limits.h>
2081 #else
2082 # include <assert.h>
2083 #endif
2084
2085 #undef $2
2086
2087 /* Override any GCC internal prototype to avoid an error.
2088    Use char because int might match the return type of a GCC
2089    builtin and then its argument prototype would still apply.  */
2090 #ifdef __cplusplus
2091 extern "C"
2092 #endif
2093 char $2 ();
2094 /* The GNU C library defines this for functions which it implements
2095     to always fail with ENOSYS.  Some functions are actually named
2096     something starting with __ and the normal name is an alias.  */
2097 #if defined __stub_$2 || defined __stub___$2
2098 choke me
2099 #endif
2100
2101 int
2102 main ()
2103 {
2104 return $2 ();
2105   ;
2106   return 0;
2107 }
2108 _ACEOF
2109 if ac_fn_c_try_link "$LINENO"; then :
2110   eval "$3=yes"
2111 else
2112   eval "$3=no"
2113 fi
2114 rm -f core conftest.err conftest.$ac_objext \
2115     conftest$ac_exeext conftest.$ac_ext
2116 fi
2117 eval ac_res=\$$3
2118                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2119 $as_echo "$ac_res" >&6; }
2120   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2121
2122 } # ac_fn_c_check_func
2123
2124 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2125 # ---------------------------------------------
2126 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2127 # accordingly.
2128 ac_fn_c_check_decl ()
2129 {
2130   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2131   as_decl_name=`echo $2|sed 's/ *(.*//'`
2132   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2133   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2134 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2135 if eval \${$3+:} false; then :
2136   $as_echo_n "(cached) " >&6
2137 else
2138   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2139 /* end confdefs.h.  */
2140 $4
2141 int
2142 main ()
2143 {
2144 #ifndef $as_decl_name
2145 #ifdef __cplusplus
2146   (void) $as_decl_use;
2147 #else
2148   (void) $as_decl_name;
2149 #endif
2150 #endif
2151
2152   ;
2153   return 0;
2154 }
2155 _ACEOF
2156 if ac_fn_c_try_compile "$LINENO"; then :
2157   eval "$3=yes"
2158 else
2159   eval "$3=no"
2160 fi
2161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2162 fi
2163 eval ac_res=\$$3
2164                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2165 $as_echo "$ac_res" >&6; }
2166   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2167
2168 } # ac_fn_c_check_decl
2169
2170 # ac_fn_cxx_try_compile LINENO
2171 # ----------------------------
2172 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2173 ac_fn_cxx_try_compile ()
2174 {
2175   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2176   rm -f conftest.$ac_objext
2177   if { { ac_try="$ac_compile"
2178 case "(($ac_try" in
2179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2180   *) ac_try_echo=$ac_try;;
2181 esac
2182 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2183 $as_echo "$ac_try_echo"; } >&5
2184   (eval "$ac_compile") 2>conftest.err
2185   ac_status=$?
2186   if test -s conftest.err; then
2187     grep -v '^ *+' conftest.err >conftest.er1
2188     cat conftest.er1 >&5
2189     mv -f conftest.er1 conftest.err
2190   fi
2191   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2192   test $ac_status = 0; } && {
2193          test -z "$ac_cxx_werror_flag" ||
2194          test ! -s conftest.err
2195        } && test -s conftest.$ac_objext; then :
2196   ac_retval=0
2197 else
2198   $as_echo "$as_me: failed program was:" >&5
2199 sed 's/^/| /' conftest.$ac_ext >&5
2200
2201         ac_retval=1
2202 fi
2203   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2204   as_fn_set_status $ac_retval
2205
2206 } # ac_fn_cxx_try_compile
2207
2208 # ac_fn_cxx_try_cpp LINENO
2209 # ------------------------
2210 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2211 ac_fn_cxx_try_cpp ()
2212 {
2213   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2214   if { { ac_try="$ac_cpp conftest.$ac_ext"
2215 case "(($ac_try" in
2216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2217   *) ac_try_echo=$ac_try;;
2218 esac
2219 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2220 $as_echo "$ac_try_echo"; } >&5
2221   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2222   ac_status=$?
2223   if test -s conftest.err; then
2224     grep -v '^ *+' conftest.err >conftest.er1
2225     cat conftest.er1 >&5
2226     mv -f conftest.er1 conftest.err
2227   fi
2228   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2229   test $ac_status = 0; } > conftest.i && {
2230          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2231          test ! -s conftest.err
2232        }; then :
2233   ac_retval=0
2234 else
2235   $as_echo "$as_me: failed program was:" >&5
2236 sed 's/^/| /' conftest.$ac_ext >&5
2237
2238     ac_retval=1
2239 fi
2240   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2241   as_fn_set_status $ac_retval
2242
2243 } # ac_fn_cxx_try_cpp
2244
2245 # ac_fn_cxx_try_link LINENO
2246 # -------------------------
2247 # Try to link conftest.$ac_ext, and return whether this succeeded.
2248 ac_fn_cxx_try_link ()
2249 {
2250   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2251   rm -f conftest.$ac_objext conftest$ac_exeext
2252   if { { ac_try="$ac_link"
2253 case "(($ac_try" in
2254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2255   *) ac_try_echo=$ac_try;;
2256 esac
2257 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2258 $as_echo "$ac_try_echo"; } >&5
2259   (eval "$ac_link") 2>conftest.err
2260   ac_status=$?
2261   if test -s conftest.err; then
2262     grep -v '^ *+' conftest.err >conftest.er1
2263     cat conftest.er1 >&5
2264     mv -f conftest.er1 conftest.err
2265   fi
2266   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2267   test $ac_status = 0; } && {
2268          test -z "$ac_cxx_werror_flag" ||
2269          test ! -s conftest.err
2270        } && test -s conftest$ac_exeext && {
2271          test "$cross_compiling" = yes ||
2272          $as_test_x conftest$ac_exeext
2273        }; then :
2274   ac_retval=0
2275 else
2276   $as_echo "$as_me: failed program was:" >&5
2277 sed 's/^/| /' conftest.$ac_ext >&5
2278
2279         ac_retval=1
2280 fi
2281   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2282   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2283   # interfere with the next link command; also delete a directory that is
2284   # left behind by Apple's compiler.  We do this before executing the actions.
2285   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2286   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2287   as_fn_set_status $ac_retval
2288
2289 } # ac_fn_cxx_try_link
2290
2291 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2292 # -------------------------------------------------------
2293 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2294 # the include files in INCLUDES and setting the cache variable VAR
2295 # accordingly.
2296 ac_fn_c_check_header_mongrel ()
2297 {
2298   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2299   if eval \${$3+:} false; then :
2300   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2301 $as_echo_n "checking for $2... " >&6; }
2302 if eval \${$3+:} false; then :
2303   $as_echo_n "(cached) " >&6
2304 fi
2305 eval ac_res=\$$3
2306                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2307 $as_echo "$ac_res" >&6; }
2308 else
2309   # Is the header compilable?
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2311 $as_echo_n "checking $2 usability... " >&6; }
2312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2313 /* end confdefs.h.  */
2314 $4
2315 #include <$2>
2316 _ACEOF
2317 if ac_fn_c_try_compile "$LINENO"; then :
2318   ac_header_compiler=yes
2319 else
2320   ac_header_compiler=no
2321 fi
2322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2324 $as_echo "$ac_header_compiler" >&6; }
2325
2326 # Is the header present?
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2328 $as_echo_n "checking $2 presence... " >&6; }
2329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2330 /* end confdefs.h.  */
2331 #include <$2>
2332 _ACEOF
2333 if ac_fn_c_try_cpp "$LINENO"; then :
2334   ac_header_preproc=yes
2335 else
2336   ac_header_preproc=no
2337 fi
2338 rm -f conftest.err conftest.i conftest.$ac_ext
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2340 $as_echo "$ac_header_preproc" >&6; }
2341
2342 # So?  What about this header?
2343 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2344   yes:no: )
2345     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2346 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2347     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2348 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2349     ;;
2350   no:yes:* )
2351     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2352 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2353     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2354 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2355     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2356 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2357     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2358 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2359     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2360 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2361 ( $as_echo "## ------------------------------------------------------------------------ ##
2362 ## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer ##
2363 ## ------------------------------------------------------------------------ ##"
2364      ) | sed "s/^/$as_me: WARNING:     /" >&2
2365     ;;
2366 esac
2367   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2368 $as_echo_n "checking for $2... " >&6; }
2369 if eval \${$3+:} false; then :
2370   $as_echo_n "(cached) " >&6
2371 else
2372   eval "$3=\$ac_header_compiler"
2373 fi
2374 eval ac_res=\$$3
2375                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2376 $as_echo "$ac_res" >&6; }
2377 fi
2378   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2379
2380 } # ac_fn_c_check_header_mongrel
2381
2382 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2383 # -------------------------------------------
2384 # Tests whether TYPE exists after having included INCLUDES, setting cache
2385 # variable VAR accordingly.
2386 ac_fn_c_check_type ()
2387 {
2388   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2389   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2390 $as_echo_n "checking for $2... " >&6; }
2391 if eval \${$3+:} false; then :
2392   $as_echo_n "(cached) " >&6
2393 else
2394   eval "$3=no"
2395   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2396 /* end confdefs.h.  */
2397 $4
2398 int
2399 main ()
2400 {
2401 if (sizeof ($2))
2402          return 0;
2403   ;
2404   return 0;
2405 }
2406 _ACEOF
2407 if ac_fn_c_try_compile "$LINENO"; then :
2408   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2409 /* end confdefs.h.  */
2410 $4
2411 int
2412 main ()
2413 {
2414 if (sizeof (($2)))
2415             return 0;
2416   ;
2417   return 0;
2418 }
2419 _ACEOF
2420 if ac_fn_c_try_compile "$LINENO"; then :
2421
2422 else
2423   eval "$3=yes"
2424 fi
2425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2426 fi
2427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2428 fi
2429 eval ac_res=\$$3
2430                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2431 $as_echo "$ac_res" >&6; }
2432   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2433
2434 } # ac_fn_c_check_type
2435
2436 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2437 # --------------------------------------------
2438 # Tries to find the compile-time value of EXPR in a program that includes
2439 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2440 # computed
2441 ac_fn_c_compute_int ()
2442 {
2443   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2444   if test "$cross_compiling" = yes; then
2445     # Depending upon the size, compute the lo and hi bounds.
2446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2447 /* end confdefs.h.  */
2448 $4
2449 int
2450 main ()
2451 {
2452 static int test_array [1 - 2 * !(($2) >= 0)];
2453 test_array [0] = 0
2454
2455   ;
2456   return 0;
2457 }
2458 _ACEOF
2459 if ac_fn_c_try_compile "$LINENO"; then :
2460   ac_lo=0 ac_mid=0
2461   while :; do
2462     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2463 /* end confdefs.h.  */
2464 $4
2465 int
2466 main ()
2467 {
2468 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2469 test_array [0] = 0
2470
2471   ;
2472   return 0;
2473 }
2474 _ACEOF
2475 if ac_fn_c_try_compile "$LINENO"; then :
2476   ac_hi=$ac_mid; break
2477 else
2478   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2479                         if test $ac_lo -le $ac_mid; then
2480                           ac_lo= ac_hi=
2481                           break
2482                         fi
2483                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2484 fi
2485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2486   done
2487 else
2488   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2489 /* end confdefs.h.  */
2490 $4
2491 int
2492 main ()
2493 {
2494 static int test_array [1 - 2 * !(($2) < 0)];
2495 test_array [0] = 0
2496
2497   ;
2498   return 0;
2499 }
2500 _ACEOF
2501 if ac_fn_c_try_compile "$LINENO"; then :
2502   ac_hi=-1 ac_mid=-1
2503   while :; do
2504     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2505 /* end confdefs.h.  */
2506 $4
2507 int
2508 main ()
2509 {
2510 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2511 test_array [0] = 0
2512
2513   ;
2514   return 0;
2515 }
2516 _ACEOF
2517 if ac_fn_c_try_compile "$LINENO"; then :
2518   ac_lo=$ac_mid; break
2519 else
2520   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2521                         if test $ac_mid -le $ac_hi; then
2522                           ac_lo= ac_hi=
2523                           break
2524                         fi
2525                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2526 fi
2527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2528   done
2529 else
2530   ac_lo= ac_hi=
2531 fi
2532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2533 fi
2534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2535 # Binary search between lo and hi bounds.
2536 while test "x$ac_lo" != "x$ac_hi"; do
2537   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2538   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2539 /* end confdefs.h.  */
2540 $4
2541 int
2542 main ()
2543 {
2544 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2545 test_array [0] = 0
2546
2547   ;
2548   return 0;
2549 }
2550 _ACEOF
2551 if ac_fn_c_try_compile "$LINENO"; then :
2552   ac_hi=$ac_mid
2553 else
2554   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2555 fi
2556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2557 done
2558 case $ac_lo in #((
2559 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2560 '') ac_retval=1 ;;
2561 esac
2562   else
2563     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2564 /* end confdefs.h.  */
2565 $4
2566 static long int longval () { return $2; }
2567 static unsigned long int ulongval () { return $2; }
2568 #include <stdio.h>
2569 #include <stdlib.h>
2570 int
2571 main ()
2572 {
2573
2574   FILE *f = fopen ("conftest.val", "w");
2575   if (! f)
2576     return 1;
2577   if (($2) < 0)
2578     {
2579       long int i = longval ();
2580       if (i != ($2))
2581         return 1;
2582       fprintf (f, "%ld", i);
2583     }
2584   else
2585     {
2586       unsigned long int i = ulongval ();
2587       if (i != ($2))
2588         return 1;
2589       fprintf (f, "%lu", i);
2590     }
2591   /* Do not output a trailing newline, as this causes \r\n confusion
2592      on some platforms.  */
2593   return ferror (f) || fclose (f) != 0;
2594
2595   ;
2596   return 0;
2597 }
2598 _ACEOF
2599 if ac_fn_c_try_run "$LINENO"; then :
2600   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2601 else
2602   ac_retval=1
2603 fi
2604 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2605   conftest.$ac_objext conftest.beam conftest.$ac_ext
2606 rm -f conftest.val
2607
2608   fi
2609   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2610   as_fn_set_status $ac_retval
2611
2612 } # ac_fn_c_compute_int
2613 cat >config.log <<_ACEOF
2614 This file contains any messages produced by compilers while
2615 running configure, to aid debugging if configure makes a mistake.
2616
2617 It was created by GStreamer $as_me 0.10.36, which was
2618 generated by GNU Autoconf 2.68.  Invocation command line was
2619
2620   $ $0 $@
2621
2622 _ACEOF
2623 exec 5>>config.log
2624 {
2625 cat <<_ASUNAME
2626 ## --------- ##
2627 ## Platform. ##
2628 ## --------- ##
2629
2630 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2631 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2632 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2633 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2634 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2635
2636 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2637 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2638
2639 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2640 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2641 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2642 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2643 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2644 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2645 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2646
2647 _ASUNAME
2648
2649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2650 for as_dir in $PATH
2651 do
2652   IFS=$as_save_IFS
2653   test -z "$as_dir" && as_dir=.
2654     $as_echo "PATH: $as_dir"
2655   done
2656 IFS=$as_save_IFS
2657
2658 } >&5
2659
2660 cat >&5 <<_ACEOF
2661
2662
2663 ## ----------- ##
2664 ## Core tests. ##
2665 ## ----------- ##
2666
2667 _ACEOF
2668
2669
2670 # Keep a trace of the command line.
2671 # Strip out --no-create and --no-recursion so they do not pile up.
2672 # Strip out --silent because we don't want to record it for future runs.
2673 # Also quote any args containing shell meta-characters.
2674 # Make two passes to allow for proper duplicate-argument suppression.
2675 ac_configure_args=
2676 ac_configure_args0=
2677 ac_configure_args1=
2678 ac_must_keep_next=false
2679 for ac_pass in 1 2
2680 do
2681   for ac_arg
2682   do
2683     case $ac_arg in
2684     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2685     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2686     | -silent | --silent | --silen | --sile | --sil)
2687       continue ;;
2688     *\'*)
2689       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2690     esac
2691     case $ac_pass in
2692     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2693     2)
2694       as_fn_append ac_configure_args1 " '$ac_arg'"
2695       if test $ac_must_keep_next = true; then
2696         ac_must_keep_next=false # Got value, back to normal.
2697       else
2698         case $ac_arg in
2699           *=* | --config-cache | -C | -disable-* | --disable-* \
2700           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2701           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2702           | -with-* | --with-* | -without-* | --without-* | --x)
2703             case "$ac_configure_args0 " in
2704               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2705             esac
2706             ;;
2707           -* ) ac_must_keep_next=true ;;
2708         esac
2709       fi
2710       as_fn_append ac_configure_args " '$ac_arg'"
2711       ;;
2712     esac
2713   done
2714 done
2715 { ac_configure_args0=; unset ac_configure_args0;}
2716 { ac_configure_args1=; unset ac_configure_args1;}
2717
2718 # When interrupted or exit'd, cleanup temporary files, and complete
2719 # config.log.  We remove comments because anyway the quotes in there
2720 # would cause problems or look ugly.
2721 # WARNING: Use '\'' to represent an apostrophe within the trap.
2722 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2723 trap 'exit_status=$?
2724   # Save into config.log some information that might help in debugging.
2725   {
2726     echo
2727
2728     $as_echo "## ---------------- ##
2729 ## Cache variables. ##
2730 ## ---------------- ##"
2731     echo
2732     # The following way of writing the cache mishandles newlines in values,
2733 (
2734   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2735     eval ac_val=\$$ac_var
2736     case $ac_val in #(
2737     *${as_nl}*)
2738       case $ac_var in #(
2739       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2740 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2741       esac
2742       case $ac_var in #(
2743       _ | IFS | as_nl) ;; #(
2744       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2745       *) { eval $ac_var=; unset $ac_var;} ;;
2746       esac ;;
2747     esac
2748   done
2749   (set) 2>&1 |
2750     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2751     *${as_nl}ac_space=\ *)
2752       sed -n \
2753         "s/'\''/'\''\\\\'\'''\''/g;
2754           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2755       ;; #(
2756     *)
2757       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2758       ;;
2759     esac |
2760     sort
2761 )
2762     echo
2763
2764     $as_echo "## ----------------- ##
2765 ## Output variables. ##
2766 ## ----------------- ##"
2767     echo
2768     for ac_var in $ac_subst_vars
2769     do
2770       eval ac_val=\$$ac_var
2771       case $ac_val in
2772       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2773       esac
2774       $as_echo "$ac_var='\''$ac_val'\''"
2775     done | sort
2776     echo
2777
2778     if test -n "$ac_subst_files"; then
2779       $as_echo "## ------------------- ##
2780 ## File substitutions. ##
2781 ## ------------------- ##"
2782       echo
2783       for ac_var in $ac_subst_files
2784       do
2785         eval ac_val=\$$ac_var
2786         case $ac_val in
2787         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2788         esac
2789         $as_echo "$ac_var='\''$ac_val'\''"
2790       done | sort
2791       echo
2792     fi
2793
2794     if test -s confdefs.h; then
2795       $as_echo "## ----------- ##
2796 ## confdefs.h. ##
2797 ## ----------- ##"
2798       echo
2799       cat confdefs.h
2800       echo
2801     fi
2802     test "$ac_signal" != 0 &&
2803       $as_echo "$as_me: caught signal $ac_signal"
2804     $as_echo "$as_me: exit $exit_status"
2805   } >&5
2806   rm -f core *.core core.conftest.* &&
2807     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2808     exit $exit_status
2809 ' 0
2810 for ac_signal in 1 2 13 15; do
2811   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2812 done
2813 ac_signal=0
2814
2815 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2816 rm -f -r conftest* confdefs.h
2817
2818 $as_echo "/* confdefs.h */" > confdefs.h
2819
2820 # Predefined preprocessor variables.
2821
2822 cat >>confdefs.h <<_ACEOF
2823 #define PACKAGE_NAME "$PACKAGE_NAME"
2824 _ACEOF
2825
2826 cat >>confdefs.h <<_ACEOF
2827 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2828 _ACEOF
2829
2830 cat >>confdefs.h <<_ACEOF
2831 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2832 _ACEOF
2833
2834 cat >>confdefs.h <<_ACEOF
2835 #define PACKAGE_STRING "$PACKAGE_STRING"
2836 _ACEOF
2837
2838 cat >>confdefs.h <<_ACEOF
2839 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2840 _ACEOF
2841
2842 cat >>confdefs.h <<_ACEOF
2843 #define PACKAGE_URL "$PACKAGE_URL"
2844 _ACEOF
2845
2846
2847 # Let the site file select an alternate cache file if it wants to.
2848 # Prefer an explicitly selected file to automatically selected ones.
2849 ac_site_file1=NONE
2850 ac_site_file2=NONE
2851 if test -n "$CONFIG_SITE"; then
2852   # We do not want a PATH search for config.site.
2853   case $CONFIG_SITE in #((
2854     -*)  ac_site_file1=./$CONFIG_SITE;;
2855     */*) ac_site_file1=$CONFIG_SITE;;
2856     *)   ac_site_file1=./$CONFIG_SITE;;
2857   esac
2858 elif test "x$prefix" != xNONE; then
2859   ac_site_file1=$prefix/share/config.site
2860   ac_site_file2=$prefix/etc/config.site
2861 else
2862   ac_site_file1=$ac_default_prefix/share/config.site
2863   ac_site_file2=$ac_default_prefix/etc/config.site
2864 fi
2865 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2866 do
2867   test "x$ac_site_file" = xNONE && continue
2868   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2869     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2870 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2871     sed 's/^/| /' "$ac_site_file" >&5
2872     . "$ac_site_file" \
2873       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2874 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2875 as_fn_error $? "failed to load site script $ac_site_file
2876 See \`config.log' for more details" "$LINENO" 5; }
2877   fi
2878 done
2879
2880 if test -r "$cache_file"; then
2881   # Some versions of bash will fail to source /dev/null (special files
2882   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2883   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2884     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2885 $as_echo "$as_me: loading cache $cache_file" >&6;}
2886     case $cache_file in
2887       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2888       *)                      . "./$cache_file";;
2889     esac
2890   fi
2891 else
2892   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2893 $as_echo "$as_me: creating cache $cache_file" >&6;}
2894   >$cache_file
2895 fi
2896
2897 gt_needs="$gt_needs "
2898 as_fn_append ac_header_list " stdlib.h"
2899 as_fn_append ac_header_list " unistd.h"
2900 as_fn_append ac_header_list " sys/param.h"
2901 # Check that the precious variables saved in the cache have kept the same
2902 # value.
2903 ac_cache_corrupted=false
2904 for ac_var in $ac_precious_vars; do
2905   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2906   eval ac_new_set=\$ac_env_${ac_var}_set
2907   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2908   eval ac_new_val=\$ac_env_${ac_var}_value
2909   case $ac_old_set,$ac_new_set in
2910     set,)
2911       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2912 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2913       ac_cache_corrupted=: ;;
2914     ,set)
2915       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2916 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2917       ac_cache_corrupted=: ;;
2918     ,);;
2919     *)
2920       if test "x$ac_old_val" != "x$ac_new_val"; then
2921         # differences in whitespace do not lead to failure.
2922         ac_old_val_w=`echo x $ac_old_val`
2923         ac_new_val_w=`echo x $ac_new_val`
2924         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2925           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2926 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2927           ac_cache_corrupted=:
2928         else
2929           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2930 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2931           eval $ac_var=\$ac_old_val
2932         fi
2933         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2934 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2935         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2936 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2937       fi;;
2938   esac
2939   # Pass precious variables to config.status.
2940   if test "$ac_new_set" = set; then
2941     case $ac_new_val in
2942     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2943     *) ac_arg=$ac_var=$ac_new_val ;;
2944     esac
2945     case " $ac_configure_args " in
2946       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2947       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2948     esac
2949   fi
2950 done
2951 if $ac_cache_corrupted; then
2952   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2953 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2954   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2955 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2956   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2957 fi
2958 ## -------------------- ##
2959 ## Main body of script. ##
2960 ## -------------------- ##
2961
2962 ac_ext=c
2963 ac_cpp='$CPP $CPPFLAGS'
2964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2967
2968
2969
2970
2971
2972
2973 am__api_version='1.11'
2974
2975 ac_aux_dir=
2976 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2977   if test -f "$ac_dir/install-sh"; then
2978     ac_aux_dir=$ac_dir
2979     ac_install_sh="$ac_aux_dir/install-sh -c"
2980     break
2981   elif test -f "$ac_dir/install.sh"; then
2982     ac_aux_dir=$ac_dir
2983     ac_install_sh="$ac_aux_dir/install.sh -c"
2984     break
2985   elif test -f "$ac_dir/shtool"; then
2986     ac_aux_dir=$ac_dir
2987     ac_install_sh="$ac_aux_dir/shtool install -c"
2988     break
2989   fi
2990 done
2991 if test -z "$ac_aux_dir"; then
2992   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2993 fi
2994
2995 # These three variables are undocumented and unsupported,
2996 # and are intended to be withdrawn in a future Autoconf release.
2997 # They can cause serious problems if a builder's source tree is in a directory
2998 # whose full name contains unusual characters.
2999 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3000 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3001 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3002
3003
3004 # Find a good install program.  We prefer a C program (faster),
3005 # so one script is as good as another.  But avoid the broken or
3006 # incompatible versions:
3007 # SysV /etc/install, /usr/sbin/install
3008 # SunOS /usr/etc/install
3009 # IRIX /sbin/install
3010 # AIX /bin/install
3011 # AmigaOS /C/install, which installs bootblocks on floppy discs
3012 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3013 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3014 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3015 # OS/2's system install, which has a completely different semantic
3016 # ./install, which can be erroneously created by make from ./install.sh.
3017 # Reject install programs that cannot install multiple files.
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3019 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3020 if test -z "$INSTALL"; then
3021 if ${ac_cv_path_install+:} false; then :
3022   $as_echo_n "(cached) " >&6
3023 else
3024   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3025 for as_dir in $PATH
3026 do
3027   IFS=$as_save_IFS
3028   test -z "$as_dir" && as_dir=.
3029     # Account for people who put trailing slashes in PATH elements.
3030 case $as_dir/ in #((
3031   ./ | .// | /[cC]/* | \
3032   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3033   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3034   /usr/ucb/* ) ;;
3035   *)
3036     # OSF1 and SCO ODT 3.0 have their own names for install.
3037     # Don't use installbsd from OSF since it installs stuff as root
3038     # by default.
3039     for ac_prog in ginstall scoinst install; do
3040       for ac_exec_ext in '' $ac_executable_extensions; do
3041         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3042           if test $ac_prog = install &&
3043             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3044             # AIX install.  It has an incompatible calling convention.
3045             :
3046           elif test $ac_prog = install &&
3047             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3048             # program-specific install script used by HP pwplus--don't use.
3049             :
3050           else
3051             rm -rf conftest.one conftest.two conftest.dir
3052             echo one > conftest.one
3053             echo two > conftest.two
3054             mkdir conftest.dir
3055             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3056               test -s conftest.one && test -s conftest.two &&
3057               test -s conftest.dir/conftest.one &&
3058               test -s conftest.dir/conftest.two
3059             then
3060               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3061               break 3
3062             fi
3063           fi
3064         fi
3065       done
3066     done
3067     ;;
3068 esac
3069
3070   done
3071 IFS=$as_save_IFS
3072
3073 rm -rf conftest.one conftest.two conftest.dir
3074
3075 fi
3076   if test "${ac_cv_path_install+set}" = set; then
3077     INSTALL=$ac_cv_path_install
3078   else
3079     # As a last resort, use the slow shell script.  Don't cache a
3080     # value for INSTALL within a source directory, because that will
3081     # break other packages using the cache if that directory is
3082     # removed, or if the value is a relative name.
3083     INSTALL=$ac_install_sh
3084   fi
3085 fi
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3087 $as_echo "$INSTALL" >&6; }
3088
3089 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3090 # It thinks the first close brace ends the variable substitution.
3091 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3092
3093 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3094
3095 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3096
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3098 $as_echo_n "checking whether build environment is sane... " >&6; }
3099 # Just in case
3100 sleep 1
3101 echo timestamp > conftest.file
3102 # Reject unsafe characters in $srcdir or the absolute working directory
3103 # name.  Accept space and tab only in the latter.
3104 am_lf='
3105 '
3106 case `pwd` in
3107   *[\\\"\#\$\&\'\`$am_lf]*)
3108     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3109 esac
3110 case $srcdir in
3111   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3112     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3113 esac
3114
3115 # Do `set' in a subshell so we don't clobber the current shell's
3116 # arguments.  Must try -L first in case configure is actually a
3117 # symlink; some systems play weird games with the mod time of symlinks
3118 # (eg FreeBSD returns the mod time of the symlink's containing
3119 # directory).
3120 if (
3121    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3122    if test "$*" = "X"; then
3123       # -L didn't work.
3124       set X `ls -t "$srcdir/configure" conftest.file`
3125    fi
3126    rm -f conftest.file
3127    if test "$*" != "X $srcdir/configure conftest.file" \
3128       && test "$*" != "X conftest.file $srcdir/configure"; then
3129
3130       # If neither matched, then we have a broken ls.  This can happen
3131       # if, for instance, CONFIG_SHELL is bash and it inherits a
3132       # broken ls alias from the environment.  This has actually
3133       # happened.  Such a system could not be considered "sane".
3134       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3135 alias in your environment" "$LINENO" 5
3136    fi
3137
3138    test "$2" = conftest.file
3139    )
3140 then
3141    # Ok.
3142    :
3143 else
3144    as_fn_error $? "newly created file is older than distributed files!
3145 Check your system clock" "$LINENO" 5
3146 fi
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3148 $as_echo "yes" >&6; }
3149 test "$program_prefix" != NONE &&
3150   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3151 # Use a double $ so make ignores it.
3152 test "$program_suffix" != NONE &&
3153   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3154 # Double any \ or $.
3155 # By default was `s,x,x', remove it if useless.
3156 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3157 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3158
3159 # expand $ac_aux_dir to an absolute path
3160 am_aux_dir=`cd $ac_aux_dir && pwd`
3161
3162 if test x"${MISSING+set}" != xset; then
3163   case $am_aux_dir in
3164   *\ * | *\     *)
3165     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3166   *)
3167     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3168   esac
3169 fi
3170 # Use eval to expand $SHELL
3171 if eval "$MISSING --run true"; then
3172   am_missing_run="$MISSING --run "
3173 else
3174   am_missing_run=
3175   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3176 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3177 fi
3178
3179 if test x"${install_sh}" != xset; then
3180   case $am_aux_dir in
3181   *\ * | *\     *)
3182     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3183   *)
3184     install_sh="\${SHELL} $am_aux_dir/install-sh"
3185   esac
3186 fi
3187
3188 # Installed binaries are usually stripped using `strip' when the user
3189 # run `make install-strip'.  However `strip' might not be the right
3190 # tool to use in cross-compilation environments, therefore Automake
3191 # will honor the `STRIP' environment variable to overrule this program.
3192 if test "$cross_compiling" != no; then
3193   if test -n "$ac_tool_prefix"; then
3194   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3195 set dummy ${ac_tool_prefix}strip; ac_word=$2
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3197 $as_echo_n "checking for $ac_word... " >&6; }
3198 if ${ac_cv_prog_STRIP+:} false; then :
3199   $as_echo_n "(cached) " >&6
3200 else
3201   if test -n "$STRIP"; then
3202   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3203 else
3204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3205 for as_dir in $PATH
3206 do
3207   IFS=$as_save_IFS
3208   test -z "$as_dir" && as_dir=.
3209     for ac_exec_ext in '' $ac_executable_extensions; do
3210   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3211     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3212     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3213     break 2
3214   fi
3215 done
3216   done
3217 IFS=$as_save_IFS
3218
3219 fi
3220 fi
3221 STRIP=$ac_cv_prog_STRIP
3222 if test -n "$STRIP"; then
3223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3224 $as_echo "$STRIP" >&6; }
3225 else
3226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3227 $as_echo "no" >&6; }
3228 fi
3229
3230
3231 fi
3232 if test -z "$ac_cv_prog_STRIP"; then
3233   ac_ct_STRIP=$STRIP
3234   # Extract the first word of "strip", so it can be a program name with args.
3235 set dummy strip; ac_word=$2
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3237 $as_echo_n "checking for $ac_word... " >&6; }
3238 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3239   $as_echo_n "(cached) " >&6
3240 else
3241   if test -n "$ac_ct_STRIP"; then
3242   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3243 else
3244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3245 for as_dir in $PATH
3246 do
3247   IFS=$as_save_IFS
3248   test -z "$as_dir" && as_dir=.
3249     for ac_exec_ext in '' $ac_executable_extensions; do
3250   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3251     ac_cv_prog_ac_ct_STRIP="strip"
3252     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3253     break 2
3254   fi
3255 done
3256   done
3257 IFS=$as_save_IFS
3258
3259 fi
3260 fi
3261 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3262 if test -n "$ac_ct_STRIP"; then
3263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3264 $as_echo "$ac_ct_STRIP" >&6; }
3265 else
3266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3267 $as_echo "no" >&6; }
3268 fi
3269
3270   if test "x$ac_ct_STRIP" = x; then
3271     STRIP=":"
3272   else
3273     case $cross_compiling:$ac_tool_warned in
3274 yes:)
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3276 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3277 ac_tool_warned=yes ;;
3278 esac
3279     STRIP=$ac_ct_STRIP
3280   fi
3281 else
3282   STRIP="$ac_cv_prog_STRIP"
3283 fi
3284
3285 fi
3286 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3287
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3289 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3290 if test -z "$MKDIR_P"; then
3291   if ${ac_cv_path_mkdir+:} false; then :
3292   $as_echo_n "(cached) " >&6
3293 else
3294   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3295 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3296 do
3297   IFS=$as_save_IFS
3298   test -z "$as_dir" && as_dir=.
3299     for ac_prog in mkdir gmkdir; do
3300          for ac_exec_ext in '' $ac_executable_extensions; do
3301            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3302            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3303              'mkdir (GNU coreutils) '* | \
3304              'mkdir (coreutils) '* | \
3305              'mkdir (fileutils) '4.1*)
3306                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3307                break 3;;
3308            esac
3309          done
3310        done
3311   done
3312 IFS=$as_save_IFS
3313
3314 fi
3315
3316   test -d ./--version && rmdir ./--version
3317   if test "${ac_cv_path_mkdir+set}" = set; then
3318     MKDIR_P="$ac_cv_path_mkdir -p"
3319   else
3320     # As a last resort, use the slow shell script.  Don't cache a
3321     # value for MKDIR_P within a source directory, because that will
3322     # break other packages using the cache if that directory is
3323     # removed, or if the value is a relative name.
3324     MKDIR_P="$ac_install_sh -d"
3325   fi
3326 fi
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3328 $as_echo "$MKDIR_P" >&6; }
3329
3330 mkdir_p="$MKDIR_P"
3331 case $mkdir_p in
3332   [\\/$]* | ?:[\\/]*) ;;
3333   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3334 esac
3335
3336 for ac_prog in gawk mawk nawk awk
3337 do
3338   # Extract the first word of "$ac_prog", so it can be a program name with args.
3339 set dummy $ac_prog; ac_word=$2
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3341 $as_echo_n "checking for $ac_word... " >&6; }
3342 if ${ac_cv_prog_AWK+:} false; then :
3343   $as_echo_n "(cached) " >&6
3344 else
3345   if test -n "$AWK"; then
3346   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3347 else
3348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3349 for as_dir in $PATH
3350 do
3351   IFS=$as_save_IFS
3352   test -z "$as_dir" && as_dir=.
3353     for ac_exec_ext in '' $ac_executable_extensions; do
3354   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3355     ac_cv_prog_AWK="$ac_prog"
3356     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3357     break 2
3358   fi
3359 done
3360   done
3361 IFS=$as_save_IFS
3362
3363 fi
3364 fi
3365 AWK=$ac_cv_prog_AWK
3366 if test -n "$AWK"; then
3367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3368 $as_echo "$AWK" >&6; }
3369 else
3370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3371 $as_echo "no" >&6; }
3372 fi
3373
3374
3375   test -n "$AWK" && break
3376 done
3377
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3379 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3380 set x ${MAKE-make}
3381 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3382 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3383   $as_echo_n "(cached) " >&6
3384 else
3385   cat >conftest.make <<\_ACEOF
3386 SHELL = /bin/sh
3387 all:
3388         @echo '@@@%%%=$(MAKE)=@@@%%%'
3389 _ACEOF
3390 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3391 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3392   *@@@%%%=?*=@@@%%%*)
3393     eval ac_cv_prog_make_${ac_make}_set=yes;;
3394   *)
3395     eval ac_cv_prog_make_${ac_make}_set=no;;
3396 esac
3397 rm -f conftest.make
3398 fi
3399 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3401 $as_echo "yes" >&6; }
3402   SET_MAKE=
3403 else
3404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3405 $as_echo "no" >&6; }
3406   SET_MAKE="MAKE=${MAKE-make}"
3407 fi
3408
3409 rm -rf .tst 2>/dev/null
3410 mkdir .tst 2>/dev/null
3411 if test -d .tst; then
3412   am__leading_dot=.
3413 else
3414   am__leading_dot=_
3415 fi
3416 rmdir .tst 2>/dev/null
3417
3418 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3419   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3420   # is not polluted with repeated "-I."
3421   am__isrc=' -I$(srcdir)'
3422   # test to see if srcdir already configured
3423   if test -f $srcdir/config.status; then
3424     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3425   fi
3426 fi
3427
3428 # test whether we have cygpath
3429 if test -z "$CYGPATH_W"; then
3430   if (cygpath --version) >/dev/null 2>/dev/null; then
3431     CYGPATH_W='cygpath -w'
3432   else
3433     CYGPATH_W=echo
3434   fi
3435 fi
3436
3437
3438 # Define the identity of the package.
3439  PACKAGE='gstreamer'
3440  VERSION='0.10.36'
3441
3442
3443 cat >>confdefs.h <<_ACEOF
3444 #define PACKAGE "$PACKAGE"
3445 _ACEOF
3446
3447
3448 cat >>confdefs.h <<_ACEOF
3449 #define VERSION "$VERSION"
3450 _ACEOF
3451
3452 # Some tools Automake needs.
3453
3454 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3455
3456
3457 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3458
3459
3460 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3461
3462
3463 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3464
3465
3466 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3467
3468 # We need awk for the "check" target.  The system "awk" is bad on
3469 # some platforms.
3470 # Always define AMTAR for backward compatibility.  Yes, it's still used
3471 # in the wild :-(  We should find a proper way to deprecate it ...
3472 AMTAR='$${TAR-tar}'
3473
3474 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3475
3476
3477
3478
3479
3480
3481
3482   PACKAGE_VERSION_MAJOR=$(echo 0.10.36 | cut -d'.' -f1)
3483   PACKAGE_VERSION_MINOR=$(echo 0.10.36 | cut -d'.' -f2)
3484   PACKAGE_VERSION_MICRO=$(echo 0.10.36 | cut -d'.' -f3)
3485
3486
3487
3488
3489
3490
3491
3492   { $as_echo "$as_me:${as_lineno-$LINENO}: checking nano version" >&5
3493 $as_echo_n "checking nano version... " >&6; }
3494
3495   NANO=$(echo 0.10.36 | cut -d'.' -f4)
3496
3497   if test x"$NANO" = x || test "x$NANO" = "x0" ; then
3498     { $as_echo "$as_me:${as_lineno-$LINENO}: result: 0 (release)" >&5
3499 $as_echo "0 (release)" >&6; }
3500     NANO=0
3501     PACKAGE_VERSION_RELEASE=1
3502     GST_GIT="no"
3503   else
3504     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NANO" >&5
3505 $as_echo "$NANO" >&6; }
3506     PACKAGE_VERSION_RELEASE=0.`date +%Y%m%d.%H%M%S`
3507     if test "x$NANO" != "x1" ; then
3508        GST_GIT="no"
3509     else
3510        GST_GIT="yes"
3511     fi
3512   fi
3513   PACKAGE_VERSION_NANO=$NANO
3514
3515
3516
3517
3518
3519
3520 ac_config_headers="$ac_config_headers config.h"
3521
3522
3523
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3525 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3526     # Check whether --enable-maintainer-mode was given.
3527 if test "${enable_maintainer_mode+set}" = set; then :
3528   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3529 else
3530   USE_MAINTAINER_MODE=no
3531 fi
3532
3533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3534 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3535    if test $USE_MAINTAINER_MODE = yes; then
3536   MAINTAINER_MODE_TRUE=
3537   MAINTAINER_MODE_FALSE='#'
3538 else
3539   MAINTAINER_MODE_TRUE='#'
3540   MAINTAINER_MODE_FALSE=
3541 fi
3542
3543   MAINT=$MAINTAINER_MODE_TRUE
3544
3545
3546
3547 # Make sure we can run config.sub.
3548 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3549   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3550
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3552 $as_echo_n "checking build system type... " >&6; }
3553 if ${ac_cv_build+:} false; then :
3554   $as_echo_n "(cached) " >&6
3555 else
3556   ac_build_alias=$build_alias
3557 test "x$ac_build_alias" = x &&
3558   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3559 test "x$ac_build_alias" = x &&
3560   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3561 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3562   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3563
3564 fi
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3566 $as_echo "$ac_cv_build" >&6; }
3567 case $ac_cv_build in
3568 *-*-*) ;;
3569 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3570 esac
3571 build=$ac_cv_build
3572 ac_save_IFS=$IFS; IFS='-'
3573 set x $ac_cv_build
3574 shift
3575 build_cpu=$1
3576 build_vendor=$2
3577 shift; shift
3578 # Remember, the first character of IFS is used to create $*,
3579 # except with old shells:
3580 build_os=$*
3581 IFS=$ac_save_IFS
3582 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3583
3584
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3586 $as_echo_n "checking host system type... " >&6; }
3587 if ${ac_cv_host+:} false; then :
3588   $as_echo_n "(cached) " >&6
3589 else
3590   if test "x$host_alias" = x; then
3591   ac_cv_host=$ac_cv_build
3592 else
3593   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3594     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3595 fi
3596
3597 fi
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3599 $as_echo "$ac_cv_host" >&6; }
3600 case $ac_cv_host in
3601 *-*-*) ;;
3602 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3603 esac
3604 host=$ac_cv_host
3605 ac_save_IFS=$IFS; IFS='-'
3606 set x $ac_cv_host
3607 shift
3608 host_cpu=$1
3609 host_vendor=$2
3610 shift; shift
3611 # Remember, the first character of IFS is used to create $*,
3612 # except with old shells:
3613 host_os=$*
3614 IFS=$ac_save_IFS
3615 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3616
3617
3618
3619 # Check whether --enable-silent-rules was given.
3620 if test "${enable_silent_rules+set}" = set; then :
3621   enableval=$enable_silent_rules;
3622 fi
3623
3624 case $enable_silent_rules in
3625 yes) AM_DEFAULT_VERBOSITY=0;;
3626 no)  AM_DEFAULT_VERBOSITY=1;;
3627 *)   AM_DEFAULT_VERBOSITY=0;;
3628 esac
3629 am_make=${MAKE-make}
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3631 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3632 if ${am_cv_make_support_nested_variables+:} false; then :
3633   $as_echo_n "(cached) " >&6
3634 else
3635   if $as_echo 'TRUE=$(BAR$(V))
3636 BAR0=false
3637 BAR1=true
3638 V=1
3639 am__doit:
3640         @$(TRUE)
3641 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3642   am_cv_make_support_nested_variables=yes
3643 else
3644   am_cv_make_support_nested_variables=no
3645 fi
3646 fi
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3648 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3649 if test $am_cv_make_support_nested_variables = yes; then
3650     AM_V='$(V)'
3651   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3652 else
3653   AM_V=$AM_DEFAULT_VERBOSITY
3654   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3655 fi
3656 AM_BACKSLASH='\'
3657
3658
3659 GST_MAJORMINOR=$PACKAGE_VERSION_MAJOR.$PACKAGE_VERSION_MINOR
3660 GST_MAJORMINOR=0.10
3661
3662
3663 cat >>confdefs.h <<_ACEOF
3664 #define GST_MAJORMINOR "$GST_MAJORMINOR"
3665 _ACEOF
3666
3667
3668
3669   GST_CURRENT=30
3670   GST_REVISION=0
3671   GST_AGE=30
3672   GST_LIBVERSION=30:0:30
3673
3674
3675
3676
3677
3678   GST_LT_LDFLAGS="$GST_LT_LDFLAGS -version-info $GST_LIBVERSION"
3679   if test ! -z ""
3680   then
3681     GST_LT_LDFLAGS="$GST_LT_LDFLAGS -release "
3682   fi
3683
3684
3685   enable_dlopen=yes
3686
3687
3688
3689
3690
3691
3692 enable_win32_dll=yes
3693
3694 case $host in
3695 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
3696   if test -n "$ac_tool_prefix"; then
3697   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3698 set dummy ${ac_tool_prefix}as; ac_word=$2
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3700 $as_echo_n "checking for $ac_word... " >&6; }
3701 if ${ac_cv_prog_AS+:} false; then :
3702   $as_echo_n "(cached) " >&6
3703 else
3704   if test -n "$AS"; then
3705   ac_cv_prog_AS="$AS" # Let the user override the test.
3706 else
3707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3708 for as_dir in $PATH
3709 do
3710   IFS=$as_save_IFS
3711   test -z "$as_dir" && as_dir=.
3712     for ac_exec_ext in '' $ac_executable_extensions; do
3713   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3714     ac_cv_prog_AS="${ac_tool_prefix}as"
3715     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3716     break 2
3717   fi
3718 done
3719   done
3720 IFS=$as_save_IFS
3721
3722 fi
3723 fi
3724 AS=$ac_cv_prog_AS
3725 if test -n "$AS"; then
3726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
3727 $as_echo "$AS" >&6; }
3728 else
3729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3730 $as_echo "no" >&6; }
3731 fi
3732
3733
3734 fi
3735 if test -z "$ac_cv_prog_AS"; then
3736   ac_ct_AS=$AS
3737   # Extract the first word of "as", so it can be a program name with args.
3738 set dummy as; ac_word=$2
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3740 $as_echo_n "checking for $ac_word... " >&6; }
3741 if ${ac_cv_prog_ac_ct_AS+:} false; then :
3742   $as_echo_n "(cached) " >&6
3743 else
3744   if test -n "$ac_ct_AS"; then
3745   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3746 else
3747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3748 for as_dir in $PATH
3749 do
3750   IFS=$as_save_IFS
3751   test -z "$as_dir" && as_dir=.
3752     for ac_exec_ext in '' $ac_executable_extensions; do
3753   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3754     ac_cv_prog_ac_ct_AS="as"
3755     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3756     break 2
3757   fi
3758 done
3759   done
3760 IFS=$as_save_IFS
3761
3762 fi
3763 fi
3764 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3765 if test -n "$ac_ct_AS"; then
3766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
3767 $as_echo "$ac_ct_AS" >&6; }
3768 else
3769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3770 $as_echo "no" >&6; }
3771 fi
3772
3773   if test "x$ac_ct_AS" = x; then
3774     AS="false"
3775   else
3776     case $cross_compiling:$ac_tool_warned in
3777 yes:)
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3779 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3780 ac_tool_warned=yes ;;
3781 esac
3782     AS=$ac_ct_AS
3783   fi
3784 else
3785   AS="$ac_cv_prog_AS"
3786 fi
3787
3788   if test -n "$ac_tool_prefix"; then
3789   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3790 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3792 $as_echo_n "checking for $ac_word... " >&6; }
3793 if ${ac_cv_prog_DLLTOOL+:} false; then :
3794   $as_echo_n "(cached) " >&6
3795 else
3796   if test -n "$DLLTOOL"; then
3797   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3798 else
3799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3800 for as_dir in $PATH
3801 do
3802   IFS=$as_save_IFS
3803   test -z "$as_dir" && as_dir=.
3804     for ac_exec_ext in '' $ac_executable_extensions; do
3805   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3806     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3807     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3808     break 2
3809   fi
3810 done
3811   done
3812 IFS=$as_save_IFS
3813
3814 fi
3815 fi
3816 DLLTOOL=$ac_cv_prog_DLLTOOL
3817 if test -n "$DLLTOOL"; then
3818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
3819 $as_echo "$DLLTOOL" >&6; }
3820 else
3821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3822 $as_echo "no" >&6; }
3823 fi
3824
3825
3826 fi
3827 if test -z "$ac_cv_prog_DLLTOOL"; then
3828   ac_ct_DLLTOOL=$DLLTOOL
3829   # Extract the first word of "dlltool", so it can be a program name with args.
3830 set dummy dlltool; ac_word=$2
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3832 $as_echo_n "checking for $ac_word... " >&6; }
3833 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
3834   $as_echo_n "(cached) " >&6
3835 else
3836   if test -n "$ac_ct_DLLTOOL"; then
3837   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
3838 else
3839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3840 for as_dir in $PATH
3841 do
3842   IFS=$as_save_IFS
3843   test -z "$as_dir" && as_dir=.
3844     for ac_exec_ext in '' $ac_executable_extensions; do
3845   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3846     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
3847     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3848     break 2
3849   fi
3850 done
3851   done
3852 IFS=$as_save_IFS
3853
3854 fi
3855 fi
3856 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
3857 if test -n "$ac_ct_DLLTOOL"; then
3858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
3859 $as_echo "$ac_ct_DLLTOOL" >&6; }
3860 else
3861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3862 $as_echo "no" >&6; }
3863 fi
3864
3865   if test "x$ac_ct_DLLTOOL" = x; then
3866     DLLTOOL="false"
3867   else
3868     case $cross_compiling:$ac_tool_warned in
3869 yes:)
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3871 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3872 ac_tool_warned=yes ;;
3873 esac
3874     DLLTOOL=$ac_ct_DLLTOOL
3875   fi
3876 else
3877   DLLTOOL="$ac_cv_prog_DLLTOOL"
3878 fi
3879
3880   if test -n "$ac_tool_prefix"; then
3881   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3882 set dummy ${ac_tool_prefix}objdump; ac_word=$2
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3884 $as_echo_n "checking for $ac_word... " >&6; }
3885 if ${ac_cv_prog_OBJDUMP+:} false; then :
3886   $as_echo_n "(cached) " >&6
3887 else
3888   if test -n "$OBJDUMP"; then
3889   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3890 else
3891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3892 for as_dir in $PATH
3893 do
3894   IFS=$as_save_IFS
3895   test -z "$as_dir" && as_dir=.
3896     for ac_exec_ext in '' $ac_executable_extensions; do
3897   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3898     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3899     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3900     break 2
3901   fi
3902 done
3903   done
3904 IFS=$as_save_IFS
3905
3906 fi
3907 fi
3908 OBJDUMP=$ac_cv_prog_OBJDUMP
3909 if test -n "$OBJDUMP"; then
3910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
3911 $as_echo "$OBJDUMP" >&6; }
3912 else
3913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3914 $as_echo "no" >&6; }
3915 fi
3916
3917
3918 fi
3919 if test -z "$ac_cv_prog_OBJDUMP"; then
3920   ac_ct_OBJDUMP=$OBJDUMP
3921   # Extract the first word of "objdump", so it can be a program name with args.
3922 set dummy objdump; ac_word=$2
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3924 $as_echo_n "checking for $ac_word... " >&6; }
3925 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
3926   $as_echo_n "(cached) " >&6
3927 else
3928   if test -n "$ac_ct_OBJDUMP"; then
3929   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
3930 else
3931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3932 for as_dir in $PATH
3933 do
3934   IFS=$as_save_IFS
3935   test -z "$as_dir" && as_dir=.
3936     for ac_exec_ext in '' $ac_executable_extensions; do
3937   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3938     ac_cv_prog_ac_ct_OBJDUMP="objdump"
3939     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3940     break 2
3941   fi
3942 done
3943   done
3944 IFS=$as_save_IFS
3945
3946 fi
3947 fi
3948 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
3949 if test -n "$ac_ct_OBJDUMP"; then
3950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
3951 $as_echo "$ac_ct_OBJDUMP" >&6; }
3952 else
3953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3954 $as_echo "no" >&6; }
3955 fi
3956
3957   if test "x$ac_ct_OBJDUMP" = x; then
3958     OBJDUMP="false"
3959   else
3960     case $cross_compiling:$ac_tool_warned in
3961 yes:)
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3963 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3964 ac_tool_warned=yes ;;
3965 esac
3966     OBJDUMP=$ac_ct_OBJDUMP
3967   fi
3968 else
3969   OBJDUMP="$ac_cv_prog_OBJDUMP"
3970 fi
3971
3972   ;;
3973 esac
3974
3975 test -z "$AS" && AS=as
3976
3977
3978
3979
3980
3981 test -z "$DLLTOOL" && DLLTOOL=dlltool
3982
3983
3984
3985
3986
3987 test -z "$OBJDUMP" && OBJDUMP=objdump
3988
3989
3990
3991
3992
3993
3994
3995 case `pwd` in
3996   *\ * | *\     *)
3997     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3998 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3999 esac
4000
4001
4002
4003 macro_version='2.4.2'
4004 macro_revision='1.3337'
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018 ltmain="$ac_aux_dir/ltmain.sh"
4019
4020 # Backslashify metacharacters that are still active within
4021 # double-quoted strings.
4022 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4023
4024 # Same as above, but do not quote variable references.
4025 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4026
4027 # Sed substitution to delay expansion of an escaped shell variable in a
4028 # double_quote_subst'ed string.
4029 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4030
4031 # Sed substitution to delay expansion of an escaped single quote.
4032 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4033
4034 # Sed substitution to avoid accidental globbing in evaled expressions
4035 no_glob_subst='s/\*/\\\*/g'
4036
4037 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4038 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4039 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4040
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4042 $as_echo_n "checking how to print strings... " >&6; }
4043 # Test print first, because it will be a builtin if present.
4044 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4045    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4046   ECHO='print -r --'
4047 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4048   ECHO='printf %s\n'
4049 else
4050   # Use this function as a fallback that always works.
4051   func_fallback_echo ()
4052   {
4053     eval 'cat <<_LTECHO_EOF
4054 $1
4055 _LTECHO_EOF'
4056   }
4057   ECHO='func_fallback_echo'
4058 fi
4059
4060 # func_echo_all arg...
4061 # Invoke $ECHO with all args, space-separated.
4062 func_echo_all ()
4063 {
4064     $ECHO ""
4065 }
4066
4067 case "$ECHO" in
4068   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4069 $as_echo "printf" >&6; } ;;
4070   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4071 $as_echo "print -r" >&6; } ;;
4072   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4073 $as_echo "cat" >&6; } ;;
4074 esac
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089 DEPDIR="${am__leading_dot}deps"
4090
4091 ac_config_commands="$ac_config_commands depfiles"
4092
4093
4094 am_make=${MAKE-make}
4095 cat > confinc << 'END'
4096 am__doit:
4097         @echo this is the am__doit target
4098 .PHONY: am__doit
4099 END
4100 # If we don't find an include directive, just comment out the code.
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4102 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4103 am__include="#"
4104 am__quote=
4105 _am_result=none
4106 # First try GNU make style include.
4107 echo "include confinc" > confmf
4108 # Ignore all kinds of additional output from `make'.
4109 case `$am_make -s -f confmf 2> /dev/null` in #(
4110 *the\ am__doit\ target*)
4111   am__include=include
4112   am__quote=
4113   _am_result=GNU
4114   ;;
4115 esac
4116 # Now try BSD make style include.
4117 if test "$am__include" = "#"; then
4118    echo '.include "confinc"' > confmf
4119    case `$am_make -s -f confmf 2> /dev/null` in #(
4120    *the\ am__doit\ target*)
4121      am__include=.include
4122      am__quote="\""
4123      _am_result=BSD
4124      ;;
4125    esac
4126 fi
4127
4128
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4130 $as_echo "$_am_result" >&6; }
4131 rm -f confinc confmf
4132
4133 # Check whether --enable-dependency-tracking was given.
4134 if test "${enable_dependency_tracking+set}" = set; then :
4135   enableval=$enable_dependency_tracking;
4136 fi
4137
4138 if test "x$enable_dependency_tracking" != xno; then
4139   am_depcomp="$ac_aux_dir/depcomp"
4140   AMDEPBACKSLASH='\'
4141   am__nodep='_no'
4142 fi
4143  if test "x$enable_dependency_tracking" != xno; then
4144   AMDEP_TRUE=
4145   AMDEP_FALSE='#'
4146 else
4147   AMDEP_TRUE='#'
4148   AMDEP_FALSE=
4149 fi
4150
4151
4152 ac_ext=c
4153 ac_cpp='$CPP $CPPFLAGS'
4154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4157 if test -n "$ac_tool_prefix"; then
4158   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4159 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4161 $as_echo_n "checking for $ac_word... " >&6; }
4162 if ${ac_cv_prog_CC+:} false; then :
4163   $as_echo_n "(cached) " >&6
4164 else
4165   if test -n "$CC"; then
4166   ac_cv_prog_CC="$CC" # Let the user override the test.
4167 else
4168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4169 for as_dir in $PATH
4170 do
4171   IFS=$as_save_IFS
4172   test -z "$as_dir" && as_dir=.
4173     for ac_exec_ext in '' $ac_executable_extensions; do
4174   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4175     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4176     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4177     break 2
4178   fi
4179 done
4180   done
4181 IFS=$as_save_IFS
4182
4183 fi
4184 fi
4185 CC=$ac_cv_prog_CC
4186 if test -n "$CC"; then
4187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4188 $as_echo "$CC" >&6; }
4189 else
4190   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4191 $as_echo "no" >&6; }
4192 fi
4193
4194
4195 fi
4196 if test -z "$ac_cv_prog_CC"; then
4197   ac_ct_CC=$CC
4198   # Extract the first word of "gcc", so it can be a program name with args.
4199 set dummy gcc; ac_word=$2
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4201 $as_echo_n "checking for $ac_word... " >&6; }
4202 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4203   $as_echo_n "(cached) " >&6
4204 else
4205   if test -n "$ac_ct_CC"; then
4206   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4207 else
4208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4209 for as_dir in $PATH
4210 do
4211   IFS=$as_save_IFS
4212   test -z "$as_dir" && as_dir=.
4213     for ac_exec_ext in '' $ac_executable_extensions; do
4214   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4215     ac_cv_prog_ac_ct_CC="gcc"
4216     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4217     break 2
4218   fi
4219 done
4220   done
4221 IFS=$as_save_IFS
4222
4223 fi
4224 fi
4225 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4226 if test -n "$ac_ct_CC"; then
4227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4228 $as_echo "$ac_ct_CC" >&6; }
4229 else
4230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4231 $as_echo "no" >&6; }
4232 fi
4233
4234   if test "x$ac_ct_CC" = x; then
4235     CC=""
4236   else
4237     case $cross_compiling:$ac_tool_warned in
4238 yes:)
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4240 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4241 ac_tool_warned=yes ;;
4242 esac
4243     CC=$ac_ct_CC
4244   fi
4245 else
4246   CC="$ac_cv_prog_CC"
4247 fi
4248
4249 if test -z "$CC"; then
4250           if test -n "$ac_tool_prefix"; then
4251     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4252 set dummy ${ac_tool_prefix}cc; ac_word=$2
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4254 $as_echo_n "checking for $ac_word... " >&6; }
4255 if ${ac_cv_prog_CC+:} false; then :
4256   $as_echo_n "(cached) " >&6
4257 else
4258   if test -n "$CC"; then
4259   ac_cv_prog_CC="$CC" # Let the user override the test.
4260 else
4261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4262 for as_dir in $PATH
4263 do
4264   IFS=$as_save_IFS
4265   test -z "$as_dir" && as_dir=.
4266     for ac_exec_ext in '' $ac_executable_extensions; do
4267   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4268     ac_cv_prog_CC="${ac_tool_prefix}cc"
4269     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4270     break 2
4271   fi
4272 done
4273   done
4274 IFS=$as_save_IFS
4275
4276 fi
4277 fi
4278 CC=$ac_cv_prog_CC
4279 if test -n "$CC"; then
4280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4281 $as_echo "$CC" >&6; }
4282 else
4283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4284 $as_echo "no" >&6; }
4285 fi
4286
4287
4288   fi
4289 fi
4290 if test -z "$CC"; then
4291   # Extract the first word of "cc", so it can be a program name with args.
4292 set dummy cc; ac_word=$2
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4294 $as_echo_n "checking for $ac_word... " >&6; }
4295 if ${ac_cv_prog_CC+:} false; then :
4296   $as_echo_n "(cached) " >&6
4297 else
4298   if test -n "$CC"; then
4299   ac_cv_prog_CC="$CC" # Let the user override the test.
4300 else
4301   ac_prog_rejected=no
4302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4303 for as_dir in $PATH
4304 do
4305   IFS=$as_save_IFS
4306   test -z "$as_dir" && as_dir=.
4307     for ac_exec_ext in '' $ac_executable_extensions; do
4308   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4309     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4310        ac_prog_rejected=yes
4311        continue
4312      fi
4313     ac_cv_prog_CC="cc"
4314     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4315     break 2
4316   fi
4317 done
4318   done
4319 IFS=$as_save_IFS
4320
4321 if test $ac_prog_rejected = yes; then
4322   # We found a bogon in the path, so make sure we never use it.
4323   set dummy $ac_cv_prog_CC
4324   shift
4325   if test $# != 0; then
4326     # We chose a different compiler from the bogus one.
4327     # However, it has the same basename, so the bogon will be chosen
4328     # first if we set CC to just the basename; use the full file name.
4329     shift
4330     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4331   fi
4332 fi
4333 fi
4334 fi
4335 CC=$ac_cv_prog_CC
4336 if test -n "$CC"; then
4337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4338 $as_echo "$CC" >&6; }
4339 else
4340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4341 $as_echo "no" >&6; }
4342 fi
4343
4344
4345 fi
4346 if test -z "$CC"; then
4347   if test -n "$ac_tool_prefix"; then
4348   for ac_prog in cl.exe
4349   do
4350     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4351 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4353 $as_echo_n "checking for $ac_word... " >&6; }
4354 if ${ac_cv_prog_CC+:} false; then :
4355   $as_echo_n "(cached) " >&6
4356 else
4357   if test -n "$CC"; then
4358   ac_cv_prog_CC="$CC" # Let the user override the test.
4359 else
4360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4361 for as_dir in $PATH
4362 do
4363   IFS=$as_save_IFS
4364   test -z "$as_dir" && as_dir=.
4365     for ac_exec_ext in '' $ac_executable_extensions; do
4366   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4367     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4368     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4369     break 2
4370   fi
4371 done
4372   done
4373 IFS=$as_save_IFS
4374
4375 fi
4376 fi
4377 CC=$ac_cv_prog_CC
4378 if test -n "$CC"; then
4379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4380 $as_echo "$CC" >&6; }
4381 else
4382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4383 $as_echo "no" >&6; }
4384 fi
4385
4386
4387     test -n "$CC" && break
4388   done
4389 fi
4390 if test -z "$CC"; then
4391   ac_ct_CC=$CC
4392   for ac_prog in cl.exe
4393 do
4394   # Extract the first word of "$ac_prog", so it can be a program name with args.
4395 set dummy $ac_prog; ac_word=$2
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4397 $as_echo_n "checking for $ac_word... " >&6; }
4398 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4399   $as_echo_n "(cached) " >&6
4400 else
4401   if test -n "$ac_ct_CC"; then
4402   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4403 else
4404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4405 for as_dir in $PATH
4406 do
4407   IFS=$as_save_IFS
4408   test -z "$as_dir" && as_dir=.
4409     for ac_exec_ext in '' $ac_executable_extensions; do
4410   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4411     ac_cv_prog_ac_ct_CC="$ac_prog"
4412     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4413     break 2
4414   fi
4415 done
4416   done
4417 IFS=$as_save_IFS
4418
4419 fi
4420 fi
4421 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4422 if test -n "$ac_ct_CC"; then
4423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4424 $as_echo "$ac_ct_CC" >&6; }
4425 else
4426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4427 $as_echo "no" >&6; }
4428 fi
4429
4430
4431   test -n "$ac_ct_CC" && break
4432 done
4433
4434   if test "x$ac_ct_CC" = x; then
4435     CC=""
4436   else
4437     case $cross_compiling:$ac_tool_warned in
4438 yes:)
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4440 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4441 ac_tool_warned=yes ;;
4442 esac
4443     CC=$ac_ct_CC
4444   fi
4445 fi
4446
4447 fi
4448
4449
4450 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4451 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4452 as_fn_error $? "no acceptable C compiler found in \$PATH
4453 See \`config.log' for more details" "$LINENO" 5; }
4454
4455 # Provide some information about the compiler.
4456 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4457 set X $ac_compile
4458 ac_compiler=$2
4459 for ac_option in --version -v -V -qversion; do
4460   { { ac_try="$ac_compiler $ac_option >&5"
4461 case "(($ac_try" in
4462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4463   *) ac_try_echo=$ac_try;;
4464 esac
4465 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4466 $as_echo "$ac_try_echo"; } >&5
4467   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4468   ac_status=$?
4469   if test -s conftest.err; then
4470     sed '10a\
4471 ... rest of stderr output deleted ...
4472          10q' conftest.err >conftest.er1
4473     cat conftest.er1 >&5
4474   fi
4475   rm -f conftest.er1 conftest.err
4476   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4477   test $ac_status = 0; }
4478 done
4479
4480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4481 /* end confdefs.h.  */
4482
4483 int
4484 main ()
4485 {
4486
4487   ;
4488   return 0;
4489 }
4490 _ACEOF
4491 ac_clean_files_save=$ac_clean_files
4492 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4493 # Try to create an executable without -o first, disregard a.out.
4494 # It will help us diagnose broken compilers, and finding out an intuition
4495 # of exeext.
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4497 $as_echo_n "checking whether the C compiler works... " >&6; }
4498 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4499
4500 # The possible output files:
4501 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4502
4503 ac_rmfiles=
4504 for ac_file in $ac_files
4505 do
4506   case $ac_file in
4507     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4508     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4509   esac
4510 done
4511 rm -f $ac_rmfiles
4512
4513 if { { ac_try="$ac_link_default"
4514 case "(($ac_try" in
4515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4516   *) ac_try_echo=$ac_try;;
4517 esac
4518 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4519 $as_echo "$ac_try_echo"; } >&5
4520   (eval "$ac_link_default") 2>&5
4521   ac_status=$?
4522   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4523   test $ac_status = 0; }; then :
4524   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4525 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4526 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4527 # so that the user can short-circuit this test for compilers unknown to
4528 # Autoconf.
4529 for ac_file in $ac_files ''
4530 do
4531   test -f "$ac_file" || continue
4532   case $ac_file in
4533     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4534         ;;
4535     [ab].out )
4536         # We found the default executable, but exeext='' is most
4537         # certainly right.
4538         break;;
4539     *.* )
4540         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4541         then :; else
4542            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4543         fi
4544         # We set ac_cv_exeext here because the later test for it is not
4545         # safe: cross compilers may not add the suffix if given an `-o'
4546         # argument, so we may need to know it at that point already.
4547         # Even if this section looks crufty: it has the advantage of
4548         # actually working.
4549         break;;
4550     * )
4551         break;;
4552   esac
4553 done
4554 test "$ac_cv_exeext" = no && ac_cv_exeext=
4555
4556 else
4557   ac_file=''
4558 fi
4559 if test -z "$ac_file"; then :
4560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4561 $as_echo "no" >&6; }
4562 $as_echo "$as_me: failed program was:" >&5
4563 sed 's/^/| /' conftest.$ac_ext >&5
4564
4565 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4566 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4567 as_fn_error 77 "C compiler cannot create executables
4568 See \`config.log' for more details" "$LINENO" 5; }
4569 else
4570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4571 $as_echo "yes" >&6; }
4572 fi
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4574 $as_echo_n "checking for C compiler default output file name... " >&6; }
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4576 $as_echo "$ac_file" >&6; }
4577 ac_exeext=$ac_cv_exeext
4578
4579 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4580 ac_clean_files=$ac_clean_files_save
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4582 $as_echo_n "checking for suffix of executables... " >&6; }
4583 if { { ac_try="$ac_link"
4584 case "(($ac_try" in
4585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4586   *) ac_try_echo=$ac_try;;
4587 esac
4588 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4589 $as_echo "$ac_try_echo"; } >&5
4590   (eval "$ac_link") 2>&5
4591   ac_status=$?
4592   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4593   test $ac_status = 0; }; then :
4594   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4595 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4596 # work properly (i.e., refer to `conftest.exe'), while it won't with
4597 # `rm'.
4598 for ac_file in conftest.exe conftest conftest.*; do
4599   test -f "$ac_file" || continue
4600   case $ac_file in
4601     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4602     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4603           break;;
4604     * ) break;;
4605   esac
4606 done
4607 else
4608   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4609 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4610 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4611 See \`config.log' for more details" "$LINENO" 5; }
4612 fi
4613 rm -f conftest conftest$ac_cv_exeext
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4615 $as_echo "$ac_cv_exeext" >&6; }
4616
4617 rm -f conftest.$ac_ext
4618 EXEEXT=$ac_cv_exeext
4619 ac_exeext=$EXEEXT
4620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4621 /* end confdefs.h.  */
4622 #include <stdio.h>
4623 int
4624 main ()
4625 {
4626 FILE *f = fopen ("conftest.out", "w");
4627  return ferror (f) || fclose (f) != 0;
4628
4629   ;
4630   return 0;
4631 }
4632 _ACEOF
4633 ac_clean_files="$ac_clean_files conftest.out"
4634 # Check that the compiler produces executables we can run.  If not, either
4635 # the compiler is broken, or we cross compile.
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4637 $as_echo_n "checking whether we are cross compiling... " >&6; }
4638 if test "$cross_compiling" != yes; then
4639   { { ac_try="$ac_link"
4640 case "(($ac_try" in
4641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4642   *) ac_try_echo=$ac_try;;
4643 esac
4644 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4645 $as_echo "$ac_try_echo"; } >&5
4646   (eval "$ac_link") 2>&5
4647   ac_status=$?
4648   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4649   test $ac_status = 0; }
4650   if { ac_try='./conftest$ac_cv_exeext'
4651   { { case "(($ac_try" in
4652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4653   *) ac_try_echo=$ac_try;;
4654 esac
4655 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4656 $as_echo "$ac_try_echo"; } >&5
4657   (eval "$ac_try") 2>&5
4658   ac_status=$?
4659   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4660   test $ac_status = 0; }; }; then
4661     cross_compiling=no
4662   else
4663     if test "$cross_compiling" = maybe; then
4664         cross_compiling=yes
4665     else
4666         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4667 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4668 as_fn_error $? "cannot run C compiled programs.
4669 If you meant to cross compile, use \`--host'.
4670 See \`config.log' for more details" "$LINENO" 5; }
4671     fi
4672   fi
4673 fi
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4675 $as_echo "$cross_compiling" >&6; }
4676
4677 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4678 ac_clean_files=$ac_clean_files_save
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4680 $as_echo_n "checking for suffix of object files... " >&6; }
4681 if ${ac_cv_objext+:} false; then :
4682   $as_echo_n "(cached) " >&6
4683 else
4684   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4685 /* end confdefs.h.  */
4686
4687 int
4688 main ()
4689 {
4690
4691   ;
4692   return 0;
4693 }
4694 _ACEOF
4695 rm -f conftest.o conftest.obj
4696 if { { ac_try="$ac_compile"
4697 case "(($ac_try" in
4698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4699   *) ac_try_echo=$ac_try;;
4700 esac
4701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4702 $as_echo "$ac_try_echo"; } >&5
4703   (eval "$ac_compile") 2>&5
4704   ac_status=$?
4705   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4706   test $ac_status = 0; }; then :
4707   for ac_file in conftest.o conftest.obj conftest.*; do
4708   test -f "$ac_file" || continue;
4709   case $ac_file in
4710     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4711     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4712        break;;
4713   esac
4714 done
4715 else
4716   $as_echo "$as_me: failed program was:" >&5
4717 sed 's/^/| /' conftest.$ac_ext >&5
4718
4719 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4720 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4721 as_fn_error $? "cannot compute suffix of object files: cannot compile
4722 See \`config.log' for more details" "$LINENO" 5; }
4723 fi
4724 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4725 fi
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4727 $as_echo "$ac_cv_objext" >&6; }
4728 OBJEXT=$ac_cv_objext
4729 ac_objext=$OBJEXT
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4731 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4732 if ${ac_cv_c_compiler_gnu+:} false; then :
4733   $as_echo_n "(cached) " >&6
4734 else
4735   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4736 /* end confdefs.h.  */
4737
4738 int
4739 main ()
4740 {
4741 #ifndef __GNUC__
4742        choke me
4743 #endif
4744
4745   ;
4746   return 0;
4747 }
4748 _ACEOF
4749 if ac_fn_c_try_compile "$LINENO"; then :
4750   ac_compiler_gnu=yes
4751 else
4752   ac_compiler_gnu=no
4753 fi
4754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4755 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4756
4757 fi
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4759 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4760 if test $ac_compiler_gnu = yes; then
4761   GCC=yes
4762 else
4763   GCC=
4764 fi
4765 ac_test_CFLAGS=${CFLAGS+set}
4766 ac_save_CFLAGS=$CFLAGS
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4768 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4769 if ${ac_cv_prog_cc_g+:} false; then :
4770   $as_echo_n "(cached) " >&6
4771 else
4772   ac_save_c_werror_flag=$ac_c_werror_flag
4773    ac_c_werror_flag=yes
4774    ac_cv_prog_cc_g=no
4775    CFLAGS="-g"
4776    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4777 /* end confdefs.h.  */
4778
4779 int
4780 main ()
4781 {
4782
4783   ;
4784   return 0;
4785 }
4786 _ACEOF
4787 if ac_fn_c_try_compile "$LINENO"; then :
4788   ac_cv_prog_cc_g=yes
4789 else
4790   CFLAGS=""
4791       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4792 /* end confdefs.h.  */
4793
4794 int
4795 main ()
4796 {
4797
4798   ;
4799   return 0;
4800 }
4801 _ACEOF
4802 if ac_fn_c_try_compile "$LINENO"; then :
4803
4804 else
4805   ac_c_werror_flag=$ac_save_c_werror_flag
4806          CFLAGS="-g"
4807          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4808 /* end confdefs.h.  */
4809
4810 int
4811 main ()
4812 {
4813
4814   ;
4815   return 0;
4816 }
4817 _ACEOF
4818 if ac_fn_c_try_compile "$LINENO"; then :
4819   ac_cv_prog_cc_g=yes
4820 fi
4821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4822 fi
4823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4824 fi
4825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4826    ac_c_werror_flag=$ac_save_c_werror_flag
4827 fi
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4829 $as_echo "$ac_cv_prog_cc_g" >&6; }
4830 if test "$ac_test_CFLAGS" = set; then
4831   CFLAGS=$ac_save_CFLAGS
4832 elif test $ac_cv_prog_cc_g = yes; then
4833   if test "$GCC" = yes; then
4834     CFLAGS="-g -O2"
4835   else
4836     CFLAGS="-g"
4837   fi
4838 else
4839   if test "$GCC" = yes; then
4840     CFLAGS="-O2"
4841   else
4842     CFLAGS=
4843   fi
4844 fi
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4846 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4847 if ${ac_cv_prog_cc_c89+:} false; then :
4848   $as_echo_n "(cached) " >&6
4849 else
4850   ac_cv_prog_cc_c89=no
4851 ac_save_CC=$CC
4852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4853 /* end confdefs.h.  */
4854 #include <stdarg.h>
4855 #include <stdio.h>
4856 #include <sys/types.h>
4857 #include <sys/stat.h>
4858 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4859 struct buf { int x; };
4860 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4861 static char *e (p, i)
4862      char **p;
4863      int i;
4864 {
4865   return p[i];
4866 }
4867 static char *f (char * (*g) (char **, int), char **p, ...)
4868 {
4869   char *s;
4870   va_list v;
4871   va_start (v,p);
4872   s = g (p, va_arg (v,int));
4873   va_end (v);
4874   return s;
4875 }
4876
4877 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4878    function prototypes and stuff, but not '\xHH' hex character constants.
4879    These don't provoke an error unfortunately, instead are silently treated
4880    as 'x'.  The following induces an error, until -std is added to get
4881    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4882    array size at least.  It's necessary to write '\x00'==0 to get something
4883    that's true only with -std.  */
4884 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4885
4886 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4887    inside strings and character constants.  */
4888 #define FOO(x) 'x'
4889 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4890
4891 int test (int i, double x);
4892 struct s1 {int (*f) (int a);};
4893 struct s2 {int (*f) (double a);};
4894 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4895 int argc;
4896 char **argv;
4897 int
4898 main ()
4899 {
4900 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4901   ;
4902   return 0;
4903 }
4904 _ACEOF
4905 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4906         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4907 do
4908   CC="$ac_save_CC $ac_arg"
4909   if ac_fn_c_try_compile "$LINENO"; then :
4910   ac_cv_prog_cc_c89=$ac_arg
4911 fi
4912 rm -f core conftest.err conftest.$ac_objext
4913   test "x$ac_cv_prog_cc_c89" != "xno" && break
4914 done
4915 rm -f conftest.$ac_ext
4916 CC=$ac_save_CC
4917
4918 fi
4919 # AC_CACHE_VAL
4920 case "x$ac_cv_prog_cc_c89" in
4921   x)
4922     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4923 $as_echo "none needed" >&6; } ;;
4924   xno)
4925     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4926 $as_echo "unsupported" >&6; } ;;
4927   *)
4928     CC="$CC $ac_cv_prog_cc_c89"
4929     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4930 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4931 esac
4932 if test "x$ac_cv_prog_cc_c89" != xno; then :
4933
4934 fi
4935
4936 ac_ext=c
4937 ac_cpp='$CPP $CPPFLAGS'
4938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4941
4942 depcc="$CC"   am_compiler_list=
4943
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4945 $as_echo_n "checking dependency style of $depcc... " >&6; }
4946 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4947   $as_echo_n "(cached) " >&6
4948 else
4949   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4950   # We make a subdir and do the tests there.  Otherwise we can end up
4951   # making bogus files that we don't know about and never remove.  For
4952   # instance it was reported that on HP-UX the gcc test will end up
4953   # making a dummy file named `D' -- because `-MD' means `put the output
4954   # in D'.
4955   rm -rf conftest.dir
4956   mkdir conftest.dir
4957   # Copy depcomp to subdir because otherwise we won't find it if we're
4958   # using a relative directory.
4959   cp "$am_depcomp" conftest.dir
4960   cd conftest.dir
4961   # We will build objects and dependencies in a subdirectory because
4962   # it helps to detect inapplicable dependency modes.  For instance
4963   # both Tru64's cc and ICC support -MD to output dependencies as a
4964   # side effect of compilation, but ICC will put the dependencies in
4965   # the current directory while Tru64 will put them in the object
4966   # directory.
4967   mkdir sub
4968
4969   am_cv_CC_dependencies_compiler_type=none
4970   if test "$am_compiler_list" = ""; then
4971      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4972   fi
4973   am__universal=false
4974   case " $depcc " in #(
4975      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4976      esac
4977
4978   for depmode in $am_compiler_list; do
4979     # Setup a source with many dependencies, because some compilers
4980     # like to wrap large dependency lists on column 80 (with \), and
4981     # we should not choose a depcomp mode which is confused by this.
4982     #
4983     # We need to recreate these files for each test, as the compiler may
4984     # overwrite some of them when testing with obscure command lines.
4985     # This happens at least with the AIX C compiler.
4986     : > sub/conftest.c
4987     for i in 1 2 3 4 5 6; do
4988       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4989       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4990       # Solaris 8's {/usr,}/bin/sh.
4991       touch sub/conftst$i.h
4992     done
4993     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4994
4995     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4996     # mode.  It turns out that the SunPro C++ compiler does not properly
4997     # handle `-M -o', and we need to detect this.  Also, some Intel
4998     # versions had trouble with output in subdirs
4999     am__obj=sub/conftest.${OBJEXT-o}
5000     am__minus_obj="-o $am__obj"
5001     case $depmode in
5002     gcc)
5003       # This depmode causes a compiler race in universal mode.
5004       test "$am__universal" = false || continue
5005       ;;
5006     nosideeffect)
5007       # after this tag, mechanisms are not by side-effect, so they'll
5008       # only be used when explicitly requested
5009       if test "x$enable_dependency_tracking" = xyes; then
5010         continue
5011       else
5012         break
5013       fi
5014       ;;
5015     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5016       # This compiler won't grok `-c -o', but also, the minuso test has
5017       # not run yet.  These depmodes are late enough in the game, and
5018       # so weak that their functioning should not be impacted.
5019       am__obj=conftest.${OBJEXT-o}
5020       am__minus_obj=
5021       ;;
5022     none) break ;;
5023     esac
5024     if depmode=$depmode \
5025        source=sub/conftest.c object=$am__obj \
5026        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5027        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5028          >/dev/null 2>conftest.err &&
5029        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5030        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5031        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5032        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5033       # icc doesn't choke on unknown options, it will just issue warnings
5034       # or remarks (even with -Werror).  So we grep stderr for any message
5035       # that says an option was ignored or not supported.
5036       # When given -MP, icc 7.0 and 7.1 complain thusly:
5037       #   icc: Command line warning: ignoring option '-M'; no argument required
5038       # The diagnosis changed in icc 8.0:
5039       #   icc: Command line remark: option '-MP' not supported
5040       if (grep 'ignoring option' conftest.err ||
5041           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5042         am_cv_CC_dependencies_compiler_type=$depmode
5043         break
5044       fi
5045     fi
5046   done
5047
5048   cd ..
5049   rm -rf conftest.dir
5050 else
5051   am_cv_CC_dependencies_compiler_type=none
5052 fi
5053
5054 fi
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5056 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5057 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5058
5059  if
5060   test "x$enable_dependency_tracking" != xno \
5061   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5062   am__fastdepCC_TRUE=
5063   am__fastdepCC_FALSE='#'
5064 else
5065   am__fastdepCC_TRUE='#'
5066   am__fastdepCC_FALSE=
5067 fi
5068
5069
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5071 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5072 if ${ac_cv_path_SED+:} false; then :
5073   $as_echo_n "(cached) " >&6
5074 else
5075             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5076      for ac_i in 1 2 3 4 5 6 7; do
5077        ac_script="$ac_script$as_nl$ac_script"
5078      done
5079      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5080      { ac_script=; unset ac_script;}
5081      if test -z "$SED"; then
5082   ac_path_SED_found=false
5083   # Loop through the user's path and test for each of PROGNAME-LIST
5084   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5085 for as_dir in $PATH
5086 do
5087   IFS=$as_save_IFS
5088   test -z "$as_dir" && as_dir=.
5089     for ac_prog in sed gsed; do
5090     for ac_exec_ext in '' $ac_executable_extensions; do
5091       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5092       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5093 # Check for GNU ac_path_SED and select it if it is found.
5094   # Check for GNU $ac_path_SED
5095 case `"$ac_path_SED" --version 2>&1` in
5096 *GNU*)
5097   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5098 *)
5099   ac_count=0
5100   $as_echo_n 0123456789 >"conftest.in"
5101   while :
5102   do
5103     cat "conftest.in" "conftest.in" >"conftest.tmp"
5104     mv "conftest.tmp" "conftest.in"
5105     cp "conftest.in" "conftest.nl"
5106     $as_echo '' >> "conftest.nl"
5107     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5108     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5109     as_fn_arith $ac_count + 1 && ac_count=$as_val
5110     if test $ac_count -gt ${ac_path_SED_max-0}; then
5111       # Best one so far, save it but keep looking for a better one
5112       ac_cv_path_SED="$ac_path_SED"
5113       ac_path_SED_max=$ac_count
5114     fi
5115     # 10*(2^10) chars as input seems more than enough
5116     test $ac_count -gt 10 && break
5117   done
5118   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5119 esac
5120
5121       $ac_path_SED_found && break 3
5122     done
5123   done
5124   done
5125 IFS=$as_save_IFS
5126   if test -z "$ac_cv_path_SED"; then
5127     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5128   fi
5129 else
5130   ac_cv_path_SED=$SED
5131 fi
5132
5133 fi
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5135 $as_echo "$ac_cv_path_SED" >&6; }
5136  SED="$ac_cv_path_SED"
5137   rm -f conftest.sed
5138
5139 test -z "$SED" && SED=sed
5140 Xsed="$SED -e 1s/^X//"
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5153 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5154 if ${ac_cv_path_GREP+:} false; then :
5155   $as_echo_n "(cached) " >&6
5156 else
5157   if test -z "$GREP"; then
5158   ac_path_GREP_found=false
5159   # Loop through the user's path and test for each of PROGNAME-LIST
5160   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5161 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5162 do
5163   IFS=$as_save_IFS
5164   test -z "$as_dir" && as_dir=.
5165     for ac_prog in grep ggrep; do
5166     for ac_exec_ext in '' $ac_executable_extensions; do
5167       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5168       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5169 # Check for GNU ac_path_GREP and select it if it is found.
5170   # Check for GNU $ac_path_GREP
5171 case `"$ac_path_GREP" --version 2>&1` in
5172 *GNU*)
5173   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5174 *)
5175   ac_count=0
5176   $as_echo_n 0123456789 >"conftest.in"
5177   while :
5178   do
5179     cat "conftest.in" "conftest.in" >"conftest.tmp"
5180     mv "conftest.tmp" "conftest.in"
5181     cp "conftest.in" "conftest.nl"
5182     $as_echo 'GREP' >> "conftest.nl"
5183     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5184     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5185     as_fn_arith $ac_count + 1 && ac_count=$as_val
5186     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5187       # Best one so far, save it but keep looking for a better one
5188       ac_cv_path_GREP="$ac_path_GREP"
5189       ac_path_GREP_max=$ac_count
5190     fi
5191     # 10*(2^10) chars as input seems more than enough
5192     test $ac_count -gt 10 && break
5193   done
5194   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5195 esac
5196
5197       $ac_path_GREP_found && break 3
5198     done
5199   done
5200   done
5201 IFS=$as_save_IFS
5202   if test -z "$ac_cv_path_GREP"; then
5203     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5204   fi
5205 else
5206   ac_cv_path_GREP=$GREP
5207 fi
5208
5209 fi
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5211 $as_echo "$ac_cv_path_GREP" >&6; }
5212  GREP="$ac_cv_path_GREP"
5213
5214
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5216 $as_echo_n "checking for egrep... " >&6; }
5217 if ${ac_cv_path_EGREP+:} false; then :
5218   $as_echo_n "(cached) " >&6
5219 else
5220   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5221    then ac_cv_path_EGREP="$GREP -E"
5222    else
5223      if test -z "$EGREP"; then
5224   ac_path_EGREP_found=false
5225   # Loop through the user's path and test for each of PROGNAME-LIST
5226   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5227 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5228 do
5229   IFS=$as_save_IFS
5230   test -z "$as_dir" && as_dir=.
5231     for ac_prog in egrep; do
5232     for ac_exec_ext in '' $ac_executable_extensions; do
5233       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5234       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5235 # Check for GNU ac_path_EGREP and select it if it is found.
5236   # Check for GNU $ac_path_EGREP
5237 case `"$ac_path_EGREP" --version 2>&1` in
5238 *GNU*)
5239   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5240 *)
5241   ac_count=0
5242   $as_echo_n 0123456789 >"conftest.in"
5243   while :
5244   do
5245     cat "conftest.in" "conftest.in" >"conftest.tmp"
5246     mv "conftest.tmp" "conftest.in"
5247     cp "conftest.in" "conftest.nl"
5248     $as_echo 'EGREP' >> "conftest.nl"
5249     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5250     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5251     as_fn_arith $ac_count + 1 && ac_count=$as_val
5252     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5253       # Best one so far, save it but keep looking for a better one
5254       ac_cv_path_EGREP="$ac_path_EGREP"
5255       ac_path_EGREP_max=$ac_count
5256     fi
5257     # 10*(2^10) chars as input seems more than enough
5258     test $ac_count -gt 10 && break
5259   done
5260   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5261 esac
5262
5263       $ac_path_EGREP_found && break 3
5264     done
5265   done
5266   done
5267 IFS=$as_save_IFS
5268   if test -z "$ac_cv_path_EGREP"; then
5269     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5270   fi
5271 else
5272   ac_cv_path_EGREP=$EGREP
5273 fi
5274
5275    fi
5276 fi
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5278 $as_echo "$ac_cv_path_EGREP" >&6; }
5279  EGREP="$ac_cv_path_EGREP"
5280
5281
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5283 $as_echo_n "checking for fgrep... " >&6; }
5284 if ${ac_cv_path_FGREP+:} false; then :
5285   $as_echo_n "(cached) " >&6
5286 else
5287   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5288    then ac_cv_path_FGREP="$GREP -F"
5289    else
5290      if test -z "$FGREP"; then
5291   ac_path_FGREP_found=false
5292   # Loop through the user's path and test for each of PROGNAME-LIST
5293   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5294 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5295 do
5296   IFS=$as_save_IFS
5297   test -z "$as_dir" && as_dir=.
5298     for ac_prog in fgrep; do
5299     for ac_exec_ext in '' $ac_executable_extensions; do
5300       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5301       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5302 # Check for GNU ac_path_FGREP and select it if it is found.
5303   # Check for GNU $ac_path_FGREP
5304 case `"$ac_path_FGREP" --version 2>&1` in
5305 *GNU*)
5306   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5307 *)
5308   ac_count=0
5309   $as_echo_n 0123456789 >"conftest.in"
5310   while :
5311   do
5312     cat "conftest.in" "conftest.in" >"conftest.tmp"
5313     mv "conftest.tmp" "conftest.in"
5314     cp "conftest.in" "conftest.nl"
5315     $as_echo 'FGREP' >> "conftest.nl"
5316     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5317     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5318     as_fn_arith $ac_count + 1 && ac_count=$as_val
5319     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5320       # Best one so far, save it but keep looking for a better one
5321       ac_cv_path_FGREP="$ac_path_FGREP"
5322       ac_path_FGREP_max=$ac_count
5323     fi
5324     # 10*(2^10) chars as input seems more than enough
5325     test $ac_count -gt 10 && break
5326   done
5327   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5328 esac
5329
5330       $ac_path_FGREP_found && break 3
5331     done
5332   done
5333   done
5334 IFS=$as_save_IFS
5335   if test -z "$ac_cv_path_FGREP"; then
5336     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5337   fi
5338 else
5339   ac_cv_path_FGREP=$FGREP
5340 fi
5341
5342    fi
5343 fi
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5345 $as_echo "$ac_cv_path_FGREP" >&6; }
5346  FGREP="$ac_cv_path_FGREP"
5347
5348
5349 test -z "$GREP" && GREP=grep
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369 # Check whether --with-gnu-ld was given.
5370 if test "${with_gnu_ld+set}" = set; then :
5371   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5372 else
5373   with_gnu_ld=no
5374 fi
5375
5376 ac_prog=ld
5377 if test "$GCC" = yes; then
5378   # Check if gcc -print-prog-name=ld gives a path.
5379   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5380 $as_echo_n "checking for ld used by $CC... " >&6; }
5381   case $host in
5382   *-*-mingw*)
5383     # gcc leaves a trailing carriage return which upsets mingw
5384     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5385   *)
5386     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5387   esac
5388   case $ac_prog in
5389     # Accept absolute paths.
5390     [\\/]* | ?:[\\/]*)
5391       re_direlt='/[^/][^/]*/\.\./'
5392       # Canonicalize the pathname of ld
5393       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5394       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5395         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5396       done
5397       test -z "$LD" && LD="$ac_prog"
5398       ;;
5399   "")
5400     # If it fails, then pretend we aren't using GCC.
5401     ac_prog=ld
5402     ;;
5403   *)
5404     # If it is relative, then search for the first ld in PATH.
5405     with_gnu_ld=unknown
5406     ;;
5407   esac
5408 elif test "$with_gnu_ld" = yes; then
5409   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5410 $as_echo_n "checking for GNU ld... " >&6; }
5411 else
5412   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5413 $as_echo_n "checking for non-GNU ld... " >&6; }
5414 fi
5415 if ${lt_cv_path_LD+:} false; then :
5416   $as_echo_n "(cached) " >&6
5417 else
5418   if test -z "$LD"; then
5419   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5420   for ac_dir in $PATH; do
5421     IFS="$lt_save_ifs"
5422     test -z "$ac_dir" && ac_dir=.
5423     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5424       lt_cv_path_LD="$ac_dir/$ac_prog"
5425       # Check to see if the program is GNU ld.  I'd rather use --version,
5426       # but apparently some variants of GNU ld only accept -v.
5427       # Break only if it was the GNU/non-GNU ld that we prefer.
5428       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5429       *GNU* | *'with BFD'*)
5430         test "$with_gnu_ld" != no && break
5431         ;;
5432       *)
5433         test "$with_gnu_ld" != yes && break
5434         ;;
5435       esac
5436     fi
5437   done
5438   IFS="$lt_save_ifs"
5439 else
5440   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5441 fi
5442 fi
5443
5444 LD="$lt_cv_path_LD"
5445 if test -n "$LD"; then
5446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5447 $as_echo "$LD" >&6; }
5448 else
5449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5450 $as_echo "no" >&6; }
5451 fi
5452 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5454 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5455 if ${lt_cv_prog_gnu_ld+:} false; then :
5456   $as_echo_n "(cached) " >&6
5457 else
5458   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5459 case `$LD -v 2>&1 </dev/null` in
5460 *GNU* | *'with BFD'*)
5461   lt_cv_prog_gnu_ld=yes
5462   ;;
5463 *)
5464   lt_cv_prog_gnu_ld=no
5465   ;;
5466 esac
5467 fi
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5469 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5470 with_gnu_ld=$lt_cv_prog_gnu_ld
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5481 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5482 if ${lt_cv_path_NM+:} false; then :
5483   $as_echo_n "(cached) " >&6
5484 else
5485   if test -n "$NM"; then
5486   # Let the user override the test.
5487   lt_cv_path_NM="$NM"
5488 else
5489   lt_nm_to_check="${ac_tool_prefix}nm"
5490   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5491     lt_nm_to_check="$lt_nm_to_check nm"
5492   fi
5493   for lt_tmp_nm in $lt_nm_to_check; do
5494     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5495     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5496       IFS="$lt_save_ifs"
5497       test -z "$ac_dir" && ac_dir=.
5498       tmp_nm="$ac_dir/$lt_tmp_nm"
5499       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5500         # Check to see if the nm accepts a BSD-compat flag.
5501         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5502         #   nm: unknown option "B" ignored
5503         # Tru64's nm complains that /dev/null is an invalid object file
5504         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5505         */dev/null* | *'Invalid file or object type'*)
5506           lt_cv_path_NM="$tmp_nm -B"
5507           break
5508           ;;
5509         *)
5510           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5511           */dev/null*)
5512             lt_cv_path_NM="$tmp_nm -p"
5513             break
5514             ;;
5515           *)
5516             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5517             continue # so that we can try to find one that supports BSD flags
5518             ;;
5519           esac
5520           ;;
5521         esac
5522       fi
5523     done
5524     IFS="$lt_save_ifs"
5525   done
5526   : ${lt_cv_path_NM=no}
5527 fi
5528 fi
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5530 $as_echo "$lt_cv_path_NM" >&6; }
5531 if test "$lt_cv_path_NM" != "no"; then
5532   NM="$lt_cv_path_NM"
5533 else
5534   # Didn't find any BSD compatible name lister, look for dumpbin.
5535   if test -n "$DUMPBIN"; then :
5536     # Let the user override the test.
5537   else
5538     if test -n "$ac_tool_prefix"; then
5539   for ac_prog in dumpbin "link -dump"
5540   do
5541     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5542 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5544 $as_echo_n "checking for $ac_word... " >&6; }
5545 if ${ac_cv_prog_DUMPBIN+:} false; then :
5546   $as_echo_n "(cached) " >&6
5547 else
5548   if test -n "$DUMPBIN"; then
5549   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5550 else
5551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5552 for as_dir in $PATH
5553 do
5554   IFS=$as_save_IFS
5555   test -z "$as_dir" && as_dir=.
5556     for ac_exec_ext in '' $ac_executable_extensions; do
5557   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5558     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5559     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5560     break 2
5561   fi
5562 done
5563   done
5564 IFS=$as_save_IFS
5565
5566 fi
5567 fi
5568 DUMPBIN=$ac_cv_prog_DUMPBIN
5569 if test -n "$DUMPBIN"; then
5570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5571 $as_echo "$DUMPBIN" >&6; }
5572 else
5573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5574 $as_echo "no" >&6; }
5575 fi
5576
5577
5578     test -n "$DUMPBIN" && break
5579   done
5580 fi
5581 if test -z "$DUMPBIN"; then
5582   ac_ct_DUMPBIN=$DUMPBIN
5583   for ac_prog in dumpbin "link -dump"
5584 do
5585   # Extract the first word of "$ac_prog", so it can be a program name with args.
5586 set dummy $ac_prog; ac_word=$2
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5588 $as_echo_n "checking for $ac_word... " >&6; }
5589 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5590   $as_echo_n "(cached) " >&6
5591 else
5592   if test -n "$ac_ct_DUMPBIN"; then
5593   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5594 else
5595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5596 for as_dir in $PATH
5597 do
5598   IFS=$as_save_IFS
5599   test -z "$as_dir" && as_dir=.
5600     for ac_exec_ext in '' $ac_executable_extensions; do
5601   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5602     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5603     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5604     break 2
5605   fi
5606 done
5607   done
5608 IFS=$as_save_IFS
5609
5610 fi
5611 fi
5612 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5613 if test -n "$ac_ct_DUMPBIN"; then
5614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5615 $as_echo "$ac_ct_DUMPBIN" >&6; }
5616 else
5617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5618 $as_echo "no" >&6; }
5619 fi
5620
5621
5622   test -n "$ac_ct_DUMPBIN" && break
5623 done
5624
5625   if test "x$ac_ct_DUMPBIN" = x; then
5626     DUMPBIN=":"
5627   else
5628     case $cross_compiling:$ac_tool_warned in
5629 yes:)
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5631 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5632 ac_tool_warned=yes ;;
5633 esac
5634     DUMPBIN=$ac_ct_DUMPBIN
5635   fi
5636 fi
5637
5638     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5639     *COFF*)
5640       DUMPBIN="$DUMPBIN -symbols"
5641       ;;
5642     *)
5643       DUMPBIN=:
5644       ;;
5645     esac
5646   fi
5647
5648   if test "$DUMPBIN" != ":"; then
5649     NM="$DUMPBIN"
5650   fi
5651 fi
5652 test -z "$NM" && NM=nm
5653
5654
5655
5656
5657
5658
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5660 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5661 if ${lt_cv_nm_interface+:} false; then :
5662   $as_echo_n "(cached) " >&6
5663 else
5664   lt_cv_nm_interface="BSD nm"
5665   echo "int some_variable = 0;" > conftest.$ac_ext
5666   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5667   (eval "$ac_compile" 2>conftest.err)
5668   cat conftest.err >&5
5669   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5670   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5671   cat conftest.err >&5
5672   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5673   cat conftest.out >&5
5674   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5675     lt_cv_nm_interface="MS dumpbin"
5676   fi
5677   rm -f conftest*
5678 fi
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5680 $as_echo "$lt_cv_nm_interface" >&6; }
5681
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5683 $as_echo_n "checking whether ln -s works... " >&6; }
5684 LN_S=$as_ln_s
5685 if test "$LN_S" = "ln -s"; then
5686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5687 $as_echo "yes" >&6; }
5688 else
5689   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5690 $as_echo "no, using $LN_S" >&6; }
5691 fi
5692
5693 # find the maximum length of command line arguments
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5695 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5696 if ${lt_cv_sys_max_cmd_len+:} false; then :
5697   $as_echo_n "(cached) " >&6
5698 else
5699     i=0
5700   teststring="ABCD"
5701
5702   case $build_os in
5703   msdosdjgpp*)
5704     # On DJGPP, this test can blow up pretty badly due to problems in libc
5705     # (any single argument exceeding 2000 bytes causes a buffer overrun
5706     # during glob expansion).  Even if it were fixed, the result of this
5707     # check would be larger than it should be.
5708     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5709     ;;
5710
5711   gnu*)
5712     # Under GNU Hurd, this test is not required because there is
5713     # no limit to the length of command line arguments.
5714     # Libtool will interpret -1 as no limit whatsoever
5715     lt_cv_sys_max_cmd_len=-1;
5716     ;;
5717
5718   cygwin* | mingw* | cegcc*)
5719     # On Win9x/ME, this test blows up -- it succeeds, but takes
5720     # about 5 minutes as the teststring grows exponentially.
5721     # Worse, since 9x/ME are not pre-emptively multitasking,
5722     # you end up with a "frozen" computer, even though with patience
5723     # the test eventually succeeds (with a max line length of 256k).
5724     # Instead, let's just punt: use the minimum linelength reported by
5725     # all of the supported platforms: 8192 (on NT/2K/XP).
5726     lt_cv_sys_max_cmd_len=8192;
5727     ;;
5728
5729   mint*)
5730     # On MiNT this can take a long time and run out of memory.
5731     lt_cv_sys_max_cmd_len=8192;
5732     ;;
5733
5734   amigaos*)
5735     # On AmigaOS with pdksh, this test takes hours, literally.
5736     # So we just punt and use a minimum line length of 8192.
5737     lt_cv_sys_max_cmd_len=8192;
5738     ;;
5739
5740   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5741     # This has been around since 386BSD, at least.  Likely further.
5742     if test -x /sbin/sysctl; then
5743       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5744     elif test -x /usr/sbin/sysctl; then
5745       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5746     else
5747       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5748     fi
5749     # And add a safety zone
5750     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5751     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5752     ;;
5753
5754   interix*)
5755     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5756     lt_cv_sys_max_cmd_len=196608
5757     ;;
5758
5759   os2*)
5760     # The test takes a long time on OS/2.
5761     lt_cv_sys_max_cmd_len=8192
5762     ;;
5763
5764   osf*)
5765     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5766     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5767     # nice to cause kernel panics so lets avoid the loop below.
5768     # First set a reasonable default.
5769     lt_cv_sys_max_cmd_len=16384
5770     #
5771     if test -x /sbin/sysconfig; then
5772       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5773         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5774       esac
5775     fi
5776     ;;
5777   sco3.2v5*)
5778     lt_cv_sys_max_cmd_len=102400
5779     ;;
5780   sysv5* | sco5v6* | sysv4.2uw2*)
5781     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5782     if test -n "$kargmax"; then
5783       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5784     else
5785       lt_cv_sys_max_cmd_len=32768
5786     fi
5787     ;;
5788   *)
5789     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5790     if test -n "$lt_cv_sys_max_cmd_len"; then
5791       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5792       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5793     else
5794       # Make teststring a little bigger before we do anything with it.
5795       # a 1K string should be a reasonable start.
5796       for i in 1 2 3 4 5 6 7 8 ; do
5797         teststring=$teststring$teststring
5798       done
5799       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5800       # If test is not a shell built-in, we'll probably end up computing a
5801       # maximum length that is only half of the actual maximum length, but
5802       # we can't tell.
5803       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5804                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5805               test $i != 17 # 1/2 MB should be enough
5806       do
5807         i=`expr $i + 1`
5808         teststring=$teststring$teststring
5809       done
5810       # Only check the string length outside the loop.
5811       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5812       teststring=
5813       # Add a significant safety factor because C++ compilers can tack on
5814       # massive amounts of additional arguments before passing them to the
5815       # linker.  It appears as though 1/2 is a usable value.
5816       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5817     fi
5818     ;;
5819   esac
5820
5821 fi
5822
5823 if test -n $lt_cv_sys_max_cmd_len ; then
5824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5825 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5826 else
5827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5828 $as_echo "none" >&6; }
5829 fi
5830 max_cmd_len=$lt_cv_sys_max_cmd_len
5831
5832
5833
5834
5835
5836
5837 : ${CP="cp -f"}
5838 : ${MV="mv -f"}
5839 : ${RM="rm -f"}
5840
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5842 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5843 # Try some XSI features
5844 xsi_shell=no
5845 ( _lt_dummy="a/b/c"
5846   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5847       = c,a/b,b/c, \
5848     && eval 'test $(( 1 + 1 )) -eq 2 \
5849     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5850   && xsi_shell=yes
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5852 $as_echo "$xsi_shell" >&6; }
5853
5854
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5856 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5857 lt_shell_append=no
5858 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5859     >/dev/null 2>&1 \
5860   && lt_shell_append=yes
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5862 $as_echo "$lt_shell_append" >&6; }
5863
5864
5865 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5866   lt_unset=unset
5867 else
5868   lt_unset=false
5869 fi
5870
5871
5872
5873
5874
5875 # test EBCDIC or ASCII
5876 case `echo X|tr X '\101'` in
5877  A) # ASCII based system
5878     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5879   lt_SP2NL='tr \040 \012'
5880   lt_NL2SP='tr \015\012 \040\040'
5881   ;;
5882  *) # EBCDIC based system
5883   lt_SP2NL='tr \100 \n'
5884   lt_NL2SP='tr \r\n \100\100'
5885   ;;
5886 esac
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5897 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5898 if ${lt_cv_to_host_file_cmd+:} false; then :
5899   $as_echo_n "(cached) " >&6
5900 else
5901   case $host in
5902   *-*-mingw* )
5903     case $build in
5904       *-*-mingw* ) # actually msys
5905         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5906         ;;
5907       *-*-cygwin* )
5908         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5909         ;;
5910       * ) # otherwise, assume *nix
5911         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5912         ;;
5913     esac
5914     ;;
5915   *-*-cygwin* )
5916     case $build in
5917       *-*-mingw* ) # actually msys
5918         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5919         ;;
5920       *-*-cygwin* )
5921         lt_cv_to_host_file_cmd=func_convert_file_noop
5922         ;;
5923       * ) # otherwise, assume *nix
5924         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5925         ;;
5926     esac
5927     ;;
5928   * ) # unhandled hosts (and "normal" native builds)
5929     lt_cv_to_host_file_cmd=func_convert_file_noop
5930     ;;
5931 esac
5932
5933 fi
5934
5935 to_host_file_cmd=$lt_cv_to_host_file_cmd
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5937 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5938
5939
5940
5941
5942
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5944 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5945 if ${lt_cv_to_tool_file_cmd+:} false; then :
5946   $as_echo_n "(cached) " >&6
5947 else
5948   #assume ordinary cross tools, or native build.
5949 lt_cv_to_tool_file_cmd=func_convert_file_noop
5950 case $host in
5951   *-*-mingw* )
5952     case $build in
5953       *-*-mingw* ) # actually msys
5954         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5955         ;;
5956     esac
5957     ;;
5958 esac
5959
5960 fi
5961
5962 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5964 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5965
5966
5967
5968
5969
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5971 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5972 if ${lt_cv_ld_reload_flag+:} false; then :
5973   $as_echo_n "(cached) " >&6
5974 else
5975   lt_cv_ld_reload_flag='-r'
5976 fi
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5978 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5979 reload_flag=$lt_cv_ld_reload_flag
5980 case $reload_flag in
5981 "" | " "*) ;;
5982 *) reload_flag=" $reload_flag" ;;
5983 esac
5984 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5985 case $host_os in
5986   cygwin* | mingw* | pw32* | cegcc*)
5987     if test "$GCC" != yes; then
5988       reload_cmds=false
5989     fi
5990     ;;
5991   darwin*)
5992     if test "$GCC" = yes; then
5993       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5994     else
5995       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5996     fi
5997     ;;
5998 esac
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008 if test -n "$ac_tool_prefix"; then
6009   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6010 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6012 $as_echo_n "checking for $ac_word... " >&6; }
6013 if ${ac_cv_prog_OBJDUMP+:} false; then :
6014   $as_echo_n "(cached) " >&6
6015 else
6016   if test -n "$OBJDUMP"; then
6017   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6018 else
6019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6020 for as_dir in $PATH
6021 do
6022   IFS=$as_save_IFS
6023   test -z "$as_dir" && as_dir=.
6024     for ac_exec_ext in '' $ac_executable_extensions; do
6025   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6026     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6027     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6028     break 2
6029   fi
6030 done
6031   done
6032 IFS=$as_save_IFS
6033
6034 fi
6035 fi
6036 OBJDUMP=$ac_cv_prog_OBJDUMP
6037 if test -n "$OBJDUMP"; then
6038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6039 $as_echo "$OBJDUMP" >&6; }
6040 else
6041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6042 $as_echo "no" >&6; }
6043 fi
6044
6045
6046 fi
6047 if test -z "$ac_cv_prog_OBJDUMP"; then
6048   ac_ct_OBJDUMP=$OBJDUMP
6049   # Extract the first word of "objdump", so it can be a program name with args.
6050 set dummy objdump; ac_word=$2
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6052 $as_echo_n "checking for $ac_word... " >&6; }
6053 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6054   $as_echo_n "(cached) " >&6
6055 else
6056   if test -n "$ac_ct_OBJDUMP"; then
6057   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6058 else
6059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6060 for as_dir in $PATH
6061 do
6062   IFS=$as_save_IFS
6063   test -z "$as_dir" && as_dir=.
6064     for ac_exec_ext in '' $ac_executable_extensions; do
6065   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6066     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6067     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6068     break 2
6069   fi
6070 done
6071   done
6072 IFS=$as_save_IFS
6073
6074 fi
6075 fi
6076 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6077 if test -n "$ac_ct_OBJDUMP"; then
6078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6079 $as_echo "$ac_ct_OBJDUMP" >&6; }
6080 else
6081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6082 $as_echo "no" >&6; }
6083 fi
6084
6085   if test "x$ac_ct_OBJDUMP" = x; then
6086     OBJDUMP="false"
6087   else
6088     case $cross_compiling:$ac_tool_warned in
6089 yes:)
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6091 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6092 ac_tool_warned=yes ;;
6093 esac
6094     OBJDUMP=$ac_ct_OBJDUMP
6095   fi
6096 else
6097   OBJDUMP="$ac_cv_prog_OBJDUMP"
6098 fi
6099
6100 test -z "$OBJDUMP" && OBJDUMP=objdump
6101
6102
6103
6104
6105
6106
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6108 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6109 if ${lt_cv_deplibs_check_method+:} false; then :
6110   $as_echo_n "(cached) " >&6
6111 else
6112   lt_cv_file_magic_cmd='$MAGIC_CMD'
6113 lt_cv_file_magic_test_file=
6114 lt_cv_deplibs_check_method='unknown'
6115 # Need to set the preceding variable on all platforms that support
6116 # interlibrary dependencies.
6117 # 'none' -- dependencies not supported.
6118 # `unknown' -- same as none, but documents that we really don't know.
6119 # 'pass_all' -- all dependencies passed with no checks.
6120 # 'test_compile' -- check by making test program.
6121 # 'file_magic [[regex]]' -- check by looking for files in library path
6122 # which responds to the $file_magic_cmd with a given extended regex.
6123 # If you have `file' or equivalent on your system and you're not sure
6124 # whether `pass_all' will *always* work, you probably want this one.
6125
6126 case $host_os in
6127 aix[4-9]*)
6128   lt_cv_deplibs_check_method=pass_all
6129   ;;
6130
6131 beos*)
6132   lt_cv_deplibs_check_method=pass_all
6133   ;;
6134
6135 bsdi[45]*)
6136   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6137   lt_cv_file_magic_cmd='/usr/bin/file -L'
6138   lt_cv_file_magic_test_file=/shlib/libc.so
6139   ;;
6140
6141 cygwin*)
6142   # func_win32_libid is a shell function defined in ltmain.sh
6143   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6144   lt_cv_file_magic_cmd='func_win32_libid'
6145   ;;
6146
6147 mingw* | pw32*)
6148   # Base MSYS/MinGW do not provide the 'file' command needed by
6149   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6150   # unless we find 'file', for example because we are cross-compiling.
6151   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6152   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6153     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6154     lt_cv_file_magic_cmd='func_win32_libid'
6155   else
6156     # Keep this pattern in sync with the one in func_win32_libid.
6157     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6158     lt_cv_file_magic_cmd='$OBJDUMP -f'
6159   fi
6160   ;;
6161
6162 cegcc*)
6163   # use the weaker test based on 'objdump'. See mingw*.
6164   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6165   lt_cv_file_magic_cmd='$OBJDUMP -f'
6166   ;;
6167
6168 darwin* | rhapsody*)
6169   lt_cv_deplibs_check_method=pass_all
6170   ;;
6171
6172 freebsd* | dragonfly*)
6173   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6174     case $host_cpu in
6175     i*86 )
6176       # Not sure whether the presence of OpenBSD here was a mistake.
6177       # Let's accept both of them until this is cleared up.
6178       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6179       lt_cv_file_magic_cmd=/usr/bin/file
6180       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6181       ;;
6182     esac
6183   else
6184     lt_cv_deplibs_check_method=pass_all
6185   fi
6186   ;;
6187
6188 gnu*)
6189   lt_cv_deplibs_check_method=pass_all
6190   ;;
6191
6192 haiku*)
6193   lt_cv_deplibs_check_method=pass_all
6194   ;;
6195
6196 hpux10.20* | hpux11*)
6197   lt_cv_file_magic_cmd=/usr/bin/file
6198   case $host_cpu in
6199   ia64*)
6200     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6201     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6202     ;;
6203   hppa*64*)
6204     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]'
6205     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6206     ;;
6207   *)
6208     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6209     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6210     ;;
6211   esac
6212   ;;
6213
6214 interix[3-9]*)
6215   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6216   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6217   ;;
6218
6219 irix5* | irix6* | nonstopux*)
6220   case $LD in
6221   *-32|*"-32 ") libmagic=32-bit;;
6222   *-n32|*"-n32 ") libmagic=N32;;
6223   *-64|*"-64 ") libmagic=64-bit;;
6224   *) libmagic=never-match;;
6225   esac
6226   lt_cv_deplibs_check_method=pass_all
6227   ;;
6228
6229 # This must be glibc/ELF.
6230 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6231   lt_cv_deplibs_check_method=pass_all
6232   ;;
6233
6234 netbsd* | netbsdelf*-gnu)
6235   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6236     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6237   else
6238     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6239   fi
6240   ;;
6241
6242 newos6*)
6243   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6244   lt_cv_file_magic_cmd=/usr/bin/file
6245   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6246   ;;
6247
6248 *nto* | *qnx*)
6249   lt_cv_deplibs_check_method=pass_all
6250   ;;
6251
6252 openbsd*)
6253   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6254     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6255   else
6256     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6257   fi
6258   ;;
6259
6260 osf3* | osf4* | osf5*)
6261   lt_cv_deplibs_check_method=pass_all
6262   ;;
6263
6264 rdos*)
6265   lt_cv_deplibs_check_method=pass_all
6266   ;;
6267
6268 solaris*)
6269   lt_cv_deplibs_check_method=pass_all
6270   ;;
6271
6272 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6273   lt_cv_deplibs_check_method=pass_all
6274   ;;
6275
6276 sysv4 | sysv4.3*)
6277   case $host_vendor in
6278   motorola)
6279     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]'
6280     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6281     ;;
6282   ncr)
6283     lt_cv_deplibs_check_method=pass_all
6284     ;;
6285   sequent)
6286     lt_cv_file_magic_cmd='/bin/file'
6287     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6288     ;;
6289   sni)
6290     lt_cv_file_magic_cmd='/bin/file'
6291     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6292     lt_cv_file_magic_test_file=/lib/libc.so
6293     ;;
6294   siemens)
6295     lt_cv_deplibs_check_method=pass_all
6296     ;;
6297   pc)
6298     lt_cv_deplibs_check_method=pass_all
6299     ;;
6300   esac
6301   ;;
6302
6303 tpf*)
6304   lt_cv_deplibs_check_method=pass_all
6305   ;;
6306 esac
6307
6308 fi
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6310 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6311
6312 file_magic_glob=
6313 want_nocaseglob=no
6314 if test "$build" = "$host"; then
6315   case $host_os in
6316   mingw* | pw32*)
6317     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6318       want_nocaseglob=yes
6319     else
6320       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6321     fi
6322     ;;
6323   esac
6324 fi
6325
6326 file_magic_cmd=$lt_cv_file_magic_cmd
6327 deplibs_check_method=$lt_cv_deplibs_check_method
6328 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351 if test -n "$ac_tool_prefix"; then
6352   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6353 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6355 $as_echo_n "checking for $ac_word... " >&6; }
6356 if ${ac_cv_prog_DLLTOOL+:} false; then :
6357   $as_echo_n "(cached) " >&6
6358 else
6359   if test -n "$DLLTOOL"; then
6360   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6361 else
6362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6363 for as_dir in $PATH
6364 do
6365   IFS=$as_save_IFS
6366   test -z "$as_dir" && as_dir=.
6367     for ac_exec_ext in '' $ac_executable_extensions; do
6368   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6369     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6370     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6371     break 2
6372   fi
6373 done
6374   done
6375 IFS=$as_save_IFS
6376
6377 fi
6378 fi
6379 DLLTOOL=$ac_cv_prog_DLLTOOL
6380 if test -n "$DLLTOOL"; then
6381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6382 $as_echo "$DLLTOOL" >&6; }
6383 else
6384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6385 $as_echo "no" >&6; }
6386 fi
6387
6388
6389 fi
6390 if test -z "$ac_cv_prog_DLLTOOL"; then
6391   ac_ct_DLLTOOL=$DLLTOOL
6392   # Extract the first word of "dlltool", so it can be a program name with args.
6393 set dummy dlltool; ac_word=$2
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6395 $as_echo_n "checking for $ac_word... " >&6; }
6396 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6397   $as_echo_n "(cached) " >&6
6398 else
6399   if test -n "$ac_ct_DLLTOOL"; then
6400   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6401 else
6402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6403 for as_dir in $PATH
6404 do
6405   IFS=$as_save_IFS
6406   test -z "$as_dir" && as_dir=.
6407     for ac_exec_ext in '' $ac_executable_extensions; do
6408   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6409     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6410     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6411     break 2
6412   fi
6413 done
6414   done
6415 IFS=$as_save_IFS
6416
6417 fi
6418 fi
6419 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6420 if test -n "$ac_ct_DLLTOOL"; then
6421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6422 $as_echo "$ac_ct_DLLTOOL" >&6; }
6423 else
6424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6425 $as_echo "no" >&6; }
6426 fi
6427
6428   if test "x$ac_ct_DLLTOOL" = x; then
6429     DLLTOOL="false"
6430   else
6431     case $cross_compiling:$ac_tool_warned in
6432 yes:)
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6434 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6435 ac_tool_warned=yes ;;
6436 esac
6437     DLLTOOL=$ac_ct_DLLTOOL
6438   fi
6439 else
6440   DLLTOOL="$ac_cv_prog_DLLTOOL"
6441 fi
6442
6443 test -z "$DLLTOOL" && DLLTOOL=dlltool
6444
6445
6446
6447
6448
6449
6450
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6452 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6453 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6454   $as_echo_n "(cached) " >&6
6455 else
6456   lt_cv_sharedlib_from_linklib_cmd='unknown'
6457
6458 case $host_os in
6459 cygwin* | mingw* | pw32* | cegcc*)
6460   # two different shell functions defined in ltmain.sh
6461   # decide which to use based on capabilities of $DLLTOOL
6462   case `$DLLTOOL --help 2>&1` in
6463   *--identify-strict*)
6464     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6465     ;;
6466   *)
6467     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6468     ;;
6469   esac
6470   ;;
6471 *)
6472   # fallback: assume linklib IS sharedlib
6473   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6474   ;;
6475 esac
6476
6477 fi
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6479 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6480 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6481 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6482
6483
6484
6485
6486
6487
6488
6489
6490 if test -n "$ac_tool_prefix"; then
6491   for ac_prog in ar
6492   do
6493     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6494 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6496 $as_echo_n "checking for $ac_word... " >&6; }
6497 if ${ac_cv_prog_AR+:} false; then :
6498   $as_echo_n "(cached) " >&6
6499 else
6500   if test -n "$AR"; then
6501   ac_cv_prog_AR="$AR" # Let the user override the test.
6502 else
6503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6504 for as_dir in $PATH
6505 do
6506   IFS=$as_save_IFS
6507   test -z "$as_dir" && as_dir=.
6508     for ac_exec_ext in '' $ac_executable_extensions; do
6509   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6510     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6511     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6512     break 2
6513   fi
6514 done
6515   done
6516 IFS=$as_save_IFS
6517
6518 fi
6519 fi
6520 AR=$ac_cv_prog_AR
6521 if test -n "$AR"; then
6522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6523 $as_echo "$AR" >&6; }
6524 else
6525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6526 $as_echo "no" >&6; }
6527 fi
6528
6529
6530     test -n "$AR" && break
6531   done
6532 fi
6533 if test -z "$AR"; then
6534   ac_ct_AR=$AR
6535   for ac_prog in ar
6536 do
6537   # Extract the first word of "$ac_prog", so it can be a program name with args.
6538 set dummy $ac_prog; ac_word=$2
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6540 $as_echo_n "checking for $ac_word... " >&6; }
6541 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6542   $as_echo_n "(cached) " >&6
6543 else
6544   if test -n "$ac_ct_AR"; then
6545   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6546 else
6547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6548 for as_dir in $PATH
6549 do
6550   IFS=$as_save_IFS
6551   test -z "$as_dir" && as_dir=.
6552     for ac_exec_ext in '' $ac_executable_extensions; do
6553   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6554     ac_cv_prog_ac_ct_AR="$ac_prog"
6555     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6556     break 2
6557   fi
6558 done
6559   done
6560 IFS=$as_save_IFS
6561
6562 fi
6563 fi
6564 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6565 if test -n "$ac_ct_AR"; then
6566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6567 $as_echo "$ac_ct_AR" >&6; }
6568 else
6569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6570 $as_echo "no" >&6; }
6571 fi
6572
6573
6574   test -n "$ac_ct_AR" && break
6575 done
6576
6577   if test "x$ac_ct_AR" = x; then
6578     AR="false"
6579   else
6580     case $cross_compiling:$ac_tool_warned in
6581 yes:)
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6583 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6584 ac_tool_warned=yes ;;
6585 esac
6586     AR=$ac_ct_AR
6587   fi
6588 fi
6589
6590 : ${AR=ar}
6591 : ${AR_FLAGS=cru}
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6604 $as_echo_n "checking for archiver @FILE support... " >&6; }
6605 if ${lt_cv_ar_at_file+:} false; then :
6606   $as_echo_n "(cached) " >&6
6607 else
6608   lt_cv_ar_at_file=no
6609    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6610 /* end confdefs.h.  */
6611
6612 int
6613 main ()
6614 {
6615
6616   ;
6617   return 0;
6618 }
6619 _ACEOF
6620 if ac_fn_c_try_compile "$LINENO"; then :
6621   echo conftest.$ac_objext > conftest.lst
6622       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6623       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6624   (eval $lt_ar_try) 2>&5
6625   ac_status=$?
6626   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6627   test $ac_status = 0; }
6628       if test "$ac_status" -eq 0; then
6629         # Ensure the archiver fails upon bogus file names.
6630         rm -f conftest.$ac_objext libconftest.a
6631         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6632   (eval $lt_ar_try) 2>&5
6633   ac_status=$?
6634   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6635   test $ac_status = 0; }
6636         if test "$ac_status" -ne 0; then
6637           lt_cv_ar_at_file=@
6638         fi
6639       fi
6640       rm -f conftest.* libconftest.a
6641
6642 fi
6643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6644
6645 fi
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6647 $as_echo "$lt_cv_ar_at_file" >&6; }
6648
6649 if test "x$lt_cv_ar_at_file" = xno; then
6650   archiver_list_spec=
6651 else
6652   archiver_list_spec=$lt_cv_ar_at_file
6653 fi
6654
6655
6656
6657
6658
6659
6660
6661 if test -n "$ac_tool_prefix"; then
6662   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6663 set dummy ${ac_tool_prefix}strip; ac_word=$2
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6665 $as_echo_n "checking for $ac_word... " >&6; }
6666 if ${ac_cv_prog_STRIP+:} false; then :
6667   $as_echo_n "(cached) " >&6
6668 else
6669   if test -n "$STRIP"; then
6670   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6671 else
6672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6673 for as_dir in $PATH
6674 do
6675   IFS=$as_save_IFS
6676   test -z "$as_dir" && as_dir=.
6677     for ac_exec_ext in '' $ac_executable_extensions; do
6678   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6679     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6680     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6681     break 2
6682   fi
6683 done
6684   done
6685 IFS=$as_save_IFS
6686
6687 fi
6688 fi
6689 STRIP=$ac_cv_prog_STRIP
6690 if test -n "$STRIP"; then
6691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6692 $as_echo "$STRIP" >&6; }
6693 else
6694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6695 $as_echo "no" >&6; }
6696 fi
6697
6698
6699 fi
6700 if test -z "$ac_cv_prog_STRIP"; then
6701   ac_ct_STRIP=$STRIP
6702   # Extract the first word of "strip", so it can be a program name with args.
6703 set dummy strip; ac_word=$2
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6705 $as_echo_n "checking for $ac_word... " >&6; }
6706 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6707   $as_echo_n "(cached) " >&6
6708 else
6709   if test -n "$ac_ct_STRIP"; then
6710   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6711 else
6712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6713 for as_dir in $PATH
6714 do
6715   IFS=$as_save_IFS
6716   test -z "$as_dir" && as_dir=.
6717     for ac_exec_ext in '' $ac_executable_extensions; do
6718   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6719     ac_cv_prog_ac_ct_STRIP="strip"
6720     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6721     break 2
6722   fi
6723 done
6724   done
6725 IFS=$as_save_IFS
6726
6727 fi
6728 fi
6729 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6730 if test -n "$ac_ct_STRIP"; then
6731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6732 $as_echo "$ac_ct_STRIP" >&6; }
6733 else
6734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6735 $as_echo "no" >&6; }
6736 fi
6737
6738   if test "x$ac_ct_STRIP" = x; then
6739     STRIP=":"
6740   else
6741     case $cross_compiling:$ac_tool_warned in
6742 yes:)
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6744 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6745 ac_tool_warned=yes ;;
6746 esac
6747     STRIP=$ac_ct_STRIP
6748   fi
6749 else
6750   STRIP="$ac_cv_prog_STRIP"
6751 fi
6752
6753 test -z "$STRIP" && STRIP=:
6754
6755
6756
6757
6758
6759
6760 if test -n "$ac_tool_prefix"; then
6761   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6762 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6764 $as_echo_n "checking for $ac_word... " >&6; }
6765 if ${ac_cv_prog_RANLIB+:} false; then :
6766   $as_echo_n "(cached) " >&6
6767 else
6768   if test -n "$RANLIB"; then
6769   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6770 else
6771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6772 for as_dir in $PATH
6773 do
6774   IFS=$as_save_IFS
6775   test -z "$as_dir" && as_dir=.
6776     for ac_exec_ext in '' $ac_executable_extensions; do
6777   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6778     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6779     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6780     break 2
6781   fi
6782 done
6783   done
6784 IFS=$as_save_IFS
6785
6786 fi
6787 fi
6788 RANLIB=$ac_cv_prog_RANLIB
6789 if test -n "$RANLIB"; then
6790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6791 $as_echo "$RANLIB" >&6; }
6792 else
6793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6794 $as_echo "no" >&6; }
6795 fi
6796
6797
6798 fi
6799 if test -z "$ac_cv_prog_RANLIB"; then
6800   ac_ct_RANLIB=$RANLIB
6801   # Extract the first word of "ranlib", so it can be a program name with args.
6802 set dummy ranlib; ac_word=$2
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6804 $as_echo_n "checking for $ac_word... " >&6; }
6805 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6806   $as_echo_n "(cached) " >&6
6807 else
6808   if test -n "$ac_ct_RANLIB"; then
6809   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6810 else
6811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6812 for as_dir in $PATH
6813 do
6814   IFS=$as_save_IFS
6815   test -z "$as_dir" && as_dir=.
6816     for ac_exec_ext in '' $ac_executable_extensions; do
6817   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6818     ac_cv_prog_ac_ct_RANLIB="ranlib"
6819     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6820     break 2
6821   fi
6822 done
6823   done
6824 IFS=$as_save_IFS
6825
6826 fi
6827 fi
6828 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6829 if test -n "$ac_ct_RANLIB"; then
6830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6831 $as_echo "$ac_ct_RANLIB" >&6; }
6832 else
6833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6834 $as_echo "no" >&6; }
6835 fi
6836
6837   if test "x$ac_ct_RANLIB" = x; then
6838     RANLIB=":"
6839   else
6840     case $cross_compiling:$ac_tool_warned in
6841 yes:)
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6843 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6844 ac_tool_warned=yes ;;
6845 esac
6846     RANLIB=$ac_ct_RANLIB
6847   fi
6848 else
6849   RANLIB="$ac_cv_prog_RANLIB"
6850 fi
6851
6852 test -z "$RANLIB" && RANLIB=:
6853
6854
6855
6856
6857
6858
6859 # Determine commands to create old-style static archives.
6860 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6861 old_postinstall_cmds='chmod 644 $oldlib'
6862 old_postuninstall_cmds=
6863
6864 if test -n "$RANLIB"; then
6865   case $host_os in
6866   openbsd*)
6867     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6868     ;;
6869   *)
6870     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6871     ;;
6872   esac
6873   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6874 fi
6875
6876 case $host_os in
6877   darwin*)
6878     lock_old_archive_extraction=yes ;;
6879   *)
6880     lock_old_archive_extraction=no ;;
6881 esac
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921 # If no C compiler was specified, use CC.
6922 LTCC=${LTCC-"$CC"}
6923
6924 # If no C compiler flags were specified, use CFLAGS.
6925 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6926
6927 # Allow CC to be a program name with arguments.
6928 compiler=$CC
6929
6930
6931 # Check for command to grab the raw symbol name followed by C symbol from nm.
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6933 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6934 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6935   $as_echo_n "(cached) " >&6
6936 else
6937
6938 # These are sane defaults that work on at least a few old systems.
6939 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6940
6941 # Character class describing NM global symbol codes.
6942 symcode='[BCDEGRST]'
6943
6944 # Regexp to match symbols that can be accessed directly from C.
6945 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6946
6947 # Define system-specific variables.
6948 case $host_os in
6949 aix*)
6950   symcode='[BCDT]'
6951   ;;
6952 cygwin* | mingw* | pw32* | cegcc*)
6953   symcode='[ABCDGISTW]'
6954   ;;
6955 hpux*)
6956   if test "$host_cpu" = ia64; then
6957     symcode='[ABCDEGRST]'
6958   fi
6959   ;;
6960 irix* | nonstopux*)
6961   symcode='[BCDEGRST]'
6962   ;;
6963 osf*)
6964   symcode='[BCDEGQRST]'
6965   ;;
6966 solaris*)
6967   symcode='[BDRT]'
6968   ;;
6969 sco3.2v5*)
6970   symcode='[DT]'
6971   ;;
6972 sysv4.2uw2*)
6973   symcode='[DT]'
6974   ;;
6975 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6976   symcode='[ABDT]'
6977   ;;
6978 sysv4)
6979   symcode='[DFNSTU]'
6980   ;;
6981 esac
6982
6983 # If we're using GNU nm, then use its standard symbol codes.
6984 case `$NM -V 2>&1` in
6985 *GNU* | *'with BFD'*)
6986   symcode='[ABCDGIRSTW]' ;;
6987 esac
6988
6989 # Transform an extracted symbol line into a proper C declaration.
6990 # Some systems (esp. on ia64) link data and code symbols differently,
6991 # so use this general approach.
6992 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6993
6994 # Transform an extracted symbol line into symbol name and symbol address
6995 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6996 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'"
6997
6998 # Handle CRLF in mingw tool chain
6999 opt_cr=
7000 case $build_os in
7001 mingw*)
7002   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7003   ;;
7004 esac
7005
7006 # Try without a prefix underscore, then with it.
7007 for ac_symprfx in "" "_"; do
7008
7009   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7010   symxfrm="\\1 $ac_symprfx\\2 \\2"
7011
7012   # Write the raw and C identifiers.
7013   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7014     # Fake it for dumpbin and say T for any non-static function
7015     # and D for any global variable.
7016     # Also find C++ and __fastcall symbols from MSVC++,
7017     # which start with @ or ?.
7018     lt_cv_sys_global_symbol_pipe="$AWK '"\
7019 "     {last_section=section; section=\$ 3};"\
7020 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7021 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7022 "     \$ 0!~/External *\|/{next};"\
7023 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7024 "     {if(hide[section]) next};"\
7025 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7026 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7027 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7028 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7029 "     ' prfx=^$ac_symprfx"
7030   else
7031     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7032   fi
7033   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7034
7035   # Check to see that the pipe works correctly.
7036   pipe_works=no
7037
7038   rm -f conftest*
7039   cat > conftest.$ac_ext <<_LT_EOF
7040 #ifdef __cplusplus
7041 extern "C" {
7042 #endif
7043 char nm_test_var;
7044 void nm_test_func(void);
7045 void nm_test_func(void){}
7046 #ifdef __cplusplus
7047 }
7048 #endif
7049 int main(){nm_test_var='a';nm_test_func();return(0);}
7050 _LT_EOF
7051
7052   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7053   (eval $ac_compile) 2>&5
7054   ac_status=$?
7055   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7056   test $ac_status = 0; }; then
7057     # Now try to grab the symbols.
7058     nlist=conftest.nm
7059     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7060   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7061   ac_status=$?
7062   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7063   test $ac_status = 0; } && test -s "$nlist"; then
7064       # Try sorting and uniquifying the output.
7065       if sort "$nlist" | uniq > "$nlist"T; then
7066         mv -f "$nlist"T "$nlist"
7067       else
7068         rm -f "$nlist"T
7069       fi
7070
7071       # Make sure that we snagged all the symbols we need.
7072       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7073         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7074           cat <<_LT_EOF > conftest.$ac_ext
7075 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7076 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7077 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7078    relocations are performed -- see ld's documentation on pseudo-relocs.  */
7079 # define LT_DLSYM_CONST
7080 #elif defined(__osf__)
7081 /* This system does not cope well with relocations in const data.  */
7082 # define LT_DLSYM_CONST
7083 #else
7084 # define LT_DLSYM_CONST const
7085 #endif
7086
7087 #ifdef __cplusplus
7088 extern "C" {
7089 #endif
7090
7091 _LT_EOF
7092           # Now generate the symbol file.
7093           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7094
7095           cat <<_LT_EOF >> conftest.$ac_ext
7096
7097 /* The mapping between symbol names and symbols.  */
7098 LT_DLSYM_CONST struct {
7099   const char *name;
7100   void       *address;
7101 }
7102 lt__PROGRAM__LTX_preloaded_symbols[] =
7103 {
7104   { "@PROGRAM@", (void *) 0 },
7105 _LT_EOF
7106           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7107           cat <<\_LT_EOF >> conftest.$ac_ext
7108   {0, (void *) 0}
7109 };
7110
7111 /* This works around a problem in FreeBSD linker */
7112 #ifdef FREEBSD_WORKAROUND
7113 static const void *lt_preloaded_setup() {
7114   return lt__PROGRAM__LTX_preloaded_symbols;
7115 }
7116 #endif
7117
7118 #ifdef __cplusplus
7119 }
7120 #endif
7121 _LT_EOF
7122           # Now try linking the two files.
7123           mv conftest.$ac_objext conftstm.$ac_objext
7124           lt_globsym_save_LIBS=$LIBS
7125           lt_globsym_save_CFLAGS=$CFLAGS
7126           LIBS="conftstm.$ac_objext"
7127           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7128           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7129   (eval $ac_link) 2>&5
7130   ac_status=$?
7131   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7132   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7133             pipe_works=yes
7134           fi
7135           LIBS=$lt_globsym_save_LIBS
7136           CFLAGS=$lt_globsym_save_CFLAGS
7137         else
7138           echo "cannot find nm_test_func in $nlist" >&5
7139         fi
7140       else
7141         echo "cannot find nm_test_var in $nlist" >&5
7142       fi
7143     else
7144       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7145     fi
7146   else
7147     echo "$progname: failed program was:" >&5
7148     cat conftest.$ac_ext >&5
7149   fi
7150   rm -rf conftest* conftst*
7151
7152   # Do not use the global_symbol_pipe unless it works.
7153   if test "$pipe_works" = yes; then
7154     break
7155   else
7156     lt_cv_sys_global_symbol_pipe=
7157   fi
7158 done
7159
7160 fi
7161
7162 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7163   lt_cv_sys_global_symbol_to_cdecl=
7164 fi
7165 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7167 $as_echo "failed" >&6; }
7168 else
7169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7170 $as_echo "ok" >&6; }
7171 fi
7172
7173 # Response file support.
7174 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7175   nm_file_list_spec='@'
7176 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7177   nm_file_list_spec='@'
7178 fi
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7207 $as_echo_n "checking for sysroot... " >&6; }
7208
7209 # Check whether --with-sysroot was given.
7210 if test "${with_sysroot+set}" = set; then :
7211   withval=$with_sysroot;
7212 else
7213   with_sysroot=no
7214 fi
7215
7216
7217 lt_sysroot=
7218 case ${with_sysroot} in #(
7219  yes)
7220    if test "$GCC" = yes; then
7221      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7222    fi
7223    ;; #(
7224  /*)
7225    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7226    ;; #(
7227  no|'')
7228    ;; #(
7229  *)
7230    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7231 $as_echo "${with_sysroot}" >&6; }
7232    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7233    ;;
7234 esac
7235
7236  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7237 $as_echo "${lt_sysroot:-no}" >&6; }
7238
7239
7240
7241
7242
7243 # Check whether --enable-libtool-lock was given.
7244 if test "${enable_libtool_lock+set}" = set; then :
7245   enableval=$enable_libtool_lock;
7246 fi
7247
7248 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7249
7250 # Some flags need to be propagated to the compiler or linker for good
7251 # libtool support.
7252 case $host in
7253 ia64-*-hpux*)
7254   # Find out which ABI we are using.
7255   echo 'int i;' > conftest.$ac_ext
7256   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7257   (eval $ac_compile) 2>&5
7258   ac_status=$?
7259   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7260   test $ac_status = 0; }; then
7261     case `/usr/bin/file conftest.$ac_objext` in
7262       *ELF-32*)
7263         HPUX_IA64_MODE="32"
7264         ;;
7265       *ELF-64*)
7266         HPUX_IA64_MODE="64"
7267         ;;
7268     esac
7269   fi
7270   rm -rf conftest*
7271   ;;
7272 *-*-irix6*)
7273   # Find out which ABI we are using.
7274   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7275   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7276   (eval $ac_compile) 2>&5
7277   ac_status=$?
7278   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7279   test $ac_status = 0; }; then
7280     if test "$lt_cv_prog_gnu_ld" = yes; then
7281       case `/usr/bin/file conftest.$ac_objext` in
7282         *32-bit*)
7283           LD="${LD-ld} -melf32bsmip"
7284           ;;
7285         *N32*)
7286           LD="${LD-ld} -melf32bmipn32"
7287           ;;
7288         *64-bit*)
7289           LD="${LD-ld} -melf64bmip"
7290         ;;
7291       esac
7292     else
7293       case `/usr/bin/file conftest.$ac_objext` in
7294         *32-bit*)
7295           LD="${LD-ld} -32"
7296           ;;
7297         *N32*)
7298           LD="${LD-ld} -n32"
7299           ;;
7300         *64-bit*)
7301           LD="${LD-ld} -64"
7302           ;;
7303       esac
7304     fi
7305   fi
7306   rm -rf conftest*
7307   ;;
7308
7309 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7310 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7311   # Find out which ABI we are using.
7312   echo 'int i;' > conftest.$ac_ext
7313   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7314   (eval $ac_compile) 2>&5
7315   ac_status=$?
7316   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7317   test $ac_status = 0; }; then
7318     case `/usr/bin/file conftest.o` in
7319       *32-bit*)
7320         case $host in
7321           x86_64-*kfreebsd*-gnu)
7322             LD="${LD-ld} -m elf_i386_fbsd"
7323             ;;
7324           x86_64-*linux*)
7325             LD="${LD-ld} -m elf_i386"
7326             ;;
7327           ppc64-*linux*|powerpc64-*linux*)
7328             LD="${LD-ld} -m elf32ppclinux"
7329             ;;
7330           s390x-*linux*)
7331             LD="${LD-ld} -m elf_s390"
7332             ;;
7333           sparc64-*linux*)
7334             LD="${LD-ld} -m elf32_sparc"
7335             ;;
7336         esac
7337         ;;
7338       *64-bit*)
7339         case $host in
7340           x86_64-*kfreebsd*-gnu)
7341             LD="${LD-ld} -m elf_x86_64_fbsd"
7342             ;;
7343           x86_64-*linux*)
7344             LD="${LD-ld} -m elf_x86_64"
7345             ;;
7346           ppc*-*linux*|powerpc*-*linux*)
7347             LD="${LD-ld} -m elf64ppc"
7348             ;;
7349           s390*-*linux*|s390*-*tpf*)
7350             LD="${LD-ld} -m elf64_s390"
7351             ;;
7352           sparc*-*linux*)
7353             LD="${LD-ld} -m elf64_sparc"
7354             ;;
7355         esac
7356         ;;
7357     esac
7358   fi
7359   rm -rf conftest*
7360   ;;
7361
7362 *-*-sco3.2v5*)
7363   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7364   SAVE_CFLAGS="$CFLAGS"
7365   CFLAGS="$CFLAGS -belf"
7366   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7367 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7368 if ${lt_cv_cc_needs_belf+:} false; then :
7369   $as_echo_n "(cached) " >&6
7370 else
7371   ac_ext=c
7372 ac_cpp='$CPP $CPPFLAGS'
7373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7376
7377      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7378 /* end confdefs.h.  */
7379
7380 int
7381 main ()
7382 {
7383
7384   ;
7385   return 0;
7386 }
7387 _ACEOF
7388 if ac_fn_c_try_link "$LINENO"; then :
7389   lt_cv_cc_needs_belf=yes
7390 else
7391   lt_cv_cc_needs_belf=no
7392 fi
7393 rm -f core conftest.err conftest.$ac_objext \
7394     conftest$ac_exeext conftest.$ac_ext
7395      ac_ext=c
7396 ac_cpp='$CPP $CPPFLAGS'
7397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7399 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7400
7401 fi
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7403 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7404   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7405     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7406     CFLAGS="$SAVE_CFLAGS"
7407   fi
7408   ;;
7409 *-*solaris*)
7410   # Find out which ABI we are using.
7411   echo 'int i;' > conftest.$ac_ext
7412   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7413   (eval $ac_compile) 2>&5
7414   ac_status=$?
7415   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7416   test $ac_status = 0; }; then
7417     case `/usr/bin/file conftest.o` in
7418     *64-bit*)
7419       case $lt_cv_prog_gnu_ld in
7420       yes*)
7421         case $host in
7422         i?86-*-solaris*)
7423           LD="${LD-ld} -m elf_x86_64"
7424           ;;
7425         sparc*-*-solaris*)
7426           LD="${LD-ld} -m elf64_sparc"
7427           ;;
7428         esac
7429         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7430         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7431           LD="${LD-ld}_sol2"
7432         fi
7433         ;;
7434       *)
7435         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7436           LD="${LD-ld} -64"
7437         fi
7438         ;;
7439       esac
7440       ;;
7441     esac
7442   fi
7443   rm -rf conftest*
7444   ;;
7445 esac
7446
7447 need_locks="$enable_libtool_lock"
7448
7449 if test -n "$ac_tool_prefix"; then
7450   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7451 set dummy ${ac_tool_prefix}mt; ac_word=$2
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7453 $as_echo_n "checking for $ac_word... " >&6; }
7454 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7455   $as_echo_n "(cached) " >&6
7456 else
7457   if test -n "$MANIFEST_TOOL"; then
7458   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7459 else
7460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7461 for as_dir in $PATH
7462 do
7463   IFS=$as_save_IFS
7464   test -z "$as_dir" && as_dir=.
7465     for ac_exec_ext in '' $ac_executable_extensions; do
7466   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7467     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7468     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7469     break 2
7470   fi
7471 done
7472   done
7473 IFS=$as_save_IFS
7474
7475 fi
7476 fi
7477 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7478 if test -n "$MANIFEST_TOOL"; then
7479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7480 $as_echo "$MANIFEST_TOOL" >&6; }
7481 else
7482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7483 $as_echo "no" >&6; }
7484 fi
7485
7486
7487 fi
7488 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7489   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7490   # Extract the first word of "mt", so it can be a program name with args.
7491 set dummy mt; ac_word=$2
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7493 $as_echo_n "checking for $ac_word... " >&6; }
7494 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7495   $as_echo_n "(cached) " >&6
7496 else
7497   if test -n "$ac_ct_MANIFEST_TOOL"; then
7498   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7499 else
7500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7501 for as_dir in $PATH
7502 do
7503   IFS=$as_save_IFS
7504   test -z "$as_dir" && as_dir=.
7505     for ac_exec_ext in '' $ac_executable_extensions; do
7506   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7507     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7508     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7509     break 2
7510   fi
7511 done
7512   done
7513 IFS=$as_save_IFS
7514
7515 fi
7516 fi
7517 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7518 if test -n "$ac_ct_MANIFEST_TOOL"; then
7519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7520 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7521 else
7522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7523 $as_echo "no" >&6; }
7524 fi
7525
7526   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7527     MANIFEST_TOOL=":"
7528   else
7529     case $cross_compiling:$ac_tool_warned in
7530 yes:)
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7532 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7533 ac_tool_warned=yes ;;
7534 esac
7535     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7536   fi
7537 else
7538   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7539 fi
7540
7541 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7543 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7544 if ${lt_cv_path_mainfest_tool+:} false; then :
7545   $as_echo_n "(cached) " >&6
7546 else
7547   lt_cv_path_mainfest_tool=no
7548   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7549   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7550   cat conftest.err >&5
7551   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7552     lt_cv_path_mainfest_tool=yes
7553   fi
7554   rm -f conftest*
7555 fi
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7557 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7558 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7559   MANIFEST_TOOL=:
7560 fi
7561
7562
7563
7564
7565
7566
7567   case $host_os in
7568     rhapsody* | darwin*)
7569     if test -n "$ac_tool_prefix"; then
7570   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7571 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7573 $as_echo_n "checking for $ac_word... " >&6; }
7574 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7575   $as_echo_n "(cached) " >&6
7576 else
7577   if test -n "$DSYMUTIL"; then
7578   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7579 else
7580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7581 for as_dir in $PATH
7582 do
7583   IFS=$as_save_IFS
7584   test -z "$as_dir" && as_dir=.
7585     for ac_exec_ext in '' $ac_executable_extensions; do
7586   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7587     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7588     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7589     break 2
7590   fi
7591 done
7592   done
7593 IFS=$as_save_IFS
7594
7595 fi
7596 fi
7597 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7598 if test -n "$DSYMUTIL"; then
7599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7600 $as_echo "$DSYMUTIL" >&6; }
7601 else
7602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7603 $as_echo "no" >&6; }
7604 fi
7605
7606
7607 fi
7608 if test -z "$ac_cv_prog_DSYMUTIL"; then
7609   ac_ct_DSYMUTIL=$DSYMUTIL
7610   # Extract the first word of "dsymutil", so it can be a program name with args.
7611 set dummy dsymutil; ac_word=$2
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7613 $as_echo_n "checking for $ac_word... " >&6; }
7614 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7615   $as_echo_n "(cached) " >&6
7616 else
7617   if test -n "$ac_ct_DSYMUTIL"; then
7618   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7619 else
7620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7621 for as_dir in $PATH
7622 do
7623   IFS=$as_save_IFS
7624   test -z "$as_dir" && as_dir=.
7625     for ac_exec_ext in '' $ac_executable_extensions; do
7626   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7627     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7628     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7629     break 2
7630   fi
7631 done
7632   done
7633 IFS=$as_save_IFS
7634
7635 fi
7636 fi
7637 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7638 if test -n "$ac_ct_DSYMUTIL"; then
7639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7640 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7641 else
7642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7643 $as_echo "no" >&6; }
7644 fi
7645
7646   if test "x$ac_ct_DSYMUTIL" = x; then
7647     DSYMUTIL=":"
7648   else
7649     case $cross_compiling:$ac_tool_warned in
7650 yes:)
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7652 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7653 ac_tool_warned=yes ;;
7654 esac
7655     DSYMUTIL=$ac_ct_DSYMUTIL
7656   fi
7657 else
7658   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7659 fi
7660
7661     if test -n "$ac_tool_prefix"; then
7662   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7663 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7665 $as_echo_n "checking for $ac_word... " >&6; }
7666 if ${ac_cv_prog_NMEDIT+:} false; then :
7667   $as_echo_n "(cached) " >&6
7668 else
7669   if test -n "$NMEDIT"; then
7670   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7671 else
7672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7673 for as_dir in $PATH
7674 do
7675   IFS=$as_save_IFS
7676   test -z "$as_dir" && as_dir=.
7677     for ac_exec_ext in '' $ac_executable_extensions; do
7678   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7679     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7680     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7681     break 2
7682   fi
7683 done
7684   done
7685 IFS=$as_save_IFS
7686
7687 fi
7688 fi
7689 NMEDIT=$ac_cv_prog_NMEDIT
7690 if test -n "$NMEDIT"; then
7691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7692 $as_echo "$NMEDIT" >&6; }
7693 else
7694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7695 $as_echo "no" >&6; }
7696 fi
7697
7698
7699 fi
7700 if test -z "$ac_cv_prog_NMEDIT"; then
7701   ac_ct_NMEDIT=$NMEDIT
7702   # Extract the first word of "nmedit", so it can be a program name with args.
7703 set dummy nmedit; ac_word=$2
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7705 $as_echo_n "checking for $ac_word... " >&6; }
7706 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7707   $as_echo_n "(cached) " >&6
7708 else
7709   if test -n "$ac_ct_NMEDIT"; then
7710   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7711 else
7712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7713 for as_dir in $PATH
7714 do
7715   IFS=$as_save_IFS
7716   test -z "$as_dir" && as_dir=.
7717     for ac_exec_ext in '' $ac_executable_extensions; do
7718   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7719     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7720     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7721     break 2
7722   fi
7723 done
7724   done
7725 IFS=$as_save_IFS
7726
7727 fi
7728 fi
7729 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7730 if test -n "$ac_ct_NMEDIT"; then
7731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7732 $as_echo "$ac_ct_NMEDIT" >&6; }
7733 else
7734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7735 $as_echo "no" >&6; }
7736 fi
7737
7738   if test "x$ac_ct_NMEDIT" = x; then
7739     NMEDIT=":"
7740   else
7741     case $cross_compiling:$ac_tool_warned in
7742 yes:)
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7744 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7745 ac_tool_warned=yes ;;
7746 esac
7747     NMEDIT=$ac_ct_NMEDIT
7748   fi
7749 else
7750   NMEDIT="$ac_cv_prog_NMEDIT"
7751 fi
7752
7753     if test -n "$ac_tool_prefix"; then
7754   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7755 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7757 $as_echo_n "checking for $ac_word... " >&6; }
7758 if ${ac_cv_prog_LIPO+:} false; then :
7759   $as_echo_n "(cached) " >&6
7760 else
7761   if test -n "$LIPO"; then
7762   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7763 else
7764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7765 for as_dir in $PATH
7766 do
7767   IFS=$as_save_IFS
7768   test -z "$as_dir" && as_dir=.
7769     for ac_exec_ext in '' $ac_executable_extensions; do
7770   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7771     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7772     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7773     break 2
7774   fi
7775 done
7776   done
7777 IFS=$as_save_IFS
7778
7779 fi
7780 fi
7781 LIPO=$ac_cv_prog_LIPO
7782 if test -n "$LIPO"; then
7783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7784 $as_echo "$LIPO" >&6; }
7785 else
7786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7787 $as_echo "no" >&6; }
7788 fi
7789
7790
7791 fi
7792 if test -z "$ac_cv_prog_LIPO"; then
7793   ac_ct_LIPO=$LIPO
7794   # Extract the first word of "lipo", so it can be a program name with args.
7795 set dummy lipo; ac_word=$2
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7797 $as_echo_n "checking for $ac_word... " >&6; }
7798 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7799   $as_echo_n "(cached) " >&6
7800 else
7801   if test -n "$ac_ct_LIPO"; then
7802   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7803 else
7804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7805 for as_dir in $PATH
7806 do
7807   IFS=$as_save_IFS
7808   test -z "$as_dir" && as_dir=.
7809     for ac_exec_ext in '' $ac_executable_extensions; do
7810   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7811     ac_cv_prog_ac_ct_LIPO="lipo"
7812     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7813     break 2
7814   fi
7815 done
7816   done
7817 IFS=$as_save_IFS
7818
7819 fi
7820 fi
7821 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7822 if test -n "$ac_ct_LIPO"; then
7823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7824 $as_echo "$ac_ct_LIPO" >&6; }
7825 else
7826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7827 $as_echo "no" >&6; }
7828 fi
7829
7830   if test "x$ac_ct_LIPO" = x; then
7831     LIPO=":"
7832   else
7833     case $cross_compiling:$ac_tool_warned in
7834 yes:)
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7836 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7837 ac_tool_warned=yes ;;
7838 esac
7839     LIPO=$ac_ct_LIPO
7840   fi
7841 else
7842   LIPO="$ac_cv_prog_LIPO"
7843 fi
7844
7845     if test -n "$ac_tool_prefix"; then
7846   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7847 set dummy ${ac_tool_prefix}otool; ac_word=$2
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7849 $as_echo_n "checking for $ac_word... " >&6; }
7850 if ${ac_cv_prog_OTOOL+:} false; then :
7851   $as_echo_n "(cached) " >&6
7852 else
7853   if test -n "$OTOOL"; then
7854   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7855 else
7856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7857 for as_dir in $PATH
7858 do
7859   IFS=$as_save_IFS
7860   test -z "$as_dir" && as_dir=.
7861     for ac_exec_ext in '' $ac_executable_extensions; do
7862   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7863     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7864     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7865     break 2
7866   fi
7867 done
7868   done
7869 IFS=$as_save_IFS
7870
7871 fi
7872 fi
7873 OTOOL=$ac_cv_prog_OTOOL
7874 if test -n "$OTOOL"; then
7875   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7876 $as_echo "$OTOOL" >&6; }
7877 else
7878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7879 $as_echo "no" >&6; }
7880 fi
7881
7882
7883 fi
7884 if test -z "$ac_cv_prog_OTOOL"; then
7885   ac_ct_OTOOL=$OTOOL
7886   # Extract the first word of "otool", so it can be a program name with args.
7887 set dummy otool; ac_word=$2
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7889 $as_echo_n "checking for $ac_word... " >&6; }
7890 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7891   $as_echo_n "(cached) " >&6
7892 else
7893   if test -n "$ac_ct_OTOOL"; then
7894   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7895 else
7896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7897 for as_dir in $PATH
7898 do
7899   IFS=$as_save_IFS
7900   test -z "$as_dir" && as_dir=.
7901     for ac_exec_ext in '' $ac_executable_extensions; do
7902   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7903     ac_cv_prog_ac_ct_OTOOL="otool"
7904     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7905     break 2
7906   fi
7907 done
7908   done
7909 IFS=$as_save_IFS
7910
7911 fi
7912 fi
7913 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7914 if test -n "$ac_ct_OTOOL"; then
7915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7916 $as_echo "$ac_ct_OTOOL" >&6; }
7917 else
7918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7919 $as_echo "no" >&6; }
7920 fi
7921
7922   if test "x$ac_ct_OTOOL" = x; then
7923     OTOOL=":"
7924   else
7925     case $cross_compiling:$ac_tool_warned in
7926 yes:)
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7928 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7929 ac_tool_warned=yes ;;
7930 esac
7931     OTOOL=$ac_ct_OTOOL
7932   fi
7933 else
7934   OTOOL="$ac_cv_prog_OTOOL"
7935 fi
7936
7937     if test -n "$ac_tool_prefix"; then
7938   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7939 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7941 $as_echo_n "checking for $ac_word... " >&6; }
7942 if ${ac_cv_prog_OTOOL64+:} false; then :
7943   $as_echo_n "(cached) " >&6
7944 else
7945   if test -n "$OTOOL64"; then
7946   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7947 else
7948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7949 for as_dir in $PATH
7950 do
7951   IFS=$as_save_IFS
7952   test -z "$as_dir" && as_dir=.
7953     for ac_exec_ext in '' $ac_executable_extensions; do
7954   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7955     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7956     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7957     break 2
7958   fi
7959 done
7960   done
7961 IFS=$as_save_IFS
7962
7963 fi
7964 fi
7965 OTOOL64=$ac_cv_prog_OTOOL64
7966 if test -n "$OTOOL64"; then
7967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7968 $as_echo "$OTOOL64" >&6; }
7969 else
7970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7971 $as_echo "no" >&6; }
7972 fi
7973
7974
7975 fi
7976 if test -z "$ac_cv_prog_OTOOL64"; then
7977   ac_ct_OTOOL64=$OTOOL64
7978   # Extract the first word of "otool64", so it can be a program name with args.
7979 set dummy otool64; ac_word=$2
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7981 $as_echo_n "checking for $ac_word... " >&6; }
7982 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7983   $as_echo_n "(cached) " >&6
7984 else
7985   if test -n "$ac_ct_OTOOL64"; then
7986   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7987 else
7988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7989 for as_dir in $PATH
7990 do
7991   IFS=$as_save_IFS
7992   test -z "$as_dir" && as_dir=.
7993     for ac_exec_ext in '' $ac_executable_extensions; do
7994   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7995     ac_cv_prog_ac_ct_OTOOL64="otool64"
7996     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7997     break 2
7998   fi
7999 done
8000   done
8001 IFS=$as_save_IFS
8002
8003 fi
8004 fi
8005 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8006 if test -n "$ac_ct_OTOOL64"; then
8007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8008 $as_echo "$ac_ct_OTOOL64" >&6; }
8009 else
8010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8011 $as_echo "no" >&6; }
8012 fi
8013
8014   if test "x$ac_ct_OTOOL64" = x; then
8015     OTOOL64=":"
8016   else
8017     case $cross_compiling:$ac_tool_warned in
8018 yes:)
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8020 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8021 ac_tool_warned=yes ;;
8022 esac
8023     OTOOL64=$ac_ct_OTOOL64
8024   fi
8025 else
8026   OTOOL64="$ac_cv_prog_OTOOL64"
8027 fi
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8056 $as_echo_n "checking for -single_module linker flag... " >&6; }
8057 if ${lt_cv_apple_cc_single_mod+:} false; then :
8058   $as_echo_n "(cached) " >&6
8059 else
8060   lt_cv_apple_cc_single_mod=no
8061       if test -z "${LT_MULTI_MODULE}"; then
8062         # By default we will add the -single_module flag. You can override
8063         # by either setting the environment variable LT_MULTI_MODULE
8064         # non-empty at configure time, or by adding -multi_module to the
8065         # link flags.
8066         rm -rf libconftest.dylib*
8067         echo "int foo(void){return 1;}" > conftest.c
8068         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8069 -dynamiclib -Wl,-single_module conftest.c" >&5
8070         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8071           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8072         _lt_result=$?
8073         # If there is a non-empty error log, and "single_module"
8074         # appears in it, assume the flag caused a linker warning
8075         if test -s conftest.err && $GREP single_module conftest.err; then
8076           cat conftest.err >&5
8077         # Otherwise, if the output was created with a 0 exit code from
8078         # the compiler, it worked.
8079         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8080           lt_cv_apple_cc_single_mod=yes
8081         else
8082           cat conftest.err >&5
8083         fi
8084         rm -rf libconftest.dylib*
8085         rm -f conftest.*
8086       fi
8087 fi
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8089 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8090
8091     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8092 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8093 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8094   $as_echo_n "(cached) " >&6
8095 else
8096   lt_cv_ld_exported_symbols_list=no
8097       save_LDFLAGS=$LDFLAGS
8098       echo "_main" > conftest.sym
8099       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8100       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8101 /* end confdefs.h.  */
8102
8103 int
8104 main ()
8105 {
8106
8107   ;
8108   return 0;
8109 }
8110 _ACEOF
8111 if ac_fn_c_try_link "$LINENO"; then :
8112   lt_cv_ld_exported_symbols_list=yes
8113 else
8114   lt_cv_ld_exported_symbols_list=no
8115 fi
8116 rm -f core conftest.err conftest.$ac_objext \
8117     conftest$ac_exeext conftest.$ac_ext
8118         LDFLAGS="$save_LDFLAGS"
8119
8120 fi
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8122 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8123
8124     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8125 $as_echo_n "checking for -force_load linker flag... " >&6; }
8126 if ${lt_cv_ld_force_load+:} false; then :
8127   $as_echo_n "(cached) " >&6
8128 else
8129   lt_cv_ld_force_load=no
8130       cat > conftest.c << _LT_EOF
8131 int forced_loaded() { return 2;}
8132 _LT_EOF
8133       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8134       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8135       echo "$AR cru libconftest.a conftest.o" >&5
8136       $AR cru libconftest.a conftest.o 2>&5
8137       echo "$RANLIB libconftest.a" >&5
8138       $RANLIB libconftest.a 2>&5
8139       cat > conftest.c << _LT_EOF
8140 int main() { return 0;}
8141 _LT_EOF
8142       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8143       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8144       _lt_result=$?
8145       if test -s conftest.err && $GREP force_load conftest.err; then
8146         cat conftest.err >&5
8147       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8148         lt_cv_ld_force_load=yes
8149       else
8150         cat conftest.err >&5
8151       fi
8152         rm -f conftest.err libconftest.a conftest conftest.c
8153         rm -rf conftest.dSYM
8154
8155 fi
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8157 $as_echo "$lt_cv_ld_force_load" >&6; }
8158     case $host_os in
8159     rhapsody* | darwin1.[012])
8160       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8161     darwin1.*)
8162       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8163     darwin*) # darwin 5.x on
8164       # if running on 10.5 or later, the deployment target defaults
8165       # to the OS version, if on x86, and 10.4, the deployment
8166       # target defaults to 10.4. Don't you love it?
8167       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8168         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8169           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8170         10.[012]*)
8171           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8172         10.*)
8173           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8174       esac
8175     ;;
8176   esac
8177     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8178       _lt_dar_single_mod='$single_module'
8179     fi
8180     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8181       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8182     else
8183       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8184     fi
8185     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8186       _lt_dsymutil='~$DSYMUTIL $lib || :'
8187     else
8188       _lt_dsymutil=
8189     fi
8190     ;;
8191   esac
8192
8193 ac_ext=c
8194 ac_cpp='$CPP $CPPFLAGS'
8195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8199 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8200 # On Suns, sometimes $CPP names a directory.
8201 if test -n "$CPP" && test -d "$CPP"; then
8202   CPP=
8203 fi
8204 if test -z "$CPP"; then
8205   if ${ac_cv_prog_CPP+:} false; then :
8206   $as_echo_n "(cached) " >&6
8207 else
8208       # Double quotes because CPP needs to be expanded
8209     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8210     do
8211       ac_preproc_ok=false
8212 for ac_c_preproc_warn_flag in '' yes
8213 do
8214   # Use a header file that comes with gcc, so configuring glibc
8215   # with a fresh cross-compiler works.
8216   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8217   # <limits.h> exists even on freestanding compilers.
8218   # On the NeXT, cc -E runs the code through the compiler's parser,
8219   # not just through cpp. "Syntax error" is here to catch this case.
8220   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8221 /* end confdefs.h.  */
8222 #ifdef __STDC__
8223 # include <limits.h>
8224 #else
8225 # include <assert.h>
8226 #endif
8227                      Syntax error
8228 _ACEOF
8229 if ac_fn_c_try_cpp "$LINENO"; then :
8230
8231 else
8232   # Broken: fails on valid input.
8233 continue
8234 fi
8235 rm -f conftest.err conftest.i conftest.$ac_ext
8236
8237   # OK, works on sane cases.  Now check whether nonexistent headers
8238   # can be detected and how.
8239   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8240 /* end confdefs.h.  */
8241 #include <ac_nonexistent.h>
8242 _ACEOF
8243 if ac_fn_c_try_cpp "$LINENO"; then :
8244   # Broken: success on invalid input.
8245 continue
8246 else
8247   # Passes both tests.
8248 ac_preproc_ok=:
8249 break
8250 fi
8251 rm -f conftest.err conftest.i conftest.$ac_ext
8252
8253 done
8254 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8255 rm -f conftest.i conftest.err conftest.$ac_ext
8256 if $ac_preproc_ok; then :
8257   break
8258 fi
8259
8260     done
8261     ac_cv_prog_CPP=$CPP
8262
8263 fi
8264   CPP=$ac_cv_prog_CPP
8265 else
8266   ac_cv_prog_CPP=$CPP
8267 fi
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8269 $as_echo "$CPP" >&6; }
8270 ac_preproc_ok=false
8271 for ac_c_preproc_warn_flag in '' yes
8272 do
8273   # Use a header file that comes with gcc, so configuring glibc
8274   # with a fresh cross-compiler works.
8275   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8276   # <limits.h> exists even on freestanding compilers.
8277   # On the NeXT, cc -E runs the code through the compiler's parser,
8278   # not just through cpp. "Syntax error" is here to catch this case.
8279   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8280 /* end confdefs.h.  */
8281 #ifdef __STDC__
8282 # include <limits.h>
8283 #else
8284 # include <assert.h>
8285 #endif
8286                      Syntax error
8287 _ACEOF
8288 if ac_fn_c_try_cpp "$LINENO"; then :
8289
8290 else
8291   # Broken: fails on valid input.
8292 continue
8293 fi
8294 rm -f conftest.err conftest.i conftest.$ac_ext
8295
8296   # OK, works on sane cases.  Now check whether nonexistent headers
8297   # can be detected and how.
8298   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8299 /* end confdefs.h.  */
8300 #include <ac_nonexistent.h>
8301 _ACEOF
8302 if ac_fn_c_try_cpp "$LINENO"; then :
8303   # Broken: success on invalid input.
8304 continue
8305 else
8306   # Passes both tests.
8307 ac_preproc_ok=:
8308 break
8309 fi
8310 rm -f conftest.err conftest.i conftest.$ac_ext
8311
8312 done
8313 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8314 rm -f conftest.i conftest.err conftest.$ac_ext
8315 if $ac_preproc_ok; then :
8316
8317 else
8318   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8319 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8320 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8321 See \`config.log' for more details" "$LINENO" 5; }
8322 fi
8323
8324 ac_ext=c
8325 ac_cpp='$CPP $CPPFLAGS'
8326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8329
8330
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8332 $as_echo_n "checking for ANSI C header files... " >&6; }
8333 if ${ac_cv_header_stdc+:} false; then :
8334   $as_echo_n "(cached) " >&6
8335 else
8336   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8337 /* end confdefs.h.  */
8338 #include <stdlib.h>
8339 #include <stdarg.h>
8340 #include <string.h>
8341 #include <float.h>
8342
8343 int
8344 main ()
8345 {
8346
8347   ;
8348   return 0;
8349 }
8350 _ACEOF
8351 if ac_fn_c_try_compile "$LINENO"; then :
8352   ac_cv_header_stdc=yes
8353 else
8354   ac_cv_header_stdc=no
8355 fi
8356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8357
8358 if test $ac_cv_header_stdc = yes; then
8359   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8360   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8361 /* end confdefs.h.  */
8362 #include <string.h>
8363
8364 _ACEOF
8365 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8366   $EGREP "memchr" >/dev/null 2>&1; then :
8367
8368 else
8369   ac_cv_header_stdc=no
8370 fi
8371 rm -f conftest*
8372
8373 fi
8374
8375 if test $ac_cv_header_stdc = yes; then
8376   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8377   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8378 /* end confdefs.h.  */
8379 #include <stdlib.h>
8380
8381 _ACEOF
8382 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8383   $EGREP "free" >/dev/null 2>&1; then :
8384
8385 else
8386   ac_cv_header_stdc=no
8387 fi
8388 rm -f conftest*
8389
8390 fi
8391
8392 if test $ac_cv_header_stdc = yes; then
8393   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8394   if test "$cross_compiling" = yes; then :
8395   :
8396 else
8397   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8398 /* end confdefs.h.  */
8399 #include <ctype.h>
8400 #include <stdlib.h>
8401 #if ((' ' & 0x0FF) == 0x020)
8402 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8403 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8404 #else
8405 # define ISLOWER(c) \
8406                    (('a' <= (c) && (c) <= 'i') \
8407                      || ('j' <= (c) && (c) <= 'r') \
8408                      || ('s' <= (c) && (c) <= 'z'))
8409 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8410 #endif
8411
8412 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8413 int
8414 main ()
8415 {
8416   int i;
8417   for (i = 0; i < 256; i++)
8418     if (XOR (islower (i), ISLOWER (i))
8419         || toupper (i) != TOUPPER (i))
8420       return 2;
8421   return 0;
8422 }
8423 _ACEOF
8424 if ac_fn_c_try_run "$LINENO"; then :
8425
8426 else
8427   ac_cv_header_stdc=no
8428 fi
8429 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8430   conftest.$ac_objext conftest.beam conftest.$ac_ext
8431 fi
8432
8433 fi
8434 fi
8435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8436 $as_echo "$ac_cv_header_stdc" >&6; }
8437 if test $ac_cv_header_stdc = yes; then
8438
8439 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8440
8441 fi
8442
8443 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8444 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8445                   inttypes.h stdint.h unistd.h
8446 do :
8447   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8448 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8449 "
8450 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8451   cat >>confdefs.h <<_ACEOF
8452 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8453 _ACEOF
8454
8455 fi
8456
8457 done
8458
8459
8460 for ac_header in dlfcn.h
8461 do :
8462   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8463 "
8464 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8465   cat >>confdefs.h <<_ACEOF
8466 #define HAVE_DLFCN_H 1
8467 _ACEOF
8468
8469 fi
8470
8471 done
8472
8473
8474
8475
8476
8477 # Set options
8478
8479
8480
8481
8482
8483             # Check whether --enable-shared was given.
8484 if test "${enable_shared+set}" = set; then :
8485   enableval=$enable_shared; p=${PACKAGE-default}
8486     case $enableval in
8487     yes) enable_shared=yes ;;
8488     no) enable_shared=no ;;
8489     *)
8490       enable_shared=no
8491       # Look at the argument we got.  We use all the common list separators.
8492       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8493       for pkg in $enableval; do
8494         IFS="$lt_save_ifs"
8495         if test "X$pkg" = "X$p"; then
8496           enable_shared=yes
8497         fi
8498       done
8499       IFS="$lt_save_ifs"
8500       ;;
8501     esac
8502 else
8503   enable_shared=yes
8504 fi
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514   # Check whether --enable-static was given.
8515 if test "${enable_static+set}" = set; then :
8516   enableval=$enable_static; p=${PACKAGE-default}
8517     case $enableval in
8518     yes) enable_static=yes ;;
8519     no) enable_static=no ;;
8520     *)
8521      enable_static=no
8522       # Look at the argument we got.  We use all the common list separators.
8523       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8524       for pkg in $enableval; do
8525         IFS="$lt_save_ifs"
8526         if test "X$pkg" = "X$p"; then
8527           enable_static=yes
8528         fi
8529       done
8530       IFS="$lt_save_ifs"
8531       ;;
8532     esac
8533 else
8534   enable_static=yes
8535 fi
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546 # Check whether --with-pic was given.
8547 if test "${with_pic+set}" = set; then :
8548   withval=$with_pic; lt_p=${PACKAGE-default}
8549     case $withval in
8550     yes|no) pic_mode=$withval ;;
8551     *)
8552       pic_mode=default
8553       # Look at the argument we got.  We use all the common list separators.
8554       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8555       for lt_pkg in $withval; do
8556         IFS="$lt_save_ifs"
8557         if test "X$lt_pkg" = "X$lt_p"; then
8558           pic_mode=yes
8559         fi
8560       done
8561       IFS="$lt_save_ifs"
8562       ;;
8563     esac
8564 else
8565   pic_mode=default
8566 fi
8567
8568
8569 test -z "$pic_mode" && pic_mode=default
8570
8571
8572
8573
8574
8575
8576
8577   # Check whether --enable-fast-install was given.
8578 if test "${enable_fast_install+set}" = set; then :
8579   enableval=$enable_fast_install; p=${PACKAGE-default}
8580     case $enableval in
8581     yes) enable_fast_install=yes ;;
8582     no) enable_fast_install=no ;;
8583     *)
8584       enable_fast_install=no
8585       # Look at the argument we got.  We use all the common list separators.
8586       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8587       for pkg in $enableval; do
8588         IFS="$lt_save_ifs"
8589         if test "X$pkg" = "X$p"; then
8590           enable_fast_install=yes
8591         fi
8592       done
8593       IFS="$lt_save_ifs"
8594       ;;
8595     esac
8596 else
8597   enable_fast_install=yes
8598 fi
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610 # This can be used to rebuild libtool when needed
8611 LIBTOOL_DEPS="$ltmain"
8612
8613 # Always use our own libtool.
8614 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645 test -z "$LN_S" && LN_S="ln -s"
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660 if test -n "${ZSH_VERSION+set}" ; then
8661    setopt NO_GLOB_SUBST
8662 fi
8663
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8665 $as_echo_n "checking for objdir... " >&6; }
8666 if ${lt_cv_objdir+:} false; then :
8667   $as_echo_n "(cached) " >&6
8668 else
8669   rm -f .libs 2>/dev/null
8670 mkdir .libs 2>/dev/null
8671 if test -d .libs; then
8672   lt_cv_objdir=.libs
8673 else
8674   # MS-DOS does not allow filenames that begin with a dot.
8675   lt_cv_objdir=_libs
8676 fi
8677 rmdir .libs 2>/dev/null
8678 fi
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8680 $as_echo "$lt_cv_objdir" >&6; }
8681 objdir=$lt_cv_objdir
8682
8683
8684
8685
8686
8687 cat >>confdefs.h <<_ACEOF
8688 #define LT_OBJDIR "$lt_cv_objdir/"
8689 _ACEOF
8690
8691
8692
8693
8694 case $host_os in
8695 aix3*)
8696   # AIX sometimes has problems with the GCC collect2 program.  For some
8697   # reason, if we set the COLLECT_NAMES environment variable, the problems
8698   # vanish in a puff of smoke.
8699   if test "X${COLLECT_NAMES+set}" != Xset; then
8700     COLLECT_NAMES=
8701     export COLLECT_NAMES
8702   fi
8703   ;;
8704 esac
8705
8706 # Global variables:
8707 ofile=libtool
8708 can_build_shared=yes
8709
8710 # All known linkers require a `.a' archive for static linking (except MSVC,
8711 # which needs '.lib').
8712 libext=a
8713
8714 with_gnu_ld="$lt_cv_prog_gnu_ld"
8715
8716 old_CC="$CC"
8717 old_CFLAGS="$CFLAGS"
8718
8719 # Set sane defaults for various variables
8720 test -z "$CC" && CC=cc
8721 test -z "$LTCC" && LTCC=$CC
8722 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8723 test -z "$LD" && LD=ld
8724 test -z "$ac_objext" && ac_objext=o
8725
8726 for cc_temp in $compiler""; do
8727   case $cc_temp in
8728     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8729     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8730     \-*) ;;
8731     *) break;;
8732   esac
8733 done
8734 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8735
8736
8737 # Only perform the check for file, if the check method requires it
8738 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8739 case $deplibs_check_method in
8740 file_magic*)
8741   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8742     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8743 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8744 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8745   $as_echo_n "(cached) " >&6
8746 else
8747   case $MAGIC_CMD in
8748 [\\/*] |  ?:[\\/]*)
8749   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8750   ;;
8751 *)
8752   lt_save_MAGIC_CMD="$MAGIC_CMD"
8753   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8754   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8755   for ac_dir in $ac_dummy; do
8756     IFS="$lt_save_ifs"
8757     test -z "$ac_dir" && ac_dir=.
8758     if test -f $ac_dir/${ac_tool_prefix}file; then
8759       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8760       if test -n "$file_magic_test_file"; then
8761         case $deplibs_check_method in
8762         "file_magic "*)
8763           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8764           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8765           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8766             $EGREP "$file_magic_regex" > /dev/null; then
8767             :
8768           else
8769             cat <<_LT_EOF 1>&2
8770
8771 *** Warning: the command libtool uses to detect shared libraries,
8772 *** $file_magic_cmd, produces output that libtool cannot recognize.
8773 *** The result is that libtool may fail to recognize shared libraries
8774 *** as such.  This will affect the creation of libtool libraries that
8775 *** depend on shared libraries, but programs linked with such libtool
8776 *** libraries will work regardless of this problem.  Nevertheless, you
8777 *** may want to report the problem to your system manager and/or to
8778 *** bug-libtool@gnu.org
8779
8780 _LT_EOF
8781           fi ;;
8782         esac
8783       fi
8784       break
8785     fi
8786   done
8787   IFS="$lt_save_ifs"
8788   MAGIC_CMD="$lt_save_MAGIC_CMD"
8789   ;;
8790 esac
8791 fi
8792
8793 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8794 if test -n "$MAGIC_CMD"; then
8795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8796 $as_echo "$MAGIC_CMD" >&6; }
8797 else
8798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8799 $as_echo "no" >&6; }
8800 fi
8801
8802
8803
8804
8805
8806 if test -z "$lt_cv_path_MAGIC_CMD"; then
8807   if test -n "$ac_tool_prefix"; then
8808     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8809 $as_echo_n "checking for file... " >&6; }
8810 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8811   $as_echo_n "(cached) " >&6
8812 else
8813   case $MAGIC_CMD in
8814 [\\/*] |  ?:[\\/]*)
8815   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8816   ;;
8817 *)
8818   lt_save_MAGIC_CMD="$MAGIC_CMD"
8819   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8820   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8821   for ac_dir in $ac_dummy; do
8822     IFS="$lt_save_ifs"
8823     test -z "$ac_dir" && ac_dir=.
8824     if test -f $ac_dir/file; then
8825       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8826       if test -n "$file_magic_test_file"; then
8827         case $deplibs_check_method in
8828         "file_magic "*)
8829           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8830           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8831           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8832             $EGREP "$file_magic_regex" > /dev/null; then
8833             :
8834           else
8835             cat <<_LT_EOF 1>&2
8836
8837 *** Warning: the command libtool uses to detect shared libraries,
8838 *** $file_magic_cmd, produces output that libtool cannot recognize.
8839 *** The result is that libtool may fail to recognize shared libraries
8840 *** as such.  This will affect the creation of libtool libraries that
8841 *** depend on shared libraries, but programs linked with such libtool
8842 *** libraries will work regardless of this problem.  Nevertheless, you
8843 *** may want to report the problem to your system manager and/or to
8844 *** bug-libtool@gnu.org
8845
8846 _LT_EOF
8847           fi ;;
8848         esac
8849       fi
8850       break
8851     fi
8852   done
8853   IFS="$lt_save_ifs"
8854   MAGIC_CMD="$lt_save_MAGIC_CMD"
8855   ;;
8856 esac
8857 fi
8858
8859 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8860 if test -n "$MAGIC_CMD"; then
8861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8862 $as_echo "$MAGIC_CMD" >&6; }
8863 else
8864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8865 $as_echo "no" >&6; }
8866 fi
8867
8868
8869   else
8870     MAGIC_CMD=:
8871   fi
8872 fi
8873
8874   fi
8875   ;;
8876 esac
8877
8878 # Use C for the default configuration in the libtool script
8879
8880 lt_save_CC="$CC"
8881 ac_ext=c
8882 ac_cpp='$CPP $CPPFLAGS'
8883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8886
8887
8888 # Source file extension for C test sources.
8889 ac_ext=c
8890
8891 # Object file extension for compiled C test sources.
8892 objext=o
8893 objext=$objext
8894
8895 # Code to be used in simple compile tests
8896 lt_simple_compile_test_code="int some_variable = 0;"
8897
8898 # Code to be used in simple link tests
8899 lt_simple_link_test_code='int main(){return(0);}'
8900
8901
8902
8903
8904
8905
8906
8907 # If no C compiler was specified, use CC.
8908 LTCC=${LTCC-"$CC"}
8909
8910 # If no C compiler flags were specified, use CFLAGS.
8911 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8912
8913 # Allow CC to be a program name with arguments.
8914 compiler=$CC
8915
8916 # Save the default compiler, since it gets overwritten when the other
8917 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8918 compiler_DEFAULT=$CC
8919
8920 # save warnings/boilerplate of simple test code
8921 ac_outfile=conftest.$ac_objext
8922 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8923 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8924 _lt_compiler_boilerplate=`cat conftest.err`
8925 $RM conftest*
8926
8927 ac_outfile=conftest.$ac_objext
8928 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8929 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8930 _lt_linker_boilerplate=`cat conftest.err`
8931 $RM -r conftest*
8932
8933
8934 ## CAVEAT EMPTOR:
8935 ## There is no encapsulation within the following macros, do not change
8936 ## the running order or otherwise move them around unless you know exactly
8937 ## what you are doing...
8938 if test -n "$compiler"; then
8939
8940 lt_prog_compiler_no_builtin_flag=
8941
8942 if test "$GCC" = yes; then
8943   case $cc_basename in
8944   nvcc*)
8945     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8946   *)
8947     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8948   esac
8949
8950   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8951 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8952 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8953   $as_echo_n "(cached) " >&6
8954 else
8955   lt_cv_prog_compiler_rtti_exceptions=no
8956    ac_outfile=conftest.$ac_objext
8957    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8958    lt_compiler_flag="-fno-rtti -fno-exceptions"
8959    # Insert the option either (1) after the last *FLAGS variable, or
8960    # (2) before a word containing "conftest.", or (3) at the end.
8961    # Note that $ac_compile itself does not contain backslashes and begins
8962    # with a dollar sign (not a hyphen), so the echo should work correctly.
8963    # The option is referenced via a variable to avoid confusing sed.
8964    lt_compile=`echo "$ac_compile" | $SED \
8965    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8966    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8967    -e 's:$: $lt_compiler_flag:'`
8968    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8969    (eval "$lt_compile" 2>conftest.err)
8970    ac_status=$?
8971    cat conftest.err >&5
8972    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8973    if (exit $ac_status) && test -s "$ac_outfile"; then
8974      # The compiler can only warn and ignore the option if not recognized
8975      # So say no if there are warnings other than the usual output.
8976      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8977      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8978      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8979        lt_cv_prog_compiler_rtti_exceptions=yes
8980      fi
8981    fi
8982    $RM conftest*
8983
8984 fi
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8986 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8987
8988 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8989     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8990 else
8991     :
8992 fi
8993
8994 fi
8995
8996
8997
8998
8999
9000
9001   lt_prog_compiler_wl=
9002 lt_prog_compiler_pic=
9003 lt_prog_compiler_static=
9004
9005
9006   if test "$GCC" = yes; then
9007     lt_prog_compiler_wl='-Wl,'
9008     lt_prog_compiler_static='-static'
9009
9010     case $host_os in
9011       aix*)
9012       # All AIX code is PIC.
9013       if test "$host_cpu" = ia64; then
9014         # AIX 5 now supports IA64 processor
9015         lt_prog_compiler_static='-Bstatic'
9016       fi
9017       ;;
9018
9019     amigaos*)
9020       case $host_cpu in
9021       powerpc)
9022             # see comment about AmigaOS4 .so support
9023             lt_prog_compiler_pic='-fPIC'
9024         ;;
9025       m68k)
9026             # FIXME: we need at least 68020 code to build shared libraries, but
9027             # adding the `-m68020' flag to GCC prevents building anything better,
9028             # like `-m68040'.
9029             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9030         ;;
9031       esac
9032       ;;
9033
9034     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9035       # PIC is the default for these OSes.
9036       ;;
9037
9038     mingw* | cygwin* | pw32* | os2* | cegcc*)
9039       # This hack is so that the source file can tell whether it is being
9040       # built for inclusion in a dll (and should export symbols for example).
9041       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9042       # (--disable-auto-import) libraries
9043       lt_prog_compiler_pic='-DDLL_EXPORT'
9044       ;;
9045
9046     darwin* | rhapsody*)
9047       # PIC is the default on this platform
9048       # Common symbols not allowed in MH_DYLIB files
9049       lt_prog_compiler_pic='-fno-common'
9050       ;;
9051
9052     haiku*)
9053       # PIC is the default for Haiku.
9054       # The "-static" flag exists, but is broken.
9055       lt_prog_compiler_static=
9056       ;;
9057
9058     hpux*)
9059       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9060       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9061       # sets the default TLS model and affects inlining.
9062       case $host_cpu in
9063       hppa*64*)
9064         # +Z the default
9065         ;;
9066       *)
9067         lt_prog_compiler_pic='-fPIC'
9068         ;;
9069       esac
9070       ;;
9071
9072     interix[3-9]*)
9073       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9074       # Instead, we relocate shared libraries at runtime.
9075       ;;
9076
9077     msdosdjgpp*)
9078       # Just because we use GCC doesn't mean we suddenly get shared libraries
9079       # on systems that don't support them.
9080       lt_prog_compiler_can_build_shared=no
9081       enable_shared=no
9082       ;;
9083
9084     *nto* | *qnx*)
9085       # QNX uses GNU C++, but need to define -shared option too, otherwise
9086       # it will coredump.
9087       lt_prog_compiler_pic='-fPIC -shared'
9088       ;;
9089
9090     sysv4*MP*)
9091       if test -d /usr/nec; then
9092         lt_prog_compiler_pic=-Kconform_pic
9093       fi
9094       ;;
9095
9096     *)
9097       lt_prog_compiler_pic='-fPIC'
9098       ;;
9099     esac
9100
9101     case $cc_basename in
9102     nvcc*) # Cuda Compiler Driver 2.2
9103       lt_prog_compiler_wl='-Xlinker '
9104       if test -n "$lt_prog_compiler_pic"; then
9105         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9106       fi
9107       ;;
9108     esac
9109   else
9110     # PORTME Check for flag to pass linker flags through the system compiler.
9111     case $host_os in
9112     aix*)
9113       lt_prog_compiler_wl='-Wl,'
9114       if test "$host_cpu" = ia64; then
9115         # AIX 5 now supports IA64 processor
9116         lt_prog_compiler_static='-Bstatic'
9117       else
9118         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9119       fi
9120       ;;
9121
9122     mingw* | cygwin* | pw32* | os2* | cegcc*)
9123       # This hack is so that the source file can tell whether it is being
9124       # built for inclusion in a dll (and should export symbols for example).
9125       lt_prog_compiler_pic='-DDLL_EXPORT'
9126       ;;
9127
9128     hpux9* | hpux10* | hpux11*)
9129       lt_prog_compiler_wl='-Wl,'
9130       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9131       # not for PA HP-UX.
9132       case $host_cpu in
9133       hppa*64*|ia64*)
9134         # +Z the default
9135         ;;
9136       *)
9137         lt_prog_compiler_pic='+Z'
9138         ;;
9139       esac
9140       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9141       lt_prog_compiler_static='${wl}-a ${wl}archive'
9142       ;;
9143
9144     irix5* | irix6* | nonstopux*)
9145       lt_prog_compiler_wl='-Wl,'
9146       # PIC (with -KPIC) is the default.
9147       lt_prog_compiler_static='-non_shared'
9148       ;;
9149
9150     linux* | k*bsd*-gnu | kopensolaris*-gnu)
9151       case $cc_basename in
9152       # old Intel for x86_64 which still supported -KPIC.
9153       ecc*)
9154         lt_prog_compiler_wl='-Wl,'
9155         lt_prog_compiler_pic='-KPIC'
9156         lt_prog_compiler_static='-static'
9157         ;;
9158       # icc used to be incompatible with GCC.
9159       # ICC 10 doesn't accept -KPIC any more.
9160       icc* | ifort*)
9161         lt_prog_compiler_wl='-Wl,'
9162         lt_prog_compiler_pic='-fPIC'
9163         lt_prog_compiler_static='-static'
9164         ;;
9165       # Lahey Fortran 8.1.
9166       lf95*)
9167         lt_prog_compiler_wl='-Wl,'
9168         lt_prog_compiler_pic='--shared'
9169         lt_prog_compiler_static='--static'
9170         ;;
9171       nagfor*)
9172         # NAG Fortran compiler
9173         lt_prog_compiler_wl='-Wl,-Wl,,'
9174         lt_prog_compiler_pic='-PIC'
9175         lt_prog_compiler_static='-Bstatic'
9176         ;;
9177       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9178         # Portland Group compilers (*not* the Pentium gcc compiler,
9179         # which looks to be a dead project)
9180         lt_prog_compiler_wl='-Wl,'
9181         lt_prog_compiler_pic='-fpic'
9182         lt_prog_compiler_static='-Bstatic'
9183         ;;
9184       ccc*)
9185         lt_prog_compiler_wl='-Wl,'
9186         # All Alpha code is PIC.
9187         lt_prog_compiler_static='-non_shared'
9188         ;;
9189       xl* | bgxl* | bgf* | mpixl*)
9190         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9191         lt_prog_compiler_wl='-Wl,'
9192         lt_prog_compiler_pic='-qpic'
9193         lt_prog_compiler_static='-qstaticlink'
9194         ;;
9195       *)
9196         case `$CC -V 2>&1 | sed 5q` in
9197         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9198           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9199           lt_prog_compiler_pic='-KPIC'
9200           lt_prog_compiler_static='-Bstatic'
9201           lt_prog_compiler_wl=''
9202           ;;
9203         *Sun\ F* | *Sun*Fortran*)
9204           lt_prog_compiler_pic='-KPIC'
9205           lt_prog_compiler_static='-Bstatic'
9206           lt_prog_compiler_wl='-Qoption ld '
9207           ;;
9208         *Sun\ C*)
9209           # Sun C 5.9
9210           lt_prog_compiler_pic='-KPIC'
9211           lt_prog_compiler_static='-Bstatic'
9212           lt_prog_compiler_wl='-Wl,'
9213           ;;
9214         *Intel*\ [CF]*Compiler*)
9215           lt_prog_compiler_wl='-Wl,'
9216           lt_prog_compiler_pic='-fPIC'
9217           lt_prog_compiler_static='-static'
9218           ;;
9219         *Portland\ Group*)
9220           lt_prog_compiler_wl='-Wl,'
9221           lt_prog_compiler_pic='-fpic'
9222           lt_prog_compiler_static='-Bstatic'
9223           ;;
9224         esac
9225         ;;
9226       esac
9227       ;;
9228
9229     newsos6)
9230       lt_prog_compiler_pic='-KPIC'
9231       lt_prog_compiler_static='-Bstatic'
9232       ;;
9233
9234     *nto* | *qnx*)
9235       # QNX uses GNU C++, but need to define -shared option too, otherwise
9236       # it will coredump.
9237       lt_prog_compiler_pic='-fPIC -shared'
9238       ;;
9239
9240     osf3* | osf4* | osf5*)
9241       lt_prog_compiler_wl='-Wl,'
9242       # All OSF/1 code is PIC.
9243       lt_prog_compiler_static='-non_shared'
9244       ;;
9245
9246     rdos*)
9247       lt_prog_compiler_static='-non_shared'
9248       ;;
9249
9250     solaris*)
9251       lt_prog_compiler_pic='-KPIC'
9252       lt_prog_compiler_static='-Bstatic'
9253       case $cc_basename in
9254       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9255         lt_prog_compiler_wl='-Qoption ld ';;
9256       *)
9257         lt_prog_compiler_wl='-Wl,';;
9258       esac
9259       ;;
9260
9261     sunos4*)
9262       lt_prog_compiler_wl='-Qoption ld '
9263       lt_prog_compiler_pic='-PIC'
9264       lt_prog_compiler_static='-Bstatic'
9265       ;;
9266
9267     sysv4 | sysv4.2uw2* | sysv4.3*)
9268       lt_prog_compiler_wl='-Wl,'
9269       lt_prog_compiler_pic='-KPIC'
9270       lt_prog_compiler_static='-Bstatic'
9271       ;;
9272
9273     sysv4*MP*)
9274       if test -d /usr/nec ;then
9275         lt_prog_compiler_pic='-Kconform_pic'
9276         lt_prog_compiler_static='-Bstatic'
9277       fi
9278       ;;
9279
9280     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9281       lt_prog_compiler_wl='-Wl,'
9282       lt_prog_compiler_pic='-KPIC'
9283       lt_prog_compiler_static='-Bstatic'
9284       ;;
9285
9286     unicos*)
9287       lt_prog_compiler_wl='-Wl,'
9288       lt_prog_compiler_can_build_shared=no
9289       ;;
9290
9291     uts4*)
9292       lt_prog_compiler_pic='-pic'
9293       lt_prog_compiler_static='-Bstatic'
9294       ;;
9295
9296     *)
9297       lt_prog_compiler_can_build_shared=no
9298       ;;
9299     esac
9300   fi
9301
9302 case $host_os in
9303   # For platforms which do not support PIC, -DPIC is meaningless:
9304   *djgpp*)
9305     lt_prog_compiler_pic=
9306     ;;
9307   *)
9308     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9309     ;;
9310 esac
9311
9312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9313 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9314 if ${lt_cv_prog_compiler_pic+:} false; then :
9315   $as_echo_n "(cached) " >&6
9316 else
9317   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9318 fi
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9320 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9321 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9322
9323 #
9324 # Check to make sure the PIC flag actually works.
9325 #
9326 if test -n "$lt_prog_compiler_pic"; then
9327   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9328 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9329 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9330   $as_echo_n "(cached) " >&6
9331 else
9332   lt_cv_prog_compiler_pic_works=no
9333    ac_outfile=conftest.$ac_objext
9334    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9335    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9336    # Insert the option either (1) after the last *FLAGS variable, or
9337    # (2) before a word containing "conftest.", or (3) at the end.
9338    # Note that $ac_compile itself does not contain backslashes and begins
9339    # with a dollar sign (not a hyphen), so the echo should work correctly.
9340    # The option is referenced via a variable to avoid confusing sed.
9341    lt_compile=`echo "$ac_compile" | $SED \
9342    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9343    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9344    -e 's:$: $lt_compiler_flag:'`
9345    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9346    (eval "$lt_compile" 2>conftest.err)
9347    ac_status=$?
9348    cat conftest.err >&5
9349    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9350    if (exit $ac_status) && test -s "$ac_outfile"; then
9351      # The compiler can only warn and ignore the option if not recognized
9352      # So say no if there are warnings other than the usual output.
9353      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9354      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9355      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9356        lt_cv_prog_compiler_pic_works=yes
9357      fi
9358    fi
9359    $RM conftest*
9360
9361 fi
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9363 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9364
9365 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9366     case $lt_prog_compiler_pic in
9367      "" | " "*) ;;
9368      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9369      esac
9370 else
9371     lt_prog_compiler_pic=
9372      lt_prog_compiler_can_build_shared=no
9373 fi
9374
9375 fi
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387 #
9388 # Check to make sure the static flag actually works.
9389 #
9390 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9392 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9393 if ${lt_cv_prog_compiler_static_works+:} false; then :
9394   $as_echo_n "(cached) " >&6
9395 else
9396   lt_cv_prog_compiler_static_works=no
9397    save_LDFLAGS="$LDFLAGS"
9398    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9399    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9400    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9401      # The linker can only warn and ignore the option if not recognized
9402      # So say no if there are warnings
9403      if test -s conftest.err; then
9404        # Append any errors to the config.log.
9405        cat conftest.err 1>&5
9406        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9407        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9408        if diff conftest.exp conftest.er2 >/dev/null; then
9409          lt_cv_prog_compiler_static_works=yes
9410        fi
9411      else
9412        lt_cv_prog_compiler_static_works=yes
9413      fi
9414    fi
9415    $RM -r conftest*
9416    LDFLAGS="$save_LDFLAGS"
9417
9418 fi
9419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9420 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9421
9422 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9423     :
9424 else
9425     lt_prog_compiler_static=
9426 fi
9427
9428
9429
9430
9431
9432
9433
9434   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9435 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9436 if ${lt_cv_prog_compiler_c_o+:} false; then :
9437   $as_echo_n "(cached) " >&6
9438 else
9439   lt_cv_prog_compiler_c_o=no
9440    $RM -r conftest 2>/dev/null
9441    mkdir conftest
9442    cd conftest
9443    mkdir out
9444    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9445
9446    lt_compiler_flag="-o out/conftest2.$ac_objext"
9447    # Insert the option either (1) after the last *FLAGS variable, or
9448    # (2) before a word containing "conftest.", or (3) at the end.
9449    # Note that $ac_compile itself does not contain backslashes and begins
9450    # with a dollar sign (not a hyphen), so the echo should work correctly.
9451    lt_compile=`echo "$ac_compile" | $SED \
9452    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9453    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9454    -e 's:$: $lt_compiler_flag:'`
9455    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9456    (eval "$lt_compile" 2>out/conftest.err)
9457    ac_status=$?
9458    cat out/conftest.err >&5
9459    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9460    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9461    then
9462      # The compiler can only warn and ignore the option if not recognized
9463      # So say no if there are warnings
9464      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9465      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9466      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9467        lt_cv_prog_compiler_c_o=yes
9468      fi
9469    fi
9470    chmod u+w . 2>&5
9471    $RM conftest*
9472    # SGI C++ compiler will create directory out/ii_files/ for
9473    # template instantiation
9474    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9475    $RM out/* && rmdir out
9476    cd ..
9477    $RM -r conftest
9478    $RM conftest*
9479
9480 fi
9481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9482 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9483
9484
9485
9486
9487
9488
9489   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9490 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9491 if ${lt_cv_prog_compiler_c_o+:} false; then :
9492   $as_echo_n "(cached) " >&6
9493 else
9494   lt_cv_prog_compiler_c_o=no
9495    $RM -r conftest 2>/dev/null
9496    mkdir conftest
9497    cd conftest
9498    mkdir out
9499    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9500
9501    lt_compiler_flag="-o out/conftest2.$ac_objext"
9502    # Insert the option either (1) after the last *FLAGS variable, or
9503    # (2) before a word containing "conftest.", or (3) at the end.
9504    # Note that $ac_compile itself does not contain backslashes and begins
9505    # with a dollar sign (not a hyphen), so the echo should work correctly.
9506    lt_compile=`echo "$ac_compile" | $SED \
9507    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9508    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9509    -e 's:$: $lt_compiler_flag:'`
9510    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9511    (eval "$lt_compile" 2>out/conftest.err)
9512    ac_status=$?
9513    cat out/conftest.err >&5
9514    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9515    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9516    then
9517      # The compiler can only warn and ignore the option if not recognized
9518      # So say no if there are warnings
9519      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9520      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9521      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9522        lt_cv_prog_compiler_c_o=yes
9523      fi
9524    fi
9525    chmod u+w . 2>&5
9526    $RM conftest*
9527    # SGI C++ compiler will create directory out/ii_files/ for
9528    # template instantiation
9529    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9530    $RM out/* && rmdir out
9531    cd ..
9532    $RM -r conftest
9533    $RM conftest*
9534
9535 fi
9536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9537 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9538
9539
9540
9541
9542 hard_links="nottested"
9543 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9544   # do not overwrite the value of need_locks provided by the user
9545   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9546 $as_echo_n "checking if we can lock with hard links... " >&6; }
9547   hard_links=yes
9548   $RM conftest*
9549   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9550   touch conftest.a
9551   ln conftest.a conftest.b 2>&5 || hard_links=no
9552   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9554 $as_echo "$hard_links" >&6; }
9555   if test "$hard_links" = no; then
9556     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9557 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9558     need_locks=warn
9559   fi
9560 else
9561   need_locks=no
9562 fi
9563
9564
9565
9566
9567
9568
9569   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9570 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9571
9572   runpath_var=
9573   allow_undefined_flag=
9574   always_export_symbols=no
9575   archive_cmds=
9576   archive_expsym_cmds=
9577   compiler_needs_object=no
9578   enable_shared_with_static_runtimes=no
9579   export_dynamic_flag_spec=
9580   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9581   hardcode_automatic=no
9582   hardcode_direct=no
9583   hardcode_direct_absolute=no
9584   hardcode_libdir_flag_spec=
9585   hardcode_libdir_separator=
9586   hardcode_minus_L=no
9587   hardcode_shlibpath_var=unsupported
9588   inherit_rpath=no
9589   link_all_deplibs=unknown
9590   module_cmds=
9591   module_expsym_cmds=
9592   old_archive_from_new_cmds=
9593   old_archive_from_expsyms_cmds=
9594   thread_safe_flag_spec=
9595   whole_archive_flag_spec=
9596   # include_expsyms should be a list of space-separated symbols to be *always*
9597   # included in the symbol list
9598   include_expsyms=
9599   # exclude_expsyms can be an extended regexp of symbols to exclude
9600   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9601   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9602   # as well as any symbol that contains `d'.
9603   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9604   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9605   # platforms (ab)use it in PIC code, but their linkers get confused if
9606   # the symbol is explicitly referenced.  Since portable code cannot
9607   # rely on this symbol name, it's probably fine to never include it in
9608   # preloaded symbol tables.
9609   # Exclude shared library initialization/finalization symbols.
9610   extract_expsyms_cmds=
9611
9612   case $host_os in
9613   cygwin* | mingw* | pw32* | cegcc*)
9614     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9615     # When not using gcc, we currently assume that we are using
9616     # Microsoft Visual C++.
9617     if test "$GCC" != yes; then
9618       with_gnu_ld=no
9619     fi
9620     ;;
9621   interix*)
9622     # we just hope/assume this is gcc and not c89 (= MSVC++)
9623     with_gnu_ld=yes
9624     ;;
9625   openbsd*)
9626     with_gnu_ld=no
9627     ;;
9628   linux* | k*bsd*-gnu | gnu*)
9629     link_all_deplibs=no
9630     ;;
9631   esac
9632
9633   ld_shlibs=yes
9634
9635   # On some targets, GNU ld is compatible enough with the native linker
9636   # that we're better off using the native interface for both.
9637   lt_use_gnu_ld_interface=no
9638   if test "$with_gnu_ld" = yes; then
9639     case $host_os in
9640       aix*)
9641         # The AIX port of GNU ld has always aspired to compatibility
9642         # with the native linker.  However, as the warning in the GNU ld
9643         # block says, versions before 2.19.5* couldn't really create working
9644         # shared libraries, regardless of the interface used.
9645         case `$LD -v 2>&1` in
9646           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9647           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9648           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9649           *)
9650             lt_use_gnu_ld_interface=yes
9651             ;;
9652         esac
9653         ;;
9654       *)
9655         lt_use_gnu_ld_interface=yes
9656         ;;
9657     esac
9658   fi
9659
9660   if test "$lt_use_gnu_ld_interface" = yes; then
9661     # If archive_cmds runs LD, not CC, wlarc should be empty
9662     wlarc='${wl}'
9663
9664     # Set some defaults for GNU ld with shared library support. These
9665     # are reset later if shared libraries are not supported. Putting them
9666     # here allows them to be overridden if necessary.
9667     runpath_var=LD_RUN_PATH
9668     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9669     export_dynamic_flag_spec='${wl}--export-dynamic'
9670     # ancient GNU ld didn't support --whole-archive et. al.
9671     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9672       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9673     else
9674       whole_archive_flag_spec=
9675     fi
9676     supports_anon_versioning=no
9677     case `$LD -v 2>&1` in
9678       *GNU\ gold*) supports_anon_versioning=yes ;;
9679       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9680       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9681       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9682       *\ 2.11.*) ;; # other 2.11 versions
9683       *) supports_anon_versioning=yes ;;
9684     esac
9685
9686     # See if GNU ld supports shared libraries.
9687     case $host_os in
9688     aix[3-9]*)
9689       # On AIX/PPC, the GNU linker is very broken
9690       if test "$host_cpu" != ia64; then
9691         ld_shlibs=no
9692         cat <<_LT_EOF 1>&2
9693
9694 *** Warning: the GNU linker, at least up to release 2.19, is reported
9695 *** to be unable to reliably create shared libraries on AIX.
9696 *** Therefore, libtool is disabling shared libraries support.  If you
9697 *** really care for shared libraries, you may want to install binutils
9698 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9699 *** You will then need to restart the configuration process.
9700
9701 _LT_EOF
9702       fi
9703       ;;
9704
9705     amigaos*)
9706       case $host_cpu in
9707       powerpc)
9708             # see comment about AmigaOS4 .so support
9709             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9710             archive_expsym_cmds=''
9711         ;;
9712       m68k)
9713             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)'
9714             hardcode_libdir_flag_spec='-L$libdir'
9715             hardcode_minus_L=yes
9716         ;;
9717       esac
9718       ;;
9719
9720     beos*)
9721       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9722         allow_undefined_flag=unsupported
9723         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9724         # support --undefined.  This deserves some investigation.  FIXME
9725         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9726       else
9727         ld_shlibs=no
9728       fi
9729       ;;
9730
9731     cygwin* | mingw* | pw32* | cegcc*)
9732       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9733       # as there is no search path for DLLs.
9734       hardcode_libdir_flag_spec='-L$libdir'
9735       export_dynamic_flag_spec='${wl}--export-all-symbols'
9736       allow_undefined_flag=unsupported
9737       always_export_symbols=no
9738       enable_shared_with_static_runtimes=yes
9739       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'
9740       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9741
9742       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9743         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9744         # If the export-symbols file already is a .def file (1st line
9745         # is EXPORTS), use it as is; otherwise, prepend...
9746         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9747           cp $export_symbols $output_objdir/$soname.def;
9748         else
9749           echo EXPORTS > $output_objdir/$soname.def;
9750           cat $export_symbols >> $output_objdir/$soname.def;
9751         fi~
9752         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9753       else
9754         ld_shlibs=no
9755       fi
9756       ;;
9757
9758     haiku*)
9759       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9760       link_all_deplibs=yes
9761       ;;
9762
9763     interix[3-9]*)
9764       hardcode_direct=no
9765       hardcode_shlibpath_var=no
9766       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9767       export_dynamic_flag_spec='${wl}-E'
9768       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9769       # Instead, shared libraries are loaded at an image base (0x10000000 by
9770       # default) and relocated if they conflict, which is a slow very memory
9771       # consuming and fragmenting process.  To avoid this, we pick a random,
9772       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9773       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9774       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9775       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'
9776       ;;
9777
9778     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9779       tmp_diet=no
9780       if test "$host_os" = linux-dietlibc; then
9781         case $cc_basename in
9782           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9783         esac
9784       fi
9785       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9786          && test "$tmp_diet" = no
9787       then
9788         tmp_addflag=' $pic_flag'
9789         tmp_sharedflag='-shared'
9790         case $cc_basename,$host_cpu in
9791         pgcc*)                          # Portland Group C compiler
9792           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'
9793           tmp_addflag=' $pic_flag'
9794           ;;
9795         pgf77* | pgf90* | pgf95* | pgfortran*)
9796                                         # Portland Group f77 and f90 compilers
9797           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'
9798           tmp_addflag=' $pic_flag -Mnomain' ;;
9799         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9800           tmp_addflag=' -i_dynamic' ;;
9801         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9802           tmp_addflag=' -i_dynamic -nofor_main' ;;
9803         ifc* | ifort*)                  # Intel Fortran compiler
9804           tmp_addflag=' -nofor_main' ;;
9805         lf95*)                          # Lahey Fortran 8.1
9806           whole_archive_flag_spec=
9807           tmp_sharedflag='--shared' ;;
9808         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9809           tmp_sharedflag='-qmkshrobj'
9810           tmp_addflag= ;;
9811         nvcc*)  # Cuda Compiler Driver 2.2
9812           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'
9813           compiler_needs_object=yes
9814           ;;
9815         esac
9816         case `$CC -V 2>&1 | sed 5q` in
9817         *Sun\ C*)                       # Sun C 5.9
9818           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'
9819           compiler_needs_object=yes
9820           tmp_sharedflag='-G' ;;
9821         *Sun\ F*)                       # Sun Fortran 8.3
9822           tmp_sharedflag='-G' ;;
9823         esac
9824         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9825
9826         if test "x$supports_anon_versioning" = xyes; then
9827           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9828             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9829             echo "local: *; };" >> $output_objdir/$libname.ver~
9830             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9831         fi
9832
9833         case $cc_basename in
9834         xlf* | bgf* | bgxlf* | mpixlf*)
9835           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9836           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9837           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9838           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9839           if test "x$supports_anon_versioning" = xyes; then
9840             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9841               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9842               echo "local: *; };" >> $output_objdir/$libname.ver~
9843               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9844           fi
9845           ;;
9846         esac
9847       else
9848         ld_shlibs=no
9849       fi
9850       ;;
9851
9852     netbsd* | netbsdelf*-gnu)
9853       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9854         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9855         wlarc=
9856       else
9857         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9858         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9859       fi
9860       ;;
9861
9862     solaris*)
9863       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9864         ld_shlibs=no
9865         cat <<_LT_EOF 1>&2
9866
9867 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9868 *** create shared libraries on Solaris systems.  Therefore, libtool
9869 *** is disabling shared libraries support.  We urge you to upgrade GNU
9870 *** binutils to release 2.9.1 or newer.  Another option is to modify
9871 *** your PATH or compiler configuration so that the native linker is
9872 *** used, and then restart.
9873
9874 _LT_EOF
9875       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9876         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9877         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9878       else
9879         ld_shlibs=no
9880       fi
9881       ;;
9882
9883     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9884       case `$LD -v 2>&1` in
9885         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9886         ld_shlibs=no
9887         cat <<_LT_EOF 1>&2
9888
9889 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9890 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9891 *** is disabling shared libraries support.  We urge you to upgrade GNU
9892 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9893 *** your PATH or compiler configuration so that the native linker is
9894 *** used, and then restart.
9895
9896 _LT_EOF
9897         ;;
9898         *)
9899           # For security reasons, it is highly recommended that you always
9900           # use absolute paths for naming shared libraries, and exclude the
9901           # DT_RUNPATH tag from executables and libraries.  But doing so
9902           # requires that you compile everything twice, which is a pain.
9903           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9904             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9905             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9906             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9907           else
9908             ld_shlibs=no
9909           fi
9910         ;;
9911       esac
9912       ;;
9913
9914     sunos4*)
9915       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9916       wlarc=
9917       hardcode_direct=yes
9918       hardcode_shlibpath_var=no
9919       ;;
9920
9921     *)
9922       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9923         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9924         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9925       else
9926         ld_shlibs=no
9927       fi
9928       ;;
9929     esac
9930
9931     if test "$ld_shlibs" = no; then
9932       runpath_var=
9933       hardcode_libdir_flag_spec=
9934       export_dynamic_flag_spec=
9935       whole_archive_flag_spec=
9936     fi
9937   else
9938     # PORTME fill in a description of your system's linker (not GNU ld)
9939     case $host_os in
9940     aix3*)
9941       allow_undefined_flag=unsupported
9942       always_export_symbols=yes
9943       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'
9944       # Note: this linker hardcodes the directories in LIBPATH if there
9945       # are no directories specified by -L.
9946       hardcode_minus_L=yes
9947       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9948         # Neither direct hardcoding nor static linking is supported with a
9949         # broken collect2.
9950         hardcode_direct=unsupported
9951       fi
9952       ;;
9953
9954     aix[4-9]*)
9955       if test "$host_cpu" = ia64; then
9956         # On IA64, the linker does run time linking by default, so we don't
9957         # have to do anything special.
9958         aix_use_runtimelinking=no
9959         exp_sym_flag='-Bexport'
9960         no_entry_flag=""
9961       else
9962         # If we're using GNU nm, then we don't want the "-C" option.
9963         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9964         # Also, AIX nm treats weak defined symbols like other global
9965         # defined symbols, whereas GNU nm marks them as "W".
9966         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9967           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'
9968         else
9969           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'
9970         fi
9971         aix_use_runtimelinking=no
9972
9973         # Test if we are trying to use run time linking or normal
9974         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9975         # need to do runtime linking.
9976         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9977           for ld_flag in $LDFLAGS; do
9978           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9979             aix_use_runtimelinking=yes
9980             break
9981           fi
9982           done
9983           ;;
9984         esac
9985
9986         exp_sym_flag='-bexport'
9987         no_entry_flag='-bnoentry'
9988       fi
9989
9990       # When large executables or shared objects are built, AIX ld can
9991       # have problems creating the table of contents.  If linking a library
9992       # or program results in "error TOC overflow" add -mminimal-toc to
9993       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9994       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9995
9996       archive_cmds=''
9997       hardcode_direct=yes
9998       hardcode_direct_absolute=yes
9999       hardcode_libdir_separator=':'
10000       link_all_deplibs=yes
10001       file_list_spec='${wl}-f,'
10002
10003       if test "$GCC" = yes; then
10004         case $host_os in aix4.[012]|aix4.[012].*)
10005         # We only want to do this on AIX 4.2 and lower, the check
10006         # below for broken collect2 doesn't work under 4.3+
10007           collect2name=`${CC} -print-prog-name=collect2`
10008           if test -f "$collect2name" &&
10009            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10010           then
10011           # We have reworked collect2
10012           :
10013           else
10014           # We have old collect2
10015           hardcode_direct=unsupported
10016           # It fails to find uninstalled libraries when the uninstalled
10017           # path is not listed in the libpath.  Setting hardcode_minus_L
10018           # to unsupported forces relinking
10019           hardcode_minus_L=yes
10020           hardcode_libdir_flag_spec='-L$libdir'
10021           hardcode_libdir_separator=
10022           fi
10023           ;;
10024         esac
10025         shared_flag='-shared'
10026         if test "$aix_use_runtimelinking" = yes; then
10027           shared_flag="$shared_flag "'${wl}-G'
10028         fi
10029         link_all_deplibs=no
10030       else
10031         # not using gcc
10032         if test "$host_cpu" = ia64; then
10033         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10034         # chokes on -Wl,-G. The following line is correct:
10035           shared_flag='-G'
10036         else
10037           if test "$aix_use_runtimelinking" = yes; then
10038             shared_flag='${wl}-G'
10039           else
10040             shared_flag='${wl}-bM:SRE'
10041           fi
10042         fi
10043       fi
10044
10045       export_dynamic_flag_spec='${wl}-bexpall'
10046       # It seems that -bexpall does not export symbols beginning with
10047       # underscore (_), so it is better to generate a list of symbols to export.
10048       always_export_symbols=yes
10049       if test "$aix_use_runtimelinking" = yes; then
10050         # Warning - without using the other runtime loading flags (-brtl),
10051         # -berok will link without error, but may produce a broken library.
10052         allow_undefined_flag='-berok'
10053         # Determine the default libpath from the value encoded in an
10054         # empty executable.
10055         if test "${lt_cv_aix_libpath+set}" = set; then
10056   aix_libpath=$lt_cv_aix_libpath
10057 else
10058   if ${lt_cv_aix_libpath_+:} false; then :
10059   $as_echo_n "(cached) " >&6
10060 else
10061   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10062 /* end confdefs.h.  */
10063
10064 int
10065 main ()
10066 {
10067
10068   ;
10069   return 0;
10070 }
10071 _ACEOF
10072 if ac_fn_c_try_link "$LINENO"; then :
10073
10074   lt_aix_libpath_sed='
10075       /Import File Strings/,/^$/ {
10076           /^0/ {
10077               s/^0  *\([^ ]*\) *$/\1/
10078               p
10079           }
10080       }'
10081   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10082   # Check for a 64-bit object if we didn't find anything.
10083   if test -z "$lt_cv_aix_libpath_"; then
10084     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10085   fi
10086 fi
10087 rm -f core conftest.err conftest.$ac_objext \
10088     conftest$ac_exeext conftest.$ac_ext
10089   if test -z "$lt_cv_aix_libpath_"; then
10090     lt_cv_aix_libpath_="/usr/lib:/lib"
10091   fi
10092
10093 fi
10094
10095   aix_libpath=$lt_cv_aix_libpath_
10096 fi
10097
10098         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10099         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"
10100       else
10101         if test "$host_cpu" = ia64; then
10102           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10103           allow_undefined_flag="-z nodefs"
10104           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"
10105         else
10106          # Determine the default libpath from the value encoded in an
10107          # empty executable.
10108          if test "${lt_cv_aix_libpath+set}" = set; then
10109   aix_libpath=$lt_cv_aix_libpath
10110 else
10111   if ${lt_cv_aix_libpath_+:} false; then :
10112   $as_echo_n "(cached) " >&6
10113 else
10114   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10115 /* end confdefs.h.  */
10116
10117 int
10118 main ()
10119 {
10120
10121   ;
10122   return 0;
10123 }
10124 _ACEOF
10125 if ac_fn_c_try_link "$LINENO"; then :
10126
10127   lt_aix_libpath_sed='
10128       /Import File Strings/,/^$/ {
10129           /^0/ {
10130               s/^0  *\([^ ]*\) *$/\1/
10131               p
10132           }
10133       }'
10134   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10135   # Check for a 64-bit object if we didn't find anything.
10136   if test -z "$lt_cv_aix_libpath_"; then
10137     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10138   fi
10139 fi
10140 rm -f core conftest.err conftest.$ac_objext \
10141     conftest$ac_exeext conftest.$ac_ext
10142   if test -z "$lt_cv_aix_libpath_"; then
10143     lt_cv_aix_libpath_="/usr/lib:/lib"
10144   fi
10145
10146 fi
10147
10148   aix_libpath=$lt_cv_aix_libpath_
10149 fi
10150
10151          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10152           # Warning - without using the other run time loading flags,
10153           # -berok will link without error, but may produce a broken library.
10154           no_undefined_flag=' ${wl}-bernotok'
10155           allow_undefined_flag=' ${wl}-berok'
10156           if test "$with_gnu_ld" = yes; then
10157             # We only use this code for GNU lds that support --whole-archive.
10158             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10159           else
10160             # Exported symbols can be pulled into shared objects from archives
10161             whole_archive_flag_spec='$convenience'
10162           fi
10163           archive_cmds_need_lc=yes
10164           # This is similar to how AIX traditionally builds its shared libraries.
10165           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'
10166         fi
10167       fi
10168       ;;
10169
10170     amigaos*)
10171       case $host_cpu in
10172       powerpc)
10173             # see comment about AmigaOS4 .so support
10174             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10175             archive_expsym_cmds=''
10176         ;;
10177       m68k)
10178             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)'
10179             hardcode_libdir_flag_spec='-L$libdir'
10180             hardcode_minus_L=yes
10181         ;;
10182       esac
10183       ;;
10184
10185     bsdi[45]*)
10186       export_dynamic_flag_spec=-rdynamic
10187       ;;
10188
10189     cygwin* | mingw* | pw32* | cegcc*)
10190       # When not using gcc, we currently assume that we are using
10191       # Microsoft Visual C++.
10192       # hardcode_libdir_flag_spec is actually meaningless, as there is
10193       # no search path for DLLs.
10194       case $cc_basename in
10195       cl*)
10196         # Native MSVC
10197         hardcode_libdir_flag_spec=' '
10198         allow_undefined_flag=unsupported
10199         always_export_symbols=yes
10200         file_list_spec='@'
10201         # Tell ltmain to make .lib files, not .a files.
10202         libext=lib
10203         # Tell ltmain to make .dll files, not .so files.
10204         shrext_cmds=".dll"
10205         # FIXME: Setting linknames here is a bad hack.
10206         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10207         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10208             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10209           else
10210             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10211           fi~
10212           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10213           linknames='
10214         # The linker will not automatically build a static lib if we build a DLL.
10215         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10216         enable_shared_with_static_runtimes=yes
10217         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10218         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10219         # Don't use ranlib
10220         old_postinstall_cmds='chmod 644 $oldlib'
10221         postlink_cmds='lt_outputfile="@OUTPUT@"~
10222           lt_tool_outputfile="@TOOL_OUTPUT@"~
10223           case $lt_outputfile in
10224             *.exe|*.EXE) ;;
10225             *)
10226               lt_outputfile="$lt_outputfile.exe"
10227               lt_tool_outputfile="$lt_tool_outputfile.exe"
10228               ;;
10229           esac~
10230           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10231             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10232             $RM "$lt_outputfile.manifest";
10233           fi'
10234         ;;
10235       *)
10236         # Assume MSVC wrapper
10237         hardcode_libdir_flag_spec=' '
10238         allow_undefined_flag=unsupported
10239         # Tell ltmain to make .lib files, not .a files.
10240         libext=lib
10241         # Tell ltmain to make .dll files, not .so files.
10242         shrext_cmds=".dll"
10243         # FIXME: Setting linknames here is a bad hack.
10244         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10245         # The linker will automatically build a .lib file if we build a DLL.
10246         old_archive_from_new_cmds='true'
10247         # FIXME: Should let the user specify the lib program.
10248         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10249         enable_shared_with_static_runtimes=yes
10250         ;;
10251       esac
10252       ;;
10253
10254     darwin* | rhapsody*)
10255
10256
10257   archive_cmds_need_lc=no
10258   hardcode_direct=no
10259   hardcode_automatic=yes
10260   hardcode_shlibpath_var=unsupported
10261   if test "$lt_cv_ld_force_load" = "yes"; then
10262     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\"`'
10263
10264   else
10265     whole_archive_flag_spec=''
10266   fi
10267   link_all_deplibs=yes
10268   allow_undefined_flag="$_lt_dar_allow_undefined"
10269   case $cc_basename in
10270      ifort*) _lt_dar_can_shared=yes ;;
10271      *) _lt_dar_can_shared=$GCC ;;
10272   esac
10273   if test "$_lt_dar_can_shared" = "yes"; then
10274     output_verbose_link_cmd=func_echo_all
10275     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10276     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10277     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}"
10278     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}"
10279
10280   else
10281   ld_shlibs=no
10282   fi
10283
10284       ;;
10285
10286     dgux*)
10287       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10288       hardcode_libdir_flag_spec='-L$libdir'
10289       hardcode_shlibpath_var=no
10290       ;;
10291
10292     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10293     # support.  Future versions do this automatically, but an explicit c++rt0.o
10294     # does not break anything, and helps significantly (at the cost of a little
10295     # extra space).
10296     freebsd2.2*)
10297       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10298       hardcode_libdir_flag_spec='-R$libdir'
10299       hardcode_direct=yes
10300       hardcode_shlibpath_var=no
10301       ;;
10302
10303     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10304     freebsd2.*)
10305       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10306       hardcode_direct=yes
10307       hardcode_minus_L=yes
10308       hardcode_shlibpath_var=no
10309       ;;
10310
10311     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10312     freebsd* | dragonfly*)
10313       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10314       hardcode_libdir_flag_spec='-R$libdir'
10315       hardcode_direct=yes
10316       hardcode_shlibpath_var=no
10317       ;;
10318
10319     hpux9*)
10320       if test "$GCC" = yes; then
10321         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'
10322       else
10323         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'
10324       fi
10325       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10326       hardcode_libdir_separator=:
10327       hardcode_direct=yes
10328
10329       # hardcode_minus_L: Not really in the search PATH,
10330       # but as the default location of the library.
10331       hardcode_minus_L=yes
10332       export_dynamic_flag_spec='${wl}-E'
10333       ;;
10334
10335     hpux10*)
10336       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10337         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10338       else
10339         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10340       fi
10341       if test "$with_gnu_ld" = no; then
10342         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10343         hardcode_libdir_separator=:
10344         hardcode_direct=yes
10345         hardcode_direct_absolute=yes
10346         export_dynamic_flag_spec='${wl}-E'
10347         # hardcode_minus_L: Not really in the search PATH,
10348         # but as the default location of the library.
10349         hardcode_minus_L=yes
10350       fi
10351       ;;
10352
10353     hpux11*)
10354       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10355         case $host_cpu in
10356         hppa*64*)
10357           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10358           ;;
10359         ia64*)
10360           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10361           ;;
10362         *)
10363           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10364           ;;
10365         esac
10366       else
10367         case $host_cpu in
10368         hppa*64*)
10369           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10370           ;;
10371         ia64*)
10372           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10373           ;;
10374         *)
10375
10376           # Older versions of the 11.00 compiler do not understand -b yet
10377           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10378           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10379 $as_echo_n "checking if $CC understands -b... " >&6; }
10380 if ${lt_cv_prog_compiler__b+:} false; then :
10381   $as_echo_n "(cached) " >&6
10382 else
10383   lt_cv_prog_compiler__b=no
10384    save_LDFLAGS="$LDFLAGS"
10385    LDFLAGS="$LDFLAGS -b"
10386    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10387    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10388      # The linker can only warn and ignore the option if not recognized
10389      # So say no if there are warnings
10390      if test -s conftest.err; then
10391        # Append any errors to the config.log.
10392        cat conftest.err 1>&5
10393        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10394        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10395        if diff conftest.exp conftest.er2 >/dev/null; then
10396          lt_cv_prog_compiler__b=yes
10397        fi
10398      else
10399        lt_cv_prog_compiler__b=yes
10400      fi
10401    fi
10402    $RM -r conftest*
10403    LDFLAGS="$save_LDFLAGS"
10404
10405 fi
10406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10407 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10408
10409 if test x"$lt_cv_prog_compiler__b" = xyes; then
10410     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10411 else
10412     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10413 fi
10414
10415           ;;
10416         esac
10417       fi
10418       if test "$with_gnu_ld" = no; then
10419         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10420         hardcode_libdir_separator=:
10421
10422         case $host_cpu in
10423         hppa*64*|ia64*)
10424           hardcode_direct=no
10425           hardcode_shlibpath_var=no
10426           ;;
10427         *)
10428           hardcode_direct=yes
10429           hardcode_direct_absolute=yes
10430           export_dynamic_flag_spec='${wl}-E'
10431
10432           # hardcode_minus_L: Not really in the search PATH,
10433           # but as the default location of the library.
10434           hardcode_minus_L=yes
10435           ;;
10436         esac
10437       fi
10438       ;;
10439
10440     irix5* | irix6* | nonstopux*)
10441       if test "$GCC" = yes; then
10442         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'
10443         # Try to use the -exported_symbol ld option, if it does not
10444         # work, assume that -exports_file does not work either and
10445         # implicitly export all symbols.
10446         # This should be the same for all languages, so no per-tag cache variable.
10447         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10448 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10449 if ${lt_cv_irix_exported_symbol+:} false; then :
10450   $as_echo_n "(cached) " >&6
10451 else
10452   save_LDFLAGS="$LDFLAGS"
10453            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10454            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10455 /* end confdefs.h.  */
10456 int foo (void) { return 0; }
10457 _ACEOF
10458 if ac_fn_c_try_link "$LINENO"; then :
10459   lt_cv_irix_exported_symbol=yes
10460 else
10461   lt_cv_irix_exported_symbol=no
10462 fi
10463 rm -f core conftest.err conftest.$ac_objext \
10464     conftest$ac_exeext conftest.$ac_ext
10465            LDFLAGS="$save_LDFLAGS"
10466 fi
10467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10468 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10469         if test "$lt_cv_irix_exported_symbol" = yes; then
10470           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'
10471         fi
10472       else
10473         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'
10474         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'
10475       fi
10476       archive_cmds_need_lc='no'
10477       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10478       hardcode_libdir_separator=:
10479       inherit_rpath=yes
10480       link_all_deplibs=yes
10481       ;;
10482
10483     netbsd* | netbsdelf*-gnu)
10484       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10485         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10486       else
10487         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10488       fi
10489       hardcode_libdir_flag_spec='-R$libdir'
10490       hardcode_direct=yes
10491       hardcode_shlibpath_var=no
10492       ;;
10493
10494     newsos6)
10495       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10496       hardcode_direct=yes
10497       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10498       hardcode_libdir_separator=:
10499       hardcode_shlibpath_var=no
10500       ;;
10501
10502     *nto* | *qnx*)
10503       ;;
10504
10505     openbsd*)
10506       if test -f /usr/libexec/ld.so; then
10507         hardcode_direct=yes
10508         hardcode_shlibpath_var=no
10509         hardcode_direct_absolute=yes
10510         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10511           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10512           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10513           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10514           export_dynamic_flag_spec='${wl}-E'
10515         else
10516           case $host_os in
10517            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10518              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10519              hardcode_libdir_flag_spec='-R$libdir'
10520              ;;
10521            *)
10522              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10523              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10524              ;;
10525           esac
10526         fi
10527       else
10528         ld_shlibs=no
10529       fi
10530       ;;
10531
10532     os2*)
10533       hardcode_libdir_flag_spec='-L$libdir'
10534       hardcode_minus_L=yes
10535       allow_undefined_flag=unsupported
10536       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'
10537       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10538       ;;
10539
10540     osf3*)
10541       if test "$GCC" = yes; then
10542         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10543         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'
10544       else
10545         allow_undefined_flag=' -expect_unresolved \*'
10546         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'
10547       fi
10548       archive_cmds_need_lc='no'
10549       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10550       hardcode_libdir_separator=:
10551       ;;
10552
10553     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10554       if test "$GCC" = yes; then
10555         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10556         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'
10557         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10558       else
10559         allow_undefined_flag=' -expect_unresolved \*'
10560         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'
10561         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~
10562         $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'
10563
10564         # Both c and cxx compiler support -rpath directly
10565         hardcode_libdir_flag_spec='-rpath $libdir'
10566       fi
10567       archive_cmds_need_lc='no'
10568       hardcode_libdir_separator=:
10569       ;;
10570
10571     solaris*)
10572       no_undefined_flag=' -z defs'
10573       if test "$GCC" = yes; then
10574         wlarc='${wl}'
10575         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10576         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10577           $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'
10578       else
10579         case `$CC -V 2>&1` in
10580         *"Compilers 5.0"*)
10581           wlarc=''
10582           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10583           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10584           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10585           ;;
10586         *)
10587           wlarc='${wl}'
10588           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10589           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10590           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10591           ;;
10592         esac
10593       fi
10594       hardcode_libdir_flag_spec='-R$libdir'
10595       hardcode_shlibpath_var=no
10596       case $host_os in
10597       solaris2.[0-5] | solaris2.[0-5].*) ;;
10598       *)
10599         # The compiler driver will combine and reorder linker options,
10600         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10601         # but is careful enough not to reorder.
10602         # Supported since Solaris 2.6 (maybe 2.5.1?)
10603         if test "$GCC" = yes; then
10604           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10605         else
10606           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10607         fi
10608         ;;
10609       esac
10610       link_all_deplibs=yes
10611       ;;
10612
10613     sunos4*)
10614       if test "x$host_vendor" = xsequent; then
10615         # Use $CC to link under sequent, because it throws in some extra .o
10616         # files that make .init and .fini sections work.
10617         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10618       else
10619         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10620       fi
10621       hardcode_libdir_flag_spec='-L$libdir'
10622       hardcode_direct=yes
10623       hardcode_minus_L=yes
10624       hardcode_shlibpath_var=no
10625       ;;
10626
10627     sysv4)
10628       case $host_vendor in
10629         sni)
10630           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10631           hardcode_direct=yes # is this really true???
10632         ;;
10633         siemens)
10634           ## LD is ld it makes a PLAMLIB
10635           ## CC just makes a GrossModule.
10636           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10637           reload_cmds='$CC -r -o $output$reload_objs'
10638           hardcode_direct=no
10639         ;;
10640         motorola)
10641           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10642           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10643         ;;
10644       esac
10645       runpath_var='LD_RUN_PATH'
10646       hardcode_shlibpath_var=no
10647       ;;
10648
10649     sysv4.3*)
10650       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10651       hardcode_shlibpath_var=no
10652       export_dynamic_flag_spec='-Bexport'
10653       ;;
10654
10655     sysv4*MP*)
10656       if test -d /usr/nec; then
10657         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10658         hardcode_shlibpath_var=no
10659         runpath_var=LD_RUN_PATH
10660         hardcode_runpath_var=yes
10661         ld_shlibs=yes
10662       fi
10663       ;;
10664
10665     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10666       no_undefined_flag='${wl}-z,text'
10667       archive_cmds_need_lc=no
10668       hardcode_shlibpath_var=no
10669       runpath_var='LD_RUN_PATH'
10670
10671       if test "$GCC" = yes; then
10672         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10673         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10674       else
10675         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10676         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10677       fi
10678       ;;
10679
10680     sysv5* | sco3.2v5* | sco5v6*)
10681       # Note: We can NOT use -z defs as we might desire, because we do not
10682       # link with -lc, and that would cause any symbols used from libc to
10683       # always be unresolved, which means just about no library would
10684       # ever link correctly.  If we're not using GNU ld we use -z text
10685       # though, which does catch some bad symbols but isn't as heavy-handed
10686       # as -z defs.
10687       no_undefined_flag='${wl}-z,text'
10688       allow_undefined_flag='${wl}-z,nodefs'
10689       archive_cmds_need_lc=no
10690       hardcode_shlibpath_var=no
10691       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10692       hardcode_libdir_separator=':'
10693       link_all_deplibs=yes
10694       export_dynamic_flag_spec='${wl}-Bexport'
10695       runpath_var='LD_RUN_PATH'
10696
10697       if test "$GCC" = yes; then
10698         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10699         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10700       else
10701         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10702         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10703       fi
10704       ;;
10705
10706     uts4*)
10707       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10708       hardcode_libdir_flag_spec='-L$libdir'
10709       hardcode_shlibpath_var=no
10710       ;;
10711
10712     *)
10713       ld_shlibs=no
10714       ;;
10715     esac
10716
10717     if test x$host_vendor = xsni; then
10718       case $host in
10719       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10720         export_dynamic_flag_spec='${wl}-Blargedynsym'
10721         ;;
10722       esac
10723     fi
10724   fi
10725
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10727 $as_echo "$ld_shlibs" >&6; }
10728 test "$ld_shlibs" = no && can_build_shared=no
10729
10730 with_gnu_ld=$with_gnu_ld
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746 #
10747 # Do we need to explicitly link libc?
10748 #
10749 case "x$archive_cmds_need_lc" in
10750 x|xyes)
10751   # Assume -lc should be added
10752   archive_cmds_need_lc=yes
10753
10754   if test "$enable_shared" = yes && test "$GCC" = yes; then
10755     case $archive_cmds in
10756     *'~'*)
10757       # FIXME: we may have to deal with multi-command sequences.
10758       ;;
10759     '$CC '*)
10760       # Test whether the compiler implicitly links with -lc since on some
10761       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10762       # to ld, don't add -lc before -lgcc.
10763       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10764 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10765 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10766   $as_echo_n "(cached) " >&6
10767 else
10768   $RM conftest*
10769         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10770
10771         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10772   (eval $ac_compile) 2>&5
10773   ac_status=$?
10774   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10775   test $ac_status = 0; } 2>conftest.err; then
10776           soname=conftest
10777           lib=conftest
10778           libobjs=conftest.$ac_objext
10779           deplibs=
10780           wl=$lt_prog_compiler_wl
10781           pic_flag=$lt_prog_compiler_pic
10782           compiler_flags=-v
10783           linker_flags=-v
10784           verstring=
10785           output_objdir=.
10786           libname=conftest
10787           lt_save_allow_undefined_flag=$allow_undefined_flag
10788           allow_undefined_flag=
10789           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10790   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10791   ac_status=$?
10792   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10793   test $ac_status = 0; }
10794           then
10795             lt_cv_archive_cmds_need_lc=no
10796           else
10797             lt_cv_archive_cmds_need_lc=yes
10798           fi
10799           allow_undefined_flag=$lt_save_allow_undefined_flag
10800         else
10801           cat conftest.err 1>&5
10802         fi
10803         $RM conftest*
10804
10805 fi
10806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10807 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10808       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10809       ;;
10810     esac
10811   fi
10812   ;;
10813 esac
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10967 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10968
10969 if test "$GCC" = yes; then
10970   case $host_os in
10971     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10972     *) lt_awk_arg="/^libraries:/" ;;
10973   esac
10974   case $host_os in
10975     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10976     *) lt_sed_strip_eq="s,=/,/,g" ;;
10977   esac
10978   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10979   case $lt_search_path_spec in
10980   *\;*)
10981     # if the path contains ";" then we assume it to be the separator
10982     # otherwise default to the standard path separator (i.e. ":") - it is
10983     # assumed that no part of a normal pathname contains ";" but that should
10984     # okay in the real world where ";" in dirpaths is itself problematic.
10985     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10986     ;;
10987   *)
10988     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10989     ;;
10990   esac
10991   # Ok, now we have the path, separated by spaces, we can step through it
10992   # and add multilib dir if necessary.
10993   lt_tmp_lt_search_path_spec=
10994   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10995   for lt_sys_path in $lt_search_path_spec; do
10996     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10997       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10998     else
10999       test -d "$lt_sys_path" && \
11000         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11001     fi
11002   done
11003   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11004 BEGIN {RS=" "; FS="/|\n";} {
11005   lt_foo="";
11006   lt_count=0;
11007   for (lt_i = NF; lt_i > 0; lt_i--) {
11008     if ($lt_i != "" && $lt_i != ".") {
11009       if ($lt_i == "..") {
11010         lt_count++;
11011       } else {
11012         if (lt_count == 0) {
11013           lt_foo="/" $lt_i lt_foo;
11014         } else {
11015           lt_count--;
11016         }
11017       }
11018     }
11019   }
11020   if (lt_foo != "") { lt_freq[lt_foo]++; }
11021   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11022 }'`
11023   # AWK program above erroneously prepends '/' to C:/dos/paths
11024   # for these hosts.
11025   case $host_os in
11026     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11027       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11028   esac
11029   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11030 else
11031   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11032 fi
11033 library_names_spec=
11034 libname_spec='lib$name'
11035 soname_spec=
11036 shrext_cmds=".so"
11037 postinstall_cmds=
11038 postuninstall_cmds=
11039 finish_cmds=
11040 finish_eval=
11041 shlibpath_var=
11042 shlibpath_overrides_runpath=unknown
11043 version_type=none
11044 dynamic_linker="$host_os ld.so"
11045 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11046 need_lib_prefix=unknown
11047 hardcode_into_libs=no
11048
11049 # when you set need_version to no, make sure it does not cause -set_version
11050 # flags to be left without arguments
11051 need_version=unknown
11052
11053 case $host_os in
11054 aix3*)
11055   version_type=linux # correct to gnu/linux during the next big refactor
11056   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11057   shlibpath_var=LIBPATH
11058
11059   # AIX 3 has no versioning support, so we append a major version to the name.
11060   soname_spec='${libname}${release}${shared_ext}$major'
11061   ;;
11062
11063 aix[4-9]*)
11064   version_type=linux # correct to gnu/linux during the next big refactor
11065   need_lib_prefix=no
11066   need_version=no
11067   hardcode_into_libs=yes
11068   if test "$host_cpu" = ia64; then
11069     # AIX 5 supports IA64
11070     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11071     shlibpath_var=LD_LIBRARY_PATH
11072   else
11073     # With GCC up to 2.95.x, collect2 would create an import file
11074     # for dependence libraries.  The import file would start with
11075     # the line `#! .'.  This would cause the generated library to
11076     # depend on `.', always an invalid library.  This was fixed in
11077     # development snapshots of GCC prior to 3.0.
11078     case $host_os in
11079       aix4 | aix4.[01] | aix4.[01].*)
11080       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11081            echo ' yes '
11082            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11083         :
11084       else
11085         can_build_shared=no
11086       fi
11087       ;;
11088     esac
11089     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11090     # soname into executable. Probably we can add versioning support to
11091     # collect2, so additional links can be useful in future.
11092     if test "$aix_use_runtimelinking" = yes; then
11093       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11094       # instead of lib<name>.a to let people know that these are not
11095       # typical AIX shared libraries.
11096       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11097     else
11098       # We preserve .a as extension for shared libraries through AIX4.2
11099       # and later when we are not doing run time linking.
11100       library_names_spec='${libname}${release}.a $libname.a'
11101       soname_spec='${libname}${release}${shared_ext}$major'
11102     fi
11103     shlibpath_var=LIBPATH
11104   fi
11105   ;;
11106
11107 amigaos*)
11108   case $host_cpu in
11109   powerpc)
11110     # Since July 2007 AmigaOS4 officially supports .so libraries.
11111     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11112     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11113     ;;
11114   m68k)
11115     library_names_spec='$libname.ixlibrary $libname.a'
11116     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11117     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'
11118     ;;
11119   esac
11120   ;;
11121
11122 beos*)
11123   library_names_spec='${libname}${shared_ext}'
11124   dynamic_linker="$host_os ld.so"
11125   shlibpath_var=LIBRARY_PATH
11126   ;;
11127
11128 bsdi[45]*)
11129   version_type=linux # correct to gnu/linux during the next big refactor
11130   need_version=no
11131   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11132   soname_spec='${libname}${release}${shared_ext}$major'
11133   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11134   shlibpath_var=LD_LIBRARY_PATH
11135   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11136   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11137   # the default ld.so.conf also contains /usr/contrib/lib and
11138   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11139   # libtool to hard-code these into programs
11140   ;;
11141
11142 cygwin* | mingw* | pw32* | cegcc*)
11143   version_type=windows
11144   shrext_cmds=".dll"
11145   need_version=no
11146   need_lib_prefix=no
11147
11148   case $GCC,$cc_basename in
11149   yes,*)
11150     # gcc
11151     library_names_spec='$libname.dll.a'
11152     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11153     postinstall_cmds='base_file=`basename \${file}`~
11154       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11155       dldir=$destdir/`dirname \$dlpath`~
11156       test -d \$dldir || mkdir -p \$dldir~
11157       $install_prog $dir/$dlname \$dldir/$dlname~
11158       chmod a+x \$dldir/$dlname~
11159       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11160         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11161       fi'
11162     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11163       dlpath=$dir/\$dldll~
11164        $RM \$dlpath'
11165     shlibpath_overrides_runpath=yes
11166
11167     case $host_os in
11168     cygwin*)
11169       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11170       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11171
11172       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11173       ;;
11174     mingw* | cegcc*)
11175       # MinGW DLLs use traditional 'lib' prefix
11176       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11177       ;;
11178     pw32*)
11179       # pw32 DLLs use 'pw' prefix rather than 'lib'
11180       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11181       ;;
11182     esac
11183     dynamic_linker='Win32 ld.exe'
11184     ;;
11185
11186   *,cl*)
11187     # Native MSVC
11188     libname_spec='$name'
11189     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11190     library_names_spec='${libname}.dll.lib'
11191
11192     case $build_os in
11193     mingw*)
11194       sys_lib_search_path_spec=
11195       lt_save_ifs=$IFS
11196       IFS=';'
11197       for lt_path in $LIB
11198       do
11199         IFS=$lt_save_ifs
11200         # Let DOS variable expansion print the short 8.3 style file name.
11201         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11202         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11203       done
11204       IFS=$lt_save_ifs
11205       # Convert to MSYS style.
11206       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11207       ;;
11208     cygwin*)
11209       # Convert to unix form, then to dos form, then back to unix form
11210       # but this time dos style (no spaces!) so that the unix form looks
11211       # like /cygdrive/c/PROGRA~1:/cygdr...
11212       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11213       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11214       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11215       ;;
11216     *)
11217       sys_lib_search_path_spec="$LIB"
11218       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11219         # It is most probably a Windows format PATH.
11220         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11221       else
11222         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11223       fi
11224       # FIXME: find the short name or the path components, as spaces are
11225       # common. (e.g. "Program Files" -> "PROGRA~1")
11226       ;;
11227     esac
11228
11229     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11230     postinstall_cmds='base_file=`basename \${file}`~
11231       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11232       dldir=$destdir/`dirname \$dlpath`~
11233       test -d \$dldir || mkdir -p \$dldir~
11234       $install_prog $dir/$dlname \$dldir/$dlname'
11235     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11236       dlpath=$dir/\$dldll~
11237        $RM \$dlpath'
11238     shlibpath_overrides_runpath=yes
11239     dynamic_linker='Win32 link.exe'
11240     ;;
11241
11242   *)
11243     # Assume MSVC wrapper
11244     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11245     dynamic_linker='Win32 ld.exe'
11246     ;;
11247   esac
11248   # FIXME: first we should search . and the directory the executable is in
11249   shlibpath_var=PATH
11250   ;;
11251
11252 darwin* | rhapsody*)
11253   dynamic_linker="$host_os dyld"
11254   version_type=darwin
11255   need_lib_prefix=no
11256   need_version=no
11257   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11258   soname_spec='${libname}${release}${major}$shared_ext'
11259   shlibpath_overrides_runpath=yes
11260   shlibpath_var=DYLD_LIBRARY_PATH
11261   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11262
11263   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11264   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11265   ;;
11266
11267 dgux*)
11268   version_type=linux # correct to gnu/linux during the next big refactor
11269   need_lib_prefix=no
11270   need_version=no
11271   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11272   soname_spec='${libname}${release}${shared_ext}$major'
11273   shlibpath_var=LD_LIBRARY_PATH
11274   ;;
11275
11276 freebsd* | dragonfly*)
11277   # DragonFly does not have aout.  When/if they implement a new
11278   # versioning mechanism, adjust this.
11279   if test -x /usr/bin/objformat; then
11280     objformat=`/usr/bin/objformat`
11281   else
11282     case $host_os in
11283     freebsd[23].*) objformat=aout ;;
11284     *) objformat=elf ;;
11285     esac
11286   fi
11287   version_type=freebsd-$objformat
11288   case $version_type in
11289     freebsd-elf*)
11290       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11291       need_version=no
11292       need_lib_prefix=no
11293       ;;
11294     freebsd-*)
11295       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11296       need_version=yes
11297       ;;
11298   esac
11299   shlibpath_var=LD_LIBRARY_PATH
11300   case $host_os in
11301   freebsd2.*)
11302     shlibpath_overrides_runpath=yes
11303     ;;
11304   freebsd3.[01]* | freebsdelf3.[01]*)
11305     shlibpath_overrides_runpath=yes
11306     hardcode_into_libs=yes
11307     ;;
11308   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11309   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11310     shlibpath_overrides_runpath=no
11311     hardcode_into_libs=yes
11312     ;;
11313   *) # from 4.6 on, and DragonFly
11314     shlibpath_overrides_runpath=yes
11315     hardcode_into_libs=yes
11316     ;;
11317   esac
11318   ;;
11319
11320 gnu*)
11321   version_type=linux # correct to gnu/linux during the next big refactor
11322   need_lib_prefix=no
11323   need_version=no
11324   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11325   soname_spec='${libname}${release}${shared_ext}$major'
11326   shlibpath_var=LD_LIBRARY_PATH
11327   shlibpath_overrides_runpath=no
11328   hardcode_into_libs=yes
11329   ;;
11330
11331 haiku*)
11332   version_type=linux # correct to gnu/linux during the next big refactor
11333   need_lib_prefix=no
11334   need_version=no
11335   dynamic_linker="$host_os runtime_loader"
11336   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11337   soname_spec='${libname}${release}${shared_ext}$major'
11338   shlibpath_var=LIBRARY_PATH
11339   shlibpath_overrides_runpath=yes
11340   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11341   hardcode_into_libs=yes
11342   ;;
11343
11344 hpux9* | hpux10* | hpux11*)
11345   # Give a soname corresponding to the major version so that dld.sl refuses to
11346   # link against other versions.
11347   version_type=sunos
11348   need_lib_prefix=no
11349   need_version=no
11350   case $host_cpu in
11351   ia64*)
11352     shrext_cmds='.so'
11353     hardcode_into_libs=yes
11354     dynamic_linker="$host_os dld.so"
11355     shlibpath_var=LD_LIBRARY_PATH
11356     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11357     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11358     soname_spec='${libname}${release}${shared_ext}$major'
11359     if test "X$HPUX_IA64_MODE" = X32; then
11360       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11361     else
11362       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11363     fi
11364     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11365     ;;
11366   hppa*64*)
11367     shrext_cmds='.sl'
11368     hardcode_into_libs=yes
11369     dynamic_linker="$host_os dld.sl"
11370     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11371     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11372     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11373     soname_spec='${libname}${release}${shared_ext}$major'
11374     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11375     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11376     ;;
11377   *)
11378     shrext_cmds='.sl'
11379     dynamic_linker="$host_os dld.sl"
11380     shlibpath_var=SHLIB_PATH
11381     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11382     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11383     soname_spec='${libname}${release}${shared_ext}$major'
11384     ;;
11385   esac
11386   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11387   postinstall_cmds='chmod 555 $lib'
11388   # or fails outright, so override atomically:
11389   install_override_mode=555
11390   ;;
11391
11392 interix[3-9]*)
11393   version_type=linux # correct to gnu/linux during the next big refactor
11394   need_lib_prefix=no
11395   need_version=no
11396   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11397   soname_spec='${libname}${release}${shared_ext}$major'
11398   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11399   shlibpath_var=LD_LIBRARY_PATH
11400   shlibpath_overrides_runpath=no
11401   hardcode_into_libs=yes
11402   ;;
11403
11404 irix5* | irix6* | nonstopux*)
11405   case $host_os in
11406     nonstopux*) version_type=nonstopux ;;
11407     *)
11408         if test "$lt_cv_prog_gnu_ld" = yes; then
11409                 version_type=linux # correct to gnu/linux during the next big refactor
11410         else
11411                 version_type=irix
11412         fi ;;
11413   esac
11414   need_lib_prefix=no
11415   need_version=no
11416   soname_spec='${libname}${release}${shared_ext}$major'
11417   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11418   case $host_os in
11419   irix5* | nonstopux*)
11420     libsuff= shlibsuff=
11421     ;;
11422   *)
11423     case $LD in # libtool.m4 will add one of these switches to LD
11424     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11425       libsuff= shlibsuff= libmagic=32-bit;;
11426     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11427       libsuff=32 shlibsuff=N32 libmagic=N32;;
11428     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11429       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11430     *) libsuff= shlibsuff= libmagic=never-match;;
11431     esac
11432     ;;
11433   esac
11434   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11435   shlibpath_overrides_runpath=no
11436   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11437   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11438   hardcode_into_libs=yes
11439   ;;
11440
11441 # No shared lib support for Linux oldld, aout, or coff.
11442 linux*oldld* | linux*aout* | linux*coff*)
11443   dynamic_linker=no
11444   ;;
11445
11446 # This must be glibc/ELF.
11447 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11448   version_type=linux # correct to gnu/linux during the next big refactor
11449   need_lib_prefix=no
11450   need_version=no
11451   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11452   soname_spec='${libname}${release}${shared_ext}$major'
11453   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11454   shlibpath_var=LD_LIBRARY_PATH
11455   shlibpath_overrides_runpath=no
11456
11457   # Some binutils ld are patched to set DT_RUNPATH
11458   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11459   $as_echo_n "(cached) " >&6
11460 else
11461   lt_cv_shlibpath_overrides_runpath=no
11462     save_LDFLAGS=$LDFLAGS
11463     save_libdir=$libdir
11464     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11465          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11466     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11467 /* end confdefs.h.  */
11468
11469 int
11470 main ()
11471 {
11472
11473   ;
11474   return 0;
11475 }
11476 _ACEOF
11477 if ac_fn_c_try_link "$LINENO"; then :
11478   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11479   lt_cv_shlibpath_overrides_runpath=yes
11480 fi
11481 fi
11482 rm -f core conftest.err conftest.$ac_objext \
11483     conftest$ac_exeext conftest.$ac_ext
11484     LDFLAGS=$save_LDFLAGS
11485     libdir=$save_libdir
11486
11487 fi
11488
11489   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11490
11491   # This implies no fast_install, which is unacceptable.
11492   # Some rework will be needed to allow for fast_install
11493   # before this can be enabled.
11494   hardcode_into_libs=yes
11495
11496   # Append ld.so.conf contents to the search path
11497   if test -f /etc/ld.so.conf; then
11498     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' ' '`
11499     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11500   fi
11501
11502   # We used to test for /lib/ld.so.1 and disable shared libraries on
11503   # powerpc, because MkLinux only supported shared libraries with the
11504   # GNU dynamic linker.  Since this was broken with cross compilers,
11505   # most powerpc-linux boxes support dynamic linking these days and
11506   # people can always --disable-shared, the test was removed, and we
11507   # assume the GNU/Linux dynamic linker is in use.
11508   dynamic_linker='GNU/Linux ld.so'
11509   ;;
11510
11511 netbsdelf*-gnu)
11512   version_type=linux
11513   need_lib_prefix=no
11514   need_version=no
11515   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11516   soname_spec='${libname}${release}${shared_ext}$major'
11517   shlibpath_var=LD_LIBRARY_PATH
11518   shlibpath_overrides_runpath=no
11519   hardcode_into_libs=yes
11520   dynamic_linker='NetBSD ld.elf_so'
11521   ;;
11522
11523 netbsd*)
11524   version_type=sunos
11525   need_lib_prefix=no
11526   need_version=no
11527   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11528     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11529     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11530     dynamic_linker='NetBSD (a.out) ld.so'
11531   else
11532     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11533     soname_spec='${libname}${release}${shared_ext}$major'
11534     dynamic_linker='NetBSD ld.elf_so'
11535   fi
11536   shlibpath_var=LD_LIBRARY_PATH
11537   shlibpath_overrides_runpath=yes
11538   hardcode_into_libs=yes
11539   ;;
11540
11541 newsos6)
11542   version_type=linux # correct to gnu/linux during the next big refactor
11543   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11544   shlibpath_var=LD_LIBRARY_PATH
11545   shlibpath_overrides_runpath=yes
11546   ;;
11547
11548 *nto* | *qnx*)
11549   version_type=qnx
11550   need_lib_prefix=no
11551   need_version=no
11552   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11553   soname_spec='${libname}${release}${shared_ext}$major'
11554   shlibpath_var=LD_LIBRARY_PATH
11555   shlibpath_overrides_runpath=no
11556   hardcode_into_libs=yes
11557   dynamic_linker='ldqnx.so'
11558   ;;
11559
11560 openbsd*)
11561   version_type=sunos
11562   sys_lib_dlsearch_path_spec="/usr/lib"
11563   need_lib_prefix=no
11564   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11565   case $host_os in
11566     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11567     *)                          need_version=no  ;;
11568   esac
11569   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11570   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11571   shlibpath_var=LD_LIBRARY_PATH
11572   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11573     case $host_os in
11574       openbsd2.[89] | openbsd2.[89].*)
11575         shlibpath_overrides_runpath=no
11576         ;;
11577       *)
11578         shlibpath_overrides_runpath=yes
11579         ;;
11580       esac
11581   else
11582     shlibpath_overrides_runpath=yes
11583   fi
11584   ;;
11585
11586 os2*)
11587   libname_spec='$name'
11588   shrext_cmds=".dll"
11589   need_lib_prefix=no
11590   library_names_spec='$libname${shared_ext} $libname.a'
11591   dynamic_linker='OS/2 ld.exe'
11592   shlibpath_var=LIBPATH
11593   ;;
11594
11595 osf3* | osf4* | osf5*)
11596   version_type=osf
11597   need_lib_prefix=no
11598   need_version=no
11599   soname_spec='${libname}${release}${shared_ext}$major'
11600   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11601   shlibpath_var=LD_LIBRARY_PATH
11602   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11603   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11604   ;;
11605
11606 rdos*)
11607   dynamic_linker=no
11608   ;;
11609
11610 solaris*)
11611   version_type=linux # correct to gnu/linux during the next big refactor
11612   need_lib_prefix=no
11613   need_version=no
11614   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11615   soname_spec='${libname}${release}${shared_ext}$major'
11616   shlibpath_var=LD_LIBRARY_PATH
11617   shlibpath_overrides_runpath=yes
11618   hardcode_into_libs=yes
11619   # ldd complains unless libraries are executable
11620   postinstall_cmds='chmod +x $lib'
11621   ;;
11622
11623 sunos4*)
11624   version_type=sunos
11625   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11626   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11627   shlibpath_var=LD_LIBRARY_PATH
11628   shlibpath_overrides_runpath=yes
11629   if test "$with_gnu_ld" = yes; then
11630     need_lib_prefix=no
11631   fi
11632   need_version=yes
11633   ;;
11634
11635 sysv4 | sysv4.3*)
11636   version_type=linux # correct to gnu/linux during the next big refactor
11637   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11638   soname_spec='${libname}${release}${shared_ext}$major'
11639   shlibpath_var=LD_LIBRARY_PATH
11640   case $host_vendor in
11641     sni)
11642       shlibpath_overrides_runpath=no
11643       need_lib_prefix=no
11644       runpath_var=LD_RUN_PATH
11645       ;;
11646     siemens)
11647       need_lib_prefix=no
11648       ;;
11649     motorola)
11650       need_lib_prefix=no
11651       need_version=no
11652       shlibpath_overrides_runpath=no
11653       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11654       ;;
11655   esac
11656   ;;
11657
11658 sysv4*MP*)
11659   if test -d /usr/nec ;then
11660     version_type=linux # correct to gnu/linux during the next big refactor
11661     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11662     soname_spec='$libname${shared_ext}.$major'
11663     shlibpath_var=LD_LIBRARY_PATH
11664   fi
11665   ;;
11666
11667 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11668   version_type=freebsd-elf
11669   need_lib_prefix=no
11670   need_version=no
11671   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11672   soname_spec='${libname}${release}${shared_ext}$major'
11673   shlibpath_var=LD_LIBRARY_PATH
11674   shlibpath_overrides_runpath=yes
11675   hardcode_into_libs=yes
11676   if test "$with_gnu_ld" = yes; then
11677     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11678   else
11679     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11680     case $host_os in
11681       sco3.2v5*)
11682         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11683         ;;
11684     esac
11685   fi
11686   sys_lib_dlsearch_path_spec='/usr/lib'
11687   ;;
11688
11689 tpf*)
11690   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11691   version_type=linux # correct to gnu/linux during the next big refactor
11692   need_lib_prefix=no
11693   need_version=no
11694   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11695   shlibpath_var=LD_LIBRARY_PATH
11696   shlibpath_overrides_runpath=no
11697   hardcode_into_libs=yes
11698   ;;
11699
11700 uts4*)
11701   version_type=linux # correct to gnu/linux during the next big refactor
11702   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11703   soname_spec='${libname}${release}${shared_ext}$major'
11704   shlibpath_var=LD_LIBRARY_PATH
11705   ;;
11706
11707 *)
11708   dynamic_linker=no
11709   ;;
11710 esac
11711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11712 $as_echo "$dynamic_linker" >&6; }
11713 test "$dynamic_linker" = no && can_build_shared=no
11714
11715 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11716 if test "$GCC" = yes; then
11717   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11718 fi
11719
11720 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11721   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11722 fi
11723 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11724   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11725 fi
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11819 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11820 hardcode_action=
11821 if test -n "$hardcode_libdir_flag_spec" ||
11822    test -n "$runpath_var" ||
11823    test "X$hardcode_automatic" = "Xyes" ; then
11824
11825   # We can hardcode non-existent directories.
11826   if test "$hardcode_direct" != no &&
11827      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11828      # have to relink, otherwise we might link with an installed library
11829      # when we should be linking with a yet-to-be-installed one
11830      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11831      test "$hardcode_minus_L" != no; then
11832     # Linking always hardcodes the temporary library directory.
11833     hardcode_action=relink
11834   else
11835     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11836     hardcode_action=immediate
11837   fi
11838 else
11839   # We cannot hardcode anything, or else we can only hardcode existing
11840   # directories.
11841   hardcode_action=unsupported
11842 fi
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11844 $as_echo "$hardcode_action" >&6; }
11845
11846 if test "$hardcode_action" = relink ||
11847    test "$inherit_rpath" = yes; then
11848   # Fast installation is not supported
11849   enable_fast_install=no
11850 elif test "$shlibpath_overrides_runpath" = yes ||
11851      test "$enable_shared" = no; then
11852   # Fast installation is not necessary
11853   enable_fast_install=needless
11854 fi
11855
11856
11857
11858
11859
11860
11861   if test "x$enable_dlopen" != xyes; then
11862   enable_dlopen=unknown
11863   enable_dlopen_self=unknown
11864   enable_dlopen_self_static=unknown
11865 else
11866   lt_cv_dlopen=no
11867   lt_cv_dlopen_libs=
11868
11869   case $host_os in
11870   beos*)
11871     lt_cv_dlopen="load_add_on"
11872     lt_cv_dlopen_libs=
11873     lt_cv_dlopen_self=yes
11874     ;;
11875
11876   mingw* | pw32* | cegcc*)
11877     lt_cv_dlopen="LoadLibrary"
11878     lt_cv_dlopen_libs=
11879     ;;
11880
11881   cygwin*)
11882     lt_cv_dlopen="dlopen"
11883     lt_cv_dlopen_libs=
11884     ;;
11885
11886   darwin*)
11887   # if libdl is installed we need to link against it
11888     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11889 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11890 if ${ac_cv_lib_dl_dlopen+:} false; then :
11891   $as_echo_n "(cached) " >&6
11892 else
11893   ac_check_lib_save_LIBS=$LIBS
11894 LIBS="-ldl  $LIBS"
11895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11896 /* end confdefs.h.  */
11897
11898 /* Override any GCC internal prototype to avoid an error.
11899    Use char because int might match the return type of a GCC
11900    builtin and then its argument prototype would still apply.  */
11901 #ifdef __cplusplus
11902 extern "C"
11903 #endif
11904 char dlopen ();
11905 int
11906 main ()
11907 {
11908 return dlopen ();
11909   ;
11910   return 0;
11911 }
11912 _ACEOF
11913 if ac_fn_c_try_link "$LINENO"; then :
11914   ac_cv_lib_dl_dlopen=yes
11915 else
11916   ac_cv_lib_dl_dlopen=no
11917 fi
11918 rm -f core conftest.err conftest.$ac_objext \
11919     conftest$ac_exeext conftest.$ac_ext
11920 LIBS=$ac_check_lib_save_LIBS
11921 fi
11922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11923 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11924 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11925   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11926 else
11927
11928     lt_cv_dlopen="dyld"
11929     lt_cv_dlopen_libs=
11930     lt_cv_dlopen_self=yes
11931
11932 fi
11933
11934     ;;
11935
11936   *)
11937     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11938 if test "x$ac_cv_func_shl_load" = xyes; then :
11939   lt_cv_dlopen="shl_load"
11940 else
11941   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11942 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11943 if ${ac_cv_lib_dld_shl_load+:} false; then :
11944   $as_echo_n "(cached) " >&6
11945 else
11946   ac_check_lib_save_LIBS=$LIBS
11947 LIBS="-ldld  $LIBS"
11948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11949 /* end confdefs.h.  */
11950
11951 /* Override any GCC internal prototype to avoid an error.
11952    Use char because int might match the return type of a GCC
11953    builtin and then its argument prototype would still apply.  */
11954 #ifdef __cplusplus
11955 extern "C"
11956 #endif
11957 char shl_load ();
11958 int
11959 main ()
11960 {
11961 return shl_load ();
11962   ;
11963   return 0;
11964 }
11965 _ACEOF
11966 if ac_fn_c_try_link "$LINENO"; then :
11967   ac_cv_lib_dld_shl_load=yes
11968 else
11969   ac_cv_lib_dld_shl_load=no
11970 fi
11971 rm -f core conftest.err conftest.$ac_objext \
11972     conftest$ac_exeext conftest.$ac_ext
11973 LIBS=$ac_check_lib_save_LIBS
11974 fi
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11976 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11977 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11978   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11979 else
11980   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11981 if test "x$ac_cv_func_dlopen" = xyes; then :
11982   lt_cv_dlopen="dlopen"
11983 else
11984   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11985 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11986 if ${ac_cv_lib_dl_dlopen+:} false; then :
11987   $as_echo_n "(cached) " >&6
11988 else
11989   ac_check_lib_save_LIBS=$LIBS
11990 LIBS="-ldl  $LIBS"
11991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11992 /* end confdefs.h.  */
11993
11994 /* Override any GCC internal prototype to avoid an error.
11995    Use char because int might match the return type of a GCC
11996    builtin and then its argument prototype would still apply.  */
11997 #ifdef __cplusplus
11998 extern "C"
11999 #endif
12000 char dlopen ();
12001 int
12002 main ()
12003 {
12004 return dlopen ();
12005   ;
12006   return 0;
12007 }
12008 _ACEOF
12009 if ac_fn_c_try_link "$LINENO"; then :
12010   ac_cv_lib_dl_dlopen=yes
12011 else
12012   ac_cv_lib_dl_dlopen=no
12013 fi
12014 rm -f core conftest.err conftest.$ac_objext \
12015     conftest$ac_exeext conftest.$ac_ext
12016 LIBS=$ac_check_lib_save_LIBS
12017 fi
12018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12019 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12020 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12021   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12022 else
12023   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12024 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12025 if ${ac_cv_lib_svld_dlopen+:} false; then :
12026   $as_echo_n "(cached) " >&6
12027 else
12028   ac_check_lib_save_LIBS=$LIBS
12029 LIBS="-lsvld  $LIBS"
12030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12031 /* end confdefs.h.  */
12032
12033 /* Override any GCC internal prototype to avoid an error.
12034    Use char because int might match the return type of a GCC
12035    builtin and then its argument prototype would still apply.  */
12036 #ifdef __cplusplus
12037 extern "C"
12038 #endif
12039 char dlopen ();
12040 int
12041 main ()
12042 {
12043 return dlopen ();
12044   ;
12045   return 0;
12046 }
12047 _ACEOF
12048 if ac_fn_c_try_link "$LINENO"; then :
12049   ac_cv_lib_svld_dlopen=yes
12050 else
12051   ac_cv_lib_svld_dlopen=no
12052 fi
12053 rm -f core conftest.err conftest.$ac_objext \
12054     conftest$ac_exeext conftest.$ac_ext
12055 LIBS=$ac_check_lib_save_LIBS
12056 fi
12057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12058 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12059 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12060   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12061 else
12062   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12063 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12064 if ${ac_cv_lib_dld_dld_link+:} false; then :
12065   $as_echo_n "(cached) " >&6
12066 else
12067   ac_check_lib_save_LIBS=$LIBS
12068 LIBS="-ldld  $LIBS"
12069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12070 /* end confdefs.h.  */
12071
12072 /* Override any GCC internal prototype to avoid an error.
12073    Use char because int might match the return type of a GCC
12074    builtin and then its argument prototype would still apply.  */
12075 #ifdef __cplusplus
12076 extern "C"
12077 #endif
12078 char dld_link ();
12079 int
12080 main ()
12081 {
12082 return dld_link ();
12083   ;
12084   return 0;
12085 }
12086 _ACEOF
12087 if ac_fn_c_try_link "$LINENO"; then :
12088   ac_cv_lib_dld_dld_link=yes
12089 else
12090   ac_cv_lib_dld_dld_link=no
12091 fi
12092 rm -f core conftest.err conftest.$ac_objext \
12093     conftest$ac_exeext conftest.$ac_ext
12094 LIBS=$ac_check_lib_save_LIBS
12095 fi
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12097 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12098 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12099   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12100 fi
12101
12102
12103 fi
12104
12105
12106 fi
12107
12108
12109 fi
12110
12111
12112 fi
12113
12114
12115 fi
12116
12117     ;;
12118   esac
12119
12120   if test "x$lt_cv_dlopen" != xno; then
12121     enable_dlopen=yes
12122   else
12123     enable_dlopen=no
12124   fi
12125
12126   case $lt_cv_dlopen in
12127   dlopen)
12128     save_CPPFLAGS="$CPPFLAGS"
12129     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12130
12131     save_LDFLAGS="$LDFLAGS"
12132     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12133
12134     save_LIBS="$LIBS"
12135     LIBS="$lt_cv_dlopen_libs $LIBS"
12136
12137     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12138 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12139 if ${lt_cv_dlopen_self+:} false; then :
12140   $as_echo_n "(cached) " >&6
12141 else
12142           if test "$cross_compiling" = yes; then :
12143   lt_cv_dlopen_self=cross
12144 else
12145   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12146   lt_status=$lt_dlunknown
12147   cat > conftest.$ac_ext <<_LT_EOF
12148 #line $LINENO "configure"
12149 #include "confdefs.h"
12150
12151 #if HAVE_DLFCN_H
12152 #include <dlfcn.h>
12153 #endif
12154
12155 #include <stdio.h>
12156
12157 #ifdef RTLD_GLOBAL
12158 #  define LT_DLGLOBAL           RTLD_GLOBAL
12159 #else
12160 #  ifdef DL_GLOBAL
12161 #    define LT_DLGLOBAL         DL_GLOBAL
12162 #  else
12163 #    define LT_DLGLOBAL         0
12164 #  endif
12165 #endif
12166
12167 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12168    find out it does not work in some platform. */
12169 #ifndef LT_DLLAZY_OR_NOW
12170 #  ifdef RTLD_LAZY
12171 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12172 #  else
12173 #    ifdef DL_LAZY
12174 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12175 #    else
12176 #      ifdef RTLD_NOW
12177 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12178 #      else
12179 #        ifdef DL_NOW
12180 #          define LT_DLLAZY_OR_NOW      DL_NOW
12181 #        else
12182 #          define LT_DLLAZY_OR_NOW      0
12183 #        endif
12184 #      endif
12185 #    endif
12186 #  endif
12187 #endif
12188
12189 /* When -fvisbility=hidden is used, assume the code has been annotated
12190    correspondingly for the symbols needed.  */
12191 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12192 int fnord () __attribute__((visibility("default")));
12193 #endif
12194
12195 int fnord () { return 42; }
12196 int main ()
12197 {
12198   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12199   int status = $lt_dlunknown;
12200
12201   if (self)
12202     {
12203       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12204       else
12205         {
12206           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12207           else puts (dlerror ());
12208         }
12209       /* dlclose (self); */
12210     }
12211   else
12212     puts (dlerror ());
12213
12214   return status;
12215 }
12216 _LT_EOF
12217   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12218   (eval $ac_link) 2>&5
12219   ac_status=$?
12220   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12221   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12222     (./conftest; exit; ) >&5 2>/dev/null
12223     lt_status=$?
12224     case x$lt_status in
12225       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12226       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12227       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12228     esac
12229   else :
12230     # compilation failed
12231     lt_cv_dlopen_self=no
12232   fi
12233 fi
12234 rm -fr conftest*
12235
12236
12237 fi
12238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12239 $as_echo "$lt_cv_dlopen_self" >&6; }
12240
12241     if test "x$lt_cv_dlopen_self" = xyes; then
12242       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12243       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12244 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12245 if ${lt_cv_dlopen_self_static+:} false; then :
12246   $as_echo_n "(cached) " >&6
12247 else
12248           if test "$cross_compiling" = yes; then :
12249   lt_cv_dlopen_self_static=cross
12250 else
12251   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12252   lt_status=$lt_dlunknown
12253   cat > conftest.$ac_ext <<_LT_EOF
12254 #line $LINENO "configure"
12255 #include "confdefs.h"
12256
12257 #if HAVE_DLFCN_H
12258 #include <dlfcn.h>
12259 #endif
12260
12261 #include <stdio.h>
12262
12263 #ifdef RTLD_GLOBAL
12264 #  define LT_DLGLOBAL           RTLD_GLOBAL
12265 #else
12266 #  ifdef DL_GLOBAL
12267 #    define LT_DLGLOBAL         DL_GLOBAL
12268 #  else
12269 #    define LT_DLGLOBAL         0
12270 #  endif
12271 #endif
12272
12273 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12274    find out it does not work in some platform. */
12275 #ifndef LT_DLLAZY_OR_NOW
12276 #  ifdef RTLD_LAZY
12277 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12278 #  else
12279 #    ifdef DL_LAZY
12280 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12281 #    else
12282 #      ifdef RTLD_NOW
12283 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12284 #      else
12285 #        ifdef DL_NOW
12286 #          define LT_DLLAZY_OR_NOW      DL_NOW
12287 #        else
12288 #          define LT_DLLAZY_OR_NOW      0
12289 #        endif
12290 #      endif
12291 #    endif
12292 #  endif
12293 #endif
12294
12295 /* When -fvisbility=hidden is used, assume the code has been annotated
12296    correspondingly for the symbols needed.  */
12297 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12298 int fnord () __attribute__((visibility("default")));
12299 #endif
12300
12301 int fnord () { return 42; }
12302 int main ()
12303 {
12304   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12305   int status = $lt_dlunknown;
12306
12307   if (self)
12308     {
12309       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12310       else
12311         {
12312           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12313           else puts (dlerror ());
12314         }
12315       /* dlclose (self); */
12316     }
12317   else
12318     puts (dlerror ());
12319
12320   return status;
12321 }
12322 _LT_EOF
12323   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12324   (eval $ac_link) 2>&5
12325   ac_status=$?
12326   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12327   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12328     (./conftest; exit; ) >&5 2>/dev/null
12329     lt_status=$?
12330     case x$lt_status in
12331       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12332       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12333       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12334     esac
12335   else :
12336     # compilation failed
12337     lt_cv_dlopen_self_static=no
12338   fi
12339 fi
12340 rm -fr conftest*
12341
12342
12343 fi
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12345 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12346     fi
12347
12348     CPPFLAGS="$save_CPPFLAGS"
12349     LDFLAGS="$save_LDFLAGS"
12350     LIBS="$save_LIBS"
12351     ;;
12352   esac
12353
12354   case $lt_cv_dlopen_self in
12355   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12356   *) enable_dlopen_self=unknown ;;
12357   esac
12358
12359   case $lt_cv_dlopen_self_static in
12360   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12361   *) enable_dlopen_self_static=unknown ;;
12362   esac
12363 fi
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381 striplib=
12382 old_striplib=
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12384 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12385 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12386   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12387   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12389 $as_echo "yes" >&6; }
12390 else
12391 # FIXME - insert some real tests, host_os isn't really good enough
12392   case $host_os in
12393   darwin*)
12394     if test -n "$STRIP" ; then
12395       striplib="$STRIP -x"
12396       old_striplib="$STRIP -S"
12397       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12398 $as_echo "yes" >&6; }
12399     else
12400       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12401 $as_echo "no" >&6; }
12402     fi
12403     ;;
12404   *)
12405     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12406 $as_echo "no" >&6; }
12407     ;;
12408   esac
12409 fi
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419
12420
12421
12422   # Report which library types will actually be built
12423   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12424 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12426 $as_echo "$can_build_shared" >&6; }
12427
12428   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12429 $as_echo_n "checking whether to build shared libraries... " >&6; }
12430   test "$can_build_shared" = "no" && enable_shared=no
12431
12432   # On AIX, shared libraries and static libraries use the same namespace, and
12433   # are all built from PIC.
12434   case $host_os in
12435   aix3*)
12436     test "$enable_shared" = yes && enable_static=no
12437     if test -n "$RANLIB"; then
12438       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12439       postinstall_cmds='$RANLIB $lib'
12440     fi
12441     ;;
12442
12443   aix[4-9]*)
12444     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12445       test "$enable_shared" = yes && enable_static=no
12446     fi
12447     ;;
12448   esac
12449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12450 $as_echo "$enable_shared" >&6; }
12451
12452   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12453 $as_echo_n "checking whether to build static libraries... " >&6; }
12454   # Make sure either enable_shared or enable_static is yes.
12455   test "$enable_shared" = yes || enable_static=yes
12456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12457 $as_echo "$enable_static" >&6; }
12458
12459
12460
12461
12462 fi
12463 ac_ext=c
12464 ac_cpp='$CPP $CPPFLAGS'
12465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12468
12469 CC="$lt_save_CC"
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485         ac_config_commands="$ac_config_commands libtool"
12486
12487
12488
12489
12490 # Only expand once:
12491
12492
12493
12494
12495
12496
12497 # Check whether --with-autoconf was given.
12498 if test "${with_autoconf+set}" = set; then :
12499   withval=$with_autoconf;
12500       unset AUTOCONF
12501
12502 AUTOCONF=${AUTOCONF-"${am_missing_run}${withval}"}
12503
12504       { $as_echo "$as_me:${as_lineno-$LINENO}: Using $AUTOCONF as autoconf" >&5
12505 $as_echo "$as_me: Using $AUTOCONF as autoconf" >&6;}
12506
12507 fi
12508
12509
12510
12511 # Check whether --with-autoheader was given.
12512 if test "${with_autoheader+set}" = set; then :
12513   withval=$with_autoheader;
12514       unset AUTOHEADER
12515
12516 AUTOHEADER=${AUTOHEADER-"${am_missing_run}${withval}"}
12517
12518       { $as_echo "$as_me:${as_lineno-$LINENO}: Using $AUTOHEADER as autoheader" >&5
12519 $as_echo "$as_me: Using $AUTOHEADER as autoheader" >&6;}
12520
12521 fi
12522
12523
12524
12525 # Check whether --with-automake was given.
12526 if test "${with_automake+set}" = set; then :
12527   withval=$with_automake;
12528       unset AUTOMAKE
12529
12530 AUTOMAKE=${AUTOMAKE-"${am_missing_run}${withval}"}
12531
12532       { $as_echo "$as_me:${as_lineno-$LINENO}: Using $AUTOMAKE as automake" >&5
12533 $as_echo "$as_me: Using $AUTOMAKE as automake" >&6;}
12534
12535 fi
12536
12537
12538
12539 # Check whether --with-aclocal was given.
12540 if test "${with_aclocal+set}" = set; then :
12541   withval=$with_aclocal;
12542       unset ACLOCAL
12543
12544 ACLOCAL=${ACLOCAL-"${am_missing_run}${withval}"}
12545
12546       { $as_echo "$as_me:${as_lineno-$LINENO}: Using $ACLOCAL as aclocal" >&5
12547 $as_echo "$as_me: Using $ACLOCAL as aclocal" >&6;}
12548
12549 fi
12550
12551
12552
12553 ACLOCAL_AMFLAGS="-I m4 -I common/m4"
12554
12555
12556
12557
12558   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12559 $as_echo_n "checking whether NLS is requested... " >&6; }
12560     # Check whether --enable-nls was given.
12561 if test "${enable_nls+set}" = set; then :
12562   enableval=$enable_nls; USE_NLS=$enableval
12563 else
12564   USE_NLS=yes
12565 fi
12566
12567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12568 $as_echo "$USE_NLS" >&6; }
12569
12570
12571
12572
12573       GETTEXT_MACRO_VERSION=0.17
12574
12575
12576
12577
12578 # Prepare PATH_SEPARATOR.
12579 # The user is always right.
12580 if test "${PATH_SEPARATOR+set}" != set; then
12581   echo "#! /bin/sh" >conf$$.sh
12582   echo  "exit 0"   >>conf$$.sh
12583   chmod +x conf$$.sh
12584   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12585     PATH_SEPARATOR=';'
12586   else
12587     PATH_SEPARATOR=:
12588   fi
12589   rm -f conf$$.sh
12590 fi
12591
12592 # Find out how to test for executable files. Don't use a zero-byte file,
12593 # as systems may use methods other than mode bits to determine executability.
12594 cat >conf$$.file <<_ASEOF
12595 #! /bin/sh
12596 exit 0
12597 _ASEOF
12598 chmod +x conf$$.file
12599 if test -x conf$$.file >/dev/null 2>&1; then
12600   ac_executable_p="test -x"
12601 else
12602   ac_executable_p="test -f"
12603 fi
12604 rm -f conf$$.file
12605
12606 # Extract the first word of "msgfmt", so it can be a program name with args.
12607 set dummy msgfmt; ac_word=$2
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12609 $as_echo_n "checking for $ac_word... " >&6; }
12610 if ${ac_cv_path_MSGFMT+:} false; then :
12611   $as_echo_n "(cached) " >&6
12612 else
12613   case "$MSGFMT" in
12614   [\\/]* | ?:[\\/]*)
12615     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12616     ;;
12617   *)
12618     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12619     for ac_dir in $PATH; do
12620       IFS="$ac_save_IFS"
12621       test -z "$ac_dir" && ac_dir=.
12622       for ac_exec_ext in '' $ac_executable_extensions; do
12623         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12624           echo "$as_me: trying $ac_dir/$ac_word..." >&5
12625           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
12626      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12627             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12628             break 2
12629           fi
12630         fi
12631       done
12632     done
12633     IFS="$ac_save_IFS"
12634   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12635     ;;
12636 esac
12637 fi
12638 MSGFMT="$ac_cv_path_MSGFMT"
12639 if test "$MSGFMT" != ":"; then
12640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12641 $as_echo "$MSGFMT" >&6; }
12642 else
12643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12644 $as_echo "no" >&6; }
12645 fi
12646
12647   # Extract the first word of "gmsgfmt", so it can be a program name with args.
12648 set dummy gmsgfmt; ac_word=$2
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12650 $as_echo_n "checking for $ac_word... " >&6; }
12651 if ${ac_cv_path_GMSGFMT+:} false; then :
12652   $as_echo_n "(cached) " >&6
12653 else
12654   case $GMSGFMT in
12655   [\\/]* | ?:[\\/]*)
12656   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12657   ;;
12658   *)
12659   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12660 for as_dir in $PATH
12661 do
12662   IFS=$as_save_IFS
12663   test -z "$as_dir" && as_dir=.
12664     for ac_exec_ext in '' $ac_executable_extensions; do
12665   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12666     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12667     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12668     break 2
12669   fi
12670 done
12671   done
12672 IFS=$as_save_IFS
12673
12674   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12675   ;;
12676 esac
12677 fi
12678 GMSGFMT=$ac_cv_path_GMSGFMT
12679 if test -n "$GMSGFMT"; then
12680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12681 $as_echo "$GMSGFMT" >&6; }
12682 else
12683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12684 $as_echo "no" >&6; }
12685 fi
12686
12687
12688
12689     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
12690     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
12691     *) MSGFMT_015=$MSGFMT ;;
12692   esac
12693
12694   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
12695     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
12696     *) GMSGFMT_015=$GMSGFMT ;;
12697   esac
12698
12699
12700
12701 # Prepare PATH_SEPARATOR.
12702 # The user is always right.
12703 if test "${PATH_SEPARATOR+set}" != set; then
12704   echo "#! /bin/sh" >conf$$.sh
12705   echo  "exit 0"   >>conf$$.sh
12706   chmod +x conf$$.sh
12707   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12708     PATH_SEPARATOR=';'
12709   else
12710     PATH_SEPARATOR=:
12711   fi
12712   rm -f conf$$.sh
12713 fi
12714
12715 # Find out how to test for executable files. Don't use a zero-byte file,
12716 # as systems may use methods other than mode bits to determine executability.
12717 cat >conf$$.file <<_ASEOF
12718 #! /bin/sh
12719 exit 0
12720 _ASEOF
12721 chmod +x conf$$.file
12722 if test -x conf$$.file >/dev/null 2>&1; then
12723   ac_executable_p="test -x"
12724 else
12725   ac_executable_p="test -f"
12726 fi
12727 rm -f conf$$.file
12728
12729 # Extract the first word of "xgettext", so it can be a program name with args.
12730 set dummy xgettext; ac_word=$2
12731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12732 $as_echo_n "checking for $ac_word... " >&6; }
12733 if ${ac_cv_path_XGETTEXT+:} false; then :
12734   $as_echo_n "(cached) " >&6
12735 else
12736   case "$XGETTEXT" in
12737   [\\/]* | ?:[\\/]*)
12738     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12739     ;;
12740   *)
12741     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12742     for ac_dir in $PATH; do
12743       IFS="$ac_save_IFS"
12744       test -z "$ac_dir" && ac_dir=.
12745       for ac_exec_ext in '' $ac_executable_extensions; do
12746         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12747           echo "$as_me: trying $ac_dir/$ac_word..." >&5
12748           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
12749      (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12750             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12751             break 2
12752           fi
12753         fi
12754       done
12755     done
12756     IFS="$ac_save_IFS"
12757   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12758     ;;
12759 esac
12760 fi
12761 XGETTEXT="$ac_cv_path_XGETTEXT"
12762 if test "$XGETTEXT" != ":"; then
12763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12764 $as_echo "$XGETTEXT" >&6; }
12765 else
12766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12767 $as_echo "no" >&6; }
12768 fi
12769
12770     rm -f messages.po
12771
12772     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
12773     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
12774     *) XGETTEXT_015=$XGETTEXT ;;
12775   esac
12776
12777
12778
12779 # Prepare PATH_SEPARATOR.
12780 # The user is always right.
12781 if test "${PATH_SEPARATOR+set}" != set; then
12782   echo "#! /bin/sh" >conf$$.sh
12783   echo  "exit 0"   >>conf$$.sh
12784   chmod +x conf$$.sh
12785   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12786     PATH_SEPARATOR=';'
12787   else
12788     PATH_SEPARATOR=:
12789   fi
12790   rm -f conf$$.sh
12791 fi
12792
12793 # Find out how to test for executable files. Don't use a zero-byte file,
12794 # as systems may use methods other than mode bits to determine executability.
12795 cat >conf$$.file <<_ASEOF
12796 #! /bin/sh
12797 exit 0
12798 _ASEOF
12799 chmod +x conf$$.file
12800 if test -x conf$$.file >/dev/null 2>&1; then
12801   ac_executable_p="test -x"
12802 else
12803   ac_executable_p="test -f"
12804 fi
12805 rm -f conf$$.file
12806
12807 # Extract the first word of "msgmerge", so it can be a program name with args.
12808 set dummy msgmerge; ac_word=$2
12809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12810 $as_echo_n "checking for $ac_word... " >&6; }
12811 if ${ac_cv_path_MSGMERGE+:} false; then :
12812   $as_echo_n "(cached) " >&6
12813 else
12814   case "$MSGMERGE" in
12815   [\\/]* | ?:[\\/]*)
12816     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12817     ;;
12818   *)
12819     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12820     for ac_dir in $PATH; do
12821       IFS="$ac_save_IFS"
12822       test -z "$ac_dir" && ac_dir=.
12823       for ac_exec_ext in '' $ac_executable_extensions; do
12824         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12825           echo "$as_me: trying $ac_dir/$ac_word..." >&5
12826           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
12827             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12828             break 2
12829           fi
12830         fi
12831       done
12832     done
12833     IFS="$ac_save_IFS"
12834   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12835     ;;
12836 esac
12837 fi
12838 MSGMERGE="$ac_cv_path_MSGMERGE"
12839 if test "$MSGMERGE" != ":"; then
12840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12841 $as_echo "$MSGMERGE" >&6; }
12842 else
12843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12844 $as_echo "no" >&6; }
12845 fi
12846
12847
12848         test -n "$localedir" || localedir='${datadir}/locale'
12849
12850
12851     test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
12852
12853
12854   ac_config_commands="$ac_config_commands po-directories"
12855
12856
12857
12858       if test "X$prefix" = "XNONE"; then
12859     acl_final_prefix="$ac_default_prefix"
12860   else
12861     acl_final_prefix="$prefix"
12862   fi
12863   if test "X$exec_prefix" = "XNONE"; then
12864     acl_final_exec_prefix='${prefix}'
12865   else
12866     acl_final_exec_prefix="$exec_prefix"
12867   fi
12868   acl_save_prefix="$prefix"
12869   prefix="$acl_final_prefix"
12870   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
12871   prefix="$acl_save_prefix"
12872
12873
12874 # Check whether --with-gnu-ld was given.
12875 if test "${with_gnu_ld+set}" = set; then :
12876   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12877 else
12878   with_gnu_ld=no
12879 fi
12880
12881 # Prepare PATH_SEPARATOR.
12882 # The user is always right.
12883 if test "${PATH_SEPARATOR+set}" != set; then
12884   echo "#! /bin/sh" >conf$$.sh
12885   echo  "exit 0"   >>conf$$.sh
12886   chmod +x conf$$.sh
12887   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12888     PATH_SEPARATOR=';'
12889   else
12890     PATH_SEPARATOR=:
12891   fi
12892   rm -f conf$$.sh
12893 fi
12894 ac_prog=ld
12895 if test "$GCC" = yes; then
12896   # Check if gcc -print-prog-name=ld gives a path.
12897   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
12898 $as_echo_n "checking for ld used by GCC... " >&6; }
12899   case $host in
12900   *-*-mingw*)
12901     # gcc leaves a trailing carriage return which upsets mingw
12902     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12903   *)
12904     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12905   esac
12906   case $ac_prog in
12907     # Accept absolute paths.
12908     [\\/]* | [A-Za-z]:[\\/]*)
12909       re_direlt='/[^/][^/]*/\.\./'
12910       # Canonicalize the path of ld
12911       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
12912       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12913         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
12914       done
12915       test -z "$LD" && LD="$ac_prog"
12916       ;;
12917   "")
12918     # If it fails, then pretend we aren't using GCC.
12919     ac_prog=ld
12920     ;;
12921   *)
12922     # If it is relative, then search for the first ld in PATH.
12923     with_gnu_ld=unknown
12924     ;;
12925   esac
12926 elif test "$with_gnu_ld" = yes; then
12927   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12928 $as_echo_n "checking for GNU ld... " >&6; }
12929 else
12930   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12931 $as_echo_n "checking for non-GNU ld... " >&6; }
12932 fi
12933 if ${acl_cv_path_LD+:} false; then :
12934   $as_echo_n "(cached) " >&6
12935 else
12936   if test -z "$LD"; then
12937   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
12938   for ac_dir in $PATH; do
12939     test -z "$ac_dir" && ac_dir=.
12940     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12941       acl_cv_path_LD="$ac_dir/$ac_prog"
12942       # Check to see if the program is GNU ld.  I'd rather use --version,
12943       # but apparently some GNU ld's only accept -v.
12944       # Break only if it was the GNU/non-GNU ld that we prefer.
12945       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
12946       *GNU* | *'with BFD'*)
12947         test "$with_gnu_ld" != no && break ;;
12948       *)
12949         test "$with_gnu_ld" != yes && break ;;
12950       esac
12951     fi
12952   done
12953   IFS="$ac_save_ifs"
12954 else
12955   acl_cv_path_LD="$LD" # Let the user override the test with a path.
12956 fi
12957 fi
12958
12959 LD="$acl_cv_path_LD"
12960 if test -n "$LD"; then
12961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12962 $as_echo "$LD" >&6; }
12963 else
12964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12965 $as_echo "no" >&6; }
12966 fi
12967 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12969 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12970 if ${acl_cv_prog_gnu_ld+:} false; then :
12971   $as_echo_n "(cached) " >&6
12972 else
12973   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12974 case `$LD -v 2>&1 </dev/null` in
12975 *GNU* | *'with BFD'*)
12976   acl_cv_prog_gnu_ld=yes ;;
12977 *)
12978   acl_cv_prog_gnu_ld=no ;;
12979 esac
12980 fi
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
12982 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
12983 with_gnu_ld=$acl_cv_prog_gnu_ld
12984
12985
12986
12987
12988                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
12989 $as_echo_n "checking for shared library run path origin... " >&6; }
12990 if ${acl_cv_rpath+:} false; then :
12991   $as_echo_n "(cached) " >&6
12992 else
12993
12994     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
12995     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
12996     . ./conftest.sh
12997     rm -f ./conftest.sh
12998     acl_cv_rpath=done
12999
13000 fi
13001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
13002 $as_echo "$acl_cv_rpath" >&6; }
13003   wl="$acl_cv_wl"
13004   acl_libext="$acl_cv_libext"
13005   acl_shlibext="$acl_cv_shlibext"
13006   acl_libname_spec="$acl_cv_libname_spec"
13007   acl_library_names_spec="$acl_cv_library_names_spec"
13008   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
13009   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
13010   acl_hardcode_direct="$acl_cv_hardcode_direct"
13011   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
13012     # Check whether --enable-rpath was given.
13013 if test "${enable_rpath+set}" = set; then :
13014   enableval=$enable_rpath; :
13015 else
13016   enable_rpath=yes
13017 fi
13018
13019
13020
13021                   acl_libdirstem=lib
13022   searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
13023   if test -n "$searchpath"; then
13024     acl_save_IFS="${IFS=        }"; IFS=":"
13025     for searchdir in $searchpath; do
13026       if test -d "$searchdir"; then
13027         case "$searchdir" in
13028           */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
13029           *) searchdir=`cd "$searchdir" && pwd`
13030              case "$searchdir" in
13031                */lib64 ) acl_libdirstem=lib64 ;;
13032              esac ;;
13033         esac
13034       fi
13035     done
13036     IFS="$acl_save_IFS"
13037   fi
13038
13039
13040
13041
13042
13043
13044
13045
13046
13047     use_additional=yes
13048
13049   acl_save_prefix="$prefix"
13050   prefix="$acl_final_prefix"
13051   acl_save_exec_prefix="$exec_prefix"
13052   exec_prefix="$acl_final_exec_prefix"
13053
13054     eval additional_includedir=\"$includedir\"
13055     eval additional_libdir=\"$libdir\"
13056
13057   exec_prefix="$acl_save_exec_prefix"
13058   prefix="$acl_save_prefix"
13059
13060
13061 # Check whether --with-libiconv-prefix was given.
13062 if test "${with_libiconv_prefix+set}" = set; then :
13063   withval=$with_libiconv_prefix;
13064     if test "X$withval" = "Xno"; then
13065       use_additional=no
13066     else
13067       if test "X$withval" = "X"; then
13068
13069   acl_save_prefix="$prefix"
13070   prefix="$acl_final_prefix"
13071   acl_save_exec_prefix="$exec_prefix"
13072   exec_prefix="$acl_final_exec_prefix"
13073
13074           eval additional_includedir=\"$includedir\"
13075           eval additional_libdir=\"$libdir\"
13076
13077   exec_prefix="$acl_save_exec_prefix"
13078   prefix="$acl_save_prefix"
13079
13080       else
13081         additional_includedir="$withval/include"
13082         additional_libdir="$withval/$acl_libdirstem"
13083       fi
13084     fi
13085
13086 fi
13087
13088       LIBICONV=
13089   LTLIBICONV=
13090   INCICONV=
13091   LIBICONV_PREFIX=
13092   rpathdirs=
13093   ltrpathdirs=
13094   names_already_handled=
13095   names_next_round='iconv '
13096   while test -n "$names_next_round"; do
13097     names_this_round="$names_next_round"
13098     names_next_round=
13099     for name in $names_this_round; do
13100       already_handled=
13101       for n in $names_already_handled; do
13102         if test "$n" = "$name"; then
13103           already_handled=yes
13104           break
13105         fi
13106       done
13107       if test -z "$already_handled"; then
13108         names_already_handled="$names_already_handled $name"
13109                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13110         eval value=\"\$HAVE_LIB$uppername\"
13111         if test -n "$value"; then
13112           if test "$value" = yes; then
13113             eval value=\"\$LIB$uppername\"
13114             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
13115             eval value=\"\$LTLIB$uppername\"
13116             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
13117           else
13118                                     :
13119           fi
13120         else
13121                               found_dir=
13122           found_la=
13123           found_so=
13124           found_a=
13125           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
13126           if test -n "$acl_shlibext"; then
13127             shrext=".$acl_shlibext"             # typically: shrext=.so
13128           else
13129             shrext=
13130           fi
13131           if test $use_additional = yes; then
13132             dir="$additional_libdir"
13133                                     if test -n "$acl_shlibext"; then
13134               if test -f "$dir/$libname$shrext"; then
13135                 found_dir="$dir"
13136                 found_so="$dir/$libname$shrext"
13137               else
13138                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13139                   ver=`(cd "$dir" && \
13140                         for f in "$libname$shrext".*; do echo "$f"; done \
13141                         | sed -e "s,^$libname$shrext\\\\.,," \
13142                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13143                         | sed 1q ) 2>/dev/null`
13144                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13145                     found_dir="$dir"
13146                     found_so="$dir/$libname$shrext.$ver"
13147                   fi
13148                 else
13149                   eval library_names=\"$acl_library_names_spec\"
13150                   for f in $library_names; do
13151                     if test -f "$dir/$f"; then
13152                       found_dir="$dir"
13153                       found_so="$dir/$f"
13154                       break
13155                     fi
13156                   done
13157                 fi
13158               fi
13159             fi
13160                         if test "X$found_dir" = "X"; then
13161               if test -f "$dir/$libname.$acl_libext"; then
13162                 found_dir="$dir"
13163                 found_a="$dir/$libname.$acl_libext"
13164               fi
13165             fi
13166             if test "X$found_dir" != "X"; then
13167               if test -f "$dir/$libname.la"; then
13168                 found_la="$dir/$libname.la"
13169               fi
13170             fi
13171           fi
13172           if test "X$found_dir" = "X"; then
13173             for x in $LDFLAGS $LTLIBICONV; do
13174
13175   acl_save_prefix="$prefix"
13176   prefix="$acl_final_prefix"
13177   acl_save_exec_prefix="$exec_prefix"
13178   exec_prefix="$acl_final_exec_prefix"
13179   eval x=\"$x\"
13180   exec_prefix="$acl_save_exec_prefix"
13181   prefix="$acl_save_prefix"
13182
13183               case "$x" in
13184                 -L*)
13185                   dir=`echo "X$x" | sed -e 's/^X-L//'`
13186                                     if test -n "$acl_shlibext"; then
13187                     if test -f "$dir/$libname$shrext"; then
13188                       found_dir="$dir"
13189                       found_so="$dir/$libname$shrext"
13190                     else
13191                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13192                         ver=`(cd "$dir" && \
13193                               for f in "$libname$shrext".*; do echo "$f"; done \
13194                               | sed -e "s,^$libname$shrext\\\\.,," \
13195                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13196                               | sed 1q ) 2>/dev/null`
13197                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13198                           found_dir="$dir"
13199                           found_so="$dir/$libname$shrext.$ver"
13200                         fi
13201                       else
13202                         eval library_names=\"$acl_library_names_spec\"
13203                         for f in $library_names; do
13204                           if test -f "$dir/$f"; then
13205                             found_dir="$dir"
13206                             found_so="$dir/$f"
13207                             break
13208                           fi
13209                         done
13210                       fi
13211                     fi
13212                   fi
13213                                     if test "X$found_dir" = "X"; then
13214                     if test -f "$dir/$libname.$acl_libext"; then
13215                       found_dir="$dir"
13216                       found_a="$dir/$libname.$acl_libext"
13217                     fi
13218                   fi
13219                   if test "X$found_dir" != "X"; then
13220                     if test -f "$dir/$libname.la"; then
13221                       found_la="$dir/$libname.la"
13222                     fi
13223                   fi
13224                   ;;
13225               esac
13226               if test "X$found_dir" != "X"; then
13227                 break
13228               fi
13229             done
13230           fi
13231           if test "X$found_dir" != "X"; then
13232                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
13233             if test "X$found_so" != "X"; then
13234                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
13235                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13236               else
13237                                                                                 haveit=
13238                 for x in $ltrpathdirs; do
13239                   if test "X$x" = "X$found_dir"; then
13240                     haveit=yes
13241                     break
13242                   fi
13243                 done
13244                 if test -z "$haveit"; then
13245                   ltrpathdirs="$ltrpathdirs $found_dir"
13246                 fi
13247                                 if test "$acl_hardcode_direct" = yes; then
13248                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13249                 else
13250                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
13251                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13252                                                             haveit=
13253                     for x in $rpathdirs; do
13254                       if test "X$x" = "X$found_dir"; then
13255                         haveit=yes
13256                         break
13257                       fi
13258                     done
13259                     if test -z "$haveit"; then
13260                       rpathdirs="$rpathdirs $found_dir"
13261                     fi
13262                   else
13263                                                                                 haveit=
13264                     for x in $LDFLAGS $LIBICONV; do
13265
13266   acl_save_prefix="$prefix"
13267   prefix="$acl_final_prefix"
13268   acl_save_exec_prefix="$exec_prefix"
13269   exec_prefix="$acl_final_exec_prefix"
13270   eval x=\"$x\"
13271   exec_prefix="$acl_save_exec_prefix"
13272   prefix="$acl_save_prefix"
13273
13274                       if test "X$x" = "X-L$found_dir"; then
13275                         haveit=yes
13276                         break
13277                       fi
13278                     done
13279                     if test -z "$haveit"; then
13280                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
13281                     fi
13282                     if test "$acl_hardcode_minus_L" != no; then
13283                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13284                     else
13285                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13286                     fi
13287                   fi
13288                 fi
13289               fi
13290             else
13291               if test "X$found_a" != "X"; then
13292                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
13293               else
13294                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
13295               fi
13296             fi
13297                         additional_includedir=
13298             case "$found_dir" in
13299               */$acl_libdirstem | */$acl_libdirstem/)
13300                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
13301                 LIBICONV_PREFIX="$basedir"
13302                 additional_includedir="$basedir/include"
13303                 ;;
13304             esac
13305             if test "X$additional_includedir" != "X"; then
13306                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
13307                 haveit=
13308                 if test "X$additional_includedir" = "X/usr/local/include"; then
13309                   if test -n "$GCC"; then
13310                     case $host_os in
13311                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13312                     esac
13313                   fi
13314                 fi
13315                 if test -z "$haveit"; then
13316                   for x in $CPPFLAGS $INCICONV; do
13317
13318   acl_save_prefix="$prefix"
13319   prefix="$acl_final_prefix"
13320   acl_save_exec_prefix="$exec_prefix"
13321   exec_prefix="$acl_final_exec_prefix"
13322   eval x=\"$x\"
13323   exec_prefix="$acl_save_exec_prefix"
13324   prefix="$acl_save_prefix"
13325
13326                     if test "X$x" = "X-I$additional_includedir"; then
13327                       haveit=yes
13328                       break
13329                     fi
13330                   done
13331                   if test -z "$haveit"; then
13332                     if test -d "$additional_includedir"; then
13333                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
13334                     fi
13335                   fi
13336                 fi
13337               fi
13338             fi
13339                         if test -n "$found_la"; then
13340                                                         save_libdir="$libdir"
13341               case "$found_la" in
13342                 */* | *\\*) . "$found_la" ;;
13343                 *) . "./$found_la" ;;
13344               esac
13345               libdir="$save_libdir"
13346                             for dep in $dependency_libs; do
13347                 case "$dep" in
13348                   -L*)
13349                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13350                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
13351                       haveit=
13352                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
13353                         if test -n "$GCC"; then
13354                           case $host_os in
13355                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13356                           esac
13357                         fi
13358                       fi
13359                       if test -z "$haveit"; then
13360                         haveit=
13361                         for x in $LDFLAGS $LIBICONV; do
13362
13363   acl_save_prefix="$prefix"
13364   prefix="$acl_final_prefix"
13365   acl_save_exec_prefix="$exec_prefix"
13366   exec_prefix="$acl_final_exec_prefix"
13367   eval x=\"$x\"
13368   exec_prefix="$acl_save_exec_prefix"
13369   prefix="$acl_save_prefix"
13370
13371                           if test "X$x" = "X-L$additional_libdir"; then
13372                             haveit=yes
13373                             break
13374                           fi
13375                         done
13376                         if test -z "$haveit"; then
13377                           if test -d "$additional_libdir"; then
13378                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
13379                           fi
13380                         fi
13381                         haveit=
13382                         for x in $LDFLAGS $LTLIBICONV; do
13383
13384   acl_save_prefix="$prefix"
13385   prefix="$acl_final_prefix"
13386   acl_save_exec_prefix="$exec_prefix"
13387   exec_prefix="$acl_final_exec_prefix"
13388   eval x=\"$x\"
13389   exec_prefix="$acl_save_exec_prefix"
13390   prefix="$acl_save_prefix"
13391
13392                           if test "X$x" = "X-L$additional_libdir"; then
13393                             haveit=yes
13394                             break
13395                           fi
13396                         done
13397                         if test -z "$haveit"; then
13398                           if test -d "$additional_libdir"; then
13399                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
13400                           fi
13401                         fi
13402                       fi
13403                     fi
13404                     ;;
13405                   -R*)
13406                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
13407                     if test "$enable_rpath" != no; then
13408                                                                   haveit=
13409                       for x in $rpathdirs; do
13410                         if test "X$x" = "X$dir"; then
13411                           haveit=yes
13412                           break
13413                         fi
13414                       done
13415                       if test -z "$haveit"; then
13416                         rpathdirs="$rpathdirs $dir"
13417                       fi
13418                                                                   haveit=
13419                       for x in $ltrpathdirs; do
13420                         if test "X$x" = "X$dir"; then
13421                           haveit=yes
13422                           break
13423                         fi
13424                       done
13425                       if test -z "$haveit"; then
13426                         ltrpathdirs="$ltrpathdirs $dir"
13427                       fi
13428                     fi
13429                     ;;
13430                   -l*)
13431                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13432                     ;;
13433                   *.la)
13434                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13435                     ;;
13436                   *)
13437                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
13438                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
13439                     ;;
13440                 esac
13441               done
13442             fi
13443           else
13444                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13445             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
13446           fi
13447         fi
13448       fi
13449     done
13450   done
13451   if test "X$rpathdirs" != "X"; then
13452     if test -n "$acl_hardcode_libdir_separator"; then
13453                         alldirs=
13454       for found_dir in $rpathdirs; do
13455         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
13456       done
13457             acl_save_libdir="$libdir"
13458       libdir="$alldirs"
13459       eval flag=\"$acl_hardcode_libdir_flag_spec\"
13460       libdir="$acl_save_libdir"
13461       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
13462     else
13463             for found_dir in $rpathdirs; do
13464         acl_save_libdir="$libdir"
13465         libdir="$found_dir"
13466         eval flag=\"$acl_hardcode_libdir_flag_spec\"
13467         libdir="$acl_save_libdir"
13468         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
13469       done
13470     fi
13471   fi
13472   if test "X$ltrpathdirs" != "X"; then
13473             for found_dir in $ltrpathdirs; do
13474       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
13475     done
13476   fi
13477
13478
13479
13480
13481
13482
13483
13484
13485
13486
13487
13488
13489
13490
13491
13492
13493
13494
13495
13496
13497
13498
13499
13500
13501
13502     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
13503 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
13504 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
13505   $as_echo_n "(cached) " >&6
13506 else
13507   gt_save_LIBS="$LIBS"
13508      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
13509      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13510 /* end confdefs.h.  */
13511 #include <CoreFoundation/CFPreferences.h>
13512 int
13513 main ()
13514 {
13515 CFPreferencesCopyAppValue(NULL, NULL)
13516   ;
13517   return 0;
13518 }
13519 _ACEOF
13520 if ac_fn_c_try_link "$LINENO"; then :
13521   gt_cv_func_CFPreferencesCopyAppValue=yes
13522 else
13523   gt_cv_func_CFPreferencesCopyAppValue=no
13524 fi
13525 rm -f core conftest.err conftest.$ac_objext \
13526     conftest$ac_exeext conftest.$ac_ext
13527      LIBS="$gt_save_LIBS"
13528 fi
13529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
13530 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
13531   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
13532
13533 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
13534
13535   fi
13536     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
13537 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
13538 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
13539   $as_echo_n "(cached) " >&6
13540 else
13541   gt_save_LIBS="$LIBS"
13542      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
13543      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13544 /* end confdefs.h.  */
13545 #include <CoreFoundation/CFLocale.h>
13546 int
13547 main ()
13548 {
13549 CFLocaleCopyCurrent();
13550   ;
13551   return 0;
13552 }
13553 _ACEOF
13554 if ac_fn_c_try_link "$LINENO"; then :
13555   gt_cv_func_CFLocaleCopyCurrent=yes
13556 else
13557   gt_cv_func_CFLocaleCopyCurrent=no
13558 fi
13559 rm -f core conftest.err conftest.$ac_objext \
13560     conftest$ac_exeext conftest.$ac_ext
13561      LIBS="$gt_save_LIBS"
13562 fi
13563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
13564 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
13565   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
13566
13567 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
13568
13569   fi
13570   INTL_MACOSX_LIBS=
13571   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
13572     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
13573   fi
13574
13575
13576
13577
13578
13579
13580   LIBINTL=
13581   LTLIBINTL=
13582   POSUB=
13583
13584     case " $gt_needs " in
13585     *" need-formatstring-macros "*) gt_api_version=3 ;;
13586     *" need-ngettext "*) gt_api_version=2 ;;
13587     *) gt_api_version=1 ;;
13588   esac
13589   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
13590   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
13591
13592     if test "$USE_NLS" = "yes"; then
13593     gt_use_preinstalled_gnugettext=no
13594
13595
13596         if test $gt_api_version -ge 3; then
13597           gt_revision_test_code='
13598 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
13599 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
13600 #endif
13601 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
13602 '
13603         else
13604           gt_revision_test_code=
13605         fi
13606         if test $gt_api_version -ge 2; then
13607           gt_expression_test_code=' + * ngettext ("", "", 0)'
13608         else
13609           gt_expression_test_code=
13610         fi
13611
13612         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
13613 $as_echo_n "checking for GNU gettext in libc... " >&6; }
13614 if eval \${$gt_func_gnugettext_libc+:} false; then :
13615   $as_echo_n "(cached) " >&6
13616 else
13617   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13618 /* end confdefs.h.  */
13619 #include <libintl.h>
13620 $gt_revision_test_code
13621 extern int _nl_msg_cat_cntr;
13622 extern int *_nl_domain_bindings;
13623 int
13624 main ()
13625 {
13626 bindtextdomain ("", "");
13627 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
13628   ;
13629   return 0;
13630 }
13631 _ACEOF
13632 if ac_fn_c_try_link "$LINENO"; then :
13633   eval "$gt_func_gnugettext_libc=yes"
13634 else
13635   eval "$gt_func_gnugettext_libc=no"
13636 fi
13637 rm -f core conftest.err conftest.$ac_objext \
13638     conftest$ac_exeext conftest.$ac_ext
13639 fi
13640 eval ac_res=\$$gt_func_gnugettext_libc
13641                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13642 $as_echo "$ac_res" >&6; }
13643
13644         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
13645
13646
13647
13648
13649
13650           am_save_CPPFLAGS="$CPPFLAGS"
13651
13652   for element in $INCICONV; do
13653     haveit=
13654     for x in $CPPFLAGS; do
13655
13656   acl_save_prefix="$prefix"
13657   prefix="$acl_final_prefix"
13658   acl_save_exec_prefix="$exec_prefix"
13659   exec_prefix="$acl_final_exec_prefix"
13660   eval x=\"$x\"
13661   exec_prefix="$acl_save_exec_prefix"
13662   prefix="$acl_save_prefix"
13663
13664       if test "X$x" = "X$element"; then
13665         haveit=yes
13666         break
13667       fi
13668     done
13669     if test -z "$haveit"; then
13670       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13671     fi
13672   done
13673
13674
13675   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
13676 $as_echo_n "checking for iconv... " >&6; }
13677 if ${am_cv_func_iconv+:} false; then :
13678   $as_echo_n "(cached) " >&6
13679 else
13680
13681     am_cv_func_iconv="no, consider installing GNU libiconv"
13682     am_cv_lib_iconv=no
13683     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13684 /* end confdefs.h.  */
13685 #include <stdlib.h>
13686 #include <iconv.h>
13687 int
13688 main ()
13689 {
13690 iconv_t cd = iconv_open("","");
13691        iconv(cd,NULL,NULL,NULL,NULL);
13692        iconv_close(cd);
13693   ;
13694   return 0;
13695 }
13696 _ACEOF
13697 if ac_fn_c_try_link "$LINENO"; then :
13698   am_cv_func_iconv=yes
13699 fi
13700 rm -f core conftest.err conftest.$ac_objext \
13701     conftest$ac_exeext conftest.$ac_ext
13702     if test "$am_cv_func_iconv" != yes; then
13703       am_save_LIBS="$LIBS"
13704       LIBS="$LIBS $LIBICONV"
13705       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13706 /* end confdefs.h.  */
13707 #include <stdlib.h>
13708 #include <iconv.h>
13709 int
13710 main ()
13711 {
13712 iconv_t cd = iconv_open("","");
13713          iconv(cd,NULL,NULL,NULL,NULL);
13714          iconv_close(cd);
13715   ;
13716   return 0;
13717 }
13718 _ACEOF
13719 if ac_fn_c_try_link "$LINENO"; then :
13720   am_cv_lib_iconv=yes
13721         am_cv_func_iconv=yes
13722 fi
13723 rm -f core conftest.err conftest.$ac_objext \
13724     conftest$ac_exeext conftest.$ac_ext
13725       LIBS="$am_save_LIBS"
13726     fi
13727
13728 fi
13729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
13730 $as_echo "$am_cv_func_iconv" >&6; }
13731   if test "$am_cv_func_iconv" = yes; then
13732     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
13733 $as_echo_n "checking for working iconv... " >&6; }
13734 if ${am_cv_func_iconv_works+:} false; then :
13735   $as_echo_n "(cached) " >&6
13736 else
13737
13738             am_save_LIBS="$LIBS"
13739       if test $am_cv_lib_iconv = yes; then
13740         LIBS="$LIBS $LIBICONV"
13741       fi
13742       if test "$cross_compiling" = yes; then :
13743   case "$host_os" in
13744            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
13745            *)            am_cv_func_iconv_works="guessing yes" ;;
13746          esac
13747 else
13748   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13749 /* end confdefs.h.  */
13750
13751 #include <iconv.h>
13752 #include <string.h>
13753 int main ()
13754 {
13755   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
13756      returns.  */
13757   {
13758     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
13759     if (cd_utf8_to_88591 != (iconv_t)(-1))
13760       {
13761         static const char input[] = "\342\202\254"; /* EURO SIGN */
13762         char buf[10];
13763         const char *inptr = input;
13764         size_t inbytesleft = strlen (input);
13765         char *outptr = buf;
13766         size_t outbytesleft = sizeof (buf);
13767         size_t res = iconv (cd_utf8_to_88591,
13768                             (char **) &inptr, &inbytesleft,
13769                             &outptr, &outbytesleft);
13770         if (res == 0)
13771           return 1;
13772       }
13773   }
13774 #if 0 /* This bug could be worked around by the caller.  */
13775   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
13776   {
13777     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
13778     if (cd_88591_to_utf8 != (iconv_t)(-1))
13779       {
13780         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
13781         char buf[50];
13782         const char *inptr = input;
13783         size_t inbytesleft = strlen (input);
13784         char *outptr = buf;
13785         size_t outbytesleft = sizeof (buf);
13786         size_t res = iconv (cd_88591_to_utf8,
13787                             (char **) &inptr, &inbytesleft,
13788                             &outptr, &outbytesleft);
13789         if ((int)res > 0)
13790           return 1;
13791       }
13792   }
13793 #endif
13794   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
13795      provided.  */
13796   if (/* Try standardized names.  */
13797       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
13798       /* Try IRIX, OSF/1 names.  */
13799       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
13800       /* Try AIX names.  */
13801       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
13802       /* Try HP-UX names.  */
13803       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
13804     return 1;
13805   return 0;
13806 }
13807 _ACEOF
13808 if ac_fn_c_try_run "$LINENO"; then :
13809   am_cv_func_iconv_works=yes
13810 else
13811   am_cv_func_iconv_works=no
13812 fi
13813 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13814   conftest.$ac_objext conftest.beam conftest.$ac_ext
13815 fi
13816
13817       LIBS="$am_save_LIBS"
13818
13819 fi
13820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
13821 $as_echo "$am_cv_func_iconv_works" >&6; }
13822     case "$am_cv_func_iconv_works" in
13823       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
13824       *)   am_func_iconv=yes ;;
13825     esac
13826   else
13827     am_func_iconv=no am_cv_lib_iconv=no
13828   fi
13829   if test "$am_func_iconv" = yes; then
13830
13831 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
13832
13833   fi
13834   if test "$am_cv_lib_iconv" = yes; then
13835     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
13836 $as_echo_n "checking how to link with libiconv... " >&6; }
13837     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
13838 $as_echo "$LIBICONV" >&6; }
13839   else
13840             CPPFLAGS="$am_save_CPPFLAGS"
13841     LIBICONV=
13842     LTLIBICONV=
13843   fi
13844
13845
13846
13847
13848
13849
13850
13851
13852     use_additional=yes
13853
13854   acl_save_prefix="$prefix"
13855   prefix="$acl_final_prefix"
13856   acl_save_exec_prefix="$exec_prefix"
13857   exec_prefix="$acl_final_exec_prefix"
13858
13859     eval additional_includedir=\"$includedir\"
13860     eval additional_libdir=\"$libdir\"
13861
13862   exec_prefix="$acl_save_exec_prefix"
13863   prefix="$acl_save_prefix"
13864
13865
13866 # Check whether --with-libintl-prefix was given.
13867 if test "${with_libintl_prefix+set}" = set; then :
13868   withval=$with_libintl_prefix;
13869     if test "X$withval" = "Xno"; then
13870       use_additional=no
13871     else
13872       if test "X$withval" = "X"; then
13873
13874   acl_save_prefix="$prefix"
13875   prefix="$acl_final_prefix"
13876   acl_save_exec_prefix="$exec_prefix"
13877   exec_prefix="$acl_final_exec_prefix"
13878
13879           eval additional_includedir=\"$includedir\"
13880           eval additional_libdir=\"$libdir\"
13881
13882   exec_prefix="$acl_save_exec_prefix"
13883   prefix="$acl_save_prefix"
13884
13885       else
13886         additional_includedir="$withval/include"
13887         additional_libdir="$withval/$acl_libdirstem"
13888       fi
13889     fi
13890
13891 fi
13892
13893       LIBINTL=
13894   LTLIBINTL=
13895   INCINTL=
13896   LIBINTL_PREFIX=
13897   rpathdirs=
13898   ltrpathdirs=
13899   names_already_handled=
13900   names_next_round='intl '
13901   while test -n "$names_next_round"; do
13902     names_this_round="$names_next_round"
13903     names_next_round=
13904     for name in $names_this_round; do
13905       already_handled=
13906       for n in $names_already_handled; do
13907         if test "$n" = "$name"; then
13908           already_handled=yes
13909           break
13910         fi
13911       done
13912       if test -z "$already_handled"; then
13913         names_already_handled="$names_already_handled $name"
13914                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13915         eval value=\"\$HAVE_LIB$uppername\"
13916         if test -n "$value"; then
13917           if test "$value" = yes; then
13918             eval value=\"\$LIB$uppername\"
13919             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
13920             eval value=\"\$LTLIB$uppername\"
13921             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
13922           else
13923                                     :
13924           fi
13925         else
13926                               found_dir=
13927           found_la=
13928           found_so=
13929           found_a=
13930           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
13931           if test -n "$acl_shlibext"; then
13932             shrext=".$acl_shlibext"             # typically: shrext=.so
13933           else
13934             shrext=
13935           fi
13936           if test $use_additional = yes; then
13937             dir="$additional_libdir"
13938                                     if test -n "$acl_shlibext"; then
13939               if test -f "$dir/$libname$shrext"; then
13940                 found_dir="$dir"
13941                 found_so="$dir/$libname$shrext"
13942               else
13943                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13944                   ver=`(cd "$dir" && \
13945                         for f in "$libname$shrext".*; do echo "$f"; done \
13946                         | sed -e "s,^$libname$shrext\\\\.,," \
13947                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13948                         | sed 1q ) 2>/dev/null`
13949                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13950                     found_dir="$dir"
13951                     found_so="$dir/$libname$shrext.$ver"
13952                   fi
13953                 else
13954                   eval library_names=\"$acl_library_names_spec\"
13955                   for f in $library_names; do
13956                     if test -f "$dir/$f"; then
13957                       found_dir="$dir"
13958                       found_so="$dir/$f"
13959                       break
13960                     fi
13961                   done
13962                 fi
13963               fi
13964             fi
13965                         if test "X$found_dir" = "X"; then
13966               if test -f "$dir/$libname.$acl_libext"; then
13967                 found_dir="$dir"
13968                 found_a="$dir/$libname.$acl_libext"
13969               fi
13970             fi
13971             if test "X$found_dir" != "X"; then
13972               if test -f "$dir/$libname.la"; then
13973                 found_la="$dir/$libname.la"
13974               fi
13975             fi
13976           fi
13977           if test "X$found_dir" = "X"; then
13978             for x in $LDFLAGS $LTLIBINTL; do
13979
13980   acl_save_prefix="$prefix"
13981   prefix="$acl_final_prefix"
13982   acl_save_exec_prefix="$exec_prefix"
13983   exec_prefix="$acl_final_exec_prefix"
13984   eval x=\"$x\"
13985   exec_prefix="$acl_save_exec_prefix"
13986   prefix="$acl_save_prefix"
13987
13988               case "$x" in
13989                 -L*)
13990                   dir=`echo "X$x" | sed -e 's/^X-L//'`
13991                                     if test -n "$acl_shlibext"; then
13992                     if test -f "$dir/$libname$shrext"; then
13993                       found_dir="$dir"
13994                       found_so="$dir/$libname$shrext"
13995                     else
13996                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13997                         ver=`(cd "$dir" && \
13998                               for f in "$libname$shrext".*; do echo "$f"; done \
13999                               | sed -e "s,^$libname$shrext\\\\.,," \
14000                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14001                               | sed 1q ) 2>/dev/null`
14002                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14003                           found_dir="$dir"
14004                           found_so="$dir/$libname$shrext.$ver"
14005                         fi
14006                       else
14007                         eval library_names=\"$acl_library_names_spec\"
14008                         for f in $library_names; do
14009                           if test -f "$dir/$f"; then
14010                             found_dir="$dir"
14011                             found_so="$dir/$f"
14012                             break
14013                           fi
14014                         done
14015                       fi
14016                     fi
14017                   fi
14018                                     if test "X$found_dir" = "X"; then
14019                     if test -f "$dir/$libname.$acl_libext"; then
14020                       found_dir="$dir"
14021                       found_a="$dir/$libname.$acl_libext"
14022                     fi
14023                   fi
14024                   if test "X$found_dir" != "X"; then
14025                     if test -f "$dir/$libname.la"; then
14026                       found_la="$dir/$libname.la"
14027                     fi
14028                   fi
14029                   ;;
14030               esac
14031               if test "X$found_dir" != "X"; then
14032                 break
14033               fi
14034             done
14035           fi
14036           if test "X$found_dir" != "X"; then
14037                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
14038             if test "X$found_so" != "X"; then
14039                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
14040                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14041               else
14042                                                                                 haveit=
14043                 for x in $ltrpathdirs; do
14044                   if test "X$x" = "X$found_dir"; then
14045                     haveit=yes
14046                     break
14047                   fi
14048                 done
14049                 if test -z "$haveit"; then
14050                   ltrpathdirs="$ltrpathdirs $found_dir"
14051                 fi
14052                                 if test "$acl_hardcode_direct" = yes; then
14053                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14054                 else
14055                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
14056                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14057                                                             haveit=
14058                     for x in $rpathdirs; do
14059                       if test "X$x" = "X$found_dir"; then
14060                         haveit=yes
14061                         break
14062                       fi
14063                     done
14064                     if test -z "$haveit"; then
14065                       rpathdirs="$rpathdirs $found_dir"
14066                     fi
14067                   else
14068                                                                                 haveit=
14069                     for x in $LDFLAGS $LIBINTL; do
14070
14071   acl_save_prefix="$prefix"
14072   prefix="$acl_final_prefix"
14073   acl_save_exec_prefix="$exec_prefix"
14074   exec_prefix="$acl_final_exec_prefix"
14075   eval x=\"$x\"
14076   exec_prefix="$acl_save_exec_prefix"
14077   prefix="$acl_save_prefix"
14078
14079                       if test "X$x" = "X-L$found_dir"; then
14080                         haveit=yes
14081                         break
14082                       fi
14083                     done
14084                     if test -z "$haveit"; then
14085                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
14086                     fi
14087                     if test "$acl_hardcode_minus_L" != no; then
14088                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14089                     else
14090                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14091                     fi
14092                   fi
14093                 fi
14094               fi
14095             else
14096               if test "X$found_a" != "X"; then
14097                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
14098               else
14099                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
14100               fi
14101             fi
14102                         additional_includedir=
14103             case "$found_dir" in
14104               */$acl_libdirstem | */$acl_libdirstem/)
14105                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
14106                 LIBINTL_PREFIX="$basedir"
14107                 additional_includedir="$basedir/include"
14108                 ;;
14109             esac
14110             if test "X$additional_includedir" != "X"; then
14111                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
14112                 haveit=
14113                 if test "X$additional_includedir" = "X/usr/local/include"; then
14114                   if test -n "$GCC"; then
14115                     case $host_os in
14116                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14117                     esac
14118                   fi
14119                 fi
14120                 if test -z "$haveit"; then
14121                   for x in $CPPFLAGS $INCINTL; do
14122
14123   acl_save_prefix="$prefix"
14124   prefix="$acl_final_prefix"
14125   acl_save_exec_prefix="$exec_prefix"
14126   exec_prefix="$acl_final_exec_prefix"
14127   eval x=\"$x\"
14128   exec_prefix="$acl_save_exec_prefix"
14129   prefix="$acl_save_prefix"
14130
14131                     if test "X$x" = "X-I$additional_includedir"; then
14132                       haveit=yes
14133                       break
14134                     fi
14135                   done
14136                   if test -z "$haveit"; then
14137                     if test -d "$additional_includedir"; then
14138                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
14139                     fi
14140                   fi
14141                 fi
14142               fi
14143             fi
14144                         if test -n "$found_la"; then
14145                                                         save_libdir="$libdir"
14146               case "$found_la" in
14147                 */* | *\\*) . "$found_la" ;;
14148                 *) . "./$found_la" ;;
14149               esac
14150               libdir="$save_libdir"
14151                             for dep in $dependency_libs; do
14152                 case "$dep" in
14153                   -L*)
14154                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14155                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
14156                       haveit=
14157                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
14158                         if test -n "$GCC"; then
14159                           case $host_os in
14160                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14161                           esac
14162                         fi
14163                       fi
14164                       if test -z "$haveit"; then
14165                         haveit=
14166                         for x in $LDFLAGS $LIBINTL; do
14167
14168   acl_save_prefix="$prefix"
14169   prefix="$acl_final_prefix"
14170   acl_save_exec_prefix="$exec_prefix"
14171   exec_prefix="$acl_final_exec_prefix"
14172   eval x=\"$x\"
14173   exec_prefix="$acl_save_exec_prefix"
14174   prefix="$acl_save_prefix"
14175
14176                           if test "X$x" = "X-L$additional_libdir"; then
14177                             haveit=yes
14178                             break
14179                           fi
14180                         done
14181                         if test -z "$haveit"; then
14182                           if test -d "$additional_libdir"; then
14183                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
14184                           fi
14185                         fi
14186                         haveit=
14187                         for x in $LDFLAGS $LTLIBINTL; do
14188
14189   acl_save_prefix="$prefix"
14190   prefix="$acl_final_prefix"
14191   acl_save_exec_prefix="$exec_prefix"
14192   exec_prefix="$acl_final_exec_prefix"
14193   eval x=\"$x\"
14194   exec_prefix="$acl_save_exec_prefix"
14195   prefix="$acl_save_prefix"
14196
14197                           if test "X$x" = "X-L$additional_libdir"; then
14198                             haveit=yes
14199                             break
14200                           fi
14201                         done
14202                         if test -z "$haveit"; then
14203                           if test -d "$additional_libdir"; then
14204                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
14205                           fi
14206                         fi
14207                       fi
14208                     fi
14209                     ;;
14210                   -R*)
14211                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
14212                     if test "$enable_rpath" != no; then
14213                                                                   haveit=
14214                       for x in $rpathdirs; do
14215                         if test "X$x" = "X$dir"; then
14216                           haveit=yes
14217                           break
14218                         fi
14219                       done
14220                       if test -z "$haveit"; then
14221                         rpathdirs="$rpathdirs $dir"
14222                       fi
14223                                                                   haveit=
14224                       for x in $ltrpathdirs; do
14225                         if test "X$x" = "X$dir"; then
14226                           haveit=yes
14227                           break
14228                         fi
14229                       done
14230                       if test -z "$haveit"; then
14231                         ltrpathdirs="$ltrpathdirs $dir"
14232                       fi
14233                     fi
14234                     ;;
14235                   -l*)
14236                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14237                     ;;
14238                   *.la)
14239                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14240                     ;;
14241                   *)
14242                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
14243                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
14244                     ;;
14245                 esac
14246               done
14247             fi
14248           else
14249                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14250             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
14251           fi
14252         fi
14253       fi
14254     done
14255   done
14256   if test "X$rpathdirs" != "X"; then
14257     if test -n "$acl_hardcode_libdir_separator"; then
14258                         alldirs=
14259       for found_dir in $rpathdirs; do
14260         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
14261       done
14262             acl_save_libdir="$libdir"
14263       libdir="$alldirs"
14264       eval flag=\"$acl_hardcode_libdir_flag_spec\"
14265       libdir="$acl_save_libdir"
14266       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14267     else
14268             for found_dir in $rpathdirs; do
14269         acl_save_libdir="$libdir"
14270         libdir="$found_dir"
14271         eval flag=\"$acl_hardcode_libdir_flag_spec\"
14272         libdir="$acl_save_libdir"
14273         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14274       done
14275     fi
14276   fi
14277   if test "X$ltrpathdirs" != "X"; then
14278             for found_dir in $ltrpathdirs; do
14279       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
14280     done
14281   fi
14282
14283           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
14284 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
14285 if eval \${$gt_func_gnugettext_libintl+:} false; then :
14286   $as_echo_n "(cached) " >&6
14287 else
14288   gt_save_CPPFLAGS="$CPPFLAGS"
14289             CPPFLAGS="$CPPFLAGS $INCINTL"
14290             gt_save_LIBS="$LIBS"
14291             LIBS="$LIBS $LIBINTL"
14292                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14293 /* end confdefs.h.  */
14294 #include <libintl.h>
14295 $gt_revision_test_code
14296 extern int _nl_msg_cat_cntr;
14297 extern
14298 #ifdef __cplusplus
14299 "C"
14300 #endif
14301 const char *_nl_expand_alias (const char *);
14302 int
14303 main ()
14304 {
14305 bindtextdomain ("", "");
14306 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
14307   ;
14308   return 0;
14309 }
14310 _ACEOF
14311 if ac_fn_c_try_link "$LINENO"; then :
14312   eval "$gt_func_gnugettext_libintl=yes"
14313 else
14314   eval "$gt_func_gnugettext_libintl=no"
14315 fi
14316 rm -f core conftest.err conftest.$ac_objext \
14317     conftest$ac_exeext conftest.$ac_ext
14318                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
14319               LIBS="$LIBS $LIBICONV"
14320               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14321 /* end confdefs.h.  */
14322 #include <libintl.h>
14323 $gt_revision_test_code
14324 extern int _nl_msg_cat_cntr;
14325 extern
14326 #ifdef __cplusplus
14327 "C"
14328 #endif
14329 const char *_nl_expand_alias (const char *);
14330 int
14331 main ()
14332 {
14333 bindtextdomain ("", "");
14334 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
14335   ;
14336   return 0;
14337 }
14338 _ACEOF
14339 if ac_fn_c_try_link "$LINENO"; then :
14340   LIBINTL="$LIBINTL $LIBICONV"
14341                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
14342                 eval "$gt_func_gnugettext_libintl=yes"
14343
14344 fi
14345 rm -f core conftest.err conftest.$ac_objext \
14346     conftest$ac_exeext conftest.$ac_ext
14347             fi
14348             CPPFLAGS="$gt_save_CPPFLAGS"
14349             LIBS="$gt_save_LIBS"
14350 fi
14351 eval ac_res=\$$gt_func_gnugettext_libintl
14352                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14353 $as_echo "$ac_res" >&6; }
14354         fi
14355
14356                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
14357            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
14358                 && test "$PACKAGE" != gettext-runtime \
14359                 && test "$PACKAGE" != gettext-tools; }; then
14360           gt_use_preinstalled_gnugettext=yes
14361         else
14362                     LIBINTL=
14363           LTLIBINTL=
14364           INCINTL=
14365         fi
14366
14367
14368
14369     if test -n "$INTL_MACOSX_LIBS"; then
14370       if test "$gt_use_preinstalled_gnugettext" = "yes" \
14371          || test "$nls_cv_use_gnu_gettext" = "yes"; then
14372                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
14373         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
14374       fi
14375     fi
14376
14377     if test "$gt_use_preinstalled_gnugettext" = "yes" \
14378        || test "$nls_cv_use_gnu_gettext" = "yes"; then
14379
14380 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
14381
14382     else
14383       USE_NLS=no
14384     fi
14385   fi
14386
14387   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
14388 $as_echo_n "checking whether to use NLS... " >&6; }
14389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
14390 $as_echo "$USE_NLS" >&6; }
14391   if test "$USE_NLS" = "yes"; then
14392     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
14393 $as_echo_n "checking where the gettext function comes from... " >&6; }
14394     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14395       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
14396         gt_source="external libintl"
14397       else
14398         gt_source="libc"
14399       fi
14400     else
14401       gt_source="included intl directory"
14402     fi
14403     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
14404 $as_echo "$gt_source" >&6; }
14405   fi
14406
14407   if test "$USE_NLS" = "yes"; then
14408
14409     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14410       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
14411         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
14412 $as_echo_n "checking how to link with libintl... " >&6; }
14413         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
14414 $as_echo "$LIBINTL" >&6; }
14415
14416   for element in $INCINTL; do
14417     haveit=
14418     for x in $CPPFLAGS; do
14419
14420   acl_save_prefix="$prefix"
14421   prefix="$acl_final_prefix"
14422   acl_save_exec_prefix="$exec_prefix"
14423   exec_prefix="$acl_final_exec_prefix"
14424   eval x=\"$x\"
14425   exec_prefix="$acl_save_exec_prefix"
14426   prefix="$acl_save_prefix"
14427
14428       if test "X$x" = "X$element"; then
14429         haveit=yes
14430         break
14431       fi
14432     done
14433     if test -z "$haveit"; then
14434       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14435     fi
14436   done
14437
14438       fi
14439
14440
14441 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
14442
14443
14444 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
14445
14446     fi
14447
14448         POSUB=po
14449   fi
14450
14451
14452
14453     INTLLIBS="$LIBINTL"
14454
14455
14456
14457
14458
14459
14460
14461   if test "$USE_NLS" = "yes"; then
14462     GETTEXT_PACKAGE=gstreamer-$GST_MAJORMINOR
14463   else
14464     GETTEXT_PACKAGE=NULL
14465   fi
14466
14467
14468 cat >>confdefs.h <<_ACEOF
14469 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
14470 _ACEOF
14471
14472
14473
14474   EXP_VAR=LOCALEDIR
14475   FROM_VAR=$datadir/locale
14476
14477     prefix_save=$prefix
14478   exec_prefix_save=$exec_prefix
14479
14480     if test "x$prefix" = "xNONE"; then
14481     prefix="$ac_default_prefix"
14482   fi
14483     if test "x$exec_prefix" = "xNONE"; then
14484     exec_prefix=$prefix
14485   fi
14486
14487   full_var="$FROM_VAR"
14488     while true; do
14489     new_full_var="`eval echo $full_var`"
14490     if test "x$new_full_var" = "x$full_var"; then break; fi
14491     full_var=$new_full_var
14492   done
14493
14494     full_var=$new_full_var
14495   LOCALEDIR="$full_var"
14496
14497
14498     prefix=$prefix_save
14499   exec_prefix=$exec_prefix_save
14500
14501
14502 cat >>confdefs.h <<_ACEOF
14503 #define LOCALEDIR "$LOCALEDIR"
14504 _ACEOF
14505
14506
14507
14508
14509
14510
14511
14512   # Check whether --enable-gst-debug was given.
14513 if test "${enable_gst_debug+set}" = set; then :
14514   enableval=$enable_gst_debug;
14515       case "${enableval}" in
14516         yes) GST_DISABLE_GST_DEBUG=no ;;
14517         no) GST_DISABLE_GST_DEBUG=yes ;;
14518         *) as_fn_error $? "bad value ${enableval} for --enable-gst-debug" "$LINENO" 5 ;;
14519        esac
14520
14521 else
14522   GST_DISABLE_GST_DEBUG=no
14523 fi
14524
14525   if test x$GST_DISABLE_GST_DEBUG = xyes; then
14526     { $as_echo "$as_me:${as_lineno-$LINENO}: disabled subsystem debugging subsystem" >&5
14527 $as_echo "$as_me: disabled subsystem debugging subsystem" >&6;}
14528     GST_DISABLE_GST_DEBUG_DEFINE="#define GST_DISABLE_GST_DEBUG 1"
14529   else
14530     GST_DISABLE_GST_DEBUG_DEFINE="/* #undef GST_DISABLE_GST_DEBUG */"
14531   fi
14532
14533
14534
14535  if test "x$GST_DISABLE_GST_DEBUG" = "xyes"; then
14536   GST_DISABLE_GST_DEBUG_TRUE=
14537   GST_DISABLE_GST_DEBUG_FALSE='#'
14538 else
14539   GST_DISABLE_GST_DEBUG_TRUE='#'
14540   GST_DISABLE_GST_DEBUG_FALSE=
14541 fi
14542
14543
14544
14545
14546   # Check whether --enable-loadsave was given.
14547 if test "${enable_loadsave+set}" = set; then :
14548   enableval=$enable_loadsave;
14549       case "${enableval}" in
14550         yes) GST_DISABLE_LOADSAVE=no ;;
14551         no) GST_DISABLE_LOADSAVE=yes ;;
14552         *) as_fn_error $? "bad value ${enableval} for --enable-loadsave" "$LINENO" 5 ;;
14553        esac
14554
14555 else
14556   GST_DISABLE_LOADSAVE=no
14557 fi
14558
14559   if test x$GST_DISABLE_LOADSAVE = xyes; then
14560     { $as_echo "$as_me:${as_lineno-$LINENO}: disabled subsystem pipeline XML load/save" >&5
14561 $as_echo "$as_me: disabled subsystem pipeline XML load/save" >&6;}
14562     GST_DISABLE_LOADSAVE_DEFINE="#define GST_DISABLE_LOADSAVE 1"
14563   else
14564     GST_DISABLE_LOADSAVE_DEFINE="/* #undef GST_DISABLE_LOADSAVE */"
14565   fi
14566
14567
14568
14569  if test "x$GST_DISABLE_LOADSAVE" = "xyes"; then
14570   GST_DISABLE_LOADSAVE_TRUE=
14571   GST_DISABLE_LOADSAVE_FALSE='#'
14572 else
14573   GST_DISABLE_LOADSAVE_TRUE='#'
14574   GST_DISABLE_LOADSAVE_FALSE=
14575 fi
14576
14577 if test "x$GST_DISABLE_LOADSAVE" = "xyes"
14578 then
14579   GST_LOADSAVE_DOC_TYPES="%"
14580 else
14581   GST_LOADSAVE_DOC_TYPES=
14582 fi
14583
14584
14585
14586
14587   # Check whether --enable-parse was given.
14588 if test "${enable_parse+set}" = set; then :
14589   enableval=$enable_parse;
14590       case "${enableval}" in
14591         yes) GST_DISABLE_PARSE=no ;;
14592         no) GST_DISABLE_PARSE=yes ;;
14593         *) as_fn_error $? "bad value ${enableval} for --enable-parse" "$LINENO" 5 ;;
14594        esac
14595
14596 else
14597   GST_DISABLE_PARSE=no
14598 fi
14599
14600   if test x$GST_DISABLE_PARSE = xyes; then
14601     { $as_echo "$as_me:${as_lineno-$LINENO}: disabled subsystem command-line parser" >&5
14602 $as_echo "$as_me: disabled subsystem command-line parser" >&6;}
14603     GST_DISABLE_PARSE_DEFINE="#define GST_DISABLE_PARSE 1"
14604   else
14605     GST_DISABLE_PARSE_DEFINE="/* #undef GST_DISABLE_PARSE */"
14606   fi
14607
14608
14609
14610  if test "x$GST_DISABLE_PARSE" = "xyes"; then
14611   GST_DISABLE_PARSE_TRUE=
14612   GST_DISABLE_PARSE_FALSE='#'
14613 else
14614   GST_DISABLE_PARSE_TRUE='#'
14615   GST_DISABLE_PARSE_FALSE=
14616 fi
14617
14618 if test "x$GST_DISABLE_PARSE" = xyes; then
14619
14620 $as_echo "#define GST_DISABLE_PARSE 1" >>confdefs.h
14621
14622 fi
14623
14624
14625
14626   # Check whether --enable-option-parsing was given.
14627 if test "${enable_option_parsing+set}" = set; then :
14628   enableval=$enable_option_parsing;
14629       case "${enableval}" in
14630         yes) GST_DISABLE_OPTION_PARSING=no ;;
14631         no) GST_DISABLE_OPTION_PARSING=yes ;;
14632         *) as_fn_error $? "bad value ${enableval} for --enable-option-parsing" "$LINENO" 5 ;;
14633        esac
14634
14635 else
14636   GST_DISABLE_OPTION_PARSING=no
14637 fi
14638
14639   if test x$GST_DISABLE_OPTION_PARSING = xyes; then
14640     { $as_echo "$as_me:${as_lineno-$LINENO}: disabled subsystem option parsing when gst_init" >&5
14641 $as_echo "$as_me: disabled subsystem option parsing when gst_init" >&6;}
14642     GST_DISABLE_OPTION_PARSING_DEFINE="#define GST_DISABLE_OPTION_PARSING 1"
14643   else
14644     GST_DISABLE_OPTION_PARSING_DEFINE="/* #undef GST_DISABLE_OPTION_PARSING */"
14645   fi
14646
14647
14648
14649  if test "x$GST_DISABLE_OPTION_PARSING" = "xyes"; then
14650   GST_DISABLE_OPTION_PARSING_TRUE=
14651   GST_DISABLE_OPTION_PARSING_FALSE='#'
14652 else
14653   GST_DISABLE_OPTION_PARSING_TRUE='#'
14654   GST_DISABLE_OPTION_PARSING_FALSE=
14655 fi
14656
14657 if test "x$GST_DISABLE_OPTION_PARSING" = xyes; then
14658
14659 $as_echo "#define GST_DISABLE_OPTION_PARSING 1" >>confdefs.h
14660
14661 fi
14662
14663
14664
14665   # Check whether --enable-trace was given.
14666 if test "${enable_trace+set}" = set; then :
14667   enableval=$enable_trace;
14668       case "${enableval}" in
14669         yes) GST_DISABLE_TRACE=no ;;
14670         no) GST_DISABLE_TRACE=yes ;;
14671         *) as_fn_error $? "bad value ${enableval} for --enable-trace" "$LINENO" 5 ;;
14672        esac
14673
14674 else
14675   GST_DISABLE_TRACE=no
14676 fi
14677
14678   if test x$GST_DISABLE_TRACE = xyes; then
14679     { $as_echo "$as_me:${as_lineno-$LINENO}: disabled subsystem tracing subsystem" >&5
14680 $as_echo "$as_me: disabled subsystem tracing subsystem" >&6;}
14681     GST_DISABLE_TRACE_DEFINE="#define GST_DISABLE_TRACE 1"
14682   else
14683     GST_DISABLE_TRACE_DEFINE="/* #undef GST_DISABLE_TRACE */"
14684   fi
14685
14686
14687
14688  if test "x$GST_DISABLE_TRACE" = "xyes"; then
14689   GST_DISABLE_TRACE_TRUE=
14690   GST_DISABLE_TRACE_FALSE='#'
14691 else
14692   GST_DISABLE_TRACE_TRUE='#'
14693   GST_DISABLE_TRACE_FALSE=
14694 fi
14695
14696
14697
14698
14699   # Check whether --enable-alloc-trace was given.
14700 if test "${enable_alloc_trace+set}" = set; then :
14701   enableval=$enable_alloc_trace;
14702       case "${enableval}" in
14703         yes) GST_DISABLE_ALLOC_TRACE=no ;;
14704         no) GST_DISABLE_ALLOC_TRACE=yes ;;
14705         *) as_fn_error $? "bad value ${enableval} for --enable-alloc-trace" "$LINENO" 5 ;;
14706        esac
14707
14708 else
14709   GST_DISABLE_ALLOC_TRACE=no
14710 fi
14711
14712   if test x$GST_DISABLE_ALLOC_TRACE = xyes; then
14713     { $as_echo "$as_me:${as_lineno-$LINENO}: disabled subsystem allocation tracing" >&5
14714 $as_echo "$as_me: disabled subsystem allocation tracing" >&6;}
14715     GST_DISABLE_ALLOC_TRACE_DEFINE="#define GST_DISABLE_ALLOC_TRACE 1"
14716   else
14717     GST_DISABLE_ALLOC_TRACE_DEFINE="/* #undef GST_DISABLE_ALLOC_TRACE */"
14718   fi
14719
14720
14721
14722  if test "x$GST_DISABLE_ALLOC_TRACE" = "xyes"; then
14723   GST_DISABLE_ALLOC_TRACE_TRUE=
14724   GST_DISABLE_ALLOC_TRACE_FALSE='#'
14725 else
14726   GST_DISABLE_ALLOC_TRACE_TRUE='#'
14727   GST_DISABLE_ALLOC_TRACE_FALSE=
14728 fi
14729
14730
14731
14732
14733   # Check whether --enable-registry was given.
14734 if test "${enable_registry+set}" = set; then :
14735   enableval=$enable_registry;
14736       case "${enableval}" in
14737         yes) GST_DISABLE_REGISTRY=no ;;
14738         no) GST_DISABLE_REGISTRY=yes ;;
14739         *) as_fn_error $? "bad value ${enableval} for --enable-registry" "$LINENO" 5 ;;
14740        esac
14741
14742 else
14743   GST_DISABLE_REGISTRY=no
14744 fi
14745
14746   if test x$GST_DISABLE_REGISTRY = xyes; then
14747     { $as_echo "$as_me:${as_lineno-$LINENO}: disabled subsystem plugin registry" >&5
14748 $as_echo "$as_me: disabled subsystem plugin registry" >&6;}
14749     GST_DISABLE_REGISTRY_DEFINE="#define GST_DISABLE_REGISTRY 1"
14750   else
14751     GST_DISABLE_REGISTRY_DEFINE="/* #undef GST_DISABLE_REGISTRY */"
14752   fi
14753
14754
14755
14756  if test "x$GST_DISABLE_REGISTRY" = "xyes"; then
14757   GST_DISABLE_REGISTRY_TRUE=
14758   GST_DISABLE_REGISTRY_FALSE='#'
14759 else
14760   GST_DISABLE_REGISTRY_TRUE='#'
14761   GST_DISABLE_REGISTRY_FALSE=
14762 fi
14763
14764 if test "x$GST_DISABLE_REGISTRY" = "xyes"
14765 then
14766   GST_REGISTRY_DOC_TYPES="%"
14767 else
14768   GST_REGISTRY_DOC_TYPES=
14769 fi
14770
14771
14772
14773
14774   # Check whether --enable-net was given.
14775 if test "${enable_net+set}" = set; then :
14776   enableval=$enable_net;
14777       case "${enableval}" in
14778         yes) GST_DISABLE_NET=no ;;
14779         no) GST_DISABLE_NET=yes ;;
14780         *) as_fn_error $? "bad value ${enableval} for --enable-net" "$LINENO" 5 ;;
14781        esac
14782
14783 else
14784   GST_DISABLE_NET=no
14785 fi
14786
14787   if test x$GST_DISABLE_NET = xyes; then
14788     { $as_echo "$as_me:${as_lineno-$LINENO}: disabled subsystem network distribution" >&5
14789 $as_echo "$as_me: disabled subsystem network distribution" >&6;}
14790     GST_DISABLE_NET_DEFINE="#define GST_DISABLE_NET 1"
14791   else
14792     GST_DISABLE_NET_DEFINE="/* #undef GST_DISABLE_NET */"
14793   fi
14794
14795
14796
14797  if test "x$GST_DISABLE_NET" = "xyes"; then
14798   GST_DISABLE_NET_TRUE=
14799   GST_DISABLE_NET_FALSE='#'
14800 else
14801   GST_DISABLE_NET_TRUE='#'
14802   GST_DISABLE_NET_FALSE=
14803 fi
14804
14805
14806
14807
14808   # Check whether --enable-plugin was given.
14809 if test "${enable_plugin+set}" = set; then :
14810   enableval=$enable_plugin;
14811       case "${enableval}" in
14812         yes) GST_DISABLE_PLUGIN=no ;;
14813         no) GST_DISABLE_PLUGIN=yes ;;
14814         *) as_fn_error $? "bad value ${enableval} for --enable-plugin" "$LINENO" 5 ;;
14815        esac
14816
14817 else
14818   GST_DISABLE_PLUGIN=no
14819 fi
14820
14821   if test x$GST_DISABLE_PLUGIN = xyes; then
14822     { $as_echo "$as_me:${as_lineno-$LINENO}: disabled subsystem plugin" >&5
14823 $as_echo "$as_me: disabled subsystem plugin" >&6;}
14824     GST_DISABLE_PLUGIN_DEFINE="#define GST_DISABLE_PLUGIN 1"
14825   else
14826     GST_DISABLE_PLUGIN_DEFINE="/* #undef GST_DISABLE_PLUGIN */"
14827   fi
14828
14829
14830
14831  if test "x$GST_DISABLE_PLUGIN" = "xyes"; then
14832   GST_DISABLE_PLUGIN_TRUE=
14833   GST_DISABLE_PLUGIN_FALSE='#'
14834 else
14835   GST_DISABLE_PLUGIN_TRUE='#'
14836   GST_DISABLE_PLUGIN_FALSE=
14837 fi
14838
14839
14840
14841     # Check whether --enable-debug was given.
14842 if test "${enable_debug+set}" = set; then :
14843   enableval=$enable_debug;
14844       case "${enableval}" in
14845         yes) USE_DEBUG=yes ;;
14846         no)  USE_DEBUG=no ;;
14847         *)   as_fn_error $? "bad value ${enableval} for --enable-debug" "$LINENO" 5 ;;
14848       esac
14849
14850 else
14851   USE_DEBUG=yes
14852 fi
14853
14854
14855   # Check whether --enable-profiling was given.
14856 if test "${enable_profiling+set}" = set; then :
14857   enableval=$enable_profiling;
14858       case "${enableval}" in
14859         yes) USE_PROFILING=yes ;;
14860         no)  USE_PROFILING=no ;;
14861         *)   as_fn_error $? "bad value ${enableval} for --enable-profiling" "$LINENO" 5 ;;
14862       esac
14863
14864 else
14865   USE_PROFILING=no
14866 fi
14867
14868
14869
14870 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
14871         if test -n "$ac_tool_prefix"; then
14872   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
14873 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
14874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14875 $as_echo_n "checking for $ac_word... " >&6; }
14876 if ${ac_cv_path_PKG_CONFIG+:} false; then :
14877   $as_echo_n "(cached) " >&6
14878 else
14879   case $PKG_CONFIG in
14880   [\\/]* | ?:[\\/]*)
14881   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14882   ;;
14883   *)
14884   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14885 for as_dir in $PATH
14886 do
14887   IFS=$as_save_IFS
14888   test -z "$as_dir" && as_dir=.
14889     for ac_exec_ext in '' $ac_executable_extensions; do
14890   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14891     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14892     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14893     break 2
14894   fi
14895 done
14896   done
14897 IFS=$as_save_IFS
14898
14899   ;;
14900 esac
14901 fi
14902 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14903 if test -n "$PKG_CONFIG"; then
14904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
14905 $as_echo "$PKG_CONFIG" >&6; }
14906 else
14907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14908 $as_echo "no" >&6; }
14909 fi
14910
14911
14912 fi
14913 if test -z "$ac_cv_path_PKG_CONFIG"; then
14914   ac_pt_PKG_CONFIG=$PKG_CONFIG
14915   # Extract the first word of "pkg-config", so it can be a program name with args.
14916 set dummy pkg-config; ac_word=$2
14917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14918 $as_echo_n "checking for $ac_word... " >&6; }
14919 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
14920   $as_echo_n "(cached) " >&6
14921 else
14922   case $ac_pt_PKG_CONFIG in
14923   [\\/]* | ?:[\\/]*)
14924   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
14925   ;;
14926   *)
14927   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14928 for as_dir in $PATH
14929 do
14930   IFS=$as_save_IFS
14931   test -z "$as_dir" && as_dir=.
14932     for ac_exec_ext in '' $ac_executable_extensions; do
14933   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14934     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14935     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14936     break 2
14937   fi
14938 done
14939   done
14940 IFS=$as_save_IFS
14941
14942   ;;
14943 esac
14944 fi
14945 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
14946 if test -n "$ac_pt_PKG_CONFIG"; then
14947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
14948 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
14949 else
14950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14951 $as_echo "no" >&6; }
14952 fi
14953
14954   if test "x$ac_pt_PKG_CONFIG" = x; then
14955     PKG_CONFIG=""
14956   else
14957     case $cross_compiling:$ac_tool_warned in
14958 yes:)
14959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14960 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14961 ac_tool_warned=yes ;;
14962 esac
14963     PKG_CONFIG=$ac_pt_PKG_CONFIG
14964   fi
14965 else
14966   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14967 fi
14968
14969 fi
14970 if test -n "$PKG_CONFIG"; then
14971         _pkg_min_version=0.9.0
14972         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
14973 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
14974         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
14975                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14976 $as_echo "yes" >&6; }
14977         else
14978                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14979 $as_echo "no" >&6; }
14980                 PKG_CONFIG=""
14981         fi
14982
14983 fi
14984
14985     # Check whether --enable-valgrind was given.
14986 if test "${enable_valgrind+set}" = set; then :
14987   enableval=$enable_valgrind;
14988       case "${enableval}" in
14989         yes) USE_VALGRIND="$USE_DEBUG" ;;
14990         no)  USE_VALGRIND=no ;;
14991         *)   as_fn_error $? "bad value ${enableval} for --enable-valgrind" "$LINENO" 5 ;;
14992       esac
14993
14994 else
14995   USE_VALGRIND="$USE_DEBUG"
14996 fi
14997    VALGRIND_REQ="3.0"
14998   if test "x$USE_VALGRIND" = xyes; then
14999
15000 pkg_failed=no
15001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VALGRIND" >&5
15002 $as_echo_n "checking for VALGRIND... " >&6; }
15003
15004 if test -n "$PKG_CONFIG"; then
15005     if test -n "$VALGRIND_CFLAGS"; then
15006         pkg_cv_VALGRIND_CFLAGS="$VALGRIND_CFLAGS"
15007     else
15008         if test -n "$PKG_CONFIG" && \
15009     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"valgrind >= \$VALGRIND_REQ\""; } >&5
15010   ($PKG_CONFIG --exists --print-errors "valgrind >= $VALGRIND_REQ") 2>&5
15011   ac_status=$?
15012   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15013   test $ac_status = 0; }; then
15014   pkg_cv_VALGRIND_CFLAGS=`$PKG_CONFIG --cflags "valgrind >= $VALGRIND_REQ" 2>/dev/null`
15015 else
15016   pkg_failed=yes
15017 fi
15018     fi
15019 else
15020         pkg_failed=untried
15021 fi
15022 if test -n "$PKG_CONFIG"; then
15023     if test -n "$VALGRIND_LIBS"; then
15024         pkg_cv_VALGRIND_LIBS="$VALGRIND_LIBS"
15025     else
15026         if test -n "$PKG_CONFIG" && \
15027     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"valgrind >= \$VALGRIND_REQ\""; } >&5
15028   ($PKG_CONFIG --exists --print-errors "valgrind >= $VALGRIND_REQ") 2>&5
15029   ac_status=$?
15030   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15031   test $ac_status = 0; }; then
15032   pkg_cv_VALGRIND_LIBS=`$PKG_CONFIG --libs "valgrind >= $VALGRIND_REQ" 2>/dev/null`
15033 else
15034   pkg_failed=yes
15035 fi
15036     fi
15037 else
15038         pkg_failed=untried
15039 fi
15040
15041
15042
15043 if test $pkg_failed = yes; then
15044
15045 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15046         _pkg_short_errors_supported=yes
15047 else
15048         _pkg_short_errors_supported=no
15049 fi
15050         if test $_pkg_short_errors_supported = yes; then
15051                 VALGRIND_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "valgrind >= $VALGRIND_REQ"`
15052         else
15053                 VALGRIND_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "valgrind >= $VALGRIND_REQ"`
15054         fi
15055         # Put the nasty error message in config.log where it belongs
15056         echo "$VALGRIND_PKG_ERRORS" >&5
15057
15058         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15059 $as_echo "no" >&6; }
15060                 USE_VALGRIND="no"
15061 elif test $pkg_failed = untried; then
15062         USE_VALGRIND="no"
15063 else
15064         VALGRIND_CFLAGS=$pkg_cv_VALGRIND_CFLAGS
15065         VALGRIND_LIBS=$pkg_cv_VALGRIND_LIBS
15066         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15067 $as_echo "yes" >&6; }
15068         USE_VALGRIND="yes"
15069 fi
15070   fi
15071   if test "x$USE_VALGRIND" = xyes; then
15072
15073 $as_echo "#define HAVE_VALGRIND 1" >>confdefs.h
15074
15075     { $as_echo "$as_me:${as_lineno-$LINENO}: Using extra code paths for valgrind" >&5
15076 $as_echo "$as_me: Using extra code paths for valgrind" >&6;}
15077   fi
15078
15079
15080   # Check whether --enable-gcov was given.
15081 if test "${enable_gcov+set}" = set; then :
15082   enableval=$enable_gcov; enable_gcov=$enableval
15083 else
15084   enable_gcov=no
15085 fi
15086
15087   if test x$enable_gcov = xyes ; then
15088     if test "x$GCC" != "xyes"
15089     then
15090       as_fn_error $? "gcov only works if gcc is used" "$LINENO" 5
15091     fi
15092
15093
15094   { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if compiler understands \"-fprofile-arcs\"" >&5
15095 $as_echo_n "checking to see if compiler understands \"-fprofile-arcs\"... " >&6; }
15096
15097   save_CFLAGS="$CFLAGS"
15098   CFLAGS="$CFLAGS "-fprofile-arcs""
15099
15100   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15101 /* end confdefs.h.  */
15102
15103 int
15104 main ()
15105 {
15106
15107   ;
15108   return 0;
15109 }
15110 _ACEOF
15111 if ac_fn_c_try_compile "$LINENO"; then :
15112   flag_ok=yes
15113 else
15114   flag_ok=no
15115 fi
15116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15117   CFLAGS="$save_CFLAGS"
15118
15119   if test "X$flag_ok" = Xyes ; then
15120     GCOV_CFLAGS="$GCOV_CFLAGS -fprofile-arcs"
15121     true
15122   else
15123     true
15124     true
15125   fi
15126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
15127 $as_echo "$flag_ok" >&6; }
15128
15129
15130   { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if compiler understands \"-ftest-coverage\"" >&5
15131 $as_echo_n "checking to see if compiler understands \"-ftest-coverage\"... " >&6; }
15132
15133   save_CFLAGS="$CFLAGS"
15134   CFLAGS="$CFLAGS "-ftest-coverage""
15135
15136   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15137 /* end confdefs.h.  */
15138
15139 int
15140 main ()
15141 {
15142
15143   ;
15144   return 0;
15145 }
15146 _ACEOF
15147 if ac_fn_c_try_compile "$LINENO"; then :
15148   flag_ok=yes
15149 else
15150   flag_ok=no
15151 fi
15152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15153   CFLAGS="$save_CFLAGS"
15154
15155   if test "X$flag_ok" = Xyes ; then
15156     GCOV_CFLAGS="$GCOV_CFLAGS -ftest-coverage"
15157     true
15158   else
15159     true
15160     true
15161   fi
15162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
15163 $as_echo "$flag_ok" >&6; }
15164
15165         GCOV_CFLAGS=`echo "$GCOV_CFLAGS" | sed -e 's/-O[0-9]*//g'`
15166                 GCOV_LIBS=-lgcov
15167
15168
15169     GCOV=`echo $CC | sed s/gcc/gcov/g`
15170
15171
15172     GST_GCOV_ENABLED=yes
15173
15174 cat >>confdefs.h <<_ACEOF
15175 #define GST_GCOV_ENABLED 1
15176 _ACEOF
15177
15178         if test "x$GST_GCOV_ENABLED" = "xyes"
15179     then
15180       CFLAGS="-O0"
15181
15182       CXXFLAGS="-O0"
15183
15184       FFLAGS="-O0"
15185
15186       CCASFLAGS="-O0"
15187
15188       { $as_echo "$as_me:${as_lineno-$LINENO}: gcov enabled, setting CFLAGS and friends to $CFLAGS" >&5
15189 $as_echo "$as_me: gcov enabled, setting CFLAGS and friends to $CFLAGS" >&6;}
15190     fi
15191   fi
15192    if test x$enable_gcov = xyes; then
15193   GST_GCOV_ENABLED_TRUE=
15194   GST_GCOV_ENABLED_FALSE='#'
15195 else
15196   GST_GCOV_ENABLED_TRUE='#'
15197   GST_GCOV_ENABLED_FALSE=
15198 fi
15199
15200
15201
15202
15203   # Check whether --enable-examples was given.
15204 if test "${enable_examples+set}" = set; then :
15205   enableval=$enable_examples;
15206         case "${enableval}" in
15207           yes) BUILD_EXAMPLES=yes ;;
15208           no)  BUILD_EXAMPLES=no ;;
15209           *)   as_fn_error $? "bad value ${enableval} for --disable-examples" "$LINENO" 5 ;;
15210         esac
15211
15212 else
15213   BUILD_EXAMPLES=yes
15214 fi
15215     if test "x$BUILD_EXAMPLES" = "xyes"; then
15216   BUILD_EXAMPLES_TRUE=
15217   BUILD_EXAMPLES_FALSE='#'
15218 else
15219   BUILD_EXAMPLES_TRUE='#'
15220   BUILD_EXAMPLES_FALSE=
15221 fi
15222
15223
15224
15225
15226
15227 # Check whether --with-pkg-config-path was given.
15228 if test "${with_pkg_config_path+set}" = set; then :
15229   withval=$with_pkg_config_path;
15230        export PKG_CONFIG_PATH=${withval}
15231        { $as_echo "$as_me:${as_lineno-$LINENO}: Set PKG_CONFIG_PATH to $PKG_CONFIG_PATH" >&5
15232 $as_echo "$as_me: Set PKG_CONFIG_PATH to $PKG_CONFIG_PATH" >&6;}
15233
15234 fi
15235
15236
15237
15238
15239 # Check whether --with-package-name was given.
15240 if test "${with_package_name+set}" = set; then :
15241   withval=$with_package_name;
15242       case "${withval}" in
15243         yes) as_fn_error $? "bad value ${withval} for --with-package-name" "$LINENO" 5 ;;
15244         no)  as_fn_error $? "bad value ${withval} for --with-package-name" "$LINENO" 5 ;;
15245         *)   GST_PACKAGE_NAME="${withval}" ;;
15246       esac
15247
15248 else
15249
15250       P=
15251       if test "x$P" = "x"
15252       then
15253         P=$PACKAGE_NAME
15254       fi
15255
15256       if test "x$PACKAGE_VERSION_NANO" = "x0"
15257       then
15258         GST_PACKAGE_NAME="$P source release"
15259       else
15260         if test "x$PACKAGE_VERSION_NANO" = "x1"
15261         then
15262           GST_PACKAGE_NAME="$P git"
15263         else
15264           GST_PACKAGE_NAME="$P prerelease"
15265         fi
15266       fi
15267
15268
15269 fi
15270
15271   { $as_echo "$as_me:${as_lineno-$LINENO}: Using $GST_PACKAGE_NAME as package name" >&5
15272 $as_echo "$as_me: Using $GST_PACKAGE_NAME as package name" >&6;}
15273
15274 cat >>confdefs.h <<_ACEOF
15275 #define GST_PACKAGE_NAME "$GST_PACKAGE_NAME"
15276 _ACEOF
15277
15278
15279
15280
15281
15282 # Check whether --with-package-origin was given.
15283 if test "${with_package_origin+set}" = set; then :
15284   withval=$with_package_origin;
15285       case "${withval}" in
15286         yes) as_fn_error $? "bad value ${withval} for --with-package-origin" "$LINENO" 5 ;;
15287         no)  as_fn_error $? "bad value ${withval} for --with-package-origin" "$LINENO" 5 ;;
15288         *)   GST_PACKAGE_ORIGIN="${withval}" ;;
15289       esac
15290
15291 else
15292   GST_PACKAGE_ORIGIN="Unknown package origin"
15293 fi
15294
15295   { $as_echo "$as_me:${as_lineno-$LINENO}: Using $GST_PACKAGE_ORIGIN as package origin" >&5
15296 $as_echo "$as_me: Using $GST_PACKAGE_ORIGIN as package origin" >&6;}
15297
15298 cat >>confdefs.h <<_ACEOF
15299 #define GST_PACKAGE_ORIGIN "$GST_PACKAGE_ORIGIN"
15300 _ACEOF
15301
15302
15303
15304
15305
15306   GST_PKG_CONFIG_PATH="\$(top_builddir)/pkgconfig"
15307   if test "x$PKG_CONFIG_PATH" != "x"; then
15308     GST_PKG_CONFIG_PATH="$GST_PKG_CONFIG_PATH:$PKG_CONFIG_PATH"
15309   fi
15310
15311   { $as_echo "$as_me:${as_lineno-$LINENO}: Using GST_PKG_CONFIG_PATH = $GST_PKG_CONFIG_PATH" >&5
15312 $as_echo "$as_me: Using GST_PKG_CONFIG_PATH = $GST_PKG_CONFIG_PATH" >&6;}
15313
15314
15315
15316   if test "x$PACKAGE_VERSION_NANO" = "x0"; then
15317
15318       if test "xyes" = "xno" -o "xyes" = "x"; then
15319     GST_PACKAGE_RELEASE_DATETIME=`date -u "+%Y-%m-%dT%H:%MZ"`
15320   elif test "xyes" = "xyes"; then
15321             if ( echo yes | grep -e '^201-90-9-0-10-9-0-30-9' >/dev/null ) ; then
15322       GST_PACKAGE_RELEASE_DATETIME=yes
15323     else
15324             YYYY_MM_DD=`sh "${srcdir}/common/extract-release-date-from-doap-file"  $PACKAGE_VERSION_MAJOR.$PACKAGE_VERSION_MINOR.$PACKAGE_VERSION_MICRO   "${srcdir}/gstreamer.doap" `;
15325       if test "x$YYYY_MM_DD" != "x"; then
15326         GST_PACKAGE_RELEASE_DATETIME=$YYYY_MM_DD
15327       else
15328         as_fn_error $? "SET_PACKAGE_RELEASE_DATETIME: could not extract
15329             release date for release version  $PACKAGE_VERSION_MAJOR.$PACKAGE_VERSION_MINOR.$PACKAGE_VERSION_MICRO  from  \"${srcdir}/gstreamer.doap\" " "$LINENO" 5
15330         GST_PACKAGE_RELEASE_DATETIME=""
15331       fi
15332     fi
15333     elif ( echo yes | grep -e '^201-90-9-0-10-9-0-30-9' >/dev/null ) ; then
15334     GST_PACKAGE_RELEASE_DATETIME=yes
15335   else
15336     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SET_PACKAGE_RELEASE_DATETIME: invalid first argument" >&5
15337 $as_echo "$as_me: WARNING: SET_PACKAGE_RELEASE_DATETIME: invalid first argument" >&2;}
15338     GST_PACKAGE_RELEASE_DATETIME=""
15339   fi
15340
15341   if test "x$GST_PACKAGE_RELEASE_DATETIME" = "x"; then
15342     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Invalid package release date time: $GST_PACKAGE_RELEASE_DATETIME" >&5
15343 $as_echo "$as_me: WARNING: Invalid package release date time: $GST_PACKAGE_RELEASE_DATETIME" >&2;}
15344   else
15345     { $as_echo "$as_me:${as_lineno-$LINENO}: Setting GST_PACKAGE_RELEASE_DATETIME to $GST_PACKAGE_RELEASE_DATETIME" >&5
15346 $as_echo "$as_me: Setting GST_PACKAGE_RELEASE_DATETIME to $GST_PACKAGE_RELEASE_DATETIME" >&6;}
15347
15348
15349 cat >>confdefs.h <<_ACEOF
15350 #define GST_PACKAGE_RELEASE_DATETIME "$GST_PACKAGE_RELEASE_DATETIME"
15351 _ACEOF
15352
15353   fi
15354
15355   else
15356
15357       if test "xno" = "xno" -o "xno" = "x"; then
15358     GST_PACKAGE_RELEASE_DATETIME=`date -u "+%Y-%m-%dT%H:%MZ"`
15359   elif test "xno" = "xyes"; then
15360             if ( echo no | grep -e '^201-90-9-0-10-9-0-30-9' >/dev/null ) ; then
15361       GST_PACKAGE_RELEASE_DATETIME=no
15362     else
15363             YYYY_MM_DD=`sh "${srcdir}/common/extract-release-date-from-doap-file"  `;
15364       if test "x$YYYY_MM_DD" != "x"; then
15365         GST_PACKAGE_RELEASE_DATETIME=$YYYY_MM_DD
15366       else
15367         as_fn_error $? "SET_PACKAGE_RELEASE_DATETIME: could not extract
15368             release date for release version  from " "$LINENO" 5
15369         GST_PACKAGE_RELEASE_DATETIME=""
15370       fi
15371     fi
15372     elif ( echo no | grep -e '^201-90-9-0-10-9-0-30-9' >/dev/null ) ; then
15373     GST_PACKAGE_RELEASE_DATETIME=no
15374   else
15375     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SET_PACKAGE_RELEASE_DATETIME: invalid first argument" >&5
15376 $as_echo "$as_me: WARNING: SET_PACKAGE_RELEASE_DATETIME: invalid first argument" >&2;}
15377     GST_PACKAGE_RELEASE_DATETIME=""
15378   fi
15379
15380   if test "x$GST_PACKAGE_RELEASE_DATETIME" = "x"; then
15381     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Invalid package release date time: $GST_PACKAGE_RELEASE_DATETIME" >&5
15382 $as_echo "$as_me: WARNING: Invalid package release date time: $GST_PACKAGE_RELEASE_DATETIME" >&2;}
15383   else
15384     { $as_echo "$as_me:${as_lineno-$LINENO}: Setting GST_PACKAGE_RELEASE_DATETIME to $GST_PACKAGE_RELEASE_DATETIME" >&5
15385 $as_echo "$as_me: Setting GST_PACKAGE_RELEASE_DATETIME to $GST_PACKAGE_RELEASE_DATETIME" >&6;}
15386
15387
15388 cat >>confdefs.h <<_ACEOF
15389 #define GST_PACKAGE_RELEASE_DATETIME "$GST_PACKAGE_RELEASE_DATETIME"
15390 _ACEOF
15391
15392   fi
15393
15394   fi
15395
15396
15397 # Check whether --enable-tests was given.
15398 if test "${enable_tests+set}" = set; then :
15399   enableval=$enable_tests;
15400     case "${enableval}" in
15401       yes) BUILD_TESTS=yes ;;
15402       no)  BUILD_TESTS=no ;;
15403       *)   as_fn_error $? "bad value ${enableval} for --disable-tests" "$LINENO" 5 ;;
15404     esac
15405
15406 else
15407   BUILD_TESTS=yes
15408 fi
15409   if test "x$BUILD_TESTS" = "xyes"; then
15410   BUILD_TESTS_TRUE=
15411   BUILD_TESTS_FALSE='#'
15412 else
15413   BUILD_TESTS_TRUE='#'
15414   BUILD_TESTS_FALSE=
15415 fi
15416
15417
15418 # Check whether --enable-failing-tests was given.
15419 if test "${enable_failing_tests+set}" = set; then :
15420   enableval=$enable_failing_tests;
15421     case "${enableval}" in
15422       yes) BUILD_FAILING_TESTS=yes ;;
15423       no)  BUILD_FAILING_TESTS=no ;;
15424       *)   as_fn_error $? "bad value ${enableval} for --disable-failing-tests" "$LINENO" 5 ;;
15425     esac
15426
15427 else
15428   BUILD_FAILING_TESTS=no
15429 fi
15430   if test "x$BUILD_FAILING_TESTS" = "xyes"; then
15431   BUILD_FAILING_TESTS_TRUE=
15432   BUILD_FAILING_TESTS_FALSE='#'
15433 else
15434   BUILD_FAILING_TESTS_TRUE='#'
15435   BUILD_FAILING_TESTS_FALSE=
15436 fi
15437
15438 if test x$BUILD_FAILING_TESTS = xyes; then
15439   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: building tests known to fail, use --disable-failing-tests to disable" >&5
15440 $as_echo "$as_me: WARNING: building tests known to fail, use --disable-failing-tests to disable" >&2;}
15441 else
15442   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sissy ! By asking to not build the tests known to fail, you hereby waive your right to customer support.  If you do not agree with this EULA, please press Ctrl-C before the next line is printed.  By allowing the next line to be printed, you expressly acknowledge your acceptance of this EULA." >&5
15443 $as_echo "$as_me: WARNING: Sissy ! By asking to not build the tests known to fail, you hereby waive your right to customer support.  If you do not agree with this EULA, please press Ctrl-C before the next line is printed.  By allowing the next line to be printed, you expressly acknowledge your acceptance of this EULA." >&2;}
15444 fi
15445
15446 # Check whether --enable-poisoning was given.
15447 if test "${enable_poisoning+set}" = set; then :
15448   enableval=$enable_poisoning;
15449     case "${enableval}" in
15450       yes) USE_POISONING=yes ;;
15451       no)  USE_POISONING=no ;;
15452       *)   as_fn_error $? "bad value ${enableval} for --enable-poisoning" "$LINENO" 5 ;;
15453     esac
15454
15455 else
15456   USE_POISONING=no
15457 fi
15458  if test "x$USE_POISONING" = xyes; then
15459
15460 $as_echo "#define USE_POISONING 1" >>confdefs.h
15461
15462 fi
15463
15464
15465
15466
15467
15468     case "x${host_cpu}" in
15469     xi?86 | xk? | xi?86_64)
15470       case $host_os in
15471          solaris*)
15472             ac_fn_c_check_decl "$LINENO" "__i386" "ac_cv_have_decl___i386" "$ac_includes_default"
15473 if test "x$ac_cv_have_decl___i386" = xyes; then :
15474   I386_ABI="yes"
15475 else
15476   I386_ABI="no"
15477 fi
15478
15479             ac_fn_c_check_decl "$LINENO" "__amd64" "ac_cv_have_decl___amd64" "$ac_includes_default"
15480 if test "x$ac_cv_have_decl___amd64" = xyes; then :
15481   AMD64_ABI="yes"
15482 else
15483   AMD64_ABI="no"
15484 fi
15485
15486
15487             if test "x$I386_ABI" = "xyes" ; then
15488                HAVE_CPU_I386=yes
15489
15490 $as_echo "#define HAVE_CPU_I386 1" >>confdefs.h
15491
15492             fi
15493             if test "x$AMD64_ABI" = "xyes" ; then
15494                 HAVE_CPU_X86_64=yes
15495
15496 $as_echo "#define HAVE_CPU_X86_64 1" >>confdefs.h
15497
15498             fi
15499             ;;
15500          *)
15501             HAVE_CPU_I386=yes
15502
15503 $as_echo "#define HAVE_CPU_I386 1" >>confdefs.h
15504
15505
15506                                     case "x${host_cpu}" in
15507               xi386 | xi486) ;;
15508             *)
15509
15510 $as_echo "#define HAVE_RDTSC 1" >>confdefs.h
15511  ;;
15512             esac
15513             ;;
15514       esac
15515       ;;
15516     xpowerpc)
15517       HAVE_CPU_PPC=yes
15518
15519 $as_echo "#define HAVE_CPU_PPC 1" >>confdefs.h
15520  ;;
15521     xpowerpc64)
15522       HAVE_CPU_PPC64=yes
15523
15524 $as_echo "#define HAVE_CPU_PPC64 1" >>confdefs.h
15525  ;;
15526     xalpha*)
15527       HAVE_CPU_ALPHA=yes
15528
15529 $as_echo "#define HAVE_CPU_ALPHA 1" >>confdefs.h
15530  ;;
15531     xarm*)
15532       HAVE_CPU_ARM=yes
15533
15534 $as_echo "#define HAVE_CPU_ARM 1" >>confdefs.h
15535  ;;
15536     xsparc*)
15537       HAVE_CPU_SPARC=yes
15538
15539 $as_echo "#define HAVE_CPU_SPARC 1" >>confdefs.h
15540  ;;
15541     xmips*)
15542       HAVE_CPU_MIPS=yes
15543
15544 $as_echo "#define HAVE_CPU_MIPS 1" >>confdefs.h
15545  ;;
15546     xhppa*)
15547       HAVE_CPU_HPPA=yes
15548
15549 $as_echo "#define HAVE_CPU_HPPA 1" >>confdefs.h
15550  ;;
15551     xs390*)
15552       HAVE_CPU_S390=yes
15553
15554 $as_echo "#define HAVE_CPU_S390 1" >>confdefs.h
15555  ;;
15556     xia64*)
15557       HAVE_CPU_IA64=yes
15558
15559 $as_echo "#define HAVE_CPU_IA64 1" >>confdefs.h
15560  ;;
15561     xm68k*)
15562       HAVE_CPU_M68K=yes
15563
15564 $as_echo "#define HAVE_CPU_M68K 1" >>confdefs.h
15565  ;;
15566     xx86_64)
15567       HAVE_CPU_X86_64=yes
15568
15569 $as_echo "#define HAVE_CPU_X86_64 1" >>confdefs.h
15570  ;;
15571     xcris)
15572       HAVE_CPU_CRIS=yes
15573
15574 $as_echo "#define HAVE_CPU_CRIS 1" >>confdefs.h
15575  ;;
15576     xcrisv32)
15577       HAVE_CPU_CRISV32=yes
15578
15579 $as_echo "#define HAVE_CPU_CRISV32 1" >>confdefs.h
15580  ;;
15581   esac
15582
15583      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15584 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15585 if ${ac_cv_c_bigendian+:} false; then :
15586   $as_echo_n "(cached) " >&6
15587 else
15588   ac_cv_c_bigendian=unknown
15589     # See if we're dealing with a universal compiler.
15590     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15591 /* end confdefs.h.  */
15592 #ifndef __APPLE_CC__
15593                not a universal capable compiler
15594              #endif
15595              typedef int dummy;
15596
15597 _ACEOF
15598 if ac_fn_c_try_compile "$LINENO"; then :
15599
15600         # Check for potential -arch flags.  It is not universal unless
15601         # there are at least two -arch flags with different values.
15602         ac_arch=
15603         ac_prev=
15604         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15605          if test -n "$ac_prev"; then
15606            case $ac_word in
15607              i?86 | x86_64 | ppc | ppc64)
15608                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15609                  ac_arch=$ac_word
15610                else
15611                  ac_cv_c_bigendian=universal
15612                  break
15613                fi
15614                ;;
15615            esac
15616            ac_prev=
15617          elif test "x$ac_word" = "x-arch"; then
15618            ac_prev=arch
15619          fi
15620        done
15621 fi
15622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15623     if test $ac_cv_c_bigendian = unknown; then
15624       # See if sys/param.h defines the BYTE_ORDER macro.
15625       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15626 /* end confdefs.h.  */
15627 #include <sys/types.h>
15628              #include <sys/param.h>
15629
15630 int
15631 main ()
15632 {
15633 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15634                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15635                      && LITTLE_ENDIAN)
15636               bogus endian macros
15637              #endif
15638
15639   ;
15640   return 0;
15641 }
15642 _ACEOF
15643 if ac_fn_c_try_compile "$LINENO"; then :
15644   # It does; now see whether it defined to BIG_ENDIAN or not.
15645          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15646 /* end confdefs.h.  */
15647 #include <sys/types.h>
15648                 #include <sys/param.h>
15649
15650 int
15651 main ()
15652 {
15653 #if BYTE_ORDER != BIG_ENDIAN
15654                  not big endian
15655                 #endif
15656
15657   ;
15658   return 0;
15659 }
15660 _ACEOF
15661 if ac_fn_c_try_compile "$LINENO"; then :
15662   ac_cv_c_bigendian=yes
15663 else
15664   ac_cv_c_bigendian=no
15665 fi
15666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15667 fi
15668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15669     fi
15670     if test $ac_cv_c_bigendian = unknown; then
15671       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15672       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15673 /* end confdefs.h.  */
15674 #include <limits.h>
15675
15676 int
15677 main ()
15678 {
15679 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15680               bogus endian macros
15681              #endif
15682
15683   ;
15684   return 0;
15685 }
15686 _ACEOF
15687 if ac_fn_c_try_compile "$LINENO"; then :
15688   # It does; now see whether it defined to _BIG_ENDIAN or not.
15689          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15690 /* end confdefs.h.  */
15691 #include <limits.h>
15692
15693 int
15694 main ()
15695 {
15696 #ifndef _BIG_ENDIAN
15697                  not big endian
15698                 #endif
15699
15700   ;
15701   return 0;
15702 }
15703 _ACEOF
15704 if ac_fn_c_try_compile "$LINENO"; then :
15705   ac_cv_c_bigendian=yes
15706 else
15707   ac_cv_c_bigendian=no
15708 fi
15709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15710 fi
15711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15712     fi
15713     if test $ac_cv_c_bigendian = unknown; then
15714       # Compile a test program.
15715       if test "$cross_compiling" = yes; then :
15716   # Try to guess by grepping values from an object file.
15717          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15718 /* end confdefs.h.  */
15719 short int ascii_mm[] =
15720                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15721                 short int ascii_ii[] =
15722                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15723                 int use_ascii (int i) {
15724                   return ascii_mm[i] + ascii_ii[i];
15725                 }
15726                 short int ebcdic_ii[] =
15727                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15728                 short int ebcdic_mm[] =
15729                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15730                 int use_ebcdic (int i) {
15731                   return ebcdic_mm[i] + ebcdic_ii[i];
15732                 }
15733                 extern int foo;
15734
15735 int
15736 main ()
15737 {
15738 return use_ascii (foo) == use_ebcdic (foo);
15739   ;
15740   return 0;
15741 }
15742 _ACEOF
15743 if ac_fn_c_try_compile "$LINENO"; then :
15744   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15745               ac_cv_c_bigendian=yes
15746             fi
15747             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15748               if test "$ac_cv_c_bigendian" = unknown; then
15749                 ac_cv_c_bigendian=no
15750               else
15751                 # finding both strings is unlikely to happen, but who knows?
15752                 ac_cv_c_bigendian=unknown
15753               fi
15754             fi
15755 fi
15756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15757 else
15758   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15759 /* end confdefs.h.  */
15760 $ac_includes_default
15761 int
15762 main ()
15763 {
15764
15765              /* Are we little or big endian?  From Harbison&Steele.  */
15766              union
15767              {
15768                long int l;
15769                char c[sizeof (long int)];
15770              } u;
15771              u.l = 1;
15772              return u.c[sizeof (long int) - 1] == 1;
15773
15774   ;
15775   return 0;
15776 }
15777 _ACEOF
15778 if ac_fn_c_try_run "$LINENO"; then :
15779   ac_cv_c_bigendian=no
15780 else
15781   ac_cv_c_bigendian=yes
15782 fi
15783 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15784   conftest.$ac_objext conftest.beam conftest.$ac_ext
15785 fi
15786
15787     fi
15788 fi
15789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15790 $as_echo "$ac_cv_c_bigendian" >&6; }
15791  case $ac_cv_c_bigendian in #(
15792    yes)
15793      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
15794 ;; #(
15795    no)
15796       ;; #(
15797    universal)
15798
15799 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
15800
15801      ;; #(
15802    *)
15803      as_fn_error $? "unknown endianness
15804  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
15805  esac
15806
15807
15808    if test "x$HAVE_CPU_I386" = "xyes"; then
15809   HAVE_CPU_I386_TRUE=
15810   HAVE_CPU_I386_FALSE='#'
15811 else
15812   HAVE_CPU_I386_TRUE='#'
15813   HAVE_CPU_I386_FALSE=
15814 fi
15815
15816    if test "x$HAVE_CPU_PPC" = "xyes"; then
15817   HAVE_CPU_PPC_TRUE=
15818   HAVE_CPU_PPC_FALSE='#'
15819 else
15820   HAVE_CPU_PPC_TRUE='#'
15821   HAVE_CPU_PPC_FALSE=
15822 fi
15823
15824    if test "x$HAVE_CPU_PPC64" = "xyes"; then
15825   HAVE_CPU_PPC64_TRUE=
15826   HAVE_CPU_PPC64_FALSE='#'
15827 else
15828   HAVE_CPU_PPC64_TRUE='#'
15829   HAVE_CPU_PPC64_FALSE=
15830 fi
15831
15832    if test "x$HAVE_CPU_ALPHA" = "xyes"; then
15833   HAVE_CPU_ALPHA_TRUE=
15834   HAVE_CPU_ALPHA_FALSE='#'
15835 else
15836   HAVE_CPU_ALPHA_TRUE='#'
15837   HAVE_CPU_ALPHA_FALSE=
15838 fi
15839
15840    if test "x$HAVE_CPU_ARM" = "xyes"; then
15841   HAVE_CPU_ARM_TRUE=
15842   HAVE_CPU_ARM_FALSE='#'
15843 else
15844   HAVE_CPU_ARM_TRUE='#'
15845   HAVE_CPU_ARM_FALSE=
15846 fi
15847
15848    if test "x$HAVE_CPU_SPARC" = "xyes"; then
15849   HAVE_CPU_SPARC_TRUE=
15850   HAVE_CPU_SPARC_FALSE='#'
15851 else
15852   HAVE_CPU_SPARC_TRUE='#'
15853   HAVE_CPU_SPARC_FALSE=
15854 fi
15855
15856    if test "x$HAVE_CPU_HPPA" = "xyes"; then
15857   HAVE_CPU_HPPA_TRUE=
15858   HAVE_CPU_HPPA_FALSE='#'
15859 else
15860   HAVE_CPU_HPPA_TRUE='#'
15861   HAVE_CPU_HPPA_FALSE=
15862 fi
15863
15864    if test "x$HAVE_CPU_MIPS" = "xyes"; then
15865   HAVE_CPU_MIPS_TRUE=
15866   HAVE_CPU_MIPS_FALSE='#'
15867 else
15868   HAVE_CPU_MIPS_TRUE='#'
15869   HAVE_CPU_MIPS_FALSE=
15870 fi
15871
15872    if test "x$HAVE_CPU_S390" = "xyes"; then
15873   HAVE_CPU_S390_TRUE=
15874   HAVE_CPU_S390_FALSE='#'
15875 else
15876   HAVE_CPU_S390_TRUE='#'
15877   HAVE_CPU_S390_FALSE=
15878 fi
15879
15880    if test "x$HAVE_CPU_IA64" = "xyes"; then
15881   HAVE_CPU_IA64_TRUE=
15882   HAVE_CPU_IA64_FALSE='#'
15883 else
15884   HAVE_CPU_IA64_TRUE='#'
15885   HAVE_CPU_IA64_FALSE=
15886 fi
15887
15888    if test "x$HAVE_CPU_M68K" = "xyes"; then
15889   HAVE_CPU_M68K_TRUE=
15890   HAVE_CPU_M68K_FALSE='#'
15891 else
15892   HAVE_CPU_M68K_TRUE='#'
15893   HAVE_CPU_M68K_FALSE=
15894 fi
15895
15896    if test "x$HAVE_CPU_X86_64" = "xyes"; then
15897   HAVE_CPU_X86_64_TRUE=
15898   HAVE_CPU_X86_64_FALSE='#'
15899 else
15900   HAVE_CPU_X86_64_TRUE='#'
15901   HAVE_CPU_X86_64_FALSE=
15902 fi
15903
15904    if test "x$HAVE_CPU_CRIS" = "xyes"; then
15905   HAVE_CPU_CRIS_TRUE=
15906   HAVE_CPU_CRIS_FALSE='#'
15907 else
15908   HAVE_CPU_CRIS_TRUE='#'
15909   HAVE_CPU_CRIS_FALSE=
15910 fi
15911
15912    if test "x$HAVE_CPU_CRISV32" = "xyes"; then
15913   HAVE_CPU_CRISV32_TRUE=
15914   HAVE_CPU_CRISV32_FALSE='#'
15915 else
15916   HAVE_CPU_CRISV32_TRUE='#'
15917   HAVE_CPU_CRISV32_FALSE=
15918 fi
15919
15920
15921
15922 cat >>confdefs.h <<_ACEOF
15923 #define HOST_CPU "$host_cpu"
15924 _ACEOF
15925
15926
15927 HOST_CPU=$host_cpu
15928
15929
15930
15931   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if unaligned memory access works correctly" >&5
15932 $as_echo_n "checking if unaligned memory access works correctly... " >&6; }
15933   if test x"$as_cv_unaligned_access" = x ; then
15934     case $host in
15935       alpha*|arm*|hp*|mips*|sh*|sparc*|ia64*)
15936         $as_echo_n "(blacklisted) " >&6
15937         as_cv_unaligned_access=no
15938         ;;
15939       i?86*|x86_64*|amd64*|powerpc*|m68k*|cris*)
15940         $as_echo_n "(whitelisted) " >&6
15941         as_cv_unaligned_access=yes
15942         ;;
15943     esac
15944   else
15945     $as_echo_n "(cached) " >&6
15946   fi
15947   if test x"$as_cv_unaligned_access" = x ; then
15948     if test "$cross_compiling" = yes; then :
15949   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15950 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15951 as_fn_error $? "cannot run test program while cross compiling
15952 See \`config.log' for more details" "$LINENO" 5; }
15953 else
15954   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15955 /* end confdefs.h.  */
15956
15957 int main(int argc, char **argv)
15958 {
15959   char array[] = "ABCDEFGH";
15960   unsigned int iarray[2];
15961   memcpy(iarray,array,8);
15962 #define GET(x) (*(unsigned int *)((char *)iarray + (x)))
15963   if(GET(0) != 0x41424344 && GET(0) != 0x44434241) return 1;
15964   if(GET(1) != 0x42434445 && GET(1) != 0x45444342) return 1;
15965   if(GET(2) != 0x43444546 && GET(2) != 0x46454443) return 1;
15966   if(GET(3) != 0x44454647 && GET(3) != 0x47464544) return 1;
15967   return 0;
15968 }
15969
15970 _ACEOF
15971 if ac_fn_c_try_run "$LINENO"; then :
15972   as_cv_unaligned_access="yes"
15973 else
15974   as_cv_unaligned_access="no"
15975 fi
15976 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15977   conftest.$ac_objext conftest.beam conftest.$ac_ext
15978 fi
15979
15980   fi
15981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $as_cv_unaligned_access" >&5
15982 $as_echo "$as_cv_unaligned_access" >&6; }
15983   if test "$as_cv_unaligned_access" = "yes"; then
15984
15985 cat >>confdefs.h <<_ACEOF
15986 #define HAVE_UNALIGNED_ACCESS 1
15987 _ACEOF
15988
15989   fi
15990
15991 if test x${as_cv_unaligned_access} = xyes ; then
15992   GST_HAVE_UNALIGNED_ACCESS_DEFINE="#define GST_HAVE_UNALIGNED_ACCESS 1"
15993 else
15994   GST_HAVE_UNALIGNED_ACCESS_DEFINE="#define GST_HAVE_UNALIGNED_ACCESS 0"
15995 fi
15996
15997
15998
15999
16000
16001   case $host_os in
16002     rhapsody*)
16003
16004 cat >>confdefs.h <<_ACEOF
16005 #define GST_EXTRA_MODULE_SUFFIX ".dylib"
16006 _ACEOF
16007
16008       ;;
16009     darwin*)
16010
16011 cat >>confdefs.h <<_ACEOF
16012 #define GST_EXTRA_MODULE_SUFFIX ".dylib"
16013 _ACEOF
16014
16015
16016 cat >>confdefs.h <<_ACEOF
16017 #define HAVE_OSX 1
16018 _ACEOF
16019
16020       ;;
16021     cygwin*)
16022
16023 cat >>confdefs.h <<_ACEOF
16024 #define GST_HAVE_UNSAFE_FORK 1
16025 _ACEOF
16026
16027       ;;
16028     mingw* | msvc* | mks*)
16029
16030 cat >>confdefs.h <<_ACEOF
16031 #define HAVE_WIN32 1
16032 _ACEOF
16033
16034
16035                               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16036 /* end confdefs.h.  */
16037
16038 int
16039 main ()
16040 {
16041  return __MSVCRT_VERSION__;
16042   ;
16043   return 0;
16044 }
16045 _ACEOF
16046 if ac_fn_c_try_compile "$LINENO"; then :
16047
16048           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16049 /* end confdefs.h.  */
16050
16051 int
16052 main ()
16053 {
16054
16055             #if __MSVCRT_VERSION__ < 0x0601
16056             #error "MSVCRT too old"
16057             #endif
16058
16059   ;
16060   return 0;
16061 }
16062 _ACEOF
16063 if ac_fn_c_try_compile "$LINENO"; then :
16064
16065             { $as_echo "$as_me:${as_lineno-$LINENO}: MSVCRT version looks ok" >&5
16066 $as_echo "$as_me: MSVCRT version looks ok" >&6;}
16067
16068 else
16069
16070             as_fn_error $? "MSVCRT version too old, need at least WinXP SP2" "$LINENO" 5
16071
16072 fi
16073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16074
16075 else
16076
16077         { $as_echo "$as_me:${as_lineno-$LINENO}: Setting MSVCRT version to 0x0601" >&5
16078 $as_echo "$as_me: Setting MSVCRT version to 0x0601" >&6;}
16079
16080 cat >>confdefs.h <<_ACEOF
16081 #define __MSVCRT_VERSION__ 0x0601
16082 _ACEOF
16083
16084
16085 fi
16086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16087       ;;
16088      *)
16089       ;;
16090   esac
16091
16092
16093
16094 # Check whether --enable-largefile was given.
16095 if test "${enable_largefile+set}" = set; then :
16096   enableval=$enable_largefile;
16097 fi
16098
16099 if test "$enable_largefile" != no; then
16100
16101   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
16102 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
16103 if ${ac_cv_sys_largefile_CC+:} false; then :
16104   $as_echo_n "(cached) " >&6
16105 else
16106   ac_cv_sys_largefile_CC=no
16107      if test "$GCC" != yes; then
16108        ac_save_CC=$CC
16109        while :; do
16110          # IRIX 6.2 and later do not support large files by default,
16111          # so use the C compiler's -n32 option if that helps.
16112          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16113 /* end confdefs.h.  */
16114 #include <sys/types.h>
16115  /* Check that off_t can represent 2**63 - 1 correctly.
16116     We can't simply define LARGE_OFF_T to be 9223372036854775807,
16117     since some C++ compilers masquerading as C compilers
16118     incorrectly reject 9223372036854775807.  */
16119 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16120   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16121                        && LARGE_OFF_T % 2147483647 == 1)
16122                       ? 1 : -1];
16123 int
16124 main ()
16125 {
16126
16127   ;
16128   return 0;
16129 }
16130 _ACEOF
16131          if ac_fn_c_try_compile "$LINENO"; then :
16132   break
16133 fi
16134 rm -f core conftest.err conftest.$ac_objext
16135          CC="$CC -n32"
16136          if ac_fn_c_try_compile "$LINENO"; then :
16137   ac_cv_sys_largefile_CC=' -n32'; break
16138 fi
16139 rm -f core conftest.err conftest.$ac_objext
16140          break
16141        done
16142        CC=$ac_save_CC
16143        rm -f conftest.$ac_ext
16144     fi
16145 fi
16146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
16147 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
16148   if test "$ac_cv_sys_largefile_CC" != no; then
16149     CC=$CC$ac_cv_sys_largefile_CC
16150   fi
16151
16152   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
16153 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
16154 if ${ac_cv_sys_file_offset_bits+:} false; then :
16155   $as_echo_n "(cached) " >&6
16156 else
16157   while :; do
16158   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16159 /* end confdefs.h.  */
16160 #include <sys/types.h>
16161  /* Check that off_t can represent 2**63 - 1 correctly.
16162     We can't simply define LARGE_OFF_T to be 9223372036854775807,
16163     since some C++ compilers masquerading as C compilers
16164     incorrectly reject 9223372036854775807.  */
16165 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16166   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16167                        && LARGE_OFF_T % 2147483647 == 1)
16168                       ? 1 : -1];
16169 int
16170 main ()
16171 {
16172
16173   ;
16174   return 0;
16175 }
16176 _ACEOF
16177 if ac_fn_c_try_compile "$LINENO"; then :
16178   ac_cv_sys_file_offset_bits=no; break
16179 fi
16180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16181   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16182 /* end confdefs.h.  */
16183 #define _FILE_OFFSET_BITS 64
16184 #include <sys/types.h>
16185  /* Check that off_t can represent 2**63 - 1 correctly.
16186     We can't simply define LARGE_OFF_T to be 9223372036854775807,
16187     since some C++ compilers masquerading as C compilers
16188     incorrectly reject 9223372036854775807.  */
16189 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16190   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16191                        && LARGE_OFF_T % 2147483647 == 1)
16192                       ? 1 : -1];
16193 int
16194 main ()
16195 {
16196
16197   ;
16198   return 0;
16199 }
16200 _ACEOF
16201 if ac_fn_c_try_compile "$LINENO"; then :
16202   ac_cv_sys_file_offset_bits=64; break
16203 fi
16204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16205   ac_cv_sys_file_offset_bits=unknown
16206   break
16207 done
16208 fi
16209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
16210 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
16211 case $ac_cv_sys_file_offset_bits in #(
16212   no | unknown) ;;
16213   *)
16214 cat >>confdefs.h <<_ACEOF
16215 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
16216 _ACEOF
16217 ;;
16218 esac
16219 rm -rf conftest*
16220   if test $ac_cv_sys_file_offset_bits = unknown; then
16221     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
16222 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
16223 if ${ac_cv_sys_large_files+:} false; then :
16224   $as_echo_n "(cached) " >&6
16225 else
16226   while :; do
16227   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16228 /* end confdefs.h.  */
16229 #include <sys/types.h>
16230  /* Check that off_t can represent 2**63 - 1 correctly.
16231     We can't simply define LARGE_OFF_T to be 9223372036854775807,
16232     since some C++ compilers masquerading as C compilers
16233     incorrectly reject 9223372036854775807.  */
16234 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16235   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16236                        && LARGE_OFF_T % 2147483647 == 1)
16237                       ? 1 : -1];
16238 int
16239 main ()
16240 {
16241
16242   ;
16243   return 0;
16244 }
16245 _ACEOF
16246 if ac_fn_c_try_compile "$LINENO"; then :
16247   ac_cv_sys_large_files=no; break
16248 fi
16249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16250   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16251 /* end confdefs.h.  */
16252 #define _LARGE_FILES 1
16253 #include <sys/types.h>
16254  /* Check that off_t can represent 2**63 - 1 correctly.
16255     We can't simply define LARGE_OFF_T to be 9223372036854775807,
16256     since some C++ compilers masquerading as C compilers
16257     incorrectly reject 9223372036854775807.  */
16258 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16259   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16260                        && LARGE_OFF_T % 2147483647 == 1)
16261                       ? 1 : -1];
16262 int
16263 main ()
16264 {
16265
16266   ;
16267   return 0;
16268 }
16269 _ACEOF
16270 if ac_fn_c_try_compile "$LINENO"; then :
16271   ac_cv_sys_large_files=1; break
16272 fi
16273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16274   ac_cv_sys_large_files=unknown
16275   break
16276 done
16277 fi
16278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
16279 $as_echo "$ac_cv_sys_large_files" >&6; }
16280 case $ac_cv_sys_large_files in #(
16281   no | unknown) ;;
16282   *)
16283 cat >>confdefs.h <<_ACEOF
16284 #define _LARGE_FILES $ac_cv_sys_large_files
16285 _ACEOF
16286 ;;
16287 esac
16288 rm -rf conftest*
16289   fi
16290 fi
16291
16292
16293
16294 ac_ext=c
16295 ac_cpp='$CPP $CPPFLAGS'
16296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16299 if test -n "$ac_tool_prefix"; then
16300   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
16301 set dummy ${ac_tool_prefix}gcc; ac_word=$2
16302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16303 $as_echo_n "checking for $ac_word... " >&6; }
16304 if ${ac_cv_prog_CC+:} false; then :
16305   $as_echo_n "(cached) " >&6
16306 else
16307   if test -n "$CC"; then
16308   ac_cv_prog_CC="$CC" # Let the user override the test.
16309 else
16310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16311 for as_dir in $PATH
16312 do
16313   IFS=$as_save_IFS
16314   test -z "$as_dir" && as_dir=.
16315     for ac_exec_ext in '' $ac_executable_extensions; do
16316   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16317     ac_cv_prog_CC="${ac_tool_prefix}gcc"
16318     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16319     break 2
16320   fi
16321 done
16322   done
16323 IFS=$as_save_IFS
16324
16325 fi
16326 fi
16327 CC=$ac_cv_prog_CC
16328 if test -n "$CC"; then
16329   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
16330 $as_echo "$CC" >&6; }
16331 else
16332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16333 $as_echo "no" >&6; }
16334 fi
16335
16336
16337 fi
16338 if test -z "$ac_cv_prog_CC"; then
16339   ac_ct_CC=$CC
16340   # Extract the first word of "gcc", so it can be a program name with args.
16341 set dummy gcc; ac_word=$2
16342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16343 $as_echo_n "checking for $ac_word... " >&6; }
16344 if ${ac_cv_prog_ac_ct_CC+:} false; then :
16345   $as_echo_n "(cached) " >&6
16346 else
16347   if test -n "$ac_ct_CC"; then
16348   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
16349 else
16350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16351 for as_dir in $PATH
16352 do
16353   IFS=$as_save_IFS
16354   test -z "$as_dir" && as_dir=.
16355     for ac_exec_ext in '' $ac_executable_extensions; do
16356   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16357     ac_cv_prog_ac_ct_CC="gcc"
16358     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16359     break 2
16360   fi
16361 done
16362   done
16363 IFS=$as_save_IFS
16364
16365 fi
16366 fi
16367 ac_ct_CC=$ac_cv_prog_ac_ct_CC
16368 if test -n "$ac_ct_CC"; then
16369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
16370 $as_echo "$ac_ct_CC" >&6; }
16371 else
16372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16373 $as_echo "no" >&6; }
16374 fi
16375
16376   if test "x$ac_ct_CC" = x; then
16377     CC=""
16378   else
16379     case $cross_compiling:$ac_tool_warned in
16380 yes:)
16381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16382 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16383 ac_tool_warned=yes ;;
16384 esac
16385     CC=$ac_ct_CC
16386   fi
16387 else
16388   CC="$ac_cv_prog_CC"
16389 fi
16390
16391 if test -z "$CC"; then
16392           if test -n "$ac_tool_prefix"; then
16393     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
16394 set dummy ${ac_tool_prefix}cc; ac_word=$2
16395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16396 $as_echo_n "checking for $ac_word... " >&6; }
16397 if ${ac_cv_prog_CC+:} false; then :
16398   $as_echo_n "(cached) " >&6
16399 else
16400   if test -n "$CC"; then
16401   ac_cv_prog_CC="$CC" # Let the user override the test.
16402 else
16403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16404 for as_dir in $PATH
16405 do
16406   IFS=$as_save_IFS
16407   test -z "$as_dir" && as_dir=.
16408     for ac_exec_ext in '' $ac_executable_extensions; do
16409   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16410     ac_cv_prog_CC="${ac_tool_prefix}cc"
16411     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16412     break 2
16413   fi
16414 done
16415   done
16416 IFS=$as_save_IFS
16417
16418 fi
16419 fi
16420 CC=$ac_cv_prog_CC
16421 if test -n "$CC"; then
16422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
16423 $as_echo "$CC" >&6; }
16424 else
16425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16426 $as_echo "no" >&6; }
16427 fi
16428
16429
16430   fi
16431 fi
16432 if test -z "$CC"; then
16433   # Extract the first word of "cc", so it can be a program name with args.
16434 set dummy cc; ac_word=$2
16435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16436 $as_echo_n "checking for $ac_word... " >&6; }
16437 if ${ac_cv_prog_CC+:} false; then :
16438   $as_echo_n "(cached) " >&6
16439 else
16440   if test -n "$CC"; then
16441   ac_cv_prog_CC="$CC" # Let the user override the test.
16442 else
16443   ac_prog_rejected=no
16444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16445 for as_dir in $PATH
16446 do
16447   IFS=$as_save_IFS
16448   test -z "$as_dir" && as_dir=.
16449     for ac_exec_ext in '' $ac_executable_extensions; do
16450   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16451     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
16452        ac_prog_rejected=yes
16453        continue
16454      fi
16455     ac_cv_prog_CC="cc"
16456     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16457     break 2
16458   fi
16459 done
16460   done
16461 IFS=$as_save_IFS
16462
16463 if test $ac_prog_rejected = yes; then
16464   # We found a bogon in the path, so make sure we never use it.
16465   set dummy $ac_cv_prog_CC
16466   shift
16467   if test $# != 0; then
16468     # We chose a different compiler from the bogus one.
16469     # However, it has the same basename, so the bogon will be chosen
16470     # first if we set CC to just the basename; use the full file name.
16471     shift
16472     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
16473   fi
16474 fi
16475 fi
16476 fi
16477 CC=$ac_cv_prog_CC
16478 if test -n "$CC"; then
16479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
16480 $as_echo "$CC" >&6; }
16481 else
16482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16483 $as_echo "no" >&6; }
16484 fi
16485
16486
16487 fi
16488 if test -z "$CC"; then
16489   if test -n "$ac_tool_prefix"; then
16490   for ac_prog in cl.exe
16491   do
16492     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16493 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16495 $as_echo_n "checking for $ac_word... " >&6; }
16496 if ${ac_cv_prog_CC+:} false; then :
16497   $as_echo_n "(cached) " >&6
16498 else
16499   if test -n "$CC"; then
16500   ac_cv_prog_CC="$CC" # Let the user override the test.
16501 else
16502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16503 for as_dir in $PATH
16504 do
16505   IFS=$as_save_IFS
16506   test -z "$as_dir" && as_dir=.
16507     for ac_exec_ext in '' $ac_executable_extensions; do
16508   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16509     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
16510     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16511     break 2
16512   fi
16513 done
16514   done
16515 IFS=$as_save_IFS
16516
16517 fi
16518 fi
16519 CC=$ac_cv_prog_CC
16520 if test -n "$CC"; then
16521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
16522 $as_echo "$CC" >&6; }
16523 else
16524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16525 $as_echo "no" >&6; }
16526 fi
16527
16528
16529     test -n "$CC" && break
16530   done
16531 fi
16532 if test -z "$CC"; then
16533   ac_ct_CC=$CC
16534   for ac_prog in cl.exe
16535 do
16536   # Extract the first word of "$ac_prog", so it can be a program name with args.
16537 set dummy $ac_prog; ac_word=$2
16538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16539 $as_echo_n "checking for $ac_word... " >&6; }
16540 if ${ac_cv_prog_ac_ct_CC+:} false; then :
16541   $as_echo_n "(cached) " >&6
16542 else
16543   if test -n "$ac_ct_CC"; then
16544   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
16545 else
16546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16547 for as_dir in $PATH
16548 do
16549   IFS=$as_save_IFS
16550   test -z "$as_dir" && as_dir=.
16551     for ac_exec_ext in '' $ac_executable_extensions; do
16552   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16553     ac_cv_prog_ac_ct_CC="$ac_prog"
16554     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16555     break 2
16556   fi
16557 done
16558   done
16559 IFS=$as_save_IFS
16560
16561 fi
16562 fi
16563 ac_ct_CC=$ac_cv_prog_ac_ct_CC
16564 if test -n "$ac_ct_CC"; then
16565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
16566 $as_echo "$ac_ct_CC" >&6; }
16567 else
16568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16569 $as_echo "no" >&6; }
16570 fi
16571
16572
16573   test -n "$ac_ct_CC" && break
16574 done
16575
16576   if test "x$ac_ct_CC" = x; then
16577     CC=""
16578   else
16579     case $cross_compiling:$ac_tool_warned in
16580 yes:)
16581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16582 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16583 ac_tool_warned=yes ;;
16584 esac
16585     CC=$ac_ct_CC
16586   fi
16587 fi
16588
16589 fi
16590
16591
16592 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16593 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16594 as_fn_error $? "no acceptable C compiler found in \$PATH
16595 See \`config.log' for more details" "$LINENO" 5; }
16596
16597 # Provide some information about the compiler.
16598 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
16599 set X $ac_compile
16600 ac_compiler=$2
16601 for ac_option in --version -v -V -qversion; do
16602   { { ac_try="$ac_compiler $ac_option >&5"
16603 case "(($ac_try" in
16604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16605   *) ac_try_echo=$ac_try;;
16606 esac
16607 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16608 $as_echo "$ac_try_echo"; } >&5
16609   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
16610   ac_status=$?
16611   if test -s conftest.err; then
16612     sed '10a\
16613 ... rest of stderr output deleted ...
16614          10q' conftest.err >conftest.er1
16615     cat conftest.er1 >&5
16616   fi
16617   rm -f conftest.er1 conftest.err
16618   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16619   test $ac_status = 0; }
16620 done
16621
16622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
16623 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
16624 if ${ac_cv_c_compiler_gnu+:} false; then :
16625   $as_echo_n "(cached) " >&6
16626 else
16627   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16628 /* end confdefs.h.  */
16629
16630 int
16631 main ()
16632 {
16633 #ifndef __GNUC__
16634        choke me
16635 #endif
16636
16637   ;
16638   return 0;
16639 }
16640 _ACEOF
16641 if ac_fn_c_try_compile "$LINENO"; then :
16642   ac_compiler_gnu=yes
16643 else
16644   ac_compiler_gnu=no
16645 fi
16646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16647 ac_cv_c_compiler_gnu=$ac_compiler_gnu
16648
16649 fi
16650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
16651 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
16652 if test $ac_compiler_gnu = yes; then
16653   GCC=yes
16654 else
16655   GCC=
16656 fi
16657 ac_test_CFLAGS=${CFLAGS+set}
16658 ac_save_CFLAGS=$CFLAGS
16659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
16660 $as_echo_n "checking whether $CC accepts -g... " >&6; }
16661 if ${ac_cv_prog_cc_g+:} false; then :
16662   $as_echo_n "(cached) " >&6
16663 else
16664   ac_save_c_werror_flag=$ac_c_werror_flag
16665    ac_c_werror_flag=yes
16666    ac_cv_prog_cc_g=no
16667    CFLAGS="-g"
16668    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16669 /* end confdefs.h.  */
16670
16671 int
16672 main ()
16673 {
16674
16675   ;
16676   return 0;
16677 }
16678 _ACEOF
16679 if ac_fn_c_try_compile "$LINENO"; then :
16680   ac_cv_prog_cc_g=yes
16681 else
16682   CFLAGS=""
16683       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16684 /* end confdefs.h.  */
16685
16686 int
16687 main ()
16688 {
16689
16690   ;
16691   return 0;
16692 }
16693 _ACEOF
16694 if ac_fn_c_try_compile "$LINENO"; then :
16695
16696 else
16697   ac_c_werror_flag=$ac_save_c_werror_flag
16698          CFLAGS="-g"
16699          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16700 /* end confdefs.h.  */
16701
16702 int
16703 main ()
16704 {
16705
16706   ;
16707   return 0;
16708 }
16709 _ACEOF
16710 if ac_fn_c_try_compile "$LINENO"; then :
16711   ac_cv_prog_cc_g=yes
16712 fi
16713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16714 fi
16715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16716 fi
16717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16718    ac_c_werror_flag=$ac_save_c_werror_flag
16719 fi
16720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
16721 $as_echo "$ac_cv_prog_cc_g" >&6; }
16722 if test "$ac_test_CFLAGS" = set; then
16723   CFLAGS=$ac_save_CFLAGS
16724 elif test $ac_cv_prog_cc_g = yes; then
16725   if test "$GCC" = yes; then
16726     CFLAGS="-g -O2"
16727   else
16728     CFLAGS="-g"
16729   fi
16730 else
16731   if test "$GCC" = yes; then
16732     CFLAGS="-O2"
16733   else
16734     CFLAGS=
16735   fi
16736 fi
16737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
16738 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
16739 if ${ac_cv_prog_cc_c89+:} false; then :
16740   $as_echo_n "(cached) " >&6
16741 else
16742   ac_cv_prog_cc_c89=no
16743 ac_save_CC=$CC
16744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16745 /* end confdefs.h.  */
16746 #include <stdarg.h>
16747 #include <stdio.h>
16748 #include <sys/types.h>
16749 #include <sys/stat.h>
16750 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
16751 struct buf { int x; };
16752 FILE * (*rcsopen) (struct buf *, struct stat *, int);
16753 static char *e (p, i)
16754      char **p;
16755      int i;
16756 {
16757   return p[i];
16758 }
16759 static char *f (char * (*g) (char **, int), char **p, ...)
16760 {
16761   char *s;
16762   va_list v;
16763   va_start (v,p);
16764   s = g (p, va_arg (v,int));
16765   va_end (v);
16766   return s;
16767 }
16768
16769 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
16770    function prototypes and stuff, but not '\xHH' hex character constants.
16771    These don't provoke an error unfortunately, instead are silently treated
16772    as 'x'.  The following induces an error, until -std is added to get
16773    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
16774    array size at least.  It's necessary to write '\x00'==0 to get something
16775    that's true only with -std.  */
16776 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
16777
16778 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
16779    inside strings and character constants.  */
16780 #define FOO(x) 'x'
16781 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
16782
16783 int test (int i, double x);
16784 struct s1 {int (*f) (int a);};
16785 struct s2 {int (*f) (double a);};
16786 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
16787 int argc;
16788 char **argv;
16789 int
16790 main ()
16791 {
16792 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
16793   ;
16794   return 0;
16795 }
16796 _ACEOF
16797 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
16798         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
16799 do
16800   CC="$ac_save_CC $ac_arg"
16801   if ac_fn_c_try_compile "$LINENO"; then :
16802   ac_cv_prog_cc_c89=$ac_arg
16803 fi
16804 rm -f core conftest.err conftest.$ac_objext
16805   test "x$ac_cv_prog_cc_c89" != "xno" && break
16806 done
16807 rm -f conftest.$ac_ext
16808 CC=$ac_save_CC
16809
16810 fi
16811 # AC_CACHE_VAL
16812 case "x$ac_cv_prog_cc_c89" in
16813   x)
16814     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
16815 $as_echo "none needed" >&6; } ;;
16816   xno)
16817     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
16818 $as_echo "unsupported" >&6; } ;;
16819   *)
16820     CC="$CC $ac_cv_prog_cc_c89"
16821     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
16822 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
16823 esac
16824 if test "x$ac_cv_prog_cc_c89" != xno; then :
16825
16826 fi
16827
16828 ac_ext=c
16829 ac_cpp='$CPP $CPPFLAGS'
16830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16833
16834 depcc="$CC"   am_compiler_list=
16835
16836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
16837 $as_echo_n "checking dependency style of $depcc... " >&6; }
16838 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
16839   $as_echo_n "(cached) " >&6
16840 else
16841   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
16842   # We make a subdir and do the tests there.  Otherwise we can end up
16843   # making bogus files that we don't know about and never remove.  For
16844   # instance it was reported that on HP-UX the gcc test will end up
16845   # making a dummy file named `D' -- because `-MD' means `put the output
16846   # in D'.
16847   rm -rf conftest.dir
16848   mkdir conftest.dir
16849   # Copy depcomp to subdir because otherwise we won't find it if we're
16850   # using a relative directory.
16851   cp "$am_depcomp" conftest.dir
16852   cd conftest.dir
16853   # We will build objects and dependencies in a subdirectory because
16854   # it helps to detect inapplicable dependency modes.  For instance
16855   # both Tru64's cc and ICC support -MD to output dependencies as a
16856   # side effect of compilation, but ICC will put the dependencies in
16857   # the current directory while Tru64 will put them in the object
16858   # directory.
16859   mkdir sub
16860
16861   am_cv_CC_dependencies_compiler_type=none
16862   if test "$am_compiler_list" = ""; then
16863      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
16864   fi
16865   am__universal=false
16866   case " $depcc " in #(
16867      *\ -arch\ *\ -arch\ *) am__universal=true ;;
16868      esac
16869
16870   for depmode in $am_compiler_list; do
16871     # Setup a source with many dependencies, because some compilers
16872     # like to wrap large dependency lists on column 80 (with \), and
16873     # we should not choose a depcomp mode which is confused by this.
16874     #
16875     # We need to recreate these files for each test, as the compiler may
16876     # overwrite some of them when testing with obscure command lines.
16877     # This happens at least with the AIX C compiler.
16878     : > sub/conftest.c
16879     for i in 1 2 3 4 5 6; do
16880       echo '#include "conftst'$i'.h"' >> sub/conftest.c
16881       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
16882       # Solaris 8's {/usr,}/bin/sh.
16883       touch sub/conftst$i.h
16884     done
16885     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
16886
16887     # We check with `-c' and `-o' for the sake of the "dashmstdout"
16888     # mode.  It turns out that the SunPro C++ compiler does not properly
16889     # handle `-M -o', and we need to detect this.  Also, some Intel
16890     # versions had trouble with output in subdirs
16891     am__obj=sub/conftest.${OBJEXT-o}
16892     am__minus_obj="-o $am__obj"
16893     case $depmode in
16894     gcc)
16895       # This depmode causes a compiler race in universal mode.
16896       test "$am__universal" = false || continue
16897       ;;
16898     nosideeffect)
16899       # after this tag, mechanisms are not by side-effect, so they'll
16900       # only be used when explicitly requested
16901       if test "x$enable_dependency_tracking" = xyes; then
16902         continue
16903       else
16904         break
16905       fi
16906       ;;
16907     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
16908       # This compiler won't grok `-c -o', but also, the minuso test has
16909       # not run yet.  These depmodes are late enough in the game, and
16910       # so weak that their functioning should not be impacted.
16911       am__obj=conftest.${OBJEXT-o}
16912       am__minus_obj=
16913       ;;
16914     none) break ;;
16915     esac
16916     if depmode=$depmode \
16917        source=sub/conftest.c object=$am__obj \
16918        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
16919        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
16920          >/dev/null 2>conftest.err &&
16921        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
16922        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
16923        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
16924        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
16925       # icc doesn't choke on unknown options, it will just issue warnings
16926       # or remarks (even with -Werror).  So we grep stderr for any message
16927       # that says an option was ignored or not supported.
16928       # When given -MP, icc 7.0 and 7.1 complain thusly:
16929       #   icc: Command line warning: ignoring option '-M'; no argument required
16930       # The diagnosis changed in icc 8.0:
16931       #   icc: Command line remark: option '-MP' not supported
16932       if (grep 'ignoring option' conftest.err ||
16933           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
16934         am_cv_CC_dependencies_compiler_type=$depmode
16935         break
16936       fi
16937     fi
16938   done
16939
16940   cd ..
16941   rm -rf conftest.dir
16942 else
16943   am_cv_CC_dependencies_compiler_type=none
16944 fi
16945
16946 fi
16947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
16948 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
16949 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
16950
16951  if
16952   test "x$enable_dependency_tracking" != xno \
16953   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
16954   am__fastdepCC_TRUE=
16955   am__fastdepCC_FALSE='#'
16956 else
16957   am__fastdepCC_TRUE='#'
16958   am__fastdepCC_FALSE=
16959 fi
16960
16961
16962    case $ac_cv_prog_cc_stdc in #(
16963   no) :
16964     ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
16965   *) :
16966     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
16967 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
16968 if ${ac_cv_prog_cc_c99+:} false; then :
16969   $as_echo_n "(cached) " >&6
16970 else
16971   ac_cv_prog_cc_c99=no
16972 ac_save_CC=$CC
16973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16974 /* end confdefs.h.  */
16975 #include <stdarg.h>
16976 #include <stdbool.h>
16977 #include <stdlib.h>
16978 #include <wchar.h>
16979 #include <stdio.h>
16980
16981 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
16982 #define debug(...) fprintf (stderr, __VA_ARGS__)
16983 #define showlist(...) puts (#__VA_ARGS__)
16984 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
16985 static void
16986 test_varargs_macros (void)
16987 {
16988   int x = 1234;
16989   int y = 5678;
16990   debug ("Flag");
16991   debug ("X = %d\n", x);
16992   showlist (The first, second, and third items.);
16993   report (x>y, "x is %d but y is %d", x, y);
16994 }
16995
16996 // Check long long types.
16997 #define BIG64 18446744073709551615ull
16998 #define BIG32 4294967295ul
16999 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
17000 #if !BIG_OK
17001   your preprocessor is broken;
17002 #endif
17003 #if BIG_OK
17004 #else
17005   your preprocessor is broken;
17006 #endif
17007 static long long int bignum = -9223372036854775807LL;
17008 static unsigned long long int ubignum = BIG64;
17009
17010 struct incomplete_array
17011 {
17012   int datasize;
17013   double data[];
17014 };
17015
17016 struct named_init {
17017   int number;
17018   const wchar_t *name;
17019   double average;
17020 };
17021
17022 typedef const char *ccp;
17023
17024 static inline int
17025 test_restrict (ccp restrict text)
17026 {
17027   // See if C++-style comments work.
17028   // Iterate through items via the restricted pointer.
17029   // Also check for declarations in for loops.
17030   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
17031     continue;
17032   return 0;
17033 }
17034
17035 // Check varargs and va_copy.
17036 static void
17037 test_varargs (const char *format, ...)
17038 {
17039   va_list args;
17040   va_start (args, format);
17041   va_list args_copy;
17042   va_copy (args_copy, args);
17043
17044   const char *str;
17045   int number;
17046   float fnumber;
17047
17048   while (*format)
17049     {
17050       switch (*format++)
17051         {
17052         case 's': // string
17053           str = va_arg (args_copy, const char *);
17054           break;
17055         case 'd': // int
17056           number = va_arg (args_copy, int);
17057           break;
17058         case 'f': // float
17059           fnumber = va_arg (args_copy, double);
17060           break;
17061         default:
17062           break;
17063         }
17064     }
17065   va_end (args_copy);
17066   va_end (args);
17067 }
17068
17069 int
17070 main ()
17071 {
17072
17073   // Check bool.
17074   _Bool success = false;
17075
17076   // Check restrict.
17077   if (test_restrict ("String literal") == 0)
17078     success = true;
17079   char *restrict newvar = "Another string";
17080
17081   // Check varargs.
17082   test_varargs ("s, d' f .", "string", 65, 34.234);
17083   test_varargs_macros ();
17084
17085   // Check flexible array members.
17086   struct incomplete_array *ia =
17087     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
17088   ia->datasize = 10;
17089   for (int i = 0; i < ia->datasize; ++i)
17090     ia->data[i] = i * 1.234;
17091
17092   // Check named initializers.
17093   struct named_init ni = {
17094     .number = 34,
17095     .name = L"Test wide string",
17096     .average = 543.34343,
17097   };
17098
17099   ni.number = 58;
17100
17101   int dynamic_array[ni.number];
17102   dynamic_array[ni.number - 1] = 543;
17103
17104   // work around unused variable warnings
17105   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
17106           || dynamic_array[ni.number - 1] != 543);
17107
17108   ;
17109   return 0;
17110 }
17111 _ACEOF
17112 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
17113 do
17114   CC="$ac_save_CC $ac_arg"
17115   if ac_fn_c_try_compile "$LINENO"; then :
17116   ac_cv_prog_cc_c99=$ac_arg
17117 fi
17118 rm -f core conftest.err conftest.$ac_objext
17119   test "x$ac_cv_prog_cc_c99" != "xno" && break
17120 done
17121 rm -f conftest.$ac_ext
17122 CC=$ac_save_CC
17123
17124 fi
17125 # AC_CACHE_VAL
17126 case "x$ac_cv_prog_cc_c99" in
17127   x)
17128     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
17129 $as_echo "none needed" >&6; } ;;
17130   xno)
17131     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
17132 $as_echo "unsupported" >&6; } ;;
17133   *)
17134     CC="$CC $ac_cv_prog_cc_c99"
17135     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
17136 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
17137 esac
17138 if test "x$ac_cv_prog_cc_c99" != xno; then :
17139   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
17140 else
17141   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
17142 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
17143 if ${ac_cv_prog_cc_c89+:} false; then :
17144   $as_echo_n "(cached) " >&6
17145 else
17146   ac_cv_prog_cc_c89=no
17147 ac_save_CC=$CC
17148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17149 /* end confdefs.h.  */
17150 #include <stdarg.h>
17151 #include <stdio.h>
17152 #include <sys/types.h>
17153 #include <sys/stat.h>
17154 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
17155 struct buf { int x; };
17156 FILE * (*rcsopen) (struct buf *, struct stat *, int);
17157 static char *e (p, i)
17158      char **p;
17159      int i;
17160 {
17161   return p[i];
17162 }
17163 static char *f (char * (*g) (char **, int), char **p, ...)
17164 {
17165   char *s;
17166   va_list v;
17167   va_start (v,p);
17168   s = g (p, va_arg (v,int));
17169   va_end (v);
17170   return s;
17171 }
17172
17173 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
17174    function prototypes and stuff, but not '\xHH' hex character constants.
17175    These don't provoke an error unfortunately, instead are silently treated
17176    as 'x'.  The following induces an error, until -std is added to get
17177    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
17178    array size at least.  It's necessary to write '\x00'==0 to get something
17179    that's true only with -std.  */
17180 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
17181
17182 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
17183    inside strings and character constants.  */
17184 #define FOO(x) 'x'
17185 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
17186
17187 int test (int i, double x);
17188 struct s1 {int (*f) (int a);};
17189 struct s2 {int (*f) (double a);};
17190 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
17191 int argc;
17192 char **argv;
17193 int
17194 main ()
17195 {
17196 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
17197   ;
17198   return 0;
17199 }
17200 _ACEOF
17201 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
17202         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
17203 do
17204   CC="$ac_save_CC $ac_arg"
17205   if ac_fn_c_try_compile "$LINENO"; then :
17206   ac_cv_prog_cc_c89=$ac_arg
17207 fi
17208 rm -f core conftest.err conftest.$ac_objext
17209   test "x$ac_cv_prog_cc_c89" != "xno" && break
17210 done
17211 rm -f conftest.$ac_ext
17212 CC=$ac_save_CC
17213
17214 fi
17215 # AC_CACHE_VAL
17216 case "x$ac_cv_prog_cc_c89" in
17217   x)
17218     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
17219 $as_echo "none needed" >&6; } ;;
17220   xno)
17221     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
17222 $as_echo "unsupported" >&6; } ;;
17223   *)
17224     CC="$CC $ac_cv_prog_cc_c89"
17225     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
17226 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
17227 esac
17228 if test "x$ac_cv_prog_cc_c89" != xno; then :
17229   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
17230 else
17231   ac_cv_prog_cc_stdc=no
17232 fi
17233
17234 fi
17235  ;;
17236 esac
17237   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
17238 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
17239   if ${ac_cv_prog_cc_stdc+:} false; then :
17240   $as_echo_n "(cached) " >&6
17241 fi
17242
17243   case $ac_cv_prog_cc_stdc in #(
17244   no) :
17245     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
17246 $as_echo "unsupported" >&6; } ;; #(
17247   '') :
17248     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
17249 $as_echo "none needed" >&6; } ;; #(
17250   *) :
17251     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
17252 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
17253 esac
17254
17255
17256 if test "x$CC" != xcc; then
17257   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
17258 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
17259 else
17260   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
17261 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
17262 fi
17263 set dummy $CC; ac_cc=`$as_echo "$2" |
17264                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
17265 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
17266   $as_echo_n "(cached) " >&6
17267 else
17268   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17269 /* end confdefs.h.  */
17270
17271 int
17272 main ()
17273 {
17274
17275   ;
17276   return 0;
17277 }
17278 _ACEOF
17279 # Make sure it works both with $CC and with simple cc.
17280 # We do the test twice because some compilers refuse to overwrite an
17281 # existing .o file with -o, though they will create one.
17282 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
17283 rm -f conftest2.*
17284 if { { case "(($ac_try" in
17285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17286   *) ac_try_echo=$ac_try;;
17287 esac
17288 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17289 $as_echo "$ac_try_echo"; } >&5
17290   (eval "$ac_try") 2>&5
17291   ac_status=$?
17292   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17293   test $ac_status = 0; } &&
17294    test -f conftest2.$ac_objext && { { case "(($ac_try" in
17295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17296   *) ac_try_echo=$ac_try;;
17297 esac
17298 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17299 $as_echo "$ac_try_echo"; } >&5
17300   (eval "$ac_try") 2>&5
17301   ac_status=$?
17302   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17303   test $ac_status = 0; };
17304 then
17305   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
17306   if test "x$CC" != xcc; then
17307     # Test first that cc exists at all.
17308     if { ac_try='cc -c conftest.$ac_ext >&5'
17309   { { case "(($ac_try" in
17310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17311   *) ac_try_echo=$ac_try;;
17312 esac
17313 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17314 $as_echo "$ac_try_echo"; } >&5
17315   (eval "$ac_try") 2>&5
17316   ac_status=$?
17317   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17318   test $ac_status = 0; }; }; then
17319       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
17320       rm -f conftest2.*
17321       if { { case "(($ac_try" in
17322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17323   *) ac_try_echo=$ac_try;;
17324 esac
17325 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17326 $as_echo "$ac_try_echo"; } >&5
17327   (eval "$ac_try") 2>&5
17328   ac_status=$?
17329   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17330   test $ac_status = 0; } &&
17331          test -f conftest2.$ac_objext && { { case "(($ac_try" in
17332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17333   *) ac_try_echo=$ac_try;;
17334 esac
17335 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17336 $as_echo "$ac_try_echo"; } >&5
17337   (eval "$ac_try") 2>&5
17338   ac_status=$?
17339   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17340   test $ac_status = 0; };
17341       then
17342         # cc works too.
17343         :
17344       else
17345         # cc exists but doesn't like -o.
17346         eval ac_cv_prog_cc_${ac_cc}_c_o=no
17347       fi
17348     fi
17349   fi
17350 else
17351   eval ac_cv_prog_cc_${ac_cc}_c_o=no
17352 fi
17353 rm -f core conftest*
17354
17355 fi
17356 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
17357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17358 $as_echo "yes" >&6; }
17359 else
17360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17361 $as_echo "no" >&6; }
17362
17363 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
17364
17365 fi
17366
17367 # FIXME: we rely on the cache variable name because
17368 # there is no other way.
17369 set dummy $CC
17370 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
17371 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
17372 if test "$am_t" != yes; then
17373    # Losing compiler, so override with the script.
17374    # FIXME: It is wrong to rewrite CC.
17375    # But if we don't then we get into trouble of one sort or another.
17376    # A longer-term fix would be to have automake use am__CC in this case,
17377    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
17378    CC="$am_aux_dir/compile $CC"
17379 fi
17380
17381
17382
17383 # By default we simply use the C compiler to build assembly code.
17384
17385 test "${CCAS+set}" = set || CCAS=$CC
17386 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
17387
17388
17389
17390 depcc="$CCAS"   am_compiler_list=
17391
17392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
17393 $as_echo_n "checking dependency style of $depcc... " >&6; }
17394 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
17395   $as_echo_n "(cached) " >&6
17396 else
17397   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
17398   # We make a subdir and do the tests there.  Otherwise we can end up
17399   # making bogus files that we don't know about and never remove.  For
17400   # instance it was reported that on HP-UX the gcc test will end up
17401   # making a dummy file named `D' -- because `-MD' means `put the output
17402   # in D'.
17403   rm -rf conftest.dir
17404   mkdir conftest.dir
17405   # Copy depcomp to subdir because otherwise we won't find it if we're
17406   # using a relative directory.
17407   cp "$am_depcomp" conftest.dir
17408   cd conftest.dir
17409   # We will build objects and dependencies in a subdirectory because
17410   # it helps to detect inapplicable dependency modes.  For instance
17411   # both Tru64's cc and ICC support -MD to output dependencies as a
17412   # side effect of compilation, but ICC will put the dependencies in
17413   # the current directory while Tru64 will put them in the object
17414   # directory.
17415   mkdir sub
17416
17417   am_cv_CCAS_dependencies_compiler_type=none
17418   if test "$am_compiler_list" = ""; then
17419      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
17420   fi
17421   am__universal=false
17422
17423
17424   for depmode in $am_compiler_list; do
17425     # Setup a source with many dependencies, because some compilers
17426     # like to wrap large dependency lists on column 80 (with \), and
17427     # we should not choose a depcomp mode which is confused by this.
17428     #
17429     # We need to recreate these files for each test, as the compiler may
17430     # overwrite some of them when testing with obscure command lines.
17431     # This happens at least with the AIX C compiler.
17432     : > sub/conftest.c
17433     for i in 1 2 3 4 5 6; do
17434       echo '#include "conftst'$i'.h"' >> sub/conftest.c
17435       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
17436       # Solaris 8's {/usr,}/bin/sh.
17437       touch sub/conftst$i.h
17438     done
17439     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
17440
17441     # We check with `-c' and `-o' for the sake of the "dashmstdout"
17442     # mode.  It turns out that the SunPro C++ compiler does not properly
17443     # handle `-M -o', and we need to detect this.  Also, some Intel
17444     # versions had trouble with output in subdirs
17445     am__obj=sub/conftest.${OBJEXT-o}
17446     am__minus_obj="-o $am__obj"
17447     case $depmode in
17448     gcc)
17449       # This depmode causes a compiler race in universal mode.
17450       test "$am__universal" = false || continue
17451       ;;
17452     nosideeffect)
17453       # after this tag, mechanisms are not by side-effect, so they'll
17454       # only be used when explicitly requested
17455       if test "x$enable_dependency_tracking" = xyes; then
17456         continue
17457       else
17458         break
17459       fi
17460       ;;
17461     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
17462       # This compiler won't grok `-c -o', but also, the minuso test has
17463       # not run yet.  These depmodes are late enough in the game, and
17464       # so weak that their functioning should not be impacted.
17465       am__obj=conftest.${OBJEXT-o}
17466       am__minus_obj=
17467       ;;
17468     none) break ;;
17469     esac
17470     if depmode=$depmode \
17471        source=sub/conftest.c object=$am__obj \
17472        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
17473        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
17474          >/dev/null 2>conftest.err &&
17475        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
17476        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
17477        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
17478        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
17479       # icc doesn't choke on unknown options, it will just issue warnings
17480       # or remarks (even with -Werror).  So we grep stderr for any message
17481       # that says an option was ignored or not supported.
17482       # When given -MP, icc 7.0 and 7.1 complain thusly:
17483       #   icc: Command line warning: ignoring option '-M'; no argument required
17484       # The diagnosis changed in icc 8.0:
17485       #   icc: Command line remark: option '-MP' not supported
17486       if (grep 'ignoring option' conftest.err ||
17487           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
17488         am_cv_CCAS_dependencies_compiler_type=$depmode
17489         break
17490       fi
17491     fi
17492   done
17493
17494   cd ..
17495   rm -rf conftest.dir
17496 else
17497   am_cv_CCAS_dependencies_compiler_type=none
17498 fi
17499
17500 fi
17501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
17502 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
17503 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
17504
17505  if
17506   test "x$enable_dependency_tracking" != xno \
17507   && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
17508   am__fastdepCCAS_TRUE=
17509   am__fastdepCCAS_FALSE='#'
17510 else
17511   am__fastdepCCAS_TRUE='#'
17512   am__fastdepCCAS_FALSE=
17513 fi
17514
17515
17516
17517 ac_ext=cpp
17518 ac_cpp='$CXXCPP $CPPFLAGS'
17519 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17520 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17521 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17522 if test -z "$CXX"; then
17523   if test -n "$CCC"; then
17524     CXX=$CCC
17525   else
17526     if test -n "$ac_tool_prefix"; then
17527   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
17528   do
17529     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
17530 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
17531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17532 $as_echo_n "checking for $ac_word... " >&6; }
17533 if ${ac_cv_prog_CXX+:} false; then :
17534   $as_echo_n "(cached) " >&6
17535 else
17536   if test -n "$CXX"; then
17537   ac_cv_prog_CXX="$CXX" # Let the user override the test.
17538 else
17539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17540 for as_dir in $PATH
17541 do
17542   IFS=$as_save_IFS
17543   test -z "$as_dir" && as_dir=.
17544     for ac_exec_ext in '' $ac_executable_extensions; do
17545   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17546     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
17547     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17548     break 2
17549   fi
17550 done
17551   done
17552 IFS=$as_save_IFS
17553
17554 fi
17555 fi
17556 CXX=$ac_cv_prog_CXX
17557 if test -n "$CXX"; then
17558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
17559 $as_echo "$CXX" >&6; }
17560 else
17561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17562 $as_echo "no" >&6; }
17563 fi
17564
17565
17566     test -n "$CXX" && break
17567   done
17568 fi
17569 if test -z "$CXX"; then
17570   ac_ct_CXX=$CXX
17571   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
17572 do
17573   # Extract the first word of "$ac_prog", so it can be a program name with args.
17574 set dummy $ac_prog; ac_word=$2
17575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17576 $as_echo_n "checking for $ac_word... " >&6; }
17577 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
17578   $as_echo_n "(cached) " >&6
17579 else
17580   if test -n "$ac_ct_CXX"; then
17581   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
17582 else
17583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17584 for as_dir in $PATH
17585 do
17586   IFS=$as_save_IFS
17587   test -z "$as_dir" && as_dir=.
17588     for ac_exec_ext in '' $ac_executable_extensions; do
17589   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17590     ac_cv_prog_ac_ct_CXX="$ac_prog"
17591     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17592     break 2
17593   fi
17594 done
17595   done
17596 IFS=$as_save_IFS
17597
17598 fi
17599 fi
17600 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
17601 if test -n "$ac_ct_CXX"; then
17602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
17603 $as_echo "$ac_ct_CXX" >&6; }
17604 else
17605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17606 $as_echo "no" >&6; }
17607 fi
17608
17609
17610   test -n "$ac_ct_CXX" && break
17611 done
17612
17613   if test "x$ac_ct_CXX" = x; then
17614     CXX="g++"
17615   else
17616     case $cross_compiling:$ac_tool_warned in
17617 yes:)
17618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17619 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17620 ac_tool_warned=yes ;;
17621 esac
17622     CXX=$ac_ct_CXX
17623   fi
17624 fi
17625
17626   fi
17627 fi
17628 # Provide some information about the compiler.
17629 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
17630 set X $ac_compile
17631 ac_compiler=$2
17632 for ac_option in --version -v -V -qversion; do
17633   { { ac_try="$ac_compiler $ac_option >&5"
17634 case "(($ac_try" in
17635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17636   *) ac_try_echo=$ac_try;;
17637 esac
17638 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17639 $as_echo "$ac_try_echo"; } >&5
17640   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
17641   ac_status=$?
17642   if test -s conftest.err; then
17643     sed '10a\
17644 ... rest of stderr output deleted ...
17645          10q' conftest.err >conftest.er1
17646     cat conftest.er1 >&5
17647   fi
17648   rm -f conftest.er1 conftest.err
17649   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17650   test $ac_status = 0; }
17651 done
17652
17653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
17654 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
17655 if ${ac_cv_cxx_compiler_gnu+:} false; then :
17656   $as_echo_n "(cached) " >&6
17657 else
17658   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17659 /* end confdefs.h.  */
17660
17661 int
17662 main ()
17663 {
17664 #ifndef __GNUC__
17665        choke me
17666 #endif
17667
17668   ;
17669   return 0;
17670 }
17671 _ACEOF
17672 if ac_fn_cxx_try_compile "$LINENO"; then :
17673   ac_compiler_gnu=yes
17674 else
17675   ac_compiler_gnu=no
17676 fi
17677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17678 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
17679
17680 fi
17681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
17682 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
17683 if test $ac_compiler_gnu = yes; then
17684   GXX=yes
17685 else
17686   GXX=
17687 fi
17688 ac_test_CXXFLAGS=${CXXFLAGS+set}
17689 ac_save_CXXFLAGS=$CXXFLAGS
17690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
17691 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
17692 if ${ac_cv_prog_cxx_g+:} false; then :
17693   $as_echo_n "(cached) " >&6
17694 else
17695   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
17696    ac_cxx_werror_flag=yes
17697    ac_cv_prog_cxx_g=no
17698    CXXFLAGS="-g"
17699    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17700 /* end confdefs.h.  */
17701
17702 int
17703 main ()
17704 {
17705
17706   ;
17707   return 0;
17708 }
17709 _ACEOF
17710 if ac_fn_cxx_try_compile "$LINENO"; then :
17711   ac_cv_prog_cxx_g=yes
17712 else
17713   CXXFLAGS=""
17714       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17715 /* end confdefs.h.  */
17716
17717 int
17718 main ()
17719 {
17720
17721   ;
17722   return 0;
17723 }
17724 _ACEOF
17725 if ac_fn_cxx_try_compile "$LINENO"; then :
17726
17727 else
17728   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
17729          CXXFLAGS="-g"
17730          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17731 /* end confdefs.h.  */
17732
17733 int
17734 main ()
17735 {
17736
17737   ;
17738   return 0;
17739 }
17740 _ACEOF
17741 if ac_fn_cxx_try_compile "$LINENO"; then :
17742   ac_cv_prog_cxx_g=yes
17743 fi
17744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17745 fi
17746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17747 fi
17748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17749    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
17750 fi
17751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
17752 $as_echo "$ac_cv_prog_cxx_g" >&6; }
17753 if test "$ac_test_CXXFLAGS" = set; then
17754   CXXFLAGS=$ac_save_CXXFLAGS
17755 elif test $ac_cv_prog_cxx_g = yes; then
17756   if test "$GXX" = yes; then
17757     CXXFLAGS="-g -O2"
17758   else
17759     CXXFLAGS="-g"
17760   fi
17761 else
17762   if test "$GXX" = yes; then
17763     CXXFLAGS="-O2"
17764   else
17765     CXXFLAGS=
17766   fi
17767 fi
17768 ac_ext=c
17769 ac_cpp='$CPP $CPPFLAGS'
17770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17773
17774 depcc="$CXX"  am_compiler_list=
17775
17776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
17777 $as_echo_n "checking dependency style of $depcc... " >&6; }
17778 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
17779   $as_echo_n "(cached) " >&6
17780 else
17781   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
17782   # We make a subdir and do the tests there.  Otherwise we can end up
17783   # making bogus files that we don't know about and never remove.  For
17784   # instance it was reported that on HP-UX the gcc test will end up
17785   # making a dummy file named `D' -- because `-MD' means `put the output
17786   # in D'.
17787   rm -rf conftest.dir
17788   mkdir conftest.dir
17789   # Copy depcomp to subdir because otherwise we won't find it if we're
17790   # using a relative directory.
17791   cp "$am_depcomp" conftest.dir
17792   cd conftest.dir
17793   # We will build objects and dependencies in a subdirectory because
17794   # it helps to detect inapplicable dependency modes.  For instance
17795   # both Tru64's cc and ICC support -MD to output dependencies as a
17796   # side effect of compilation, but ICC will put the dependencies in
17797   # the current directory while Tru64 will put them in the object
17798   # directory.
17799   mkdir sub
17800
17801   am_cv_CXX_dependencies_compiler_type=none
17802   if test "$am_compiler_list" = ""; then
17803      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
17804   fi
17805   am__universal=false
17806   case " $depcc " in #(
17807      *\ -arch\ *\ -arch\ *) am__universal=true ;;
17808      esac
17809
17810   for depmode in $am_compiler_list; do
17811     # Setup a source with many dependencies, because some compilers
17812     # like to wrap large dependency lists on column 80 (with \), and
17813     # we should not choose a depcomp mode which is confused by this.
17814     #
17815     # We need to recreate these files for each test, as the compiler may
17816     # overwrite some of them when testing with obscure command lines.
17817     # This happens at least with the AIX C compiler.
17818     : > sub/conftest.c
17819     for i in 1 2 3 4 5 6; do
17820       echo '#include "conftst'$i'.h"' >> sub/conftest.c
17821       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
17822       # Solaris 8's {/usr,}/bin/sh.
17823       touch sub/conftst$i.h
17824     done
17825     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
17826
17827     # We check with `-c' and `-o' for the sake of the "dashmstdout"
17828     # mode.  It turns out that the SunPro C++ compiler does not properly
17829     # handle `-M -o', and we need to detect this.  Also, some Intel
17830     # versions had trouble with output in subdirs
17831     am__obj=sub/conftest.${OBJEXT-o}
17832     am__minus_obj="-o $am__obj"
17833     case $depmode in
17834     gcc)
17835       # This depmode causes a compiler race in universal mode.
17836       test "$am__universal" = false || continue
17837       ;;
17838     nosideeffect)
17839       # after this tag, mechanisms are not by side-effect, so they'll
17840       # only be used when explicitly requested
17841       if test "x$enable_dependency_tracking" = xyes; then
17842         continue
17843       else
17844         break
17845       fi
17846       ;;
17847     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
17848       # This compiler won't grok `-c -o', but also, the minuso test has
17849       # not run yet.  These depmodes are late enough in the game, and
17850       # so weak that their functioning should not be impacted.
17851       am__obj=conftest.${OBJEXT-o}
17852       am__minus_obj=
17853       ;;
17854     none) break ;;
17855     esac
17856     if depmode=$depmode \
17857        source=sub/conftest.c object=$am__obj \
17858        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
17859        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
17860          >/dev/null 2>conftest.err &&
17861        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
17862        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
17863        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
17864        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
17865       # icc doesn't choke on unknown options, it will just issue warnings
17866       # or remarks (even with -Werror).  So we grep stderr for any message
17867       # that says an option was ignored or not supported.
17868       # When given -MP, icc 7.0 and 7.1 complain thusly:
17869       #   icc: Command line warning: ignoring option '-M'; no argument required
17870       # The diagnosis changed in icc 8.0:
17871       #   icc: Command line remark: option '-MP' not supported
17872       if (grep 'ignoring option' conftest.err ||
17873           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
17874         am_cv_CXX_dependencies_compiler_type=$depmode
17875         break
17876       fi
17877     fi
17878   done
17879
17880   cd ..
17881   rm -rf conftest.dir
17882 else
17883   am_cv_CXX_dependencies_compiler_type=none
17884 fi
17885
17886 fi
17887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
17888 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
17889 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
17890
17891  if
17892   test "x$enable_dependency_tracking" != xno \
17893   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
17894   am__fastdepCXX_TRUE=
17895   am__fastdepCXX_FALSE='#'
17896 else
17897   am__fastdepCXX_TRUE='#'
17898   am__fastdepCXX_FALSE=
17899 fi
17900
17901
17902
17903
17904 func_stripname_cnf ()
17905 {
17906   case ${2} in
17907   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17908   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17909   esac
17910 } # func_stripname_cnf
17911
17912       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17913     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17914     (test "X$CXX" != "Xg++"))) ; then
17915   ac_ext=cpp
17916 ac_cpp='$CXXCPP $CPPFLAGS'
17917 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17918 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17919 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
17921 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
17922 if test -z "$CXXCPP"; then
17923   if ${ac_cv_prog_CXXCPP+:} false; then :
17924   $as_echo_n "(cached) " >&6
17925 else
17926       # Double quotes because CXXCPP needs to be expanded
17927     for CXXCPP in "$CXX -E" "/lib/cpp"
17928     do
17929       ac_preproc_ok=false
17930 for ac_cxx_preproc_warn_flag in '' yes
17931 do
17932   # Use a header file that comes with gcc, so configuring glibc
17933   # with a fresh cross-compiler works.
17934   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17935   # <limits.h> exists even on freestanding compilers.
17936   # On the NeXT, cc -E runs the code through the compiler's parser,
17937   # not just through cpp. "Syntax error" is here to catch this case.
17938   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17939 /* end confdefs.h.  */
17940 #ifdef __STDC__
17941 # include <limits.h>
17942 #else
17943 # include <assert.h>
17944 #endif
17945                      Syntax error
17946 _ACEOF
17947 if ac_fn_cxx_try_cpp "$LINENO"; then :
17948
17949 else
17950   # Broken: fails on valid input.
17951 continue
17952 fi
17953 rm -f conftest.err conftest.i conftest.$ac_ext
17954
17955   # OK, works on sane cases.  Now check whether nonexistent headers
17956   # can be detected and how.
17957   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17958 /* end confdefs.h.  */
17959 #include <ac_nonexistent.h>
17960 _ACEOF
17961 if ac_fn_cxx_try_cpp "$LINENO"; then :
17962   # Broken: success on invalid input.
17963 continue
17964 else
17965   # Passes both tests.
17966 ac_preproc_ok=:
17967 break
17968 fi
17969 rm -f conftest.err conftest.i conftest.$ac_ext
17970
17971 done
17972 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17973 rm -f conftest.i conftest.err conftest.$ac_ext
17974 if $ac_preproc_ok; then :
17975   break
17976 fi
17977
17978     done
17979     ac_cv_prog_CXXCPP=$CXXCPP
17980
17981 fi
17982   CXXCPP=$ac_cv_prog_CXXCPP
17983 else
17984   ac_cv_prog_CXXCPP=$CXXCPP
17985 fi
17986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
17987 $as_echo "$CXXCPP" >&6; }
17988 ac_preproc_ok=false
17989 for ac_cxx_preproc_warn_flag in '' yes
17990 do
17991   # Use a header file that comes with gcc, so configuring glibc
17992   # with a fresh cross-compiler works.
17993   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17994   # <limits.h> exists even on freestanding compilers.
17995   # On the NeXT, cc -E runs the code through the compiler's parser,
17996   # not just through cpp. "Syntax error" is here to catch this case.
17997   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17998 /* end confdefs.h.  */
17999 #ifdef __STDC__
18000 # include <limits.h>
18001 #else
18002 # include <assert.h>
18003 #endif
18004                      Syntax error
18005 _ACEOF
18006 if ac_fn_cxx_try_cpp "$LINENO"; then :
18007
18008 else
18009   # Broken: fails on valid input.
18010 continue
18011 fi
18012 rm -f conftest.err conftest.i conftest.$ac_ext
18013
18014   # OK, works on sane cases.  Now check whether nonexistent headers
18015   # can be detected and how.
18016   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18017 /* end confdefs.h.  */
18018 #include <ac_nonexistent.h>
18019 _ACEOF
18020 if ac_fn_cxx_try_cpp "$LINENO"; then :
18021   # Broken: success on invalid input.
18022 continue
18023 else
18024   # Passes both tests.
18025 ac_preproc_ok=:
18026 break
18027 fi
18028 rm -f conftest.err conftest.i conftest.$ac_ext
18029
18030 done
18031 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18032 rm -f conftest.i conftest.err conftest.$ac_ext
18033 if $ac_preproc_ok; then :
18034
18035 else
18036   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18037 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18038 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
18039 See \`config.log' for more details" "$LINENO" 5; }
18040 fi
18041
18042 ac_ext=c
18043 ac_cpp='$CPP $CPPFLAGS'
18044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18047
18048 else
18049   _lt_caught_CXX_error=yes
18050 fi
18051
18052 ac_ext=cpp
18053 ac_cpp='$CXXCPP $CPPFLAGS'
18054 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18055 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18056 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18057
18058 archive_cmds_need_lc_CXX=no
18059 allow_undefined_flag_CXX=
18060 always_export_symbols_CXX=no
18061 archive_expsym_cmds_CXX=
18062 compiler_needs_object_CXX=no
18063 export_dynamic_flag_spec_CXX=
18064 hardcode_direct_CXX=no
18065 hardcode_direct_absolute_CXX=no
18066 hardcode_libdir_flag_spec_CXX=
18067 hardcode_libdir_separator_CXX=
18068 hardcode_minus_L_CXX=no
18069 hardcode_shlibpath_var_CXX=unsupported
18070 hardcode_automatic_CXX=no
18071 inherit_rpath_CXX=no
18072 module_cmds_CXX=
18073 module_expsym_cmds_CXX=
18074 link_all_deplibs_CXX=unknown
18075 old_archive_cmds_CXX=$old_archive_cmds
18076 reload_flag_CXX=$reload_flag
18077 reload_cmds_CXX=$reload_cmds
18078 no_undefined_flag_CXX=
18079 whole_archive_flag_spec_CXX=
18080 enable_shared_with_static_runtimes_CXX=no
18081
18082 # Source file extension for C++ test sources.
18083 ac_ext=cpp
18084
18085 # Object file extension for compiled C++ test sources.
18086 objext=o
18087 objext_CXX=$objext
18088
18089 # No sense in running all these tests if we already determined that
18090 # the CXX compiler isn't working.  Some variables (like enable_shared)
18091 # are currently assumed to apply to all compilers on this platform,
18092 # and will be corrupted by setting them based on a non-working compiler.
18093 if test "$_lt_caught_CXX_error" != yes; then
18094   # Code to be used in simple compile tests
18095   lt_simple_compile_test_code="int some_variable = 0;"
18096
18097   # Code to be used in simple link tests
18098   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18099
18100   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18101
18102
18103
18104
18105
18106
18107 # If no C compiler was specified, use CC.
18108 LTCC=${LTCC-"$CC"}
18109
18110 # If no C compiler flags were specified, use CFLAGS.
18111 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18112
18113 # Allow CC to be a program name with arguments.
18114 compiler=$CC
18115
18116
18117   # save warnings/boilerplate of simple test code
18118   ac_outfile=conftest.$ac_objext
18119 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18120 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18121 _lt_compiler_boilerplate=`cat conftest.err`
18122 $RM conftest*
18123
18124   ac_outfile=conftest.$ac_objext
18125 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18126 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18127 _lt_linker_boilerplate=`cat conftest.err`
18128 $RM -r conftest*
18129
18130
18131   # Allow CC to be a program name with arguments.
18132   lt_save_CC=$CC
18133   lt_save_CFLAGS=$CFLAGS
18134   lt_save_LD=$LD
18135   lt_save_GCC=$GCC
18136   GCC=$GXX
18137   lt_save_with_gnu_ld=$with_gnu_ld
18138   lt_save_path_LD=$lt_cv_path_LD
18139   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18140     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18141   else
18142     $as_unset lt_cv_prog_gnu_ld
18143   fi
18144   if test -n "${lt_cv_path_LDCXX+set}"; then
18145     lt_cv_path_LD=$lt_cv_path_LDCXX
18146   else
18147     $as_unset lt_cv_path_LD
18148   fi
18149   test -z "${LDCXX+set}" || LD=$LDCXX
18150   CC=${CXX-"c++"}
18151   CFLAGS=$CXXFLAGS
18152   compiler=$CC
18153   compiler_CXX=$CC
18154   for cc_temp in $compiler""; do
18155   case $cc_temp in
18156     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18157     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18158     \-*) ;;
18159     *) break;;
18160   esac
18161 done
18162 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18163
18164
18165   if test -n "$compiler"; then
18166     # We don't want -fno-exception when compiling C++ code, so set the
18167     # no_builtin_flag separately
18168     if test "$GXX" = yes; then
18169       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18170     else
18171       lt_prog_compiler_no_builtin_flag_CXX=
18172     fi
18173
18174     if test "$GXX" = yes; then
18175       # Set up default GNU C++ configuration
18176
18177
18178
18179 # Check whether --with-gnu-ld was given.
18180 if test "${with_gnu_ld+set}" = set; then :
18181   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18182 else
18183   with_gnu_ld=no
18184 fi
18185
18186 ac_prog=ld
18187 if test "$GCC" = yes; then
18188   # Check if gcc -print-prog-name=ld gives a path.
18189   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18190 $as_echo_n "checking for ld used by $CC... " >&6; }
18191   case $host in
18192   *-*-mingw*)
18193     # gcc leaves a trailing carriage return which upsets mingw
18194     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18195   *)
18196     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18197   esac
18198   case $ac_prog in
18199     # Accept absolute paths.
18200     [\\/]* | ?:[\\/]*)
18201       re_direlt='/[^/][^/]*/\.\./'
18202       # Canonicalize the pathname of ld
18203       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18204       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18205         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18206       done
18207       test -z "$LD" && LD="$ac_prog"
18208       ;;
18209   "")
18210     # If it fails, then pretend we aren't using GCC.
18211     ac_prog=ld
18212     ;;
18213   *)
18214     # If it is relative, then search for the first ld in PATH.
18215     with_gnu_ld=unknown
18216     ;;
18217   esac
18218 elif test "$with_gnu_ld" = yes; then
18219   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18220 $as_echo_n "checking for GNU ld... " >&6; }
18221 else
18222   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18223 $as_echo_n "checking for non-GNU ld... " >&6; }
18224 fi
18225 if ${lt_cv_path_LD+:} false; then :
18226   $as_echo_n "(cached) " >&6
18227 else
18228   if test -z "$LD"; then
18229   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18230   for ac_dir in $PATH; do
18231     IFS="$lt_save_ifs"
18232     test -z "$ac_dir" && ac_dir=.
18233     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18234       lt_cv_path_LD="$ac_dir/$ac_prog"
18235       # Check to see if the program is GNU ld.  I'd rather use --version,
18236       # but apparently some variants of GNU ld only accept -v.
18237       # Break only if it was the GNU/non-GNU ld that we prefer.
18238       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18239       *GNU* | *'with BFD'*)
18240         test "$with_gnu_ld" != no && break
18241         ;;
18242       *)
18243         test "$with_gnu_ld" != yes && break
18244         ;;
18245       esac
18246     fi
18247   done
18248   IFS="$lt_save_ifs"
18249 else
18250   lt_cv_path_LD="$LD" # Let the user override the test with a path.
18251 fi
18252 fi
18253
18254 LD="$lt_cv_path_LD"
18255 if test -n "$LD"; then
18256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18257 $as_echo "$LD" >&6; }
18258 else
18259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18260 $as_echo "no" >&6; }
18261 fi
18262 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
18263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18264 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18265 if ${lt_cv_prog_gnu_ld+:} false; then :
18266   $as_echo_n "(cached) " >&6
18267 else
18268   # I'd rather use --version here, but apparently some GNU lds only accept -v.
18269 case `$LD -v 2>&1 </dev/null` in
18270 *GNU* | *'with BFD'*)
18271   lt_cv_prog_gnu_ld=yes
18272   ;;
18273 *)
18274   lt_cv_prog_gnu_ld=no
18275   ;;
18276 esac
18277 fi
18278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18279 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18280 with_gnu_ld=$lt_cv_prog_gnu_ld
18281
18282
18283
18284
18285
18286
18287
18288       # Check if GNU C++ uses GNU ld as the underlying linker, since the
18289       # archiving commands below assume that GNU ld is being used.
18290       if test "$with_gnu_ld" = yes; then
18291         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18292         archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18293
18294         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18295         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18296
18297         # If archive_cmds runs LD, not CC, wlarc should be empty
18298         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18299         #     investigate it a little bit more. (MM)
18300         wlarc='${wl}'
18301
18302         # ancient GNU ld didn't support --whole-archive et. al.
18303         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18304           $GREP 'no-whole-archive' > /dev/null; then
18305           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18306         else
18307           whole_archive_flag_spec_CXX=
18308         fi
18309       else
18310         with_gnu_ld=no
18311         wlarc=
18312
18313         # A generic and very simple default shared library creation
18314         # command for GNU C++ for the case where it uses the native
18315         # linker, instead of GNU ld.  If possible, this setting should
18316         # overridden to take advantage of the native linker features on
18317         # the platform it is being used on.
18318         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18319       fi
18320
18321       # Commands to make compiler produce verbose output that lists
18322       # what "hidden" libraries, object files and flags are used when
18323       # linking a shared library.
18324       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18325
18326     else
18327       GXX=no
18328       with_gnu_ld=no
18329       wlarc=
18330     fi
18331
18332     # PORTME: fill in a description of your system's C++ link characteristics
18333     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18334 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18335     ld_shlibs_CXX=yes
18336     case $host_os in
18337       aix3*)
18338         # FIXME: insert proper C++ library support
18339         ld_shlibs_CXX=no
18340         ;;
18341       aix[4-9]*)
18342         if test "$host_cpu" = ia64; then
18343           # On IA64, the linker does run time linking by default, so we don't
18344           # have to do anything special.
18345           aix_use_runtimelinking=no
18346           exp_sym_flag='-Bexport'
18347           no_entry_flag=""
18348         else
18349           aix_use_runtimelinking=no
18350
18351           # Test if we are trying to use run time linking or normal
18352           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18353           # need to do runtime linking.
18354           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18355             for ld_flag in $LDFLAGS; do
18356               case $ld_flag in
18357               *-brtl*)
18358                 aix_use_runtimelinking=yes
18359                 break
18360                 ;;
18361               esac
18362             done
18363             ;;
18364           esac
18365
18366           exp_sym_flag='-bexport'
18367           no_entry_flag='-bnoentry'
18368         fi
18369
18370         # When large executables or shared objects are built, AIX ld can
18371         # have problems creating the table of contents.  If linking a library
18372         # or program results in "error TOC overflow" add -mminimal-toc to
18373         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18374         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18375
18376         archive_cmds_CXX=''
18377         hardcode_direct_CXX=yes
18378         hardcode_direct_absolute_CXX=yes
18379         hardcode_libdir_separator_CXX=':'
18380         link_all_deplibs_CXX=yes
18381         file_list_spec_CXX='${wl}-f,'
18382
18383         if test "$GXX" = yes; then
18384           case $host_os in aix4.[012]|aix4.[012].*)
18385           # We only want to do this on AIX 4.2 and lower, the check
18386           # below for broken collect2 doesn't work under 4.3+
18387           collect2name=`${CC} -print-prog-name=collect2`
18388           if test -f "$collect2name" &&
18389              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18390           then
18391             # We have reworked collect2
18392             :
18393           else
18394             # We have old collect2
18395             hardcode_direct_CXX=unsupported
18396             # It fails to find uninstalled libraries when the uninstalled
18397             # path is not listed in the libpath.  Setting hardcode_minus_L
18398             # to unsupported forces relinking
18399             hardcode_minus_L_CXX=yes
18400             hardcode_libdir_flag_spec_CXX='-L$libdir'
18401             hardcode_libdir_separator_CXX=
18402           fi
18403           esac
18404           shared_flag='-shared'
18405           if test "$aix_use_runtimelinking" = yes; then
18406             shared_flag="$shared_flag "'${wl}-G'
18407           fi
18408         else
18409           # not using gcc
18410           if test "$host_cpu" = ia64; then
18411           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18412           # chokes on -Wl,-G. The following line is correct:
18413           shared_flag='-G'
18414           else
18415             if test "$aix_use_runtimelinking" = yes; then
18416               shared_flag='${wl}-G'
18417             else
18418               shared_flag='${wl}-bM:SRE'
18419             fi
18420           fi
18421         fi
18422
18423         export_dynamic_flag_spec_CXX='${wl}-bexpall'
18424         # It seems that -bexpall does not export symbols beginning with
18425         # underscore (_), so it is better to generate a list of symbols to
18426         # export.
18427         always_export_symbols_CXX=yes
18428         if test "$aix_use_runtimelinking" = yes; then
18429           # Warning - without using the other runtime loading flags (-brtl),
18430           # -berok will link without error, but may produce a broken library.
18431           allow_undefined_flag_CXX='-berok'
18432           # Determine the default libpath from the value encoded in an empty
18433           # executable.
18434           if test "${lt_cv_aix_libpath+set}" = set; then
18435   aix_libpath=$lt_cv_aix_libpath
18436 else
18437   if ${lt_cv_aix_libpath__CXX+:} false; then :
18438   $as_echo_n "(cached) " >&6
18439 else
18440   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18441 /* end confdefs.h.  */
18442
18443 int
18444 main ()
18445 {
18446
18447   ;
18448   return 0;
18449 }
18450 _ACEOF
18451 if ac_fn_cxx_try_link "$LINENO"; then :
18452
18453   lt_aix_libpath_sed='
18454       /Import File Strings/,/^$/ {
18455           /^0/ {
18456               s/^0  *\([^ ]*\) *$/\1/
18457               p
18458           }
18459       }'
18460   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18461   # Check for a 64-bit object if we didn't find anything.
18462   if test -z "$lt_cv_aix_libpath__CXX"; then
18463     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18464   fi
18465 fi
18466 rm -f core conftest.err conftest.$ac_objext \
18467     conftest$ac_exeext conftest.$ac_ext
18468   if test -z "$lt_cv_aix_libpath__CXX"; then
18469     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18470   fi
18471
18472 fi
18473
18474   aix_libpath=$lt_cv_aix_libpath__CXX
18475 fi
18476
18477           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18478
18479           archive_expsym_cmds_CXX='$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"
18480         else
18481           if test "$host_cpu" = ia64; then
18482             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18483             allow_undefined_flag_CXX="-z nodefs"
18484             archive_expsym_cmds_CXX="\$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"
18485           else
18486             # Determine the default libpath from the value encoded in an
18487             # empty executable.
18488             if test "${lt_cv_aix_libpath+set}" = set; then
18489   aix_libpath=$lt_cv_aix_libpath
18490 else
18491   if ${lt_cv_aix_libpath__CXX+:} false; then :
18492   $as_echo_n "(cached) " >&6
18493 else
18494   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18495 /* end confdefs.h.  */
18496
18497 int
18498 main ()
18499 {
18500
18501   ;
18502   return 0;
18503 }
18504 _ACEOF
18505 if ac_fn_cxx_try_link "$LINENO"; then :
18506
18507   lt_aix_libpath_sed='
18508       /Import File Strings/,/^$/ {
18509           /^0/ {
18510               s/^0  *\([^ ]*\) *$/\1/
18511               p
18512           }
18513       }'
18514   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18515   # Check for a 64-bit object if we didn't find anything.
18516   if test -z "$lt_cv_aix_libpath__CXX"; then
18517     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18518   fi
18519 fi
18520 rm -f core conftest.err conftest.$ac_objext \
18521     conftest$ac_exeext conftest.$ac_ext
18522   if test -z "$lt_cv_aix_libpath__CXX"; then
18523     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18524   fi
18525
18526 fi
18527
18528   aix_libpath=$lt_cv_aix_libpath__CXX
18529 fi
18530
18531             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18532             # Warning - without using the other run time loading flags,
18533             # -berok will link without error, but may produce a broken library.
18534             no_undefined_flag_CXX=' ${wl}-bernotok'
18535             allow_undefined_flag_CXX=' ${wl}-berok'
18536             if test "$with_gnu_ld" = yes; then
18537               # We only use this code for GNU lds that support --whole-archive.
18538               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18539             else
18540               # Exported symbols can be pulled into shared objects from archives
18541               whole_archive_flag_spec_CXX='$convenience'
18542             fi
18543             archive_cmds_need_lc_CXX=yes
18544             # This is similar to how AIX traditionally builds its shared
18545             # libraries.
18546             archive_expsym_cmds_CXX="\$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'
18547           fi
18548         fi
18549         ;;
18550
18551       beos*)
18552         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18553           allow_undefined_flag_CXX=unsupported
18554           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18555           # support --undefined.  This deserves some investigation.  FIXME
18556           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18557         else
18558           ld_shlibs_CXX=no
18559         fi
18560         ;;
18561
18562       chorus*)
18563         case $cc_basename in
18564           *)
18565           # FIXME: insert proper C++ library support
18566           ld_shlibs_CXX=no
18567           ;;
18568         esac
18569         ;;
18570
18571       cygwin* | mingw* | pw32* | cegcc*)
18572         case $GXX,$cc_basename in
18573         ,cl* | no,cl*)
18574           # Native MSVC
18575           # hardcode_libdir_flag_spec is actually meaningless, as there is
18576           # no search path for DLLs.
18577           hardcode_libdir_flag_spec_CXX=' '
18578           allow_undefined_flag_CXX=unsupported
18579           always_export_symbols_CXX=yes
18580           file_list_spec_CXX='@'
18581           # Tell ltmain to make .lib files, not .a files.
18582           libext=lib
18583           # Tell ltmain to make .dll files, not .so files.
18584           shrext_cmds=".dll"
18585           # FIXME: Setting linknames here is a bad hack.
18586           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
18587           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18588               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
18589             else
18590               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
18591             fi~
18592             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
18593             linknames='
18594           # The linker will not automatically build a static lib if we build a DLL.
18595           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
18596           enable_shared_with_static_runtimes_CXX=yes
18597           # Don't use ranlib
18598           old_postinstall_cmds_CXX='chmod 644 $oldlib'
18599           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
18600             lt_tool_outputfile="@TOOL_OUTPUT@"~
18601             case $lt_outputfile in
18602               *.exe|*.EXE) ;;
18603               *)
18604                 lt_outputfile="$lt_outputfile.exe"
18605                 lt_tool_outputfile="$lt_tool_outputfile.exe"
18606                 ;;
18607             esac~
18608             func_to_tool_file "$lt_outputfile"~
18609             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
18610               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
18611               $RM "$lt_outputfile.manifest";
18612             fi'
18613           ;;
18614         *)
18615           # g++
18616           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18617           # as there is no search path for DLLs.
18618           hardcode_libdir_flag_spec_CXX='-L$libdir'
18619           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18620           allow_undefined_flag_CXX=unsupported
18621           always_export_symbols_CXX=no
18622           enable_shared_with_static_runtimes_CXX=yes
18623
18624           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18625             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18626             # If the export-symbols file already is a .def file (1st line
18627             # is EXPORTS), use it as is; otherwise, prepend...
18628             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18629               cp $export_symbols $output_objdir/$soname.def;
18630             else
18631               echo EXPORTS > $output_objdir/$soname.def;
18632               cat $export_symbols >> $output_objdir/$soname.def;
18633             fi~
18634             $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18635           else
18636             ld_shlibs_CXX=no
18637           fi
18638           ;;
18639         esac
18640         ;;
18641       darwin* | rhapsody*)
18642
18643
18644   archive_cmds_need_lc_CXX=no
18645   hardcode_direct_CXX=no
18646   hardcode_automatic_CXX=yes
18647   hardcode_shlibpath_var_CXX=unsupported
18648   if test "$lt_cv_ld_force_load" = "yes"; then
18649     whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
18650
18651   else
18652     whole_archive_flag_spec_CXX=''
18653   fi
18654   link_all_deplibs_CXX=yes
18655   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18656   case $cc_basename in
18657      ifort*) _lt_dar_can_shared=yes ;;
18658      *) _lt_dar_can_shared=$GCC ;;
18659   esac
18660   if test "$_lt_dar_can_shared" = "yes"; then
18661     output_verbose_link_cmd=func_echo_all
18662     archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
18663     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18664     archive_expsym_cmds_CXX="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}"
18665     module_expsym_cmds_CXX="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}"
18666        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18667       archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
18668       archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
18669     fi
18670
18671   else
18672   ld_shlibs_CXX=no
18673   fi
18674
18675         ;;
18676
18677       dgux*)
18678         case $cc_basename in
18679           ec++*)
18680             # FIXME: insert proper C++ library support
18681             ld_shlibs_CXX=no
18682             ;;
18683           ghcx*)
18684             # Green Hills C++ Compiler
18685             # FIXME: insert proper C++ library support
18686             ld_shlibs_CXX=no
18687             ;;
18688           *)
18689             # FIXME: insert proper C++ library support
18690             ld_shlibs_CXX=no
18691             ;;
18692         esac
18693         ;;
18694
18695       freebsd2.*)
18696         # C++ shared libraries reported to be fairly broken before
18697         # switch to ELF
18698         ld_shlibs_CXX=no
18699         ;;
18700
18701       freebsd-elf*)
18702         archive_cmds_need_lc_CXX=no
18703         ;;
18704
18705       freebsd* | dragonfly*)
18706         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18707         # conventions
18708         ld_shlibs_CXX=yes
18709         ;;
18710
18711       gnu*)
18712         ;;
18713
18714       haiku*)
18715         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18716         link_all_deplibs_CXX=yes
18717         ;;
18718
18719       hpux9*)
18720         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18721         hardcode_libdir_separator_CXX=:
18722         export_dynamic_flag_spec_CXX='${wl}-E'
18723         hardcode_direct_CXX=yes
18724         hardcode_minus_L_CXX=yes # Not in the search PATH,
18725                                              # but as the default
18726                                              # location of the library.
18727
18728         case $cc_basename in
18729           CC*)
18730             # FIXME: insert proper C++ library support
18731             ld_shlibs_CXX=no
18732             ;;
18733           aCC*)
18734             archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
18735             # Commands to make compiler produce verbose output that lists
18736             # what "hidden" libraries, object files and flags are used when
18737             # linking a shared library.
18738             #
18739             # There doesn't appear to be a way to prevent this compiler from
18740             # explicitly linking system object files so we need to strip them
18741             # from the output so that they don't get included in the library
18742             # dependencies.
18743             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
18744             ;;
18745           *)
18746             if test "$GXX" = yes; then
18747               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
18748             else
18749               # FIXME: insert proper C++ library support
18750               ld_shlibs_CXX=no
18751             fi
18752             ;;
18753         esac
18754         ;;
18755
18756       hpux10*|hpux11*)
18757         if test $with_gnu_ld = no; then
18758           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18759           hardcode_libdir_separator_CXX=:
18760
18761           case $host_cpu in
18762             hppa*64*|ia64*)
18763               ;;
18764             *)
18765               export_dynamic_flag_spec_CXX='${wl}-E'
18766               ;;
18767           esac
18768         fi
18769         case $host_cpu in
18770           hppa*64*|ia64*)
18771             hardcode_direct_CXX=no
18772             hardcode_shlibpath_var_CXX=no
18773             ;;
18774           *)
18775             hardcode_direct_CXX=yes
18776             hardcode_direct_absolute_CXX=yes
18777             hardcode_minus_L_CXX=yes # Not in the search PATH,
18778                                                  # but as the default
18779                                                  # location of the library.
18780             ;;
18781         esac
18782
18783         case $cc_basename in
18784           CC*)
18785             # FIXME: insert proper C++ library support
18786             ld_shlibs_CXX=no
18787             ;;
18788           aCC*)
18789             case $host_cpu in
18790               hppa*64*)
18791                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18792                 ;;
18793               ia64*)
18794                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18795                 ;;
18796               *)
18797                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18798                 ;;
18799             esac
18800             # Commands to make compiler produce verbose output that lists
18801             # what "hidden" libraries, object files and flags are used when
18802             # linking a shared library.
18803             #
18804             # There doesn't appear to be a way to prevent this compiler from
18805             # explicitly linking system object files so we need to strip them
18806             # from the output so that they don't get included in the library
18807             # dependencies.
18808             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
18809             ;;
18810           *)
18811             if test "$GXX" = yes; then
18812               if test $with_gnu_ld = no; then
18813                 case $host_cpu in
18814                   hppa*64*)
18815                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18816                     ;;
18817                   ia64*)
18818                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18819                     ;;
18820                   *)
18821                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18822                     ;;
18823                 esac
18824               fi
18825             else
18826               # FIXME: insert proper C++ library support
18827               ld_shlibs_CXX=no
18828             fi
18829             ;;
18830         esac
18831         ;;
18832
18833       interix[3-9]*)
18834         hardcode_direct_CXX=no
18835         hardcode_shlibpath_var_CXX=no
18836         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18837         export_dynamic_flag_spec_CXX='${wl}-E'
18838         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18839         # Instead, shared libraries are loaded at an image base (0x10000000 by
18840         # default) and relocated if they conflict, which is a slow very memory
18841         # consuming and fragmenting process.  To avoid this, we pick a random,
18842         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18843         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18844         archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
18845         archive_expsym_cmds_CXX='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'
18846         ;;
18847       irix5* | irix6*)
18848         case $cc_basename in
18849           CC*)
18850             # SGI C++
18851             archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
18852
18853             # Archives containing C++ object files must be created using
18854             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
18855             # necessary to make sure instantiated templates are included
18856             # in the archive.
18857             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18858             ;;
18859           *)
18860             if test "$GXX" = yes; then
18861               if test "$with_gnu_ld" = no; then
18862                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
18863               else
18864                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
18865               fi
18866             fi
18867             link_all_deplibs_CXX=yes
18868             ;;
18869         esac
18870         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18871         hardcode_libdir_separator_CXX=:
18872         inherit_rpath_CXX=yes
18873         ;;
18874
18875       linux* | k*bsd*-gnu | kopensolaris*-gnu)
18876         case $cc_basename in
18877           KCC*)
18878             # Kuck and Associates, Inc. (KAI) C++ Compiler
18879
18880             # KCC will only create a shared library if the output file
18881             # ends with ".so" (or ".sl" for HP-UX), so rename the library
18882             # to its proper name (with version) after linking.
18883             archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
18884             archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
18885             # Commands to make compiler produce verbose output that lists
18886             # what "hidden" libraries, object files and flags are used when
18887             # linking a shared library.
18888             #
18889             # There doesn't appear to be a way to prevent this compiler from
18890             # explicitly linking system object files so we need to strip them
18891             # from the output so that they don't get included in the library
18892             # dependencies.
18893             output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
18894
18895             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18896             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18897
18898             # Archives containing C++ object files must be created using
18899             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18900             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18901             ;;
18902           icpc* | ecpc* )
18903             # Intel C++
18904             with_gnu_ld=yes
18905             # version 8.0 and above of icpc choke on multiply defined symbols
18906             # if we add $predep_objects and $postdep_objects, however 7.1 and
18907             # earlier do not add the objects themselves.
18908             case `$CC -V 2>&1` in
18909               *"Version 7."*)
18910                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18911                 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18912                 ;;
18913               *)  # Version 8.0 or newer
18914                 tmp_idyn=
18915                 case $host_cpu in
18916                   ia64*) tmp_idyn=' -i_dynamic';;
18917                 esac
18918                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18919                 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18920                 ;;
18921             esac
18922             archive_cmds_need_lc_CXX=no
18923             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18924             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18925             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18926             ;;
18927           pgCC* | pgcpp*)
18928             # Portland Group C++ compiler
18929             case `$CC -V` in
18930             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
18931               prelink_cmds_CXX='tpldir=Template.dir~
18932                 rm -rf $tpldir~
18933                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
18934                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
18935               old_archive_cmds_CXX='tpldir=Template.dir~
18936                 rm -rf $tpldir~
18937                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
18938                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
18939                 $RANLIB $oldlib'
18940               archive_cmds_CXX='tpldir=Template.dir~
18941                 rm -rf $tpldir~
18942                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18943                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18944               archive_expsym_cmds_CXX='tpldir=Template.dir~
18945                 rm -rf $tpldir~
18946                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
18947                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
18948               ;;
18949             *) # Version 6 and above use weak symbols
18950               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18951               archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
18952               ;;
18953             esac
18954
18955             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18956             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18957             whole_archive_flag_spec_CXX='${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'
18958             ;;
18959           cxx*)
18960             # Compaq C++
18961             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18962             archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
18963
18964             runpath_var=LD_RUN_PATH
18965             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18966             hardcode_libdir_separator_CXX=:
18967
18968             # Commands to make compiler produce verbose output that lists
18969             # what "hidden" libraries, object files and flags are used when
18970             # linking a shared library.
18971             #
18972             # There doesn't appear to be a way to prevent this compiler from
18973             # explicitly linking system object files so we need to strip them
18974             # from the output so that they don't get included in the library
18975             # dependencies.
18976             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
18977             ;;
18978           xl* | mpixl* | bgxl*)
18979             # IBM XL 8.0 on PPC, with GNU ld
18980             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18981             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18982             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18983             if test "x$supports_anon_versioning" = xyes; then
18984               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
18985                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18986                 echo "local: *; };" >> $output_objdir/$libname.ver~
18987                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18988             fi
18989             ;;
18990           *)
18991             case `$CC -V 2>&1 | sed 5q` in
18992             *Sun\ C*)
18993               # Sun C++ 5.9
18994               no_undefined_flag_CXX=' -zdefs'
18995               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18996               archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
18997               hardcode_libdir_flag_spec_CXX='-R$libdir'
18998               whole_archive_flag_spec_CXX='${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'
18999               compiler_needs_object_CXX=yes
19000
19001               # Not sure whether something based on
19002               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19003               # would be better.
19004               output_verbose_link_cmd='func_echo_all'
19005
19006               # Archives containing C++ object files must be created using
19007               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
19008               # necessary to make sure instantiated templates are included
19009               # in the archive.
19010               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19011               ;;
19012             esac
19013             ;;
19014         esac
19015         ;;
19016
19017       lynxos*)
19018         # FIXME: insert proper C++ library support
19019         ld_shlibs_CXX=no
19020         ;;
19021
19022       m88k*)
19023         # FIXME: insert proper C++ library support
19024         ld_shlibs_CXX=no
19025         ;;
19026
19027       mvs*)
19028         case $cc_basename in
19029           cxx*)
19030             # FIXME: insert proper C++ library support
19031             ld_shlibs_CXX=no
19032             ;;
19033           *)
19034             # FIXME: insert proper C++ library support
19035             ld_shlibs_CXX=no
19036             ;;
19037         esac
19038         ;;
19039
19040       netbsd*)
19041         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19042           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19043           wlarc=
19044           hardcode_libdir_flag_spec_CXX='-R$libdir'
19045           hardcode_direct_CXX=yes
19046           hardcode_shlibpath_var_CXX=no
19047         fi
19048         # Workaround some broken pre-1.5 toolchains
19049         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19050         ;;
19051
19052       *nto* | *qnx*)
19053         ld_shlibs_CXX=yes
19054         ;;
19055
19056       openbsd2*)
19057         # C++ shared libraries are fairly broken
19058         ld_shlibs_CXX=no
19059         ;;
19060
19061       openbsd*)
19062         if test -f /usr/libexec/ld.so; then
19063           hardcode_direct_CXX=yes
19064           hardcode_shlibpath_var_CXX=no
19065           hardcode_direct_absolute_CXX=yes
19066           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19067           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19068           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19069             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19070             export_dynamic_flag_spec_CXX='${wl}-E'
19071             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19072           fi
19073           output_verbose_link_cmd=func_echo_all
19074         else
19075           ld_shlibs_CXX=no
19076         fi
19077         ;;
19078
19079       osf3* | osf4* | osf5*)
19080         case $cc_basename in
19081           KCC*)
19082             # Kuck and Associates, Inc. (KAI) C++ Compiler
19083
19084             # KCC will only create a shared library if the output file
19085             # ends with ".so" (or ".sl" for HP-UX), so rename the library
19086             # to its proper name (with version) after linking.
19087             archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
19088
19089             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19090             hardcode_libdir_separator_CXX=:
19091
19092             # Archives containing C++ object files must be created using
19093             # the KAI C++ compiler.
19094             case $host in
19095               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19096               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19097             esac
19098             ;;
19099           RCC*)
19100             # Rational C++ 2.4.1
19101             # FIXME: insert proper C++ library support
19102             ld_shlibs_CXX=no
19103             ;;
19104           cxx*)
19105             case $host in
19106               osf3*)
19107                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19108                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
19109                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19110                 ;;
19111               *)
19112                 allow_undefined_flag_CXX=' -expect_unresolved \*'
19113                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
19114                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19115                   echo "-hidden">> $lib.exp~
19116                   $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
19117                   $RM $lib.exp'
19118                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19119                 ;;
19120             esac
19121
19122             hardcode_libdir_separator_CXX=:
19123
19124             # Commands to make compiler produce verbose output that lists
19125             # what "hidden" libraries, object files and flags are used when
19126             # linking a shared library.
19127             #
19128             # There doesn't appear to be a way to prevent this compiler from
19129             # explicitly linking system object files so we need to strip them
19130             # from the output so that they don't get included in the library
19131             # dependencies.
19132             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
19133             ;;
19134           *)
19135             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19136               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19137               case $host in
19138                 osf3*)
19139                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
19140                   ;;
19141                 *)
19142                   archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
19143                   ;;
19144               esac
19145
19146               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19147               hardcode_libdir_separator_CXX=:
19148
19149               # Commands to make compiler produce verbose output that lists
19150               # what "hidden" libraries, object files and flags are used when
19151               # linking a shared library.
19152               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19153
19154             else
19155               # FIXME: insert proper C++ library support
19156               ld_shlibs_CXX=no
19157             fi
19158             ;;
19159         esac
19160         ;;
19161
19162       psos*)
19163         # FIXME: insert proper C++ library support
19164         ld_shlibs_CXX=no
19165         ;;
19166
19167       sunos4*)
19168         case $cc_basename in
19169           CC*)
19170             # Sun C++ 4.x
19171             # FIXME: insert proper C++ library support
19172             ld_shlibs_CXX=no
19173             ;;
19174           lcc*)
19175             # Lucid
19176             # FIXME: insert proper C++ library support
19177             ld_shlibs_CXX=no
19178             ;;
19179           *)
19180             # FIXME: insert proper C++ library support
19181             ld_shlibs_CXX=no
19182             ;;
19183         esac
19184         ;;
19185
19186       solaris*)
19187         case $cc_basename in
19188           CC* | sunCC*)
19189             # Sun C++ 4.2, 5.x and Centerline C++
19190             archive_cmds_need_lc_CXX=yes
19191             no_undefined_flag_CXX=' -zdefs'
19192             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19193             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19194               $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19195
19196             hardcode_libdir_flag_spec_CXX='-R$libdir'
19197             hardcode_shlibpath_var_CXX=no
19198             case $host_os in
19199               solaris2.[0-5] | solaris2.[0-5].*) ;;
19200               *)
19201                 # The compiler driver will combine and reorder linker options,
19202                 # but understands `-z linker_flag'.
19203                 # Supported since Solaris 2.6 (maybe 2.5.1?)
19204                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19205                 ;;
19206             esac
19207             link_all_deplibs_CXX=yes
19208
19209             output_verbose_link_cmd='func_echo_all'
19210
19211             # Archives containing C++ object files must be created using
19212             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
19213             # necessary to make sure instantiated templates are included
19214             # in the archive.
19215             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19216             ;;
19217           gcx*)
19218             # Green Hills C++ Compiler
19219             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19220
19221             # The C++ compiler must be used to create the archive.
19222             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19223             ;;
19224           *)
19225             # GNU C++ compiler with Solaris linker
19226             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19227               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19228               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19229                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19230                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19231                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19232
19233                 # Commands to make compiler produce verbose output that lists
19234                 # what "hidden" libraries, object files and flags are used when
19235                 # linking a shared library.
19236                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19237               else
19238                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19239                 # platform.
19240                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19241                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19242                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19243
19244                 # Commands to make compiler produce verbose output that lists
19245                 # what "hidden" libraries, object files and flags are used when
19246                 # linking a shared library.
19247                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19248               fi
19249
19250               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19251               case $host_os in
19252                 solaris2.[0-5] | solaris2.[0-5].*) ;;
19253                 *)
19254                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19255                   ;;
19256               esac
19257             fi
19258             ;;
19259         esac
19260         ;;
19261
19262     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19263       no_undefined_flag_CXX='${wl}-z,text'
19264       archive_cmds_need_lc_CXX=no
19265       hardcode_shlibpath_var_CXX=no
19266       runpath_var='LD_RUN_PATH'
19267
19268       case $cc_basename in
19269         CC*)
19270           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19271           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19272           ;;
19273         *)
19274           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19275           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19276           ;;
19277       esac
19278       ;;
19279
19280       sysv5* | sco3.2v5* | sco5v6*)
19281         # Note: We can NOT use -z defs as we might desire, because we do not
19282         # link with -lc, and that would cause any symbols used from libc to
19283         # always be unresolved, which means just about no library would
19284         # ever link correctly.  If we're not using GNU ld we use -z text
19285         # though, which does catch some bad symbols but isn't as heavy-handed
19286         # as -z defs.
19287         no_undefined_flag_CXX='${wl}-z,text'
19288         allow_undefined_flag_CXX='${wl}-z,nodefs'
19289         archive_cmds_need_lc_CXX=no
19290         hardcode_shlibpath_var_CXX=no
19291         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19292         hardcode_libdir_separator_CXX=':'
19293         link_all_deplibs_CXX=yes
19294         export_dynamic_flag_spec_CXX='${wl}-Bexport'
19295         runpath_var='LD_RUN_PATH'
19296
19297         case $cc_basename in
19298           CC*)
19299             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19300             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19301             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
19302               '"$old_archive_cmds_CXX"
19303             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
19304               '"$reload_cmds_CXX"
19305             ;;
19306           *)
19307             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19308             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19309             ;;
19310         esac
19311       ;;
19312
19313       tandem*)
19314         case $cc_basename in
19315           NCC*)
19316             # NonStop-UX NCC 3.20
19317             # FIXME: insert proper C++ library support
19318             ld_shlibs_CXX=no
19319             ;;
19320           *)
19321             # FIXME: insert proper C++ library support
19322             ld_shlibs_CXX=no
19323             ;;
19324         esac
19325         ;;
19326
19327       vxworks*)
19328         # FIXME: insert proper C++ library support
19329         ld_shlibs_CXX=no
19330         ;;
19331
19332       *)
19333         # FIXME: insert proper C++ library support
19334         ld_shlibs_CXX=no
19335         ;;
19336     esac
19337
19338     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19339 $as_echo "$ld_shlibs_CXX" >&6; }
19340     test "$ld_shlibs_CXX" = no && can_build_shared=no
19341
19342     GCC_CXX="$GXX"
19343     LD_CXX="$LD"
19344
19345     ## CAVEAT EMPTOR:
19346     ## There is no encapsulation within the following macros, do not change
19347     ## the running order or otherwise move them around unless you know exactly
19348     ## what you are doing...
19349     # Dependencies to place before and after the object being linked:
19350 predep_objects_CXX=
19351 postdep_objects_CXX=
19352 predeps_CXX=
19353 postdeps_CXX=
19354 compiler_lib_search_path_CXX=
19355
19356 cat > conftest.$ac_ext <<_LT_EOF
19357 class Foo
19358 {
19359 public:
19360   Foo (void) { a = 0; }
19361 private:
19362   int a;
19363 };
19364 _LT_EOF
19365
19366
19367 _lt_libdeps_save_CFLAGS=$CFLAGS
19368 case "$CC $CFLAGS " in #(
19369 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
19370 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
19371 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
19372 esac
19373
19374 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19375   (eval $ac_compile) 2>&5
19376   ac_status=$?
19377   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19378   test $ac_status = 0; }; then
19379   # Parse the compiler output and extract the necessary
19380   # objects, libraries and library flags.
19381
19382   # Sentinel used to keep track of whether or not we are before
19383   # the conftest object file.
19384   pre_test_object_deps_done=no
19385
19386   for p in `eval "$output_verbose_link_cmd"`; do
19387     case ${prev}${p} in
19388
19389     -L* | -R* | -l*)
19390        # Some compilers place space between "-{L,R}" and the path.
19391        # Remove the space.
19392        if test $p = "-L" ||
19393           test $p = "-R"; then
19394          prev=$p
19395          continue
19396        fi
19397
19398        # Expand the sysroot to ease extracting the directories later.
19399        if test -z "$prev"; then
19400          case $p in
19401          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
19402          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
19403          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
19404          esac
19405        fi
19406        case $p in
19407        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
19408        esac
19409        if test "$pre_test_object_deps_done" = no; then
19410          case ${prev} in
19411          -L | -R)
19412            # Internal compiler library paths should come after those
19413            # provided the user.  The postdeps already come after the
19414            # user supplied libs so there is no need to process them.
19415            if test -z "$compiler_lib_search_path_CXX"; then
19416              compiler_lib_search_path_CXX="${prev}${p}"
19417            else
19418              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19419            fi
19420            ;;
19421          # The "-l" case would never come before the object being
19422          # linked, so don't bother handling this case.
19423          esac
19424        else
19425          if test -z "$postdeps_CXX"; then
19426            postdeps_CXX="${prev}${p}"
19427          else
19428            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19429          fi
19430        fi
19431        prev=
19432        ;;
19433
19434     *.lto.$objext) ;; # Ignore GCC LTO objects
19435     *.$objext)
19436        # This assumes that the test object file only shows up
19437        # once in the compiler output.
19438        if test "$p" = "conftest.$objext"; then
19439          pre_test_object_deps_done=yes
19440          continue
19441        fi
19442
19443        if test "$pre_test_object_deps_done" = no; then
19444          if test -z "$predep_objects_CXX"; then
19445            predep_objects_CXX="$p"
19446          else
19447            predep_objects_CXX="$predep_objects_CXX $p"
19448          fi
19449        else
19450          if test -z "$postdep_objects_CXX"; then
19451            postdep_objects_CXX="$p"
19452          else
19453            postdep_objects_CXX="$postdep_objects_CXX $p"
19454          fi
19455        fi
19456        ;;
19457
19458     *) ;; # Ignore the rest.
19459
19460     esac
19461   done
19462
19463   # Clean up.
19464   rm -f a.out a.exe
19465 else
19466   echo "libtool.m4: error: problem compiling CXX test program"
19467 fi
19468
19469 $RM -f confest.$objext
19470 CFLAGS=$_lt_libdeps_save_CFLAGS
19471
19472 # PORTME: override above test on systems where it is broken
19473 case $host_os in
19474 interix[3-9]*)
19475   # Interix 3.5 installs completely hosed .la files for C++, so rather than
19476   # hack all around it, let's just trust "g++" to DTRT.
19477   predep_objects_CXX=
19478   postdep_objects_CXX=
19479   postdeps_CXX=
19480   ;;
19481
19482 linux*)
19483   case `$CC -V 2>&1 | sed 5q` in
19484   *Sun\ C*)
19485     # Sun C++ 5.9
19486
19487     # The more standards-conforming stlport4 library is
19488     # incompatible with the Cstd library. Avoid specifying
19489     # it if it's in CXXFLAGS. Ignore libCrun as
19490     # -library=stlport4 depends on it.
19491     case " $CXX $CXXFLAGS " in
19492     *" -library=stlport4 "*)
19493       solaris_use_stlport4=yes
19494       ;;
19495     esac
19496
19497     if test "$solaris_use_stlport4" != yes; then
19498       postdeps_CXX='-library=Cstd -library=Crun'
19499     fi
19500     ;;
19501   esac
19502   ;;
19503
19504 solaris*)
19505   case $cc_basename in
19506   CC* | sunCC*)
19507     # The more standards-conforming stlport4 library is
19508     # incompatible with the Cstd library. Avoid specifying
19509     # it if it's in CXXFLAGS. Ignore libCrun as
19510     # -library=stlport4 depends on it.
19511     case " $CXX $CXXFLAGS " in
19512     *" -library=stlport4 "*)
19513       solaris_use_stlport4=yes
19514       ;;
19515     esac
19516
19517     # Adding this requires a known-good setup of shared libraries for
19518     # Sun compiler versions before 5.6, else PIC objects from an old
19519     # archive will be linked into the output, leading to subtle bugs.
19520     if test "$solaris_use_stlport4" != yes; then
19521       postdeps_CXX='-library=Cstd -library=Crun'
19522     fi
19523     ;;
19524   esac
19525   ;;
19526 esac
19527
19528
19529 case " $postdeps_CXX " in
19530 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19531 esac
19532  compiler_lib_search_dirs_CXX=
19533 if test -n "${compiler_lib_search_path_CXX}"; then
19534  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19535 fi
19536
19537
19538
19539
19540
19541
19542
19543
19544
19545
19546
19547
19548
19549
19550
19551
19552
19553
19554
19555
19556
19557
19558
19559
19560
19561
19562
19563
19564
19565
19566
19567     lt_prog_compiler_wl_CXX=
19568 lt_prog_compiler_pic_CXX=
19569 lt_prog_compiler_static_CXX=
19570
19571
19572   # C++ specific cases for pic, static, wl, etc.
19573   if test "$GXX" = yes; then
19574     lt_prog_compiler_wl_CXX='-Wl,'
19575     lt_prog_compiler_static_CXX='-static'
19576
19577     case $host_os in
19578     aix*)
19579       # All AIX code is PIC.
19580       if test "$host_cpu" = ia64; then
19581         # AIX 5 now supports IA64 processor
19582         lt_prog_compiler_static_CXX='-Bstatic'
19583       fi
19584       ;;
19585
19586     amigaos*)
19587       case $host_cpu in
19588       powerpc)
19589             # see comment about AmigaOS4 .so support
19590             lt_prog_compiler_pic_CXX='-fPIC'
19591         ;;
19592       m68k)
19593             # FIXME: we need at least 68020 code to build shared libraries, but
19594             # adding the `-m68020' flag to GCC prevents building anything better,
19595             # like `-m68040'.
19596             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19597         ;;
19598       esac
19599       ;;
19600
19601     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19602       # PIC is the default for these OSes.
19603       ;;
19604     mingw* | cygwin* | os2* | pw32* | cegcc*)
19605       # This hack is so that the source file can tell whether it is being
19606       # built for inclusion in a dll (and should export symbols for example).
19607       # Although the cygwin gcc ignores -fPIC, still need this for old-style
19608       # (--disable-auto-import) libraries
19609       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19610       ;;
19611     darwin* | rhapsody*)
19612       # PIC is the default on this platform
19613       # Common symbols not allowed in MH_DYLIB files
19614       lt_prog_compiler_pic_CXX='-fno-common'
19615       ;;
19616     *djgpp*)
19617       # DJGPP does not support shared libraries at all
19618       lt_prog_compiler_pic_CXX=
19619       ;;
19620     haiku*)
19621       # PIC is the default for Haiku.
19622       # The "-static" flag exists, but is broken.
19623       lt_prog_compiler_static_CXX=
19624       ;;
19625     interix[3-9]*)
19626       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19627       # Instead, we relocate shared libraries at runtime.
19628       ;;
19629     sysv4*MP*)
19630       if test -d /usr/nec; then
19631         lt_prog_compiler_pic_CXX=-Kconform_pic
19632       fi
19633       ;;
19634     hpux*)
19635       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19636       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
19637       # sets the default TLS model and affects inlining.
19638       case $host_cpu in
19639       hppa*64*)
19640         ;;
19641       *)
19642         lt_prog_compiler_pic_CXX='-fPIC'
19643         ;;
19644       esac
19645       ;;
19646     *qnx* | *nto*)
19647       # QNX uses GNU C++, but need to define -shared option too, otherwise
19648       # it will coredump.
19649       lt_prog_compiler_pic_CXX='-fPIC -shared'
19650       ;;
19651     *)
19652       lt_prog_compiler_pic_CXX='-fPIC'
19653       ;;
19654     esac
19655   else
19656     case $host_os in
19657       aix[4-9]*)
19658         # All AIX code is PIC.
19659         if test "$host_cpu" = ia64; then
19660           # AIX 5 now supports IA64 processor
19661           lt_prog_compiler_static_CXX='-Bstatic'
19662         else
19663           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19664         fi
19665         ;;
19666       chorus*)
19667         case $cc_basename in
19668         cxch68*)
19669           # Green Hills C++ Compiler
19670           # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
19671           ;;
19672         esac
19673         ;;
19674       mingw* | cygwin* | os2* | pw32* | cegcc*)
19675         # This hack is so that the source file can tell whether it is being
19676         # built for inclusion in a dll (and should export symbols for example).
19677         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19678         ;;
19679       dgux*)
19680         case $cc_basename in
19681           ec++*)
19682             lt_prog_compiler_pic_CXX='-KPIC'
19683             ;;
19684           ghcx*)
19685             # Green Hills C++ Compiler
19686             lt_prog_compiler_pic_CXX='-pic'
19687             ;;
19688           *)
19689             ;;
19690         esac
19691         ;;
19692       freebsd* | dragonfly*)
19693         # FreeBSD uses GNU C++
19694         ;;
19695       hpux9* | hpux10* | hpux11*)
19696         case $cc_basename in
19697           CC*)
19698             lt_prog_compiler_wl_CXX='-Wl,'
19699             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19700             if test "$host_cpu" != ia64; then
19701               lt_prog_compiler_pic_CXX='+Z'
19702             fi
19703             ;;
19704           aCC*)
19705             lt_prog_compiler_wl_CXX='-Wl,'
19706             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19707             case $host_cpu in
19708             hppa*64*|ia64*)
19709               # +Z the default
19710               ;;
19711             *)
19712               lt_prog_compiler_pic_CXX='+Z'
19713               ;;
19714             esac
19715             ;;
19716           *)
19717             ;;
19718         esac
19719         ;;
19720       interix*)
19721         # This is c89, which is MS Visual C++ (no shared libs)
19722         # Anyone wants to do a port?
19723         ;;
19724       irix5* | irix6* | nonstopux*)
19725         case $cc_basename in
19726           CC*)
19727             lt_prog_compiler_wl_CXX='-Wl,'
19728             lt_prog_compiler_static_CXX='-non_shared'
19729             # CC pic flag -KPIC is the default.
19730             ;;
19731           *)
19732             ;;
19733         esac
19734         ;;
19735       linux* | k*bsd*-gnu | kopensolaris*-gnu)
19736         case $cc_basename in
19737           KCC*)
19738             # KAI C++ Compiler
19739             lt_prog_compiler_wl_CXX='--backend -Wl,'
19740             lt_prog_compiler_pic_CXX='-fPIC'
19741             ;;
19742           ecpc* )
19743             # old Intel C++ for x86_64 which still supported -KPIC.
19744             lt_prog_compiler_wl_CXX='-Wl,'
19745             lt_prog_compiler_pic_CXX='-KPIC'
19746             lt_prog_compiler_static_CXX='-static'
19747             ;;
19748           icpc* )
19749             # Intel C++, used to be incompatible with GCC.
19750             # ICC 10 doesn't accept -KPIC any more.
19751             lt_prog_compiler_wl_CXX='-Wl,'
19752             lt_prog_compiler_pic_CXX='-fPIC'
19753             lt_prog_compiler_static_CXX='-static'
19754             ;;
19755           pgCC* | pgcpp*)
19756             # Portland Group C++ compiler
19757             lt_prog_compiler_wl_CXX='-Wl,'
19758             lt_prog_compiler_pic_CXX='-fpic'
19759             lt_prog_compiler_static_CXX='-Bstatic'
19760             ;;
19761           cxx*)
19762             # Compaq C++
19763             # Make sure the PIC flag is empty.  It appears that all Alpha
19764             # Linux and Compaq Tru64 Unix objects are PIC.
19765             lt_prog_compiler_pic_CXX=
19766             lt_prog_compiler_static_CXX='-non_shared'
19767             ;;
19768           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19769             # IBM XL 8.0, 9.0 on PPC and BlueGene
19770             lt_prog_compiler_wl_CXX='-Wl,'
19771             lt_prog_compiler_pic_CXX='-qpic'
19772             lt_prog_compiler_static_CXX='-qstaticlink'
19773             ;;
19774           *)
19775             case `$CC -V 2>&1 | sed 5q` in
19776             *Sun\ C*)
19777               # Sun C++ 5.9
19778               lt_prog_compiler_pic_CXX='-KPIC'
19779               lt_prog_compiler_static_CXX='-Bstatic'
19780               lt_prog_compiler_wl_CXX='-Qoption ld '
19781               ;;
19782             esac
19783             ;;
19784         esac
19785         ;;
19786       lynxos*)
19787         ;;
19788       m88k*)
19789         ;;
19790       mvs*)
19791         case $cc_basename in
19792           cxx*)
19793             lt_prog_compiler_pic_CXX='-W c,exportall'
19794             ;;
19795           *)
19796             ;;
19797         esac
19798         ;;
19799       netbsd* | netbsdelf*-gnu)
19800         ;;
19801       *qnx* | *nto*)
19802         # QNX uses GNU C++, but need to define -shared option too, otherwise
19803         # it will coredump.
19804         lt_prog_compiler_pic_CXX='-fPIC -shared'
19805         ;;
19806       osf3* | osf4* | osf5*)
19807         case $cc_basename in
19808           KCC*)
19809             lt_prog_compiler_wl_CXX='--backend -Wl,'
19810             ;;
19811           RCC*)
19812             # Rational C++ 2.4.1
19813             lt_prog_compiler_pic_CXX='-pic'
19814             ;;
19815           cxx*)
19816             # Digital/Compaq C++
19817             lt_prog_compiler_wl_CXX='-Wl,'
19818             # Make sure the PIC flag is empty.  It appears that all Alpha
19819             # Linux and Compaq Tru64 Unix objects are PIC.
19820             lt_prog_compiler_pic_CXX=
19821             lt_prog_compiler_static_CXX='-non_shared'
19822             ;;
19823           *)
19824             ;;
19825         esac
19826         ;;
19827       psos*)
19828         ;;
19829       solaris*)
19830         case $cc_basename in
19831           CC* | sunCC*)
19832             # Sun C++ 4.2, 5.x and Centerline C++
19833             lt_prog_compiler_pic_CXX='-KPIC'
19834             lt_prog_compiler_static_CXX='-Bstatic'
19835             lt_prog_compiler_wl_CXX='-Qoption ld '
19836             ;;
19837           gcx*)
19838             # Green Hills C++ Compiler
19839             lt_prog_compiler_pic_CXX='-PIC'
19840             ;;
19841           *)
19842             ;;
19843         esac
19844         ;;
19845       sunos4*)
19846         case $cc_basename in
19847           CC*)
19848             # Sun C++ 4.x
19849             lt_prog_compiler_pic_CXX='-pic'
19850             lt_prog_compiler_static_CXX='-Bstatic'
19851             ;;
19852           lcc*)
19853             # Lucid
19854             lt_prog_compiler_pic_CXX='-pic'
19855             ;;
19856           *)
19857             ;;
19858         esac
19859         ;;
19860       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19861         case $cc_basename in
19862           CC*)
19863             lt_prog_compiler_wl_CXX='-Wl,'
19864             lt_prog_compiler_pic_CXX='-KPIC'
19865             lt_prog_compiler_static_CXX='-Bstatic'
19866             ;;
19867         esac
19868         ;;
19869       tandem*)
19870         case $cc_basename in
19871           NCC*)
19872             # NonStop-UX NCC 3.20
19873             lt_prog_compiler_pic_CXX='-KPIC'
19874             ;;
19875           *)
19876             ;;
19877         esac
19878         ;;
19879       vxworks*)
19880         ;;
19881       *)
19882         lt_prog_compiler_can_build_shared_CXX=no
19883         ;;
19884     esac
19885   fi
19886
19887 case $host_os in
19888   # For platforms which do not support PIC, -DPIC is meaningless:
19889   *djgpp*)
19890     lt_prog_compiler_pic_CXX=
19891     ;;
19892   *)
19893     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19894     ;;
19895 esac
19896
19897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19898 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19899 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
19900   $as_echo_n "(cached) " >&6
19901 else
19902   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
19903 fi
19904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
19905 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
19906 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
19907
19908 #
19909 # Check to make sure the PIC flag actually works.
19910 #
19911 if test -n "$lt_prog_compiler_pic_CXX"; then
19912   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19913 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
19914 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
19915   $as_echo_n "(cached) " >&6
19916 else
19917   lt_cv_prog_compiler_pic_works_CXX=no
19918    ac_outfile=conftest.$ac_objext
19919    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19920    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19921    # Insert the option either (1) after the last *FLAGS variable, or
19922    # (2) before a word containing "conftest.", or (3) at the end.
19923    # Note that $ac_compile itself does not contain backslashes and begins
19924    # with a dollar sign (not a hyphen), so the echo should work correctly.
19925    # The option is referenced via a variable to avoid confusing sed.
19926    lt_compile=`echo "$ac_compile" | $SED \
19927    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19928    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19929    -e 's:$: $lt_compiler_flag:'`
19930    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19931    (eval "$lt_compile" 2>conftest.err)
19932    ac_status=$?
19933    cat conftest.err >&5
19934    echo "$as_me:$LINENO: \$? = $ac_status" >&5
19935    if (exit $ac_status) && test -s "$ac_outfile"; then
19936      # The compiler can only warn and ignore the option if not recognized
19937      # So say no if there are warnings other than the usual output.
19938      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
19939      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19940      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19941        lt_cv_prog_compiler_pic_works_CXX=yes
19942      fi
19943    fi
19944    $RM conftest*
19945
19946 fi
19947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19948 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19949
19950 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
19951     case $lt_prog_compiler_pic_CXX in
19952      "" | " "*) ;;
19953      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19954      esac
19955 else
19956     lt_prog_compiler_pic_CXX=
19957      lt_prog_compiler_can_build_shared_CXX=no
19958 fi
19959
19960 fi
19961
19962
19963
19964
19965
19966 #
19967 # Check to make sure the static flag actually works.
19968 #
19969 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19971 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
19972 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
19973   $as_echo_n "(cached) " >&6
19974 else
19975   lt_cv_prog_compiler_static_works_CXX=no
19976    save_LDFLAGS="$LDFLAGS"
19977    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19978    echo "$lt_simple_link_test_code" > conftest.$ac_ext
19979    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19980      # The linker can only warn and ignore the option if not recognized
19981      # So say no if there are warnings
19982      if test -s conftest.err; then
19983        # Append any errors to the config.log.
19984        cat conftest.err 1>&5
19985        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
19986        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19987        if diff conftest.exp conftest.er2 >/dev/null; then
19988          lt_cv_prog_compiler_static_works_CXX=yes
19989        fi
19990      else
19991        lt_cv_prog_compiler_static_works_CXX=yes
19992      fi
19993    fi
19994    $RM -r conftest*
19995    LDFLAGS="$save_LDFLAGS"
19996
19997 fi
19998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19999 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20000
20001 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20002     :
20003 else
20004     lt_prog_compiler_static_CXX=
20005 fi
20006
20007
20008
20009
20010     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20011 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20012 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
20013   $as_echo_n "(cached) " >&6
20014 else
20015   lt_cv_prog_compiler_c_o_CXX=no
20016    $RM -r conftest 2>/dev/null
20017    mkdir conftest
20018    cd conftest
20019    mkdir out
20020    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20021
20022    lt_compiler_flag="-o out/conftest2.$ac_objext"
20023    # Insert the option either (1) after the last *FLAGS variable, or
20024    # (2) before a word containing "conftest.", or (3) at the end.
20025    # Note that $ac_compile itself does not contain backslashes and begins
20026    # with a dollar sign (not a hyphen), so the echo should work correctly.
20027    lt_compile=`echo "$ac_compile" | $SED \
20028    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20029    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20030    -e 's:$: $lt_compiler_flag:'`
20031    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20032    (eval "$lt_compile" 2>out/conftest.err)
20033    ac_status=$?
20034    cat out/conftest.err >&5
20035    echo "$as_me:$LINENO: \$? = $ac_status" >&5
20036    if (exit $ac_status) && test -s out/conftest2.$ac_objext
20037    then
20038      # The compiler can only warn and ignore the option if not recognized
20039      # So say no if there are warnings
20040      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20041      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20042      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20043        lt_cv_prog_compiler_c_o_CXX=yes
20044      fi
20045    fi
20046    chmod u+w . 2>&5
20047    $RM conftest*
20048    # SGI C++ compiler will create directory out/ii_files/ for
20049    # template instantiation
20050    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20051    $RM out/* && rmdir out
20052    cd ..
20053    $RM -r conftest
20054    $RM conftest*
20055
20056 fi
20057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20058 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20059
20060
20061
20062     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20063 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20064 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
20065   $as_echo_n "(cached) " >&6
20066 else
20067   lt_cv_prog_compiler_c_o_CXX=no
20068    $RM -r conftest 2>/dev/null
20069    mkdir conftest
20070    cd conftest
20071    mkdir out
20072    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20073
20074    lt_compiler_flag="-o out/conftest2.$ac_objext"
20075    # Insert the option either (1) after the last *FLAGS variable, or
20076    # (2) before a word containing "conftest.", or (3) at the end.
20077    # Note that $ac_compile itself does not contain backslashes and begins
20078    # with a dollar sign (not a hyphen), so the echo should work correctly.
20079    lt_compile=`echo "$ac_compile" | $SED \
20080    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20081    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20082    -e 's:$: $lt_compiler_flag:'`
20083    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20084    (eval "$lt_compile" 2>out/conftest.err)
20085    ac_status=$?
20086    cat out/conftest.err >&5
20087    echo "$as_me:$LINENO: \$? = $ac_status" >&5
20088    if (exit $ac_status) && test -s out/conftest2.$ac_objext
20089    then
20090      # The compiler can only warn and ignore the option if not recognized
20091      # So say no if there are warnings
20092      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20093      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20094      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20095        lt_cv_prog_compiler_c_o_CXX=yes
20096      fi
20097    fi
20098    chmod u+w . 2>&5
20099    $RM conftest*
20100    # SGI C++ compiler will create directory out/ii_files/ for
20101    # template instantiation
20102    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20103    $RM out/* && rmdir out
20104    cd ..
20105    $RM -r conftest
20106    $RM conftest*
20107
20108 fi
20109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20110 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20111
20112
20113
20114
20115 hard_links="nottested"
20116 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20117   # do not overwrite the value of need_locks provided by the user
20118   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20119 $as_echo_n "checking if we can lock with hard links... " >&6; }
20120   hard_links=yes
20121   $RM conftest*
20122   ln conftest.a conftest.b 2>/dev/null && hard_links=no
20123   touch conftest.a
20124   ln conftest.a conftest.b 2>&5 || hard_links=no
20125   ln conftest.a conftest.b 2>/dev/null && hard_links=no
20126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20127 $as_echo "$hard_links" >&6; }
20128   if test "$hard_links" = no; then
20129     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20130 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20131     need_locks=warn
20132   fi
20133 else
20134   need_locks=no
20135 fi
20136
20137
20138
20139     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20140 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20141
20142   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20143   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20144   case $host_os in
20145   aix[4-9]*)
20146     # If we're using GNU nm, then we don't want the "-C" option.
20147     # -C means demangle to AIX nm, but means don't demangle with GNU nm
20148     # Also, AIX nm treats weak defined symbols like other global defined
20149     # symbols, whereas GNU nm marks them as "W".
20150     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20151       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
20152     else
20153       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
20154     fi
20155     ;;
20156   pw32*)
20157     export_symbols_cmds_CXX="$ltdll_cmds"
20158     ;;
20159   cygwin* | mingw* | cegcc*)
20160     case $cc_basename in
20161     cl*)
20162       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
20163       ;;
20164     *)
20165       export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
20166       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
20167       ;;
20168     esac
20169     ;;
20170   linux* | k*bsd*-gnu | gnu*)
20171     link_all_deplibs_CXX=no
20172     ;;
20173   *)
20174     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20175     ;;
20176   esac
20177
20178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20179 $as_echo "$ld_shlibs_CXX" >&6; }
20180 test "$ld_shlibs_CXX" = no && can_build_shared=no
20181
20182 with_gnu_ld_CXX=$with_gnu_ld
20183
20184
20185
20186
20187
20188
20189 #
20190 # Do we need to explicitly link libc?
20191 #
20192 case "x$archive_cmds_need_lc_CXX" in
20193 x|xyes)
20194   # Assume -lc should be added
20195   archive_cmds_need_lc_CXX=yes
20196
20197   if test "$enable_shared" = yes && test "$GCC" = yes; then
20198     case $archive_cmds_CXX in
20199     *'~'*)
20200       # FIXME: we may have to deal with multi-command sequences.
20201       ;;
20202     '$CC '*)
20203       # Test whether the compiler implicitly links with -lc since on some
20204       # systems, -lgcc has to come before -lc. If gcc already passes -lc
20205       # to ld, don't add -lc before -lgcc.
20206       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20207 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20208 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
20209   $as_echo_n "(cached) " >&6
20210 else
20211   $RM conftest*
20212         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20213
20214         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20215   (eval $ac_compile) 2>&5
20216   ac_status=$?
20217   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20218   test $ac_status = 0; } 2>conftest.err; then
20219           soname=conftest
20220           lib=conftest
20221           libobjs=conftest.$ac_objext
20222           deplibs=
20223           wl=$lt_prog_compiler_wl_CXX
20224           pic_flag=$lt_prog_compiler_pic_CXX
20225           compiler_flags=-v
20226           linker_flags=-v
20227           verstring=
20228           output_objdir=.
20229           libname=conftest
20230           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20231           allow_undefined_flag_CXX=
20232           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20233   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20234   ac_status=$?
20235   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20236   test $ac_status = 0; }
20237           then
20238             lt_cv_archive_cmds_need_lc_CXX=no
20239           else
20240             lt_cv_archive_cmds_need_lc_CXX=yes
20241           fi
20242           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20243         else
20244           cat conftest.err 1>&5
20245         fi
20246         $RM conftest*
20247
20248 fi
20249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
20250 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
20251       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
20252       ;;
20253     esac
20254   fi
20255   ;;
20256 esac
20257
20258
20259
20260
20261
20262
20263
20264
20265
20266
20267
20268
20269
20270
20271
20272
20273
20274
20275
20276
20277
20278
20279
20280
20281
20282
20283
20284
20285
20286
20287
20288
20289
20290
20291
20292
20293
20294
20295
20296
20297
20298
20299
20300
20301
20302
20303
20304
20305
20306
20307
20308
20309
20310
20311
20312
20313
20314
20315
20316
20317
20318
20319     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20320 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20321
20322 library_names_spec=
20323 libname_spec='lib$name'
20324 soname_spec=
20325 shrext_cmds=".so"
20326 postinstall_cmds=
20327 postuninstall_cmds=
20328 finish_cmds=
20329 finish_eval=
20330 shlibpath_var=
20331 shlibpath_overrides_runpath=unknown
20332 version_type=none
20333 dynamic_linker="$host_os ld.so"
20334 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20335 need_lib_prefix=unknown
20336 hardcode_into_libs=no
20337
20338 # when you set need_version to no, make sure it does not cause -set_version
20339 # flags to be left without arguments
20340 need_version=unknown
20341
20342 case $host_os in
20343 aix3*)
20344   version_type=linux # correct to gnu/linux during the next big refactor
20345   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20346   shlibpath_var=LIBPATH
20347
20348   # AIX 3 has no versioning support, so we append a major version to the name.
20349   soname_spec='${libname}${release}${shared_ext}$major'
20350   ;;
20351
20352 aix[4-9]*)
20353   version_type=linux # correct to gnu/linux during the next big refactor
20354   need_lib_prefix=no
20355   need_version=no
20356   hardcode_into_libs=yes
20357   if test "$host_cpu" = ia64; then
20358     # AIX 5 supports IA64
20359     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20360     shlibpath_var=LD_LIBRARY_PATH
20361   else
20362     # With GCC up to 2.95.x, collect2 would create an import file
20363     # for dependence libraries.  The import file would start with
20364     # the line `#! .'.  This would cause the generated library to
20365     # depend on `.', always an invalid library.  This was fixed in
20366     # development snapshots of GCC prior to 3.0.
20367     case $host_os in
20368       aix4 | aix4.[01] | aix4.[01].*)
20369       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20370            echo ' yes '
20371            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20372         :
20373       else
20374         can_build_shared=no
20375       fi
20376       ;;
20377     esac
20378     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20379     # soname into executable. Probably we can add versioning support to
20380     # collect2, so additional links can be useful in future.
20381     if test "$aix_use_runtimelinking" = yes; then
20382       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20383       # instead of lib<name>.a to let people know that these are not
20384       # typical AIX shared libraries.
20385       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20386     else
20387       # We preserve .a as extension for shared libraries through AIX4.2
20388       # and later when we are not doing run time linking.
20389       library_names_spec='${libname}${release}.a $libname.a'
20390       soname_spec='${libname}${release}${shared_ext}$major'
20391     fi
20392     shlibpath_var=LIBPATH
20393   fi
20394   ;;
20395
20396 amigaos*)
20397   case $host_cpu in
20398   powerpc)
20399     # Since July 2007 AmigaOS4 officially supports .so libraries.
20400     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20401     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20402     ;;
20403   m68k)
20404     library_names_spec='$libname.ixlibrary $libname.a'
20405     # Create ${libname}_ixlibrary.a entries in /sys/libs.
20406     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'
20407     ;;
20408   esac
20409   ;;
20410
20411 beos*)
20412   library_names_spec='${libname}${shared_ext}'
20413   dynamic_linker="$host_os ld.so"
20414   shlibpath_var=LIBRARY_PATH
20415   ;;
20416
20417 bsdi[45]*)
20418   version_type=linux # correct to gnu/linux during the next big refactor
20419   need_version=no
20420   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20421   soname_spec='${libname}${release}${shared_ext}$major'
20422   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20423   shlibpath_var=LD_LIBRARY_PATH
20424   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20425   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20426   # the default ld.so.conf also contains /usr/contrib/lib and
20427   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20428   # libtool to hard-code these into programs
20429   ;;
20430
20431 cygwin* | mingw* | pw32* | cegcc*)
20432   version_type=windows
20433   shrext_cmds=".dll"
20434   need_version=no
20435   need_lib_prefix=no
20436
20437   case $GCC,$cc_basename in
20438   yes,*)
20439     # gcc
20440     library_names_spec='$libname.dll.a'
20441     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20442     postinstall_cmds='base_file=`basename \${file}`~
20443       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20444       dldir=$destdir/`dirname \$dlpath`~
20445       test -d \$dldir || mkdir -p \$dldir~
20446       $install_prog $dir/$dlname \$dldir/$dlname~
20447       chmod a+x \$dldir/$dlname~
20448       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20449         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20450       fi'
20451     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20452       dlpath=$dir/\$dldll~
20453        $RM \$dlpath'
20454     shlibpath_overrides_runpath=yes
20455
20456     case $host_os in
20457     cygwin*)
20458       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20459       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20460
20461       ;;
20462     mingw* | cegcc*)
20463       # MinGW DLLs use traditional 'lib' prefix
20464       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20465       ;;
20466     pw32*)
20467       # pw32 DLLs use 'pw' prefix rather than 'lib'
20468       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20469       ;;
20470     esac
20471     dynamic_linker='Win32 ld.exe'
20472     ;;
20473
20474   *,cl*)
20475     # Native MSVC
20476     libname_spec='$name'
20477     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20478     library_names_spec='${libname}.dll.lib'
20479
20480     case $build_os in
20481     mingw*)
20482       sys_lib_search_path_spec=
20483       lt_save_ifs=$IFS
20484       IFS=';'
20485       for lt_path in $LIB
20486       do
20487         IFS=$lt_save_ifs
20488         # Let DOS variable expansion print the short 8.3 style file name.
20489         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
20490         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
20491       done
20492       IFS=$lt_save_ifs
20493       # Convert to MSYS style.
20494       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
20495       ;;
20496     cygwin*)
20497       # Convert to unix form, then to dos form, then back to unix form
20498       # but this time dos style (no spaces!) so that the unix form looks
20499       # like /cygdrive/c/PROGRA~1:/cygdr...
20500       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
20501       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
20502       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20503       ;;
20504     *)
20505       sys_lib_search_path_spec="$LIB"
20506       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
20507         # It is most probably a Windows format PATH.
20508         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20509       else
20510         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20511       fi
20512       # FIXME: find the short name or the path components, as spaces are
20513       # common. (e.g. "Program Files" -> "PROGRA~1")
20514       ;;
20515     esac
20516
20517     # DLL is installed to $(libdir)/../bin by postinstall_cmds
20518     postinstall_cmds='base_file=`basename \${file}`~
20519       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20520       dldir=$destdir/`dirname \$dlpath`~
20521       test -d \$dldir || mkdir -p \$dldir~
20522       $install_prog $dir/$dlname \$dldir/$dlname'
20523     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20524       dlpath=$dir/\$dldll~
20525        $RM \$dlpath'
20526     shlibpath_overrides_runpath=yes
20527     dynamic_linker='Win32 link.exe'
20528     ;;
20529
20530   *)
20531     # Assume MSVC wrapper
20532     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20533     dynamic_linker='Win32 ld.exe'
20534     ;;
20535   esac
20536   # FIXME: first we should search . and the directory the executable is in
20537   shlibpath_var=PATH
20538   ;;
20539
20540 darwin* | rhapsody*)
20541   dynamic_linker="$host_os dyld"
20542   version_type=darwin
20543   need_lib_prefix=no
20544   need_version=no
20545   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20546   soname_spec='${libname}${release}${major}$shared_ext'
20547   shlibpath_overrides_runpath=yes
20548   shlibpath_var=DYLD_LIBRARY_PATH
20549   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20550
20551   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20552   ;;
20553
20554 dgux*)
20555   version_type=linux # correct to gnu/linux during the next big refactor
20556   need_lib_prefix=no
20557   need_version=no
20558   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20559   soname_spec='${libname}${release}${shared_ext}$major'
20560   shlibpath_var=LD_LIBRARY_PATH
20561   ;;
20562
20563 freebsd* | dragonfly*)
20564   # DragonFly does not have aout.  When/if they implement a new
20565   # versioning mechanism, adjust this.
20566   if test -x /usr/bin/objformat; then
20567     objformat=`/usr/bin/objformat`
20568   else
20569     case $host_os in
20570     freebsd[23].*) objformat=aout ;;
20571     *) objformat=elf ;;
20572     esac
20573   fi
20574   version_type=freebsd-$objformat
20575   case $version_type in
20576     freebsd-elf*)
20577       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20578       need_version=no
20579       need_lib_prefix=no
20580       ;;
20581     freebsd-*)
20582       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20583       need_version=yes
20584       ;;
20585   esac
20586   shlibpath_var=LD_LIBRARY_PATH
20587   case $host_os in
20588   freebsd2.*)
20589     shlibpath_overrides_runpath=yes
20590     ;;
20591   freebsd3.[01]* | freebsdelf3.[01]*)
20592     shlibpath_overrides_runpath=yes
20593     hardcode_into_libs=yes
20594     ;;
20595   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20596   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20597     shlibpath_overrides_runpath=no
20598     hardcode_into_libs=yes
20599     ;;
20600   *) # from 4.6 on, and DragonFly
20601     shlibpath_overrides_runpath=yes
20602     hardcode_into_libs=yes
20603     ;;
20604   esac
20605   ;;
20606
20607 gnu*)
20608   version_type=linux # correct to gnu/linux during the next big refactor
20609   need_lib_prefix=no
20610   need_version=no
20611   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20612   soname_spec='${libname}${release}${shared_ext}$major'
20613   shlibpath_var=LD_LIBRARY_PATH
20614   shlibpath_overrides_runpath=no
20615   hardcode_into_libs=yes
20616   ;;
20617
20618 haiku*)
20619   version_type=linux # correct to gnu/linux during the next big refactor
20620   need_lib_prefix=no
20621   need_version=no
20622   dynamic_linker="$host_os runtime_loader"
20623   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20624   soname_spec='${libname}${release}${shared_ext}$major'
20625   shlibpath_var=LIBRARY_PATH
20626   shlibpath_overrides_runpath=yes
20627   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
20628   hardcode_into_libs=yes
20629   ;;
20630
20631 hpux9* | hpux10* | hpux11*)
20632   # Give a soname corresponding to the major version so that dld.sl refuses to
20633   # link against other versions.
20634   version_type=sunos
20635   need_lib_prefix=no
20636   need_version=no
20637   case $host_cpu in
20638   ia64*)
20639     shrext_cmds='.so'
20640     hardcode_into_libs=yes
20641     dynamic_linker="$host_os dld.so"
20642     shlibpath_var=LD_LIBRARY_PATH
20643     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20644     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20645     soname_spec='${libname}${release}${shared_ext}$major'
20646     if test "X$HPUX_IA64_MODE" = X32; then
20647       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20648     else
20649       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20650     fi
20651     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20652     ;;
20653   hppa*64*)
20654     shrext_cmds='.sl'
20655     hardcode_into_libs=yes
20656     dynamic_linker="$host_os dld.sl"
20657     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20658     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20659     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20660     soname_spec='${libname}${release}${shared_ext}$major'
20661     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20662     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20663     ;;
20664   *)
20665     shrext_cmds='.sl'
20666     dynamic_linker="$host_os dld.sl"
20667     shlibpath_var=SHLIB_PATH
20668     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20669     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20670     soname_spec='${libname}${release}${shared_ext}$major'
20671     ;;
20672   esac
20673   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20674   postinstall_cmds='chmod 555 $lib'
20675   # or fails outright, so override atomically:
20676   install_override_mode=555
20677   ;;
20678
20679 interix[3-9]*)
20680   version_type=linux # correct to gnu/linux during the next big refactor
20681   need_lib_prefix=no
20682   need_version=no
20683   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20684   soname_spec='${libname}${release}${shared_ext}$major'
20685   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20686   shlibpath_var=LD_LIBRARY_PATH
20687   shlibpath_overrides_runpath=no
20688   hardcode_into_libs=yes
20689   ;;
20690
20691 irix5* | irix6* | nonstopux*)
20692   case $host_os in
20693     nonstopux*) version_type=nonstopux ;;
20694     *)
20695         if test "$lt_cv_prog_gnu_ld" = yes; then
20696                 version_type=linux # correct to gnu/linux during the next big refactor
20697         else
20698                 version_type=irix
20699         fi ;;
20700   esac
20701   need_lib_prefix=no
20702   need_version=no
20703   soname_spec='${libname}${release}${shared_ext}$major'
20704   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20705   case $host_os in
20706   irix5* | nonstopux*)
20707     libsuff= shlibsuff=
20708     ;;
20709   *)
20710     case $LD in # libtool.m4 will add one of these switches to LD
20711     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20712       libsuff= shlibsuff= libmagic=32-bit;;
20713     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20714       libsuff=32 shlibsuff=N32 libmagic=N32;;
20715     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20716       libsuff=64 shlibsuff=64 libmagic=64-bit;;
20717     *) libsuff= shlibsuff= libmagic=never-match;;
20718     esac
20719     ;;
20720   esac
20721   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20722   shlibpath_overrides_runpath=no
20723   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20724   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20725   hardcode_into_libs=yes
20726   ;;
20727
20728 # No shared lib support for Linux oldld, aout, or coff.
20729 linux*oldld* | linux*aout* | linux*coff*)
20730   dynamic_linker=no
20731   ;;
20732
20733 # This must be glibc/ELF.
20734 linux* | k*bsd*-gnu | kopensolaris*-gnu)
20735   version_type=linux # correct to gnu/linux during the next big refactor
20736   need_lib_prefix=no
20737   need_version=no
20738   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20739   soname_spec='${libname}${release}${shared_ext}$major'
20740   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20741   shlibpath_var=LD_LIBRARY_PATH
20742   shlibpath_overrides_runpath=no
20743
20744   # Some binutils ld are patched to set DT_RUNPATH
20745   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
20746   $as_echo_n "(cached) " >&6
20747 else
20748   lt_cv_shlibpath_overrides_runpath=no
20749     save_LDFLAGS=$LDFLAGS
20750     save_libdir=$libdir
20751     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20752          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20753     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20754 /* end confdefs.h.  */
20755
20756 int
20757 main ()
20758 {
20759
20760   ;
20761   return 0;
20762 }
20763 _ACEOF
20764 if ac_fn_cxx_try_link "$LINENO"; then :
20765   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20766   lt_cv_shlibpath_overrides_runpath=yes
20767 fi
20768 fi
20769 rm -f core conftest.err conftest.$ac_objext \
20770     conftest$ac_exeext conftest.$ac_ext
20771     LDFLAGS=$save_LDFLAGS
20772     libdir=$save_libdir
20773
20774 fi
20775
20776   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20777
20778   # This implies no fast_install, which is unacceptable.
20779   # Some rework will be needed to allow for fast_install
20780   # before this can be enabled.
20781   hardcode_into_libs=yes
20782
20783   # Append ld.so.conf contents to the search path
20784   if test -f /etc/ld.so.conf; then
20785     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' ' '`
20786     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20787   fi
20788
20789   # We used to test for /lib/ld.so.1 and disable shared libraries on
20790   # powerpc, because MkLinux only supported shared libraries with the
20791   # GNU dynamic linker.  Since this was broken with cross compilers,
20792   # most powerpc-linux boxes support dynamic linking these days and
20793   # people can always --disable-shared, the test was removed, and we
20794   # assume the GNU/Linux dynamic linker is in use.
20795   dynamic_linker='GNU/Linux ld.so'
20796   ;;
20797
20798 netbsdelf*-gnu)
20799   version_type=linux
20800   need_lib_prefix=no
20801   need_version=no
20802   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20803   soname_spec='${libname}${release}${shared_ext}$major'
20804   shlibpath_var=LD_LIBRARY_PATH
20805   shlibpath_overrides_runpath=no
20806   hardcode_into_libs=yes
20807   dynamic_linker='NetBSD ld.elf_so'
20808   ;;
20809
20810 netbsd*)
20811   version_type=sunos
20812   need_lib_prefix=no
20813   need_version=no
20814   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20815     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20816     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20817     dynamic_linker='NetBSD (a.out) ld.so'
20818   else
20819     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20820     soname_spec='${libname}${release}${shared_ext}$major'
20821     dynamic_linker='NetBSD ld.elf_so'
20822   fi
20823   shlibpath_var=LD_LIBRARY_PATH
20824   shlibpath_overrides_runpath=yes
20825   hardcode_into_libs=yes
20826   ;;
20827
20828 newsos6)
20829   version_type=linux # correct to gnu/linux during the next big refactor
20830   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20831   shlibpath_var=LD_LIBRARY_PATH
20832   shlibpath_overrides_runpath=yes
20833   ;;
20834
20835 *nto* | *qnx*)
20836   version_type=qnx
20837   need_lib_prefix=no
20838   need_version=no
20839   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20840   soname_spec='${libname}${release}${shared_ext}$major'
20841   shlibpath_var=LD_LIBRARY_PATH
20842   shlibpath_overrides_runpath=no
20843   hardcode_into_libs=yes
20844   dynamic_linker='ldqnx.so'
20845   ;;
20846
20847 openbsd*)
20848   version_type=sunos
20849   sys_lib_dlsearch_path_spec="/usr/lib"
20850   need_lib_prefix=no
20851   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20852   case $host_os in
20853     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
20854     *)                          need_version=no  ;;
20855   esac
20856   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20857   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20858   shlibpath_var=LD_LIBRARY_PATH
20859   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20860     case $host_os in
20861       openbsd2.[89] | openbsd2.[89].*)
20862         shlibpath_overrides_runpath=no
20863         ;;
20864       *)
20865         shlibpath_overrides_runpath=yes
20866         ;;
20867       esac
20868   else
20869     shlibpath_overrides_runpath=yes
20870   fi
20871   ;;
20872
20873 os2*)
20874   libname_spec='$name'
20875   shrext_cmds=".dll"
20876   need_lib_prefix=no
20877   library_names_spec='$libname${shared_ext} $libname.a'
20878   dynamic_linker='OS/2 ld.exe'
20879   shlibpath_var=LIBPATH
20880   ;;
20881
20882 osf3* | osf4* | osf5*)
20883   version_type=osf
20884   need_lib_prefix=no
20885   need_version=no
20886   soname_spec='${libname}${release}${shared_ext}$major'
20887   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20888   shlibpath_var=LD_LIBRARY_PATH
20889   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20890   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20891   ;;
20892
20893 rdos*)
20894   dynamic_linker=no
20895   ;;
20896
20897 solaris*)
20898   version_type=linux # correct to gnu/linux during the next big refactor
20899   need_lib_prefix=no
20900   need_version=no
20901   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20902   soname_spec='${libname}${release}${shared_ext}$major'
20903   shlibpath_var=LD_LIBRARY_PATH
20904   shlibpath_overrides_runpath=yes
20905   hardcode_into_libs=yes
20906   # ldd complains unless libraries are executable
20907   postinstall_cmds='chmod +x $lib'
20908   ;;
20909
20910 sunos4*)
20911   version_type=sunos
20912   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20913   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20914   shlibpath_var=LD_LIBRARY_PATH
20915   shlibpath_overrides_runpath=yes
20916   if test "$with_gnu_ld" = yes; then
20917     need_lib_prefix=no
20918   fi
20919   need_version=yes
20920   ;;
20921
20922 sysv4 | sysv4.3*)
20923   version_type=linux # correct to gnu/linux during the next big refactor
20924   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20925   soname_spec='${libname}${release}${shared_ext}$major'
20926   shlibpath_var=LD_LIBRARY_PATH
20927   case $host_vendor in
20928     sni)
20929       shlibpath_overrides_runpath=no
20930       need_lib_prefix=no
20931       runpath_var=LD_RUN_PATH
20932       ;;
20933     siemens)
20934       need_lib_prefix=no
20935       ;;
20936     motorola)
20937       need_lib_prefix=no
20938       need_version=no
20939       shlibpath_overrides_runpath=no
20940       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20941       ;;
20942   esac
20943   ;;
20944
20945 sysv4*MP*)
20946   if test -d /usr/nec ;then
20947     version_type=linux # correct to gnu/linux during the next big refactor
20948     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20949     soname_spec='$libname${shared_ext}.$major'
20950     shlibpath_var=LD_LIBRARY_PATH
20951   fi
20952   ;;
20953
20954 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20955   version_type=freebsd-elf
20956   need_lib_prefix=no
20957   need_version=no
20958   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20959   soname_spec='${libname}${release}${shared_ext}$major'
20960   shlibpath_var=LD_LIBRARY_PATH
20961   shlibpath_overrides_runpath=yes
20962   hardcode_into_libs=yes
20963   if test "$with_gnu_ld" = yes; then
20964     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20965   else
20966     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20967     case $host_os in
20968       sco3.2v5*)
20969         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20970         ;;
20971     esac
20972   fi
20973   sys_lib_dlsearch_path_spec='/usr/lib'
20974   ;;
20975
20976 tpf*)
20977   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
20978   version_type=linux # correct to gnu/linux during the next big refactor
20979   need_lib_prefix=no
20980   need_version=no
20981   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20982   shlibpath_var=LD_LIBRARY_PATH
20983   shlibpath_overrides_runpath=no
20984   hardcode_into_libs=yes
20985   ;;
20986
20987 uts4*)
20988   version_type=linux # correct to gnu/linux during the next big refactor
20989   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20990   soname_spec='${libname}${release}${shared_ext}$major'
20991   shlibpath_var=LD_LIBRARY_PATH
20992   ;;
20993
20994 *)
20995   dynamic_linker=no
20996   ;;
20997 esac
20998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20999 $as_echo "$dynamic_linker" >&6; }
21000 test "$dynamic_linker" = no && can_build_shared=no
21001
21002 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21003 if test "$GCC" = yes; then
21004   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21005 fi
21006
21007 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21008   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21009 fi
21010 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21011   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21012 fi
21013
21014
21015
21016
21017
21018
21019
21020
21021
21022
21023
21024
21025
21026
21027
21028
21029
21030
21031
21032
21033
21034
21035
21036
21037
21038
21039
21040
21041
21042
21043
21044
21045
21046
21047
21048
21049
21050
21051     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21052 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21053 hardcode_action_CXX=
21054 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21055    test -n "$runpath_var_CXX" ||
21056    test "X$hardcode_automatic_CXX" = "Xyes" ; then
21057
21058   # We can hardcode non-existent directories.
21059   if test "$hardcode_direct_CXX" != no &&
21060      # If the only mechanism to avoid hardcoding is shlibpath_var, we
21061      # have to relink, otherwise we might link with an installed library
21062      # when we should be linking with a yet-to-be-installed one
21063      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21064      test "$hardcode_minus_L_CXX" != no; then
21065     # Linking always hardcodes the temporary library directory.
21066     hardcode_action_CXX=relink
21067   else
21068     # We can link without hardcoding, and we can hardcode nonexisting dirs.
21069     hardcode_action_CXX=immediate
21070   fi
21071 else
21072   # We cannot hardcode anything, or else we can only hardcode existing
21073   # directories.
21074   hardcode_action_CXX=unsupported
21075 fi
21076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21077 $as_echo "$hardcode_action_CXX" >&6; }
21078
21079 if test "$hardcode_action_CXX" = relink ||
21080    test "$inherit_rpath_CXX" = yes; then
21081   # Fast installation is not supported
21082   enable_fast_install=no
21083 elif test "$shlibpath_overrides_runpath" = yes ||
21084      test "$enable_shared" = no; then
21085   # Fast installation is not necessary
21086   enable_fast_install=needless
21087 fi
21088
21089
21090
21091
21092
21093
21094
21095   fi # test -n "$compiler"
21096
21097   CC=$lt_save_CC
21098   CFLAGS=$lt_save_CFLAGS
21099   LDCXX=$LD
21100   LD=$lt_save_LD
21101   GCC=$lt_save_GCC
21102   with_gnu_ld=$lt_save_with_gnu_ld
21103   lt_cv_path_LDCXX=$lt_cv_path_LD
21104   lt_cv_path_LD=$lt_save_path_LD
21105   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21106   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21107 fi # test "$_lt_caught_CXX_error" != yes
21108
21109 ac_ext=c
21110 ac_cpp='$CPP $CPPFLAGS'
21111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21114
21115
21116 ac_ext=cpp
21117 ac_cpp='$CXXCPP $CPPFLAGS'
21118 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21119 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21120 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21121
21122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21123 /* end confdefs.h.  */
21124  class Foo { int bar; };
21125 int
21126 main ()
21127 {
21128
21129   ;
21130   return 0;
21131 }
21132 _ACEOF
21133 if ac_fn_cxx_try_compile "$LINENO"; then :
21134   working_cxx=yes
21135 else
21136   working_cxx=no
21137 fi
21138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21139 ac_ext=c
21140 ac_cpp='$CPP $CPPFLAGS'
21141 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21142 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21143 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21144
21145 { $as_echo "$as_me:${as_lineno-$LINENO}: working c++ compiler found: $working_cxx" >&5
21146 $as_echo "$as_me: working c++ compiler found: $working_cxx" >&6;}
21147  if test "x$working_cxx" = "xyes"; then
21148   HAVE_CXX_TRUE=
21149   HAVE_CXX_FALSE='#'
21150 else
21151   HAVE_CXX_TRUE='#'
21152   HAVE_CXX_FALSE=
21153 fi
21154
21155
21156 # Extract the first word of "perl", so it can be a program name with args.
21157 set dummy perl; ac_word=$2
21158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21159 $as_echo_n "checking for $ac_word... " >&6; }
21160 if ${ac_cv_path_PERL_PATH+:} false; then :
21161   $as_echo_n "(cached) " >&6
21162 else
21163   case $PERL_PATH in
21164   [\\/]* | ?:[\\/]*)
21165   ac_cv_path_PERL_PATH="$PERL_PATH" # Let the user override the test with a path.
21166   ;;
21167   *)
21168   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21169 for as_dir in $PATH
21170 do
21171   IFS=$as_save_IFS
21172   test -z "$as_dir" && as_dir=.
21173     for ac_exec_ext in '' $ac_executable_extensions; do
21174   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21175     ac_cv_path_PERL_PATH="$as_dir/$ac_word$ac_exec_ext"
21176     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21177     break 2
21178   fi
21179 done
21180   done
21181 IFS=$as_save_IFS
21182
21183   test -z "$ac_cv_path_PERL_PATH" && ac_cv_path_PERL_PATH="no"
21184   ;;
21185 esac
21186 fi
21187 PERL_PATH=$ac_cv_path_PERL_PATH
21188 if test -n "$PERL_PATH"; then
21189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL_PATH" >&5
21190 $as_echo "$PERL_PATH" >&6; }
21191 else
21192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21193 $as_echo "no" >&6; }
21194 fi
21195
21196
21197 if test x$PERL_PATH = xno; then
21198   as_fn_error $? "Could not find perl" "$LINENO" 5
21199 fi
21200
21201 if test "x$GST_DISABLE_PARSE" != xyes; then
21202
21203       # Extract the first word of "bison", so it can be a program name with args.
21204 set dummy bison; ac_word=$2
21205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21206 $as_echo_n "checking for $ac_word... " >&6; }
21207 if ${ac_cv_path_BISON_PATH+:} false; then :
21208   $as_echo_n "(cached) " >&6
21209 else
21210   case $BISON_PATH in
21211   [\\/]* | ?:[\\/]*)
21212   ac_cv_path_BISON_PATH="$BISON_PATH" # Let the user override the test with a path.
21213   ;;
21214   *)
21215   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21216 for as_dir in $PATH
21217 do
21218   IFS=$as_save_IFS
21219   test -z "$as_dir" && as_dir=.
21220     for ac_exec_ext in '' $ac_executable_extensions; do
21221   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21222     ac_cv_path_BISON_PATH="$as_dir/$ac_word$ac_exec_ext"
21223     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21224     break 2
21225   fi
21226 done
21227   done
21228 IFS=$as_save_IFS
21229
21230   test -z "$ac_cv_path_BISON_PATH" && ac_cv_path_BISON_PATH="no"
21231   ;;
21232 esac
21233 fi
21234 BISON_PATH=$ac_cv_path_BISON_PATH
21235 if test -n "$BISON_PATH"; then
21236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON_PATH" >&5
21237 $as_echo "$BISON_PATH" >&6; }
21238 else
21239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21240 $as_echo "no" >&6; }
21241 fi
21242
21243
21244   if test x$BISON_PATH = xno; then
21245     as_fn_error $? "Could not find bison" "$LINENO" 5
21246   fi
21247
21248           bison_min_version=1.875
21249   bison_version=`$BISON_PATH --version | head -n 1 |  sed 's/^[^0-9]*//' | sed 's/[^0-9]*$//' | cut -d' ' -f1`
21250   { $as_echo "$as_me:${as_lineno-$LINENO}: checking bison version $bison_version >= $bison_min_version" >&5
21251 $as_echo_n "checking bison version $bison_version >= $bison_min_version... " >&6; }
21252
21253   if perl -we "exit ((v$bison_version ge v$bison_min_version) ? 0 : 1)"; then
21254     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21255 $as_echo "yes" >&6; }
21256   else
21257     as_fn_error $? "no" "$LINENO" 5
21258   fi
21259
21260
21261     # Extract the first word of "flex", so it can be a program name with args.
21262 set dummy flex; ac_word=$2
21263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21264 $as_echo_n "checking for $ac_word... " >&6; }
21265 if ${ac_cv_path_FLEX_PATH+:} false; then :
21266   $as_echo_n "(cached) " >&6
21267 else
21268   case $FLEX_PATH in
21269   [\\/]* | ?:[\\/]*)
21270   ac_cv_path_FLEX_PATH="$FLEX_PATH" # Let the user override the test with a path.
21271   ;;
21272   *)
21273   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21274 for as_dir in $PATH
21275 do
21276   IFS=$as_save_IFS
21277   test -z "$as_dir" && as_dir=.
21278     for ac_exec_ext in '' $ac_executable_extensions; do
21279   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21280     ac_cv_path_FLEX_PATH="$as_dir/$ac_word$ac_exec_ext"
21281     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21282     break 2
21283   fi
21284 done
21285   done
21286 IFS=$as_save_IFS
21287
21288   test -z "$ac_cv_path_FLEX_PATH" && ac_cv_path_FLEX_PATH="no"
21289   ;;
21290 esac
21291 fi
21292 FLEX_PATH=$ac_cv_path_FLEX_PATH
21293 if test -n "$FLEX_PATH"; then
21294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX_PATH" >&5
21295 $as_echo "$FLEX_PATH" >&6; }
21296 else
21297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21298 $as_echo "no" >&6; }
21299 fi
21300
21301
21302   if test x$FLEX_PATH = xno; then
21303     as_fn_error $? "Could not find flex" "$LINENO" 5
21304   fi
21305
21306         flex_min_version=2.5.31
21307   flex_version=`$FLEX_PATH --version | head -n 1 | sed 's/^.* //' | sed 's/[a-zA-Z]*$//' | cut -d' ' -f1`
21308   { $as_echo "$as_me:${as_lineno-$LINENO}: checking flex version $flex_version >= $flex_min_version" >&5
21309 $as_echo_n "checking flex version $flex_version >= $flex_min_version... " >&6; }
21310   if perl -w <<EOF
21311     (\$min_version_major, \$min_version_minor, \$min_version_micro ) = "$flex_min_version" =~ /(\d+)\.(\d+)\.(\d+)/;
21312     (\$flex_version_major, \$flex_version_minor, \$flex_version_micro ) = "$flex_version" =~ /(\d+)\.(\d+)\.(\d+)/;
21313     exit (((\$flex_version_major > \$min_version_major) ||
21314      ((\$flex_version_major == \$min_version_major) &&
21315       (\$flex_version_minor > \$min_version_minor)) ||
21316      ((\$flex_version_major == \$min_version_major) &&
21317       (\$flex_version_minor == \$min_version_minor) &&
21318       (\$flex_version_micro >= \$min_version_micro)))
21319      ? 0 : 1);
21320 EOF
21321   then
21322     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21323 $as_echo "yes" >&6; }
21324   else
21325     as_fn_error $? "no" "$LINENO" 5
21326   fi
21327
21328 fi
21329
21330 # Extract the first word of "valgrind", so it can be a program name with args.
21331 set dummy valgrind; ac_word=$2
21332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21333 $as_echo_n "checking for $ac_word... " >&6; }
21334 if ${ac_cv_path_VALGRIND_PATH+:} false; then :
21335   $as_echo_n "(cached) " >&6
21336 else
21337   case $VALGRIND_PATH in
21338   [\\/]* | ?:[\\/]*)
21339   ac_cv_path_VALGRIND_PATH="$VALGRIND_PATH" # Let the user override the test with a path.
21340   ;;
21341   *)
21342   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21343 for as_dir in $PATH
21344 do
21345   IFS=$as_save_IFS
21346   test -z "$as_dir" && as_dir=.
21347     for ac_exec_ext in '' $ac_executable_extensions; do
21348   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21349     ac_cv_path_VALGRIND_PATH="$as_dir/$ac_word$ac_exec_ext"
21350     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21351     break 2
21352   fi
21353 done
21354   done
21355 IFS=$as_save_IFS
21356
21357   test -z "$ac_cv_path_VALGRIND_PATH" && ac_cv_path_VALGRIND_PATH="no"
21358   ;;
21359 esac
21360 fi
21361 VALGRIND_PATH=$ac_cv_path_VALGRIND_PATH
21362 if test -n "$VALGRIND_PATH"; then
21363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND_PATH" >&5
21364 $as_echo "$VALGRIND_PATH" >&6; }
21365 else
21366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21367 $as_echo "no" >&6; }
21368 fi
21369
21370
21371  if test ! "x$VALGRIND_PATH" = "xno"; then
21372   HAVE_VALGRIND_TRUE=
21373   HAVE_VALGRIND_FALSE='#'
21374 else
21375   HAVE_VALGRIND_TRUE='#'
21376   HAVE_VALGRIND_FALSE=
21377 fi
21378
21379
21380
21381
21382
21383                 # Check whether --enable-introspection was given.
21384 if test "${enable_introspection+set}" = set; then :
21385   enableval=$enable_introspection;
21386 else
21387   enable_introspection=auto
21388 fi
21389
21390
21391     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-introspection" >&5
21392 $as_echo_n "checking for gobject-introspection... " >&6; }
21393
21394         case $enable_introspection in #(
21395   no) :
21396             found_introspection="no (disabled, use --enable-introspection to enable)"
21397      ;; #(
21398       yes) :
21399             if test -n "$PKG_CONFIG" && \
21400     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0\""; } >&5
21401   ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0") 2>&5
21402   ac_status=$?
21403   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21404   test $ac_status = 0; }; then
21405   :
21406 else
21407   as_fn_error $? "gobject-introspection-1.0 is not installed" "$LINENO" 5
21408 fi
21409         if test -n "$PKG_CONFIG" && \
21410     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 0.6.8\""; } >&5
21411   ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 0.6.8") 2>&5
21412   ac_status=$?
21413   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21414   test $ac_status = 0; }; then
21415   found_introspection=yes
21416 else
21417   as_fn_error $? "You need to have gobject-introspection >= 0.6.8 installed to build GStreamer" "$LINENO" 5
21418 fi
21419      ;; #(
21420       auto) :
21421             if test -n "$PKG_CONFIG" && \
21422     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 0.6.8\""; } >&5
21423   ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 0.6.8") 2>&5
21424   ac_status=$?
21425   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21426   test $ac_status = 0; }; then
21427   found_introspection=yes
21428 else
21429   found_introspection=no
21430 fi
21431      ;; #(
21432   *) :
21433                 as_fn_error $? "invalid argument passed to --enable-introspection, should be one of [no/auto/yes]" "$LINENO" 5
21434      ;;
21435 esac
21436     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_introspection" >&5
21437 $as_echo "$found_introspection" >&6; }
21438
21439     INTROSPECTION_SCANNER=
21440     INTROSPECTION_COMPILER=
21441     INTROSPECTION_GENERATE=
21442     INTROSPECTION_GIRDIR=
21443     INTROSPECTION_TYPELIBDIR=
21444     if test "x$found_introspection" = "xyes"; then
21445        INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
21446        INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
21447        INTROSPECTION_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0`
21448        INTROSPECTION_GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0`
21449        INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)"
21450        INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0`
21451        INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0`
21452        INTROSPECTION_MAKEFILE=`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection
21453     fi
21454
21455
21456
21457
21458
21459
21460
21461
21462
21463      if test "x$found_introspection" = "xyes"; then
21464   HAVE_INTROSPECTION_TRUE=
21465   HAVE_INTROSPECTION_FALSE='#'
21466 else
21467   HAVE_INTROSPECTION_TRUE='#'
21468   HAVE_INTROSPECTION_FALSE=
21469 fi
21470
21471
21472
21473
21474
21475     if test "x$PACKAGE_TARNAME" = "x"
21476   then
21477     as_fn_error $? "Internal error - PACKAGE_TARNAME not set" "$LINENO" 5
21478   fi
21479   docdir="\$(datadir)/doc/$PACKAGE_TARNAME-$GST_MAJORMINOR"
21480
21481     # Check whether --enable-docbook was given.
21482 if test "${enable_docbook+set}" = set; then :
21483   enableval=$enable_docbook;
21484 else
21485   enable_docbook=no
21486 fi
21487
21488
21489   have_docbook=no
21490
21491   if test x$enable_docbook = xyes; then
21492
21493         # Extract the first word of "docbook2ps", so it can be a program name with args.
21494 set dummy docbook2ps; ac_word=$2
21495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21496 $as_echo_n "checking for $ac_word... " >&6; }
21497 if ${ac_cv_prog_HAVE_DOCBOOK2PS+:} false; then :
21498   $as_echo_n "(cached) " >&6
21499 else
21500   if test -n "$HAVE_DOCBOOK2PS"; then
21501   ac_cv_prog_HAVE_DOCBOOK2PS="$HAVE_DOCBOOK2PS" # Let the user override the test.
21502 else
21503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21504 for as_dir in $PATH
21505 do
21506   IFS=$as_save_IFS
21507   test -z "$as_dir" && as_dir=.
21508     for ac_exec_ext in '' $ac_executable_extensions; do
21509   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21510     ac_cv_prog_HAVE_DOCBOOK2PS="yes"
21511     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21512     break 2
21513   fi
21514 done
21515   done
21516 IFS=$as_save_IFS
21517
21518   test -z "$ac_cv_prog_HAVE_DOCBOOK2PS" && ac_cv_prog_HAVE_DOCBOOK2PS="no"
21519 fi
21520 fi
21521 HAVE_DOCBOOK2PS=$ac_cv_prog_HAVE_DOCBOOK2PS
21522 if test -n "$HAVE_DOCBOOK2PS"; then
21523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DOCBOOK2PS" >&5
21524 $as_echo "$HAVE_DOCBOOK2PS" >&6; }
21525 else
21526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21527 $as_echo "no" >&6; }
21528 fi
21529
21530
21531     # Extract the first word of "docbook2html", so it can be a program name with args.
21532 set dummy docbook2html; ac_word=$2
21533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21534 $as_echo_n "checking for $ac_word... " >&6; }
21535 if ${ac_cv_prog_HAVE_DOCBOOK2HTML+:} false; then :
21536   $as_echo_n "(cached) " >&6
21537 else
21538   if test -n "$HAVE_DOCBOOK2HTML"; then
21539   ac_cv_prog_HAVE_DOCBOOK2HTML="$HAVE_DOCBOOK2HTML" # Let the user override the test.
21540 else
21541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21542 for as_dir in $PATH
21543 do
21544   IFS=$as_save_IFS
21545   test -z "$as_dir" && as_dir=.
21546     for ac_exec_ext in '' $ac_executable_extensions; do
21547   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21548     ac_cv_prog_HAVE_DOCBOOK2HTML="yes"
21549     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21550     break 2
21551   fi
21552 done
21553   done
21554 IFS=$as_save_IFS
21555
21556   test -z "$ac_cv_prog_HAVE_DOCBOOK2HTML" && ac_cv_prog_HAVE_DOCBOOK2HTML="no"
21557 fi
21558 fi
21559 HAVE_DOCBOOK2HTML=$ac_cv_prog_HAVE_DOCBOOK2HTML
21560 if test -n "$HAVE_DOCBOOK2HTML"; then
21561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DOCBOOK2HTML" >&5
21562 $as_echo "$HAVE_DOCBOOK2HTML" >&6; }
21563 else
21564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21565 $as_echo "no" >&6; }
21566 fi
21567
21568
21569     # Extract the first word of "jadetex", so it can be a program name with args.
21570 set dummy jadetex; ac_word=$2
21571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21572 $as_echo_n "checking for $ac_word... " >&6; }
21573 if ${ac_cv_prog_HAVE_JADETEX+:} false; then :
21574   $as_echo_n "(cached) " >&6
21575 else
21576   if test -n "$HAVE_JADETEX"; then
21577   ac_cv_prog_HAVE_JADETEX="$HAVE_JADETEX" # Let the user override the test.
21578 else
21579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21580 for as_dir in $PATH
21581 do
21582   IFS=$as_save_IFS
21583   test -z "$as_dir" && as_dir=.
21584     for ac_exec_ext in '' $ac_executable_extensions; do
21585   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21586     ac_cv_prog_HAVE_JADETEX="yes"
21587     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21588     break 2
21589   fi
21590 done
21591   done
21592 IFS=$as_save_IFS
21593
21594   test -z "$ac_cv_prog_HAVE_JADETEX" && ac_cv_prog_HAVE_JADETEX="no"
21595 fi
21596 fi
21597 HAVE_JADETEX=$ac_cv_prog_HAVE_JADETEX
21598 if test -n "$HAVE_JADETEX"; then
21599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_JADETEX" >&5
21600 $as_echo "$HAVE_JADETEX" >&6; }
21601 else
21602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21603 $as_echo "no" >&6; }
21604 fi
21605
21606
21607     # Extract the first word of "ps2pdf", so it can be a program name with args.
21608 set dummy ps2pdf; ac_word=$2
21609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21610 $as_echo_n "checking for $ac_word... " >&6; }
21611 if ${ac_cv_prog_HAVE_PS2PDF+:} false; then :
21612   $as_echo_n "(cached) " >&6
21613 else
21614   if test -n "$HAVE_PS2PDF"; then
21615   ac_cv_prog_HAVE_PS2PDF="$HAVE_PS2PDF" # Let the user override the test.
21616 else
21617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21618 for as_dir in $PATH
21619 do
21620   IFS=$as_save_IFS
21621   test -z "$as_dir" && as_dir=.
21622     for ac_exec_ext in '' $ac_executable_extensions; do
21623   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21624     ac_cv_prog_HAVE_PS2PDF="yes"
21625     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21626     break 2
21627   fi
21628 done
21629   done
21630 IFS=$as_save_IFS
21631
21632   test -z "$ac_cv_prog_HAVE_PS2PDF" && ac_cv_prog_HAVE_PS2PDF="no"
21633 fi
21634 fi
21635 HAVE_PS2PDF=$ac_cv_prog_HAVE_PS2PDF
21636 if test -n "$HAVE_PS2PDF"; then
21637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_PS2PDF" >&5
21638 $as_echo "$HAVE_PS2PDF" >&6; }
21639 else
21640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21641 $as_echo "no" >&6; }
21642 fi
21643
21644
21645
21646     # -V option appeared in 0.6.10
21647     docbook2html_min_version=0.6.10
21648     if test "x$HAVE_DOCBOOK2HTML" != "xno"; then
21649       docbook2html_version=`docbook2html --version`
21650       { $as_echo "$as_me:${as_lineno-$LINENO}: checking docbook2html version ($docbook2html_version) >= $docbook2html_min_version" >&5
21651 $as_echo_n "checking docbook2html version ($docbook2html_version) >= $docbook2html_min_version... " >&6; }
21652       if perl -w <<EOF
21653         (\$min_version_major, \$min_version_minor, \$min_version_micro ) = "$docbook2html_min_version" =~ /(\d+)\.(\d+)\.(\d+)/;
21654         (\$docbook2html_version_major, \$docbook2html_version_minor, \$docbook2html_version_micro ) = "$docbook2html_version" =~ /(\d+)\.(\d+)\.(\d+)/;
21655         exit (((\$docbook2html_version_major > \$min_version_major) ||
21656              ((\$docbook2html_version_major == \$min_version_major) &&
21657               (\$docbook2html_version_minor >= \$min_version_minor)) ||
21658              ((\$docbook2html_version_major == \$min_version_major) &&
21659               (\$docbook2html_version_minor >= \$min_version_minor) &&
21660               (\$docbook2html_version_micro >= \$min_version_micro)))
21661              ? 0 : 1);
21662 EOF
21663       then
21664         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21665 $as_echo "yes" >&6; }
21666       else
21667         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21668 $as_echo "no" >&6; }
21669         HAVE_DOCBOOK2HTML=no
21670       fi
21671     fi
21672
21673
21674   XSLTPROC_FLAGS=--nonet
21675   DOCBOOK_ROOT=
21676   TYPE_LC=xml
21677   TYPE_UC=XML
21678   DOCBOOK_VERSION=4.1.2
21679
21680   if test ! -f /etc/xml/catalog; then
21681     for i in /usr/share/sgml/docbook/stylesheet/xsl/nwalsh /usr/share/sgml/docbook/xsl-stylesheets/ /usr/local/share/xsl/docbook ;
21682     do
21683       if test -d "$i"; then
21684         DOCBOOK_ROOT=$i
21685       fi
21686     done
21687   else
21688     XML_CATALOG=/etc/xml/catalog
21689     CAT_ENTRY_START='<!--'
21690     CAT_ENTRY_END='-->'
21691   fi
21692
21693     # Extract the first word of "xsltproc", so it can be a program name with args.
21694 set dummy xsltproc; ac_word=$2
21695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21696 $as_echo_n "checking for $ac_word... " >&6; }
21697 if ${ac_cv_prog_XSLTPROC+:} false; then :
21698   $as_echo_n "(cached) " >&6
21699 else
21700   if test -n "$XSLTPROC"; then
21701   ac_cv_prog_XSLTPROC="$XSLTPROC" # Let the user override the test.
21702 else
21703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21704 for as_dir in $PATH
21705 do
21706   IFS=$as_save_IFS
21707   test -z "$as_dir" && as_dir=.
21708     for ac_exec_ext in '' $ac_executable_extensions; do
21709   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21710     ac_cv_prog_XSLTPROC="xsltproc"
21711     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21712     break 2
21713   fi
21714 done
21715   done
21716 IFS=$as_save_IFS
21717
21718 fi
21719 fi
21720 XSLTPROC=$ac_cv_prog_XSLTPROC
21721 if test -n "$XSLTPROC"; then
21722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
21723 $as_echo "$XSLTPROC" >&6; }
21724 else
21725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21726 $as_echo "no" >&6; }
21727 fi
21728
21729
21730   XSLTPROC_WORKS=no
21731   if test -n "$XSLTPROC"; then
21732     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xsltproc docbook processing works" >&5
21733 $as_echo_n "checking whether xsltproc docbook processing works... " >&6; }
21734
21735     if test -n "$XML_CATALOG"; then
21736       DB_FILE="http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl"
21737     else
21738       DB_FILE="$DOCBOOK_ROOT/xhtml/docbook.xsl"
21739     fi
21740     $XSLTPROC $XSLTPROC_FLAGS $DB_FILE >/dev/null 2>&1 << END
21741 <?xml version="1.0" encoding='ISO-8859-1'?>
21742 <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook $TYPE_UC V$DOCBOOK_VERSION//EN" "http://www.oasis-open.org/docbook/$TYPE_LC/$DOCBOOK_VERSION/docbookx.dtd">
21743 <book id="test">
21744 </book>
21745 END
21746     if test "$?" = 0; then
21747       XSLTPROC_WORKS=yes
21748     fi
21749     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC_WORKS" >&5
21750 $as_echo "$XSLTPROC_WORKS" >&6; }
21751   fi
21752
21753   if test "x$XSLTPROC_WORKS" = "xyes"; then
21754         have_docbook=yes
21755   else
21756         have_docbook=no
21757   fi
21758
21759
21760
21761
21762
21763
21764
21765
21766         # Extract the first word of "dvips", so it can be a program name with args.
21767 set dummy dvips; ac_word=$2
21768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21769 $as_echo_n "checking for $ac_word... " >&6; }
21770 if ${ac_cv_prog_HAVE_DVIPS+:} false; then :
21771   $as_echo_n "(cached) " >&6
21772 else
21773   if test -n "$HAVE_DVIPS"; then
21774   ac_cv_prog_HAVE_DVIPS="$HAVE_DVIPS" # Let the user override the test.
21775 else
21776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21777 for as_dir in $PATH
21778 do
21779   IFS=$as_save_IFS
21780   test -z "$as_dir" && as_dir=.
21781     for ac_exec_ext in '' $ac_executable_extensions; do
21782   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21783     ac_cv_prog_HAVE_DVIPS="yes"
21784     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21785     break 2
21786   fi
21787 done
21788   done
21789 IFS=$as_save_IFS
21790
21791   test -z "$ac_cv_prog_HAVE_DVIPS" && ac_cv_prog_HAVE_DVIPS="no"
21792 fi
21793 fi
21794 HAVE_DVIPS=$ac_cv_prog_HAVE_DVIPS
21795 if test -n "$HAVE_DVIPS"; then
21796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DVIPS" >&5
21797 $as_echo "$HAVE_DVIPS" >&6; }
21798 else
21799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21800 $as_echo "no" >&6; }
21801 fi
21802
21803
21804     # Extract the first word of "xmllint", so it can be a program name with args.
21805 set dummy xmllint; ac_word=$2
21806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21807 $as_echo_n "checking for $ac_word... " >&6; }
21808 if ${ac_cv_prog_HAVE_XMLLINT+:} false; then :
21809   $as_echo_n "(cached) " >&6
21810 else
21811   if test -n "$HAVE_XMLLINT"; then
21812   ac_cv_prog_HAVE_XMLLINT="$HAVE_XMLLINT" # Let the user override the test.
21813 else
21814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21815 for as_dir in $PATH
21816 do
21817   IFS=$as_save_IFS
21818   test -z "$as_dir" && as_dir=.
21819     for ac_exec_ext in '' $ac_executable_extensions; do
21820   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21821     ac_cv_prog_HAVE_XMLLINT="yes"
21822     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21823     break 2
21824   fi
21825 done
21826   done
21827 IFS=$as_save_IFS
21828
21829   test -z "$ac_cv_prog_HAVE_XMLLINT" && ac_cv_prog_HAVE_XMLLINT="no"
21830 fi
21831 fi
21832 HAVE_XMLLINT=$ac_cv_prog_HAVE_XMLLINT
21833 if test -n "$HAVE_XMLLINT"; then
21834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XMLLINT" >&5
21835 $as_echo "$HAVE_XMLLINT" >&6; }
21836 else
21837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21838 $as_echo "no" >&6; }
21839 fi
21840
21841
21842
21843         # Extract the first word of "fig2dev", so it can be a program name with args.
21844 set dummy fig2dev; ac_word=$2
21845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21846 $as_echo_n "checking for $ac_word... " >&6; }
21847 if ${ac_cv_prog_HAVE_FIG2DEV+:} false; then :
21848   $as_echo_n "(cached) " >&6
21849 else
21850   if test -n "$HAVE_FIG2DEV"; then
21851   ac_cv_prog_HAVE_FIG2DEV="$HAVE_FIG2DEV" # Let the user override the test.
21852 else
21853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21854 for as_dir in $PATH
21855 do
21856   IFS=$as_save_IFS
21857   test -z "$as_dir" && as_dir=.
21858     for ac_exec_ext in '' $ac_executable_extensions; do
21859   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21860     ac_cv_prog_HAVE_FIG2DEV="yes"
21861     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21862     break 2
21863   fi
21864 done
21865   done
21866 IFS=$as_save_IFS
21867
21868   test -z "$ac_cv_prog_HAVE_FIG2DEV" && ac_cv_prog_HAVE_FIG2DEV="no"
21869 fi
21870 fi
21871 HAVE_FIG2DEV=$ac_cv_prog_HAVE_FIG2DEV
21872 if test -n "$HAVE_FIG2DEV"; then
21873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_FIG2DEV" >&5
21874 $as_echo "$HAVE_FIG2DEV" >&6; }
21875 else
21876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21877 $as_echo "no" >&6; }
21878 fi
21879
21880
21881     if test "x$HAVE_FIG2DEV" = "xno" ; then
21882       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Did not find fig2dev (from xfig), images will not be generated." >&5
21883 $as_echo "$as_me: WARNING: Did not find fig2dev (from xfig), images will not be generated." >&2;}
21884     fi
21885
21886             HAVE_FIG2DEV_EPS=no
21887     if test "x$HAVE_FIG2DEV" = "xyes" ; then
21888       fig2dev_quiet=`fig2dev -L eps </dev/null 2>&1 >/dev/null`
21889       if test "x$fig2dev_quiet" = "x" ; then
21890         HAVE_FIG2DEV_EPS=yes
21891       fi
21892     fi
21893     HAVE_FIG2DEV_PNG=no
21894     if test "x$HAVE_FIG2DEV" = "xyes" ; then
21895       fig2dev_quiet=`fig2dev -L png </dev/null 2>&1 >/dev/null`
21896       if test "x$fig2dev_quiet" = "x" ; then
21897         HAVE_FIG2DEV_PNG=yes
21898       fi
21899     fi
21900     HAVE_FIG2DEV_PDF=no
21901     if test "x$HAVE_FIG2DEV" = "xyes" ; then
21902       fig2dev_quiet=`fig2dev -L pdf </dev/null 2>&1 >/dev/null`
21903       if test "x$fig2dev_quiet" = "x" ; then
21904         HAVE_FIG2DEV_PDF=yes
21905       fi
21906     fi
21907
21908     # Extract the first word of "pngtopnm", so it can be a program name with args.
21909 set dummy pngtopnm; ac_word=$2
21910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21911 $as_echo_n "checking for $ac_word... " >&6; }
21912 if ${ac_cv_prog_HAVE_PNGTOPNM+:} false; then :
21913   $as_echo_n "(cached) " >&6
21914 else
21915   if test -n "$HAVE_PNGTOPNM"; then
21916   ac_cv_prog_HAVE_PNGTOPNM="$HAVE_PNGTOPNM" # Let the user override the test.
21917 else
21918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21919 for as_dir in $PATH
21920 do
21921   IFS=$as_save_IFS
21922   test -z "$as_dir" && as_dir=.
21923     for ac_exec_ext in '' $ac_executable_extensions; do
21924   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21925     ac_cv_prog_HAVE_PNGTOPNM="yes"
21926     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21927     break 2
21928   fi
21929 done
21930   done
21931 IFS=$as_save_IFS
21932
21933   test -z "$ac_cv_prog_HAVE_PNGTOPNM" && ac_cv_prog_HAVE_PNGTOPNM="no"
21934 fi
21935 fi
21936 HAVE_PNGTOPNM=$ac_cv_prog_HAVE_PNGTOPNM
21937 if test -n "$HAVE_PNGTOPNM"; then
21938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_PNGTOPNM" >&5
21939 $as_echo "$HAVE_PNGTOPNM" >&6; }
21940 else
21941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21942 $as_echo "no" >&6; }
21943 fi
21944
21945
21946     # Extract the first word of "pnmtops", so it can be a program name with args.
21947 set dummy pnmtops; ac_word=$2
21948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21949 $as_echo_n "checking for $ac_word... " >&6; }
21950 if ${ac_cv_prog_HAVE_PNMTOPS+:} false; then :
21951   $as_echo_n "(cached) " >&6
21952 else
21953   if test -n "$HAVE_PNMTOPS"; then
21954   ac_cv_prog_HAVE_PNMTOPS="$HAVE_PNMTOPS" # Let the user override the test.
21955 else
21956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21957 for as_dir in $PATH
21958 do
21959   IFS=$as_save_IFS
21960   test -z "$as_dir" && as_dir=.
21961     for ac_exec_ext in '' $ac_executable_extensions; do
21962   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21963     ac_cv_prog_HAVE_PNMTOPS="yes"
21964     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21965     break 2
21966   fi
21967 done
21968   done
21969 IFS=$as_save_IFS
21970
21971   test -z "$ac_cv_prog_HAVE_PNMTOPS" && ac_cv_prog_HAVE_PNMTOPS="no"
21972 fi
21973 fi
21974 HAVE_PNMTOPS=$ac_cv_prog_HAVE_PNMTOPS
21975 if test -n "$HAVE_PNMTOPS"; then
21976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_PNMTOPS" >&5
21977 $as_echo "$HAVE_PNMTOPS" >&6; }
21978 else
21979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21980 $as_echo "no" >&6; }
21981 fi
21982
21983
21984     # Extract the first word of "epstopdf", so it can be a program name with args.
21985 set dummy epstopdf; ac_word=$2
21986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21987 $as_echo_n "checking for $ac_word... " >&6; }
21988 if ${ac_cv_prog_HAVE_EPSTOPDF+:} false; then :
21989   $as_echo_n "(cached) " >&6
21990 else
21991   if test -n "$HAVE_EPSTOPDF"; then
21992   ac_cv_prog_HAVE_EPSTOPDF="$HAVE_EPSTOPDF" # Let the user override the test.
21993 else
21994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21995 for as_dir in $PATH
21996 do
21997   IFS=$as_save_IFS
21998   test -z "$as_dir" && as_dir=.
21999     for ac_exec_ext in '' $ac_executable_extensions; do
22000   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22001     ac_cv_prog_HAVE_EPSTOPDF="yes"
22002     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22003     break 2
22004   fi
22005 done
22006   done
22007 IFS=$as_save_IFS
22008
22009   test -z "$ac_cv_prog_HAVE_EPSTOPDF" && ac_cv_prog_HAVE_EPSTOPDF="no"
22010 fi
22011 fi
22012 HAVE_EPSTOPDF=$ac_cv_prog_HAVE_EPSTOPDF
22013 if test -n "$HAVE_EPSTOPDF"; then
22014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_EPSTOPDF" >&5
22015 $as_echo "$HAVE_EPSTOPDF" >&6; }
22016 else
22017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22018 $as_echo "no" >&6; }
22019 fi
22020
22021
22022
22023         if test "x$HAVE_DOCBOOK2HTML" = "xyes" && \
22024        test "x$enable_docbook" = "xyes" && \
22025        test "x$HAVE_XMLLINT" = "xyes" && \
22026        test "x$HAVE_FIG2DEV_PNG" = "xyes"; then
22027       DOC_HTML=yes
22028       { $as_echo "$as_me:${as_lineno-$LINENO}: Will output HTML documentation" >&5
22029 $as_echo "$as_me: Will output HTML documentation" >&6;}
22030      else
22031       DOC_HTML=no
22032       { $as_echo "$as_me:${as_lineno-$LINENO}: Will not output HTML documentation" >&5
22033 $as_echo "$as_me: Will not output HTML documentation" >&6;}
22034     fi
22035
22036         if test "x$HAVE_DOCBOOK2PS" = "xyes" && \
22037        test "x$enable_docbook" = "xyes" && \
22038        test "x$HAVE_XMLLINT" = "xyes" && \
22039        test "x$HAVE_JADETEX" = "xyes" && \
22040        test "x$HAVE_FIG2DEV_EPS" = "xyes" && \
22041        test "x$HAVE_DVIPS" = "xyes" && \
22042        test "x$HAVE_PNGTOPNM" = "xyes" && \
22043        test "x$HAVE_PNMTOPS" = "xyes"; then
22044       DOC_PS=yes
22045       { $as_echo "$as_me:${as_lineno-$LINENO}: Will output PS documentation" >&5
22046 $as_echo "$as_me: Will output PS documentation" >&6;}
22047     else
22048       DOC_PS=no
22049       { $as_echo "$as_me:${as_lineno-$LINENO}: Will not output PS documentation" >&5
22050 $as_echo "$as_me: Will not output PS documentation" >&6;}
22051     fi
22052
22053         if test "x$DOC_PS" = "xyes" && \
22054        test "x$enable_docbook" = "xyes" && \
22055        test "x$HAVE_XMLLINT" = "xyes" && \
22056        test "x$HAVE_PS2PDF" = "xyes"; then
22057       DOC_PDF=yes
22058       { $as_echo "$as_me:${as_lineno-$LINENO}: Will output PDF documentation" >&5
22059 $as_echo "$as_me: Will output PDF documentation" >&6;}
22060     else
22061       DOC_PDF=no
22062       { $as_echo "$as_me:${as_lineno-$LINENO}: Will not output PDF documentation" >&5
22063 $as_echo "$as_me: Will not output PDF documentation" >&6;}
22064     fi
22065
22066         if test "x$have_docbook" != "xyes"; then
22067       enable_docbook=no
22068     fi
22069   fi
22070
22071     if test "x$have_docbook" = "xyes"; then
22072     { $as_echo "$as_me:${as_lineno-$LINENO}: Installing documentation in $docdir" >&5
22073 $as_echo "$as_me: Installing documentation in $docdir" >&6;}
22074
22075   fi
22076
22077    if test x$enable_docbook = xyes; then
22078   ENABLE_DOCBOOK_TRUE=
22079   ENABLE_DOCBOOK_FALSE='#'
22080 else
22081   ENABLE_DOCBOOK_TRUE='#'
22082   ENABLE_DOCBOOK_FALSE=
22083 fi
22084
22085    if test x$DOC_HTML = xyes; then
22086   DOC_HTML_TRUE=
22087   DOC_HTML_FALSE='#'
22088 else
22089   DOC_HTML_TRUE='#'
22090   DOC_HTML_FALSE=
22091 fi
22092
22093    if test x$DOC_PDF = xyes; then
22094   DOC_PDF_TRUE=
22095   DOC_PDF_FALSE='#'
22096 else
22097   DOC_PDF_TRUE='#'
22098   DOC_PDF_FALSE=
22099 fi
22100
22101    if test x$DOC_PS = xyes; then
22102   DOC_PS_TRUE=
22103   DOC_PS_FALSE='#'
22104 else
22105   DOC_PS_TRUE='#'
22106   DOC_PS_FALSE=
22107 fi
22108
22109
22110
22111
22112 # Check whether --with-html-dir was given.
22113 if test "${with_html_dir+set}" = set; then :
22114   withval=$with_html_dir;
22115 else
22116   with_html_dir='${datadir}/gtk-doc/html'
22117 fi
22118
22119   HTML_DIR="$with_html_dir"
22120
22121
22122     # Check whether --enable-gtk-doc was given.
22123 if test "${enable_gtk_doc+set}" = set; then :
22124   enableval=$enable_gtk_doc;
22125 else
22126   enable_gtk_doc=no
22127 fi
22128
22129
22130   if test x$enable_gtk_doc = xyes; then
22131     if test -n "$PKG_CONFIG" && \
22132     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-doc >= 1.3\""; } >&5
22133   ($PKG_CONFIG --exists --print-errors "gtk-doc >= 1.3") 2>&5
22134   ac_status=$?
22135   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22136   test $ac_status = 0; }; then
22137   :
22138 else
22139   as_fn_error $? "You need to have gtk-doc >= 1.3 installed to build gtk-doc" "$LINENO" 5
22140 fi
22141     if test -z "$SED"; then
22142       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
22143 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
22144 if ${ac_cv_path_SED+:} false; then :
22145   $as_echo_n "(cached) " >&6
22146 else
22147             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
22148      for ac_i in 1 2 3 4 5 6 7; do
22149        ac_script="$ac_script$as_nl$ac_script"
22150      done
22151      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
22152      { ac_script=; unset ac_script;}
22153      if test -z "$SED"; then
22154   ac_path_SED_found=false
22155   # Loop through the user's path and test for each of PROGNAME-LIST
22156   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22157 for as_dir in $PATH
22158 do
22159   IFS=$as_save_IFS
22160   test -z "$as_dir" && as_dir=.
22161     for ac_prog in sed gsed; do
22162     for ac_exec_ext in '' $ac_executable_extensions; do
22163       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
22164       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
22165 # Check for GNU ac_path_SED and select it if it is found.
22166   # Check for GNU $ac_path_SED
22167 case `"$ac_path_SED" --version 2>&1` in
22168 *GNU*)
22169   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
22170 *)
22171   ac_count=0
22172   $as_echo_n 0123456789 >"conftest.in"
22173   while :
22174   do
22175     cat "conftest.in" "conftest.in" >"conftest.tmp"
22176     mv "conftest.tmp" "conftest.in"
22177     cp "conftest.in" "conftest.nl"
22178     $as_echo '' >> "conftest.nl"
22179     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
22180     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
22181     as_fn_arith $ac_count + 1 && ac_count=$as_val
22182     if test $ac_count -gt ${ac_path_SED_max-0}; then
22183       # Best one so far, save it but keep looking for a better one
22184       ac_cv_path_SED="$ac_path_SED"
22185       ac_path_SED_max=$ac_count
22186     fi
22187     # 10*(2^10) chars as input seems more than enough
22188     test $ac_count -gt 10 && break
22189   done
22190   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
22191 esac
22192
22193       $ac_path_SED_found && break 3
22194     done
22195   done
22196   done
22197 IFS=$as_save_IFS
22198   if test -z "$ac_cv_path_SED"; then
22199     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
22200   fi
22201 else
22202   ac_cv_path_SED=$SED
22203 fi
22204
22205 fi
22206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
22207 $as_echo "$ac_cv_path_SED" >&6; }
22208  SED="$ac_cv_path_SED"
22209   rm -f conftest.sed
22210
22211     fi
22212   fi
22213
22214   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
22215 $as_echo_n "checking whether to build gtk-doc documentation... " >&6; }
22216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
22217 $as_echo "$enable_gtk_doc" >&6; }
22218
22219   for ac_prog in gtkdoc-check
22220 do
22221   # Extract the first word of "$ac_prog", so it can be a program name with args.
22222 set dummy $ac_prog; ac_word=$2
22223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22224 $as_echo_n "checking for $ac_word... " >&6; }
22225 if ${ac_cv_path_GTKDOC_CHECK+:} false; then :
22226   $as_echo_n "(cached) " >&6
22227 else
22228   case $GTKDOC_CHECK in
22229   [\\/]* | ?:[\\/]*)
22230   ac_cv_path_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test with a path.
22231   ;;
22232   *)
22233   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22234 for as_dir in $PATH
22235 do
22236   IFS=$as_save_IFS
22237   test -z "$as_dir" && as_dir=.
22238     for ac_exec_ext in '' $ac_executable_extensions; do
22239   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22240     ac_cv_path_GTKDOC_CHECK="$as_dir/$ac_word$ac_exec_ext"
22241     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22242     break 2
22243   fi
22244 done
22245   done
22246 IFS=$as_save_IFS
22247
22248   ;;
22249 esac
22250 fi
22251 GTKDOC_CHECK=$ac_cv_path_GTKDOC_CHECK
22252 if test -n "$GTKDOC_CHECK"; then
22253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
22254 $as_echo "$GTKDOC_CHECK" >&6; }
22255 else
22256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22257 $as_echo "no" >&6; }
22258 fi
22259
22260
22261   test -n "$GTKDOC_CHECK" && break
22262 done
22263
22264
22265    if test x$enable_gtk_doc = xyes; then
22266   ENABLE_GTK_DOC_TRUE=
22267   ENABLE_GTK_DOC_FALSE='#'
22268 else
22269   ENABLE_GTK_DOC_TRUE='#'
22270   ENABLE_GTK_DOC_FALSE=
22271 fi
22272
22273    if test -n "$LIBTOOL"; then
22274   GTK_DOC_USE_LIBTOOL_TRUE=
22275   GTK_DOC_USE_LIBTOOL_FALSE='#'
22276 else
22277   GTK_DOC_USE_LIBTOOL_TRUE='#'
22278   GTK_DOC_USE_LIBTOOL_FALSE=
22279 fi
22280
22281
22282
22283
22284     PYTHON_CANDIDATES="python python2.2 python2.1 python2.0 python2 \
22285                      python1.6 python1.5"
22286
22287      { $as_echo "$as_me:${as_lineno-$LINENO}: Looking for Python version >= 2.1" >&5
22288 $as_echo "$as_me: Looking for Python version >= 2.1" >&6;}
22289         prog="
22290 import sys, string
22291 minver = '2.1'
22292 # split string by '.' and convert to numeric
22293 minver_info = map(string.atoi, string.split(minver, '.'))
22294 # we can now do comparisons on the two lists:
22295 if sys.version_info >= tuple(minver_info):
22296         sys.exit(0)
22297 else:
22298         sys.exit(1)"
22299
22300     python_good=false
22301     for python_candidate in $PYTHON_CANDIDATES; do
22302       unset PYTHON
22303       # Extract the first word of "$python_candidate", so it can be a program name with args.
22304 set dummy $python_candidate; ac_word=$2
22305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22306 $as_echo_n "checking for $ac_word... " >&6; }
22307 if ${ac_cv_path_PYTHON+:} false; then :
22308   $as_echo_n "(cached) " >&6
22309 else
22310   case $PYTHON in
22311   [\\/]* | ?:[\\/]*)
22312   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
22313   ;;
22314   *)
22315   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22316 for as_dir in $PATH
22317 do
22318   IFS=$as_save_IFS
22319   test -z "$as_dir" && as_dir=.
22320     for ac_exec_ext in '' $ac_executable_extensions; do
22321   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22322     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
22323     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22324     break 2
22325   fi
22326 done
22327   done
22328 IFS=$as_save_IFS
22329
22330   ;;
22331 esac
22332 fi
22333 PYTHON=$ac_cv_path_PYTHON
22334 if test -n "$PYTHON"; then
22335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
22336 $as_echo "$PYTHON" >&6; }
22337 else
22338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22339 $as_echo "no" >&6; }
22340 fi
22341
22342  1> /dev/null 2> /dev/null
22343
22344       if test "x$PYTHON" = "x"; then continue; fi
22345
22346       if $PYTHON -c "$prog" 1>&5 2>&5; then
22347         { $as_echo "$as_me:${as_lineno-$LINENO}: checking \"$PYTHON\":" >&5
22348 $as_echo_n "checking \"$PYTHON\":... " >&6; }
22349         { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
22350 $as_echo "okay" >&6; }
22351         python_good=true
22352         break;
22353       else
22354                 unset ac_cv_path_PYTHON
22355       fi
22356     done
22357
22358
22359   if test "$python_good" != "true"; then
22360     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No suitable version of python found" >&5
22361 $as_echo "$as_me: WARNING: No suitable version of python found" >&2;}
22362     PYTHON=
22363   else
22364
22365   { $as_echo "$as_me:${as_lineno-$LINENO}: checking local Python configuration" >&5
22366 $as_echo_n "checking local Python configuration... " >&6; }
22367
22368
22369
22370     PYTHON_VERSION=`$PYTHON -c "import sys; print sys.version[:3]"`
22371
22372
22373
22374
22375   PYTHON_PREFIX='${prefix}'
22376
22377
22378   PYTHON_EXEC_PREFIX='${exec_prefix}'
22379
22380
22381
22382   PYTHON_PLATFORM=`$PYTHON -c "import sys; print sys.platform"`
22383
22384
22385
22386
22387
22388   pythondir=$PYTHON_PREFIX"/lib/python"$PYTHON_VERSION/site-packages
22389
22390
22391
22392   pkgpythondir=\${pythondir}/$PACKAGE
22393
22394
22395
22396   pyexecdir=$PYTHON_EXEC_PREFIX"/lib/python"$PYTHON_VERSION/site-packages
22397
22398
22399
22400   pkgpyexecdir=\${pyexecdir}/$PACKAGE
22401
22402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: looks good" >&5
22403 $as_echo "looks good" >&6; }
22404
22405   fi
22406
22407
22408
22409   build_plugin_docs=no
22410   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build plugin documentation" >&5
22411 $as_echo_n "checking whether to build plugin documentation... " >&6; }
22412   if test x$enable_gtk_doc = xyes; then
22413     build_plugin_docs=yes
22414     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22415 $as_echo "yes" >&6; }
22416   else
22417     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (gtk-doc disabled or not available)" >&5
22418 $as_echo "no (gtk-doc disabled or not available)" >&6; }
22419   fi
22420
22421    if test x$build_plugin_docs = xyes; then
22422   ENABLE_PLUGIN_DOCS_TRUE=
22423   ENABLE_PLUGIN_DOCS_FALSE='#'
22424 else
22425   ENABLE_PLUGIN_DOCS_TRUE='#'
22426   ENABLE_PLUGIN_DOCS_FALSE=
22427 fi
22428
22429
22430
22431
22432 LIBM=
22433 case $host in
22434 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
22435   # These system don't have libm, or don't need it
22436   ;;
22437 *-ncr-sysv4.3*)
22438   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
22439 $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
22440 if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then :
22441   $as_echo_n "(cached) " >&6
22442 else
22443   ac_check_lib_save_LIBS=$LIBS
22444 LIBS="-lmw  $LIBS"
22445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22446 /* end confdefs.h.  */
22447
22448 /* Override any GCC internal prototype to avoid an error.
22449    Use char because int might match the return type of a GCC
22450    builtin and then its argument prototype would still apply.  */
22451 #ifdef __cplusplus
22452 extern "C"
22453 #endif
22454 char _mwvalidcheckl ();
22455 int
22456 main ()
22457 {
22458 return _mwvalidcheckl ();
22459   ;
22460   return 0;
22461 }
22462 _ACEOF
22463 if ac_fn_c_try_link "$LINENO"; then :
22464   ac_cv_lib_mw__mwvalidcheckl=yes
22465 else
22466   ac_cv_lib_mw__mwvalidcheckl=no
22467 fi
22468 rm -f core conftest.err conftest.$ac_objext \
22469     conftest$ac_exeext conftest.$ac_ext
22470 LIBS=$ac_check_lib_save_LIBS
22471 fi
22472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
22473 $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
22474 if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then :
22475   LIBM="-lmw"
22476 fi
22477
22478   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
22479 $as_echo_n "checking for cos in -lm... " >&6; }
22480 if ${ac_cv_lib_m_cos+:} false; then :
22481   $as_echo_n "(cached) " >&6
22482 else
22483   ac_check_lib_save_LIBS=$LIBS
22484 LIBS="-lm  $LIBS"
22485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22486 /* end confdefs.h.  */
22487
22488 /* Override any GCC internal prototype to avoid an error.
22489    Use char because int might match the return type of a GCC
22490    builtin and then its argument prototype would still apply.  */
22491 #ifdef __cplusplus
22492 extern "C"
22493 #endif
22494 char cos ();
22495 int
22496 main ()
22497 {
22498 return cos ();
22499   ;
22500   return 0;
22501 }
22502 _ACEOF
22503 if ac_fn_c_try_link "$LINENO"; then :
22504   ac_cv_lib_m_cos=yes
22505 else
22506   ac_cv_lib_m_cos=no
22507 fi
22508 rm -f core conftest.err conftest.$ac_objext \
22509     conftest$ac_exeext conftest.$ac_ext
22510 LIBS=$ac_check_lib_save_LIBS
22511 fi
22512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
22513 $as_echo "$ac_cv_lib_m_cos" >&6; }
22514 if test "x$ac_cv_lib_m_cos" = xyes; then :
22515   LIBM="$LIBM -lm"
22516 fi
22517
22518   ;;
22519 *)
22520   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
22521 $as_echo_n "checking for cos in -lm... " >&6; }
22522 if ${ac_cv_lib_m_cos+:} false; then :
22523   $as_echo_n "(cached) " >&6
22524 else
22525   ac_check_lib_save_LIBS=$LIBS
22526 LIBS="-lm  $LIBS"
22527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22528 /* end confdefs.h.  */
22529
22530 /* Override any GCC internal prototype to avoid an error.
22531    Use char because int might match the return type of a GCC
22532    builtin and then its argument prototype would still apply.  */
22533 #ifdef __cplusplus
22534 extern "C"
22535 #endif
22536 char cos ();
22537 int
22538 main ()
22539 {
22540 return cos ();
22541   ;
22542   return 0;
22543 }
22544 _ACEOF
22545 if ac_fn_c_try_link "$LINENO"; then :
22546   ac_cv_lib_m_cos=yes
22547 else
22548   ac_cv_lib_m_cos=no
22549 fi
22550 rm -f core conftest.err conftest.$ac_objext \
22551     conftest$ac_exeext conftest.$ac_ext
22552 LIBS=$ac_check_lib_save_LIBS
22553 fi
22554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
22555 $as_echo "$ac_cv_lib_m_cos" >&6; }
22556 if test "x$ac_cv_lib_m_cos" = xyes; then :
22557   LIBM="-lm"
22558 fi
22559
22560   ;;
22561 esac
22562
22563
22564
22565
22566
22567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
22568 $as_echo_n "checking for ANSI C header files... " >&6; }
22569 if ${ac_cv_header_stdc+:} false; then :
22570   $as_echo_n "(cached) " >&6
22571 else
22572   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22573 /* end confdefs.h.  */
22574 #include <stdlib.h>
22575 #include <stdarg.h>
22576 #include <string.h>
22577 #include <float.h>
22578
22579 int
22580 main ()
22581 {
22582
22583   ;
22584   return 0;
22585 }
22586 _ACEOF
22587 if ac_fn_c_try_compile "$LINENO"; then :
22588   ac_cv_header_stdc=yes
22589 else
22590   ac_cv_header_stdc=no
22591 fi
22592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22593
22594 if test $ac_cv_header_stdc = yes; then
22595   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
22596   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22597 /* end confdefs.h.  */
22598 #include <string.h>
22599
22600 _ACEOF
22601 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22602   $EGREP "memchr" >/dev/null 2>&1; then :
22603
22604 else
22605   ac_cv_header_stdc=no
22606 fi
22607 rm -f conftest*
22608
22609 fi
22610
22611 if test $ac_cv_header_stdc = yes; then
22612   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
22613   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22614 /* end confdefs.h.  */
22615 #include <stdlib.h>
22616
22617 _ACEOF
22618 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22619   $EGREP "free" >/dev/null 2>&1; then :
22620
22621 else
22622   ac_cv_header_stdc=no
22623 fi
22624 rm -f conftest*
22625
22626 fi
22627
22628 if test $ac_cv_header_stdc = yes; then
22629   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
22630   if test "$cross_compiling" = yes; then :
22631   :
22632 else
22633   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22634 /* end confdefs.h.  */
22635 #include <ctype.h>
22636 #include <stdlib.h>
22637 #if ((' ' & 0x0FF) == 0x020)
22638 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22639 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22640 #else
22641 # define ISLOWER(c) \
22642                    (('a' <= (c) && (c) <= 'i') \
22643                      || ('j' <= (c) && (c) <= 'r') \
22644                      || ('s' <= (c) && (c) <= 'z'))
22645 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22646 #endif
22647
22648 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22649 int
22650 main ()
22651 {
22652   int i;
22653   for (i = 0; i < 256; i++)
22654     if (XOR (islower (i), ISLOWER (i))
22655         || toupper (i) != TOUPPER (i))
22656       return 2;
22657   return 0;
22658 }
22659 _ACEOF
22660 if ac_fn_c_try_run "$LINENO"; then :
22661
22662 else
22663   ac_cv_header_stdc=no
22664 fi
22665 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22666   conftest.$ac_objext conftest.beam conftest.$ac_ext
22667 fi
22668
22669 fi
22670 fi
22671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
22672 $as_echo "$ac_cv_header_stdc" >&6; }
22673 if test $ac_cv_header_stdc = yes; then
22674
22675 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
22676
22677 fi
22678
22679
22680 for ac_header in ucontext.h
22681 do :
22682   ac_fn_c_check_header_mongrel "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "$ac_includes_default"
22683 if test "x$ac_cv_header_ucontext_h" = xyes; then :
22684   cat >>confdefs.h <<_ACEOF
22685 #define HAVE_UCONTEXT_H 1
22686 _ACEOF
22687
22688 fi
22689
22690 done
22691
22692
22693 for ac_header in sys/socket.h
22694 do :
22695   ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
22696 if test "x$ac_cv_header_sys_socket_h" = xyes; then :
22697   cat >>confdefs.h <<_ACEOF
22698 #define HAVE_SYS_SOCKET_H 1
22699 _ACEOF
22700  HAVE_SYS_SOCKET_H=yes
22701 fi
22702
22703 done
22704
22705  if test "x$HAVE_SYS_SOCKET_H" = "xyes"; then
22706   HAVE_SYS_SOCKET_H_TRUE=
22707   HAVE_SYS_SOCKET_H_FALSE='#'
22708 else
22709   HAVE_SYS_SOCKET_H_TRUE='#'
22710   HAVE_SYS_SOCKET_H_FALSE=
22711 fi
22712
22713
22714 for ac_header in sys/times.h
22715 do :
22716   ac_fn_c_check_header_mongrel "$LINENO" "sys/times.h" "ac_cv_header_sys_times_h" "$ac_includes_default"
22717 if test "x$ac_cv_header_sys_times_h" = xyes; then :
22718   cat >>confdefs.h <<_ACEOF
22719 #define HAVE_SYS_TIMES_H 1
22720 _ACEOF
22721  HAVE_SYS_TIMES_H=yes
22722 fi
22723
22724 done
22725
22726 for ac_header in unistd.h
22727 do :
22728   ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
22729 if test "x$ac_cv_header_unistd_h" = xyes; then :
22730   cat >>confdefs.h <<_ACEOF
22731 #define HAVE_UNISTD_H 1
22732 _ACEOF
22733  HAVE_UNISTD_H=yes
22734 fi
22735
22736 done
22737
22738  if test "x$HAVE_SYS_TIMES_H" = "xyes" -a "x$HAVE_UNISTD_H" = "xyes"; then
22739   HAVE_SYS_TIMES_H_AND_UNISTD_H_TRUE=
22740   HAVE_SYS_TIMES_H_AND_UNISTD_H_FALSE='#'
22741 else
22742   HAVE_SYS_TIMES_H_AND_UNISTD_H_TRUE='#'
22743   HAVE_SYS_TIMES_H_AND_UNISTD_H_FALSE=
22744 fi
22745
22746
22747 for ac_header in process.h
22748 do :
22749   ac_fn_c_check_header_mongrel "$LINENO" "process.h" "ac_cv_header_process_h" "$ac_includes_default"
22750 if test "x$ac_cv_header_process_h" = xyes; then :
22751   cat >>confdefs.h <<_ACEOF
22752 #define HAVE_PROCESS_H 1
22753 _ACEOF
22754
22755 fi
22756
22757 done
22758
22759
22760 for ac_header in sys/utsname.h
22761 do :
22762   ac_fn_c_check_header_mongrel "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default"
22763 if test "x$ac_cv_header_sys_utsname_h" = xyes; then :
22764   cat >>confdefs.h <<_ACEOF
22765 #define HAVE_SYS_UTSNAME_H 1
22766 _ACEOF
22767
22768 fi
22769
22770 done
22771
22772
22773 for ac_header in stdio_ext.h
22774 do :
22775   ac_fn_c_check_header_mongrel "$LINENO" "stdio_ext.h" "ac_cv_header_stdio_ext_h" "$ac_includes_default"
22776 if test "x$ac_cv_header_stdio_ext_h" = xyes; then :
22777   cat >>confdefs.h <<_ACEOF
22778 #define HAVE_STDIO_EXT_H 1
22779 _ACEOF
22780
22781 fi
22782
22783 done
22784
22785
22786 for ac_header in pthread.h
22787 do :
22788   ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
22789 if test "x$ac_cv_header_pthread_h" = xyes; then :
22790   cat >>confdefs.h <<_ACEOF
22791 #define HAVE_PTHREAD_H 1
22792 _ACEOF
22793  HAVE_PTHREAD_H=yes
22794 fi
22795
22796 done
22797
22798  if test "x$HAVE_PTHREAD_H" = "xyes"; then
22799   HAVE_PTHREAD_H_TRUE=
22800   HAVE_PTHREAD_H_FALSE='#'
22801 else
22802   HAVE_PTHREAD_H_TRUE='#'
22803   HAVE_PTHREAD_H_FALSE=
22804 fi
22805
22806
22807 for ac_header in sys/prctl.h
22808 do :
22809   ac_fn_c_check_header_mongrel "$LINENO" "sys/prctl.h" "ac_cv_header_sys_prctl_h" "$ac_includes_default"
22810 if test "x$ac_cv_header_sys_prctl_h" = xyes; then :
22811   cat >>confdefs.h <<_ACEOF
22812 #define HAVE_SYS_PRCTL_H 1
22813 _ACEOF
22814  HAVE_SYS_PRCTL_H=yes
22815 fi
22816
22817 done
22818
22819
22820 for ac_header in valgrind/valgrind.h
22821 do :
22822   ac_fn_c_check_header_mongrel "$LINENO" "valgrind/valgrind.h" "ac_cv_header_valgrind_valgrind_h" "$ac_includes_default"
22823 if test "x$ac_cv_header_valgrind_valgrind_h" = xyes; then :
22824   cat >>confdefs.h <<_ACEOF
22825 #define HAVE_VALGRIND_VALGRIND_H 1
22826 _ACEOF
22827  HAVE_VALGRIND_H=yes
22828 fi
22829
22830 done
22831
22832
22833 for ac_header in winsock2.h
22834 do :
22835   ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
22836 if test "x$ac_cv_header_winsock2_h" = xyes; then :
22837   cat >>confdefs.h <<_ACEOF
22838 #define HAVE_WINSOCK2_H 1
22839 _ACEOF
22840  HAVE_WINSOCK2_H=yes
22841 fi
22842
22843 done
22844
22845  if test "x$HAVE_WINSOCK2_H" = "xyes"; then
22846   HAVE_WINSOCK2_H_TRUE=
22847   HAVE_WINSOCK2_H_FALSE='#'
22848 else
22849   HAVE_WINSOCK2_H_TRUE='#'
22850   HAVE_WINSOCK2_H_FALSE=
22851 fi
22852
22853 if test "x$HAVE_WINSOCK2_H" = "xyes"; then
22854   WIN32_LIBS="-lws2_32"
22855
22856 fi
22857
22858 if test "x$BUILD_TESTS" = "xyes"; then
22859
22860   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmpz_init_set_d in -lgmp" >&5
22861 $as_echo_n "checking for __gmpz_init_set_d in -lgmp... " >&6; }
22862 if ${ac_cv_lib_gmp___gmpz_init_set_d+:} false; then :
22863   $as_echo_n "(cached) " >&6
22864 else
22865   ac_check_lib_save_LIBS=$LIBS
22866 LIBS="-lgmp  $LIBS"
22867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22868 /* end confdefs.h.  */
22869
22870 /* Override any GCC internal prototype to avoid an error.
22871    Use char because int might match the return type of a GCC
22872    builtin and then its argument prototype would still apply.  */
22873 #ifdef __cplusplus
22874 extern "C"
22875 #endif
22876 char __gmpz_init_set_d ();
22877 int
22878 main ()
22879 {
22880 return __gmpz_init_set_d ();
22881   ;
22882   return 0;
22883 }
22884 _ACEOF
22885 if ac_fn_c_try_link "$LINENO"; then :
22886   ac_cv_lib_gmp___gmpz_init_set_d=yes
22887 else
22888   ac_cv_lib_gmp___gmpz_init_set_d=no
22889 fi
22890 rm -f core conftest.err conftest.$ac_objext \
22891     conftest$ac_exeext conftest.$ac_ext
22892 LIBS=$ac_check_lib_save_LIBS
22893 fi
22894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpz_init_set_d" >&5
22895 $as_echo "$ac_cv_lib_gmp___gmpz_init_set_d" >&6; }
22896 if test "x$ac_cv_lib_gmp___gmpz_init_set_d" = xyes; then :
22897   HAVE_GMP=yes
22898 else
22899   HAVE_GMP=no
22900 fi
22901
22902   if test "x$HAVE_GMP" = "xyes"; then
22903     ac_fn_c_check_header_mongrel "$LINENO" "gmp.h" "ac_cv_header_gmp_h" "$ac_includes_default"
22904 if test "x$ac_cv_header_gmp_h" = xyes; then :
22905   :
22906 else
22907   HAVE_GMP=no
22908 fi
22909
22910
22911     if test "x$HAVE_GMP" = "xyes"; then
22912             GMP_LIBS="-lgmp"
22913
22914
22915 $as_echo "#define HAVE_GMP 1" >>confdefs.h
22916
22917     else
22918       :
22919     fi
22920   else
22921     :
22922   fi
22923
22924
22925
22926
22927   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsl_rng_uniform_int in -lgsl" >&5
22928 $as_echo_n "checking for gsl_rng_uniform_int in -lgsl... " >&6; }
22929 if ${ac_cv_lib_gsl_gsl_rng_uniform_int+:} false; then :
22930   $as_echo_n "(cached) " >&6
22931 else
22932   ac_check_lib_save_LIBS=$LIBS
22933 LIBS="-lgsl -lgslcblas $LIBS"
22934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22935 /* end confdefs.h.  */
22936
22937 /* Override any GCC internal prototype to avoid an error.
22938    Use char because int might match the return type of a GCC
22939    builtin and then its argument prototype would still apply.  */
22940 #ifdef __cplusplus
22941 extern "C"
22942 #endif
22943 char gsl_rng_uniform_int ();
22944 int
22945 main ()
22946 {
22947 return gsl_rng_uniform_int ();
22948   ;
22949   return 0;
22950 }
22951 _ACEOF
22952 if ac_fn_c_try_link "$LINENO"; then :
22953   ac_cv_lib_gsl_gsl_rng_uniform_int=yes
22954 else
22955   ac_cv_lib_gsl_gsl_rng_uniform_int=no
22956 fi
22957 rm -f core conftest.err conftest.$ac_objext \
22958     conftest$ac_exeext conftest.$ac_ext
22959 LIBS=$ac_check_lib_save_LIBS
22960 fi
22961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gsl_gsl_rng_uniform_int" >&5
22962 $as_echo "$ac_cv_lib_gsl_gsl_rng_uniform_int" >&6; }
22963 if test "x$ac_cv_lib_gsl_gsl_rng_uniform_int" = xyes; then :
22964   HAVE_GSL=yes
22965 else
22966   HAVE_GSL=no
22967 fi
22968
22969   if test "x$HAVE_GSL" = "xyes"; then
22970     ac_fn_c_check_header_mongrel "$LINENO" "gsl/gsl_rng.h" "ac_cv_header_gsl_gsl_rng_h" "$ac_includes_default"
22971 if test "x$ac_cv_header_gsl_gsl_rng_h" = xyes; then :
22972   :
22973 else
22974   HAVE_GSL=no
22975 fi
22976
22977
22978     if test "x$HAVE_GSL" = "xyes"; then
22979             GSL_LIBS="-lgsl -lgslcblas"
22980
22981
22982 $as_echo "#define HAVE_GSL 1" >>confdefs.h
22983
22984     else
22985       :
22986     fi
22987   else
22988     :
22989   fi
22990
22991
22992
22993 fi
22994
22995
22996
22997
22998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __uint128_t" >&5
22999 $as_echo_n "checking for __uint128_t... " >&6; }
23000 if ${gst_cv_uint128_t+:} false; then :
23001   $as_echo_n "(cached) " >&6
23002 else
23003   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23004 /* end confdefs.h.  */
23005
23006 int
23007 main ()
23008 {
23009
23010       static __uint128_t v1 = 100;
23011       static __uint128_t v2 = 10;
23012       static __uint128_t u;
23013       u = v1 / v2;
23014
23015   ;
23016   return 0;
23017 }
23018 _ACEOF
23019 if ac_fn_c_try_link "$LINENO"; then :
23020
23021       gst_cv_uint128_t=yes
23022
23023 else
23024
23025       gst_cv_uint128_t=no
23026
23027 fi
23028 rm -f core conftest.err conftest.$ac_objext \
23029     conftest$ac_exeext conftest.$ac_ext
23030
23031 fi
23032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gst_cv_uint128_t" >&5
23033 $as_echo "$gst_cv_uint128_t" >&6; }
23034 if test x$gst_cv_uint128_t = xyes; then
23035
23036 $as_echo "#define HAVE_UINT128_T 1" >>confdefs.h
23037
23038 fi
23039
23040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff" >&5
23041 $as_echo_n "checking for tm_gmtoff... " >&6; }
23042 if test "$cross_compiling" = yes; then :
23043   have_tm_gmtoff="no (cross compiling)"
23044 else
23045   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23046 /* end confdefs.h.  */
23047
23048         #include <time.h>
23049         int main(void) {
23050           struct tm t;
23051           t.tm_gmtoff = 0;
23052           exit(0);
23053         }
23054 _ACEOF
23055 if ac_fn_c_try_run "$LINENO"; then :
23056   have_tm_gmtoff=yes
23057
23058 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
23059
23060 else
23061   have_tm_gmtoff=no
23062 fi
23063 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23064   conftest.$ac_objext conftest.beam conftest.$ac_ext
23065 fi
23066
23067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_tm_gmtoff" >&5
23068 $as_echo "$have_tm_gmtoff" >&6; }
23069
23070
23071
23072 for ac_func in gmtime_r
23073 do :
23074   ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
23075 if test "x$ac_cv_func_gmtime_r" = xyes; then :
23076   cat >>confdefs.h <<_ACEOF
23077 #define HAVE_GMTIME_R 1
23078 _ACEOF
23079
23080 fi
23081 done
23082
23083 for ac_func in localtime_r
23084 do :
23085   ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r"
23086 if test "x$ac_cv_func_localtime_r" = xyes; then :
23087   cat >>confdefs.h <<_ACEOF
23088 #define HAVE_LOCALTIME_R 1
23089 _ACEOF
23090
23091 fi
23092 done
23093
23094 for ac_func in sigaction
23095 do :
23096   ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
23097 if test "x$ac_cv_func_sigaction" = xyes; then :
23098   cat >>confdefs.h <<_ACEOF
23099 #define HAVE_SIGACTION 1
23100 _ACEOF
23101
23102 fi
23103 done
23104
23105
23106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
23107 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
23108 if ${ac_cv_sys_largefile_source+:} false; then :
23109   $as_echo_n "(cached) " >&6
23110 else
23111   while :; do
23112   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23113 /* end confdefs.h.  */
23114 #include <sys/types.h> /* for off_t */
23115      #include <stdio.h>
23116 int
23117 main ()
23118 {
23119 int (*fp) (FILE *, off_t, int) = fseeko;
23120      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
23121   ;
23122   return 0;
23123 }
23124 _ACEOF
23125 if ac_fn_c_try_link "$LINENO"; then :
23126   ac_cv_sys_largefile_source=no; break
23127 fi
23128 rm -f core conftest.err conftest.$ac_objext \
23129     conftest$ac_exeext conftest.$ac_ext
23130   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23131 /* end confdefs.h.  */
23132 #define _LARGEFILE_SOURCE 1
23133 #include <sys/types.h> /* for off_t */
23134      #include <stdio.h>
23135 int
23136 main ()
23137 {
23138 int (*fp) (FILE *, off_t, int) = fseeko;
23139      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
23140   ;
23141   return 0;
23142 }
23143 _ACEOF
23144 if ac_fn_c_try_link "$LINENO"; then :
23145   ac_cv_sys_largefile_source=1; break
23146 fi
23147 rm -f core conftest.err conftest.$ac_objext \
23148     conftest$ac_exeext conftest.$ac_ext
23149   ac_cv_sys_largefile_source=unknown
23150   break
23151 done
23152 fi
23153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
23154 $as_echo "$ac_cv_sys_largefile_source" >&6; }
23155 case $ac_cv_sys_largefile_source in #(
23156   no | unknown) ;;
23157   *)
23158 cat >>confdefs.h <<_ACEOF
23159 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
23160 _ACEOF
23161 ;;
23162 esac
23163 rm -rf conftest*
23164
23165 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
23166 # in glibc 2.1.3, but that breaks too many other things.
23167 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
23168 if test $ac_cv_sys_largefile_source != unknown; then
23169
23170 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
23171
23172 fi
23173
23174 for ac_func in ftello
23175 do :
23176   ac_fn_c_check_func "$LINENO" "ftello" "ac_cv_func_ftello"
23177 if test "x$ac_cv_func_ftello" = xyes; then :
23178   cat >>confdefs.h <<_ACEOF
23179 #define HAVE_FTELLO 1
23180 _ACEOF
23181
23182 fi
23183 done
23184
23185
23186 for ac_func in fgetpos
23187 do :
23188   ac_fn_c_check_func "$LINENO" "fgetpos" "ac_cv_func_fgetpos"
23189 if test "x$ac_cv_func_fgetpos" = xyes; then :
23190   cat >>confdefs.h <<_ACEOF
23191 #define HAVE_FGETPOS 1
23192 _ACEOF
23193
23194 fi
23195 done
23196
23197 for ac_func in fsetpos
23198 do :
23199   ac_fn_c_check_func "$LINENO" "fsetpos" "ac_cv_func_fsetpos"
23200 if test "x$ac_cv_func_fsetpos" = xyes; then :
23201   cat >>confdefs.h <<_ACEOF
23202 #define HAVE_FSETPOS 1
23203 _ACEOF
23204
23205 fi
23206 done
23207
23208
23209 for ac_func in poll
23210 do :
23211   ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
23212 if test "x$ac_cv_func_poll" = xyes; then :
23213   cat >>confdefs.h <<_ACEOF
23214 #define HAVE_POLL 1
23215 _ACEOF
23216
23217 fi
23218 done
23219
23220 for ac_func in ppoll
23221 do :
23222   ac_fn_c_check_func "$LINENO" "ppoll" "ac_cv_func_ppoll"
23223 if test "x$ac_cv_func_ppoll" = xyes; then :
23224   cat >>confdefs.h <<_ACEOF
23225 #define HAVE_PPOLL 1
23226 _ACEOF
23227
23228 fi
23229 done
23230
23231 for ac_func in pselect
23232 do :
23233   ac_fn_c_check_func "$LINENO" "pselect" "ac_cv_func_pselect"
23234 if test "x$ac_cv_func_pselect" = xyes; then :
23235   cat >>confdefs.h <<_ACEOF
23236 #define HAVE_PSELECT 1
23237 _ACEOF
23238
23239 fi
23240 done
23241
23242
23243 for ac_header in sys/poll.h
23244 do :
23245   ac_fn_c_check_header_mongrel "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "$ac_includes_default"
23246 if test "x$ac_cv_header_sys_poll_h" = xyes; then :
23247   cat >>confdefs.h <<_ACEOF
23248 #define HAVE_SYS_POLL_H 1
23249 _ACEOF
23250
23251 fi
23252
23253 done
23254
23255
23256
23257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken poll" >&5
23258 $as_echo_n "checking for broken poll... " >&6; }
23259 if test "$cross_compiling" = yes; then :
23260   broken_poll="no (cross compiling)"
23261 else
23262   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23263 /* end confdefs.h.  */
23264
23265         #include <stdlib.h>
23266         #include <fcntl.h>
23267         #include <poll.h>
23268         #ifdef HAVE_SYS_POLL_H
23269         #include <sys/poll.h>
23270         #endif
23271         int main(void) {
23272           struct pollfd fds[1];
23273           int fd;
23274           fd = open("/dev/null", 1);
23275           fds[0].fd = fd;
23276           fds[0].events = POLLIN;
23277           fds[0].revents = 0;
23278           if (poll(fds, 1, 0) < 0 || (fds[0].revents & POLLNVAL) != 0) {
23279                 exit(1);  /* Does not work for devices -- fail */
23280           }
23281           exit(0);
23282         }
23283 _ACEOF
23284 if ac_fn_c_try_run "$LINENO"; then :
23285   broken_poll=no
23286 else
23287   broken_poll=yes
23288
23289 $as_echo "#define BROKEN_POLL 1" >>confdefs.h
23290
23291 fi
23292 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23293   conftest.$ac_objext conftest.beam conftest.$ac_ext
23294 fi
23295
23296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $broken_poll" >&5
23297 $as_echo "$broken_poll" >&6; }
23298
23299
23300
23301
23302   for ac_header in $ac_header_list
23303 do :
23304   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23305 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
23306 "
23307 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23308   cat >>confdefs.h <<_ACEOF
23309 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23310 _ACEOF
23311
23312 fi
23313
23314 done
23315
23316
23317
23318
23319
23320
23321
23322
23323 for ac_func in getpagesize
23324 do :
23325   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
23326 if test "x$ac_cv_func_getpagesize" = xyes; then :
23327   cat >>confdefs.h <<_ACEOF
23328 #define HAVE_GETPAGESIZE 1
23329 _ACEOF
23330
23331 fi
23332 done
23333
23334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
23335 $as_echo_n "checking for working mmap... " >&6; }
23336 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
23337   $as_echo_n "(cached) " >&6
23338 else
23339   if test "$cross_compiling" = yes; then :
23340   ac_cv_func_mmap_fixed_mapped=no
23341 else
23342   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23343 /* end confdefs.h.  */
23344 $ac_includes_default
23345 /* malloc might have been renamed as rpl_malloc. */
23346 #undef malloc
23347
23348 /* Thanks to Mike Haertel and Jim Avera for this test.
23349    Here is a matrix of mmap possibilities:
23350         mmap private not fixed
23351         mmap private fixed at somewhere currently unmapped
23352         mmap private fixed at somewhere already mapped
23353         mmap shared not fixed
23354         mmap shared fixed at somewhere currently unmapped
23355         mmap shared fixed at somewhere already mapped
23356    For private mappings, we should verify that changes cannot be read()
23357    back from the file, nor mmap's back from the file at a different
23358    address.  (There have been systems where private was not correctly
23359    implemented like the infamous i386 svr4.0, and systems where the
23360    VM page cache was not coherent with the file system buffer cache
23361    like early versions of FreeBSD and possibly contemporary NetBSD.)
23362    For shared mappings, we should conversely verify that changes get
23363    propagated back to all the places they're supposed to be.
23364
23365    Grep wants private fixed already mapped.
23366    The main things grep needs to know about mmap are:
23367    * does it exist and is it safe to write into the mmap'd area
23368    * how to use it (BSD variants)  */
23369
23370 #include <fcntl.h>
23371 #include <sys/mman.h>
23372
23373 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
23374 char *malloc ();
23375 #endif
23376
23377 /* This mess was copied from the GNU getpagesize.h.  */
23378 #ifndef HAVE_GETPAGESIZE
23379 # ifdef _SC_PAGESIZE
23380 #  define getpagesize() sysconf(_SC_PAGESIZE)
23381 # else /* no _SC_PAGESIZE */
23382 #  ifdef HAVE_SYS_PARAM_H
23383 #   include <sys/param.h>
23384 #   ifdef EXEC_PAGESIZE
23385 #    define getpagesize() EXEC_PAGESIZE
23386 #   else /* no EXEC_PAGESIZE */
23387 #    ifdef NBPG
23388 #     define getpagesize() NBPG * CLSIZE
23389 #     ifndef CLSIZE
23390 #      define CLSIZE 1
23391 #     endif /* no CLSIZE */
23392 #    else /* no NBPG */
23393 #     ifdef NBPC
23394 #      define getpagesize() NBPC
23395 #     else /* no NBPC */
23396 #      ifdef PAGESIZE
23397 #       define getpagesize() PAGESIZE
23398 #      endif /* PAGESIZE */
23399 #     endif /* no NBPC */
23400 #    endif /* no NBPG */
23401 #   endif /* no EXEC_PAGESIZE */
23402 #  else /* no HAVE_SYS_PARAM_H */
23403 #   define getpagesize() 8192   /* punt totally */
23404 #  endif /* no HAVE_SYS_PARAM_H */
23405 # endif /* no _SC_PAGESIZE */
23406
23407 #endif /* no HAVE_GETPAGESIZE */
23408
23409 int
23410 main ()
23411 {
23412   char *data, *data2, *data3;
23413   const char *cdata2;
23414   int i, pagesize;
23415   int fd, fd2;
23416
23417   pagesize = getpagesize ();
23418
23419   /* First, make a file with some known garbage in it. */
23420   data = (char *) malloc (pagesize);
23421   if (!data)
23422     return 1;
23423   for (i = 0; i < pagesize; ++i)
23424     *(data + i) = rand ();
23425   umask (0);
23426   fd = creat ("conftest.mmap", 0600);
23427   if (fd < 0)
23428     return 2;
23429   if (write (fd, data, pagesize) != pagesize)
23430     return 3;
23431   close (fd);
23432
23433   /* Next, check that the tail of a page is zero-filled.  File must have
23434      non-zero length, otherwise we risk SIGBUS for entire page.  */
23435   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
23436   if (fd2 < 0)
23437     return 4;
23438   cdata2 = "";
23439   if (write (fd2, cdata2, 1) != 1)
23440     return 5;
23441   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
23442   if (data2 == MAP_FAILED)
23443     return 6;
23444   for (i = 0; i < pagesize; ++i)
23445     if (*(data2 + i))
23446       return 7;
23447   close (fd2);
23448   if (munmap (data2, pagesize))
23449     return 8;
23450
23451   /* Next, try to mmap the file at a fixed address which already has
23452      something else allocated at it.  If we can, also make sure that
23453      we see the same garbage.  */
23454   fd = open ("conftest.mmap", O_RDWR);
23455   if (fd < 0)
23456     return 9;
23457   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
23458                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
23459     return 10;
23460   for (i = 0; i < pagesize; ++i)
23461     if (*(data + i) != *(data2 + i))
23462       return 11;
23463
23464   /* Finally, make sure that changes to the mapped area do not
23465      percolate back to the file as seen by read().  (This is a bug on
23466      some variants of i386 svr4.0.)  */
23467   for (i = 0; i < pagesize; ++i)
23468     *(data2 + i) = *(data2 + i) + 1;
23469   data3 = (char *) malloc (pagesize);
23470   if (!data3)
23471     return 12;
23472   if (read (fd, data3, pagesize) != pagesize)
23473     return 13;
23474   for (i = 0; i < pagesize; ++i)
23475     if (*(data + i) != *(data3 + i))
23476       return 14;
23477   close (fd);
23478   return 0;
23479 }
23480 _ACEOF
23481 if ac_fn_c_try_run "$LINENO"; then :
23482   ac_cv_func_mmap_fixed_mapped=yes
23483 else
23484   ac_cv_func_mmap_fixed_mapped=no
23485 fi
23486 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23487   conftest.$ac_objext conftest.beam conftest.$ac_ext
23488 fi
23489
23490 fi
23491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
23492 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
23493 if test $ac_cv_func_mmap_fixed_mapped = yes; then
23494
23495 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
23496
23497 fi
23498 rm -f conftest.mmap conftest.txt
23499
23500  if test "x$ac_cv_func_mmap_fixed_mapped" = "xyes"; then
23501   HAVE_MMAP_TRUE=
23502   HAVE_MMAP_FALSE='#'
23503 else
23504   HAVE_MMAP_TRUE='#'
23505   HAVE_MMAP_FALSE=
23506 fi
23507
23508
23509 for ac_func in posix_memalign
23510 do :
23511   ac_fn_c_check_func "$LINENO" "posix_memalign" "ac_cv_func_posix_memalign"
23512 if test "x$ac_cv_func_posix_memalign" = xyes; then :
23513   cat >>confdefs.h <<_ACEOF
23514 #define HAVE_POSIX_MEMALIGN 1
23515 _ACEOF
23516
23517 fi
23518 done
23519
23520 for ac_func in getpagesize
23521 do :
23522   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
23523 if test "x$ac_cv_func_getpagesize" = xyes; then :
23524   cat >>confdefs.h <<_ACEOF
23525 #define HAVE_GETPAGESIZE 1
23526 _ACEOF
23527
23528 fi
23529 done
23530
23531
23532 for ac_func in clock_gettime
23533 do :
23534   ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
23535 if test "x$ac_cv_func_clock_gettime" = xyes; then :
23536   cat >>confdefs.h <<_ACEOF
23537 #define HAVE_CLOCK_GETTIME 1
23538 _ACEOF
23539
23540 else
23541
23542   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
23543 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
23544 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
23545   $as_echo_n "(cached) " >&6
23546 else
23547   ac_check_lib_save_LIBS=$LIBS
23548 LIBS="-lrt  $LIBS"
23549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23550 /* end confdefs.h.  */
23551
23552 /* Override any GCC internal prototype to avoid an error.
23553    Use char because int might match the return type of a GCC
23554    builtin and then its argument prototype would still apply.  */
23555 #ifdef __cplusplus
23556 extern "C"
23557 #endif
23558 char clock_gettime ();
23559 int
23560 main ()
23561 {
23562 return clock_gettime ();
23563   ;
23564   return 0;
23565 }
23566 _ACEOF
23567 if ac_fn_c_try_link "$LINENO"; then :
23568   ac_cv_lib_rt_clock_gettime=yes
23569 else
23570   ac_cv_lib_rt_clock_gettime=no
23571 fi
23572 rm -f core conftest.err conftest.$ac_objext \
23573     conftest$ac_exeext conftest.$ac_ext
23574 LIBS=$ac_check_lib_save_LIBS
23575 fi
23576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
23577 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
23578 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
23579
23580     $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
23581
23582     LIBS="$LIBS -lrt"
23583
23584 fi
23585
23586
23587 fi
23588 done
23589
23590
23591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix timers" >&5
23592 $as_echo_n "checking for posix timers... " >&6; }
23593 if ${gst_cv_posix_timers+:} false; then :
23594   $as_echo_n "(cached) " >&6
23595 else
23596   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23597 /* end confdefs.h.  */
23598
23599 #include <time.h>
23600 #ifdef HAVE_UNISTD_H
23601 #include <unistd.h>
23602 #endif
23603
23604 int
23605 main ()
23606 {
23607
23608 #if !defined(_POSIX_TIMERS) || _POSIX_TIMERS < 0 || !defined(CLOCK_REALTIME)
23609 #error Either _POSIX_TIMERS or CLOCK_REALTIME not defined
23610 #endif
23611
23612   ;
23613   return 0;
23614 }
23615 _ACEOF
23616 if ac_fn_c_try_compile "$LINENO"; then :
23617
23618       gst_cv_posix_timers=yes
23619
23620 else
23621
23622       gst_cv_posix_timers=no
23623
23624 fi
23625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23626
23627 fi
23628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gst_cv_posix_timers" >&5
23629 $as_echo "$gst_cv_posix_timers" >&6; }
23630
23631 if test "$gst_cv_posix_timers" = "yes"; then
23632
23633 $as_echo "#define HAVE_POSIX_TIMERS 1" >>confdefs.h
23634
23635   GST_HAVE_POSIX_TIMERS_DEFINE="#define GST_HAVE_POSIX_TIMERS 1"
23636 else
23637   GST_HAVE_POSIX_TIMERS_DEFINE="#define GST_HAVE_POSIX_TIMERS 0"
23638 fi
23639
23640  if test "$gst_cv_posix_timers" = "yes"; then
23641   GST_HAVE_POSIX_TIMERS_TRUE=
23642   GST_HAVE_POSIX_TIMERS_FALSE='#'
23643 else
23644   GST_HAVE_POSIX_TIMERS_TRUE='#'
23645   GST_HAVE_POSIX_TIMERS_FALSE=
23646 fi
23647
23648
23649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for monotonic clock" >&5
23650 $as_echo_n "checking for monotonic clock... " >&6; }
23651 if ${gst_cv_monotonic_clock+:} false; then :
23652   $as_echo_n "(cached) " >&6
23653 else
23654   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23655 /* end confdefs.h.  */
23656
23657 #include <time.h>
23658 #ifdef HAVE_UNISTD_H
23659 #include <unistd.h>
23660 #endif
23661
23662 int
23663 main ()
23664 {
23665
23666 #if !defined(_POSIX_MONOTONIC_CLOCK) || _POSIX_MONOTONIC_CLOCK < 0 || !defined(CLOCK_MONOTONIC)
23667 #error Either _POSIX_MONOTONIC_CLOCK or CLOCK_MONOTONIC not defined
23668 #endif
23669
23670   ;
23671   return 0;
23672 }
23673 _ACEOF
23674 if ac_fn_c_try_compile "$LINENO"; then :
23675
23676       gst_cv_monotonic_clock=yes
23677
23678 else
23679
23680       gst_cv_monotonic_clock=no
23681
23682 fi
23683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23684
23685 fi
23686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gst_cv_monotonic_clock" >&5
23687 $as_echo "$gst_cv_monotonic_clock" >&6; }
23688
23689 if test "$gst_cv_monotonic_clock" = "yes"; then
23690
23691 $as_echo "#define HAVE_MONOTONIC_CLOCK 1" >>confdefs.h
23692
23693   GST_HAVE_MONOTONIC_CLOCK_DEFINE="#define GST_HAVE_MONOTONIC_CLOCK 1"
23694 else
23695   GST_HAVE_MONOTONIC_CLOCK_DEFINE="#define GST_HAVE_MONOTONIC_CLOCK 0"
23696 fi
23697
23698  if test "$gst_cv_monotonic_clock" = "yes"; then
23699   GST_HAVE_MONOTONIC_CLOCK_TRUE=
23700   GST_HAVE_MONOTONIC_CLOCK_FALSE='#'
23701 else
23702   GST_HAVE_MONOTONIC_CLOCK_TRUE='#'
23703   GST_HAVE_MONOTONIC_CLOCK_FALSE=
23704 fi
23705
23706
23707
23708     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC implements __PRETTY_FUNCTION__" >&5
23709 $as_echo_n "checking whether $CC implements __PRETTY_FUNCTION__... " >&6; }
23710   if ${gst_cv_have_pretty_function+:} false; then :
23711   $as_echo_n "(cached) " >&6
23712 else
23713
23714     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23715 /* end confdefs.h.  */
23716 #include <stdio.h>
23717 int
23718 main ()
23719 {
23720 printf("%s", __PRETTY_FUNCTION__);
23721   ;
23722   return 0;
23723 }
23724 _ACEOF
23725 if ac_fn_c_try_link "$LINENO"; then :
23726   gst_cv_have_pretty_function=yes
23727 else
23728   gst_cv_have_pretty_function=no
23729 fi
23730 rm -f core conftest.err conftest.$ac_objext \
23731     conftest$ac_exeext conftest.$ac_ext
23732
23733 fi
23734
23735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gst_cv_have_pretty_function" >&5
23736 $as_echo "$gst_cv_have_pretty_function" >&6; }
23737   if test "$gst_cv_have_pretty_function" = yes; then
23738
23739 $as_echo "#define HAVE_PRETTY_FUNCTION 1" >>confdefs.h
23740
23741   fi
23742
23743   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC implements __FUNCTION__" >&5
23744 $as_echo_n "checking whether $CC implements __FUNCTION__... " >&6; }
23745   if ${gst_cv_have_function+:} false; then :
23746   $as_echo_n "(cached) " >&6
23747 else
23748
23749     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23750 /* end confdefs.h.  */
23751 #include <stdio.h>
23752 int
23753 main ()
23754 {
23755 printf("%s", __FUNCTION__);
23756   ;
23757   return 0;
23758 }
23759 _ACEOF
23760 if ac_fn_c_try_link "$LINENO"; then :
23761   gst_cv_have_function=yes
23762 else
23763   gst_cv_have_function=no
23764 fi
23765 rm -f core conftest.err conftest.$ac_objext \
23766     conftest$ac_exeext conftest.$ac_ext
23767
23768 fi
23769
23770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gst_cv_have_function" >&5
23771 $as_echo "$gst_cv_have_function" >&6; }
23772   if test "$gst_cv_have_function" = yes; then
23773
23774 $as_echo "#define HAVE_FUNCTION 1" >>confdefs.h
23775
23776   fi
23777
23778   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC implements __func__" >&5
23779 $as_echo_n "checking whether $CC implements __func__... " >&6; }
23780   if ${gst_cv_have_func+:} false; then :
23781   $as_echo_n "(cached) " >&6
23782 else
23783
23784     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23785 /* end confdefs.h.  */
23786 #include <stdio.h>
23787 int
23788 main ()
23789 {
23790 printf("%s", __func__);
23791   ;
23792   return 0;
23793 }
23794 _ACEOF
23795 if ac_fn_c_try_link "$LINENO"; then :
23796   gst_cv_have_func=yes
23797 else
23798   gst_cv_have_func=no
23799 fi
23800 rm -f core conftest.err conftest.$ac_objext \
23801     conftest$ac_exeext conftest.$ac_ext
23802
23803 fi
23804
23805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gst_cv_have_func" >&5
23806 $as_echo "$gst_cv_have_func" >&6; }
23807   if test "$gst_cv_have_func" = yes; then
23808
23809 $as_echo "#define HAVE_FUNC 1" >>confdefs.h
23810
23811   fi
23812
23813   if test "$gst_cv_have_pretty_function" = yes; then
23814     function=__PRETTY_FUNCTION__
23815   else
23816     if test "$gst_cv_have_function" = yes; then
23817       function=__FUNCTION__
23818     else
23819       if test "$gst_cv_have_func" = yes; then
23820         function=__func__
23821       else
23822         function=\"\"
23823       fi
23824     fi
23825   fi
23826
23827 cat >>confdefs.h <<_ACEOF
23828 #define GST_FUNCTION $function
23829 _ACEOF
23830
23831
23832
23833 for ac_func in register_printf_specifier register_printf_function
23834 do :
23835   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23836 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23837 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23838   cat >>confdefs.h <<_ACEOF
23839 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23840 _ACEOF
23841  HAVE_PRINTF_EXTENSION=yes
23842 fi
23843 done
23844
23845
23846 if test "$HAVE_PRINTF_EXTENSION" = yes; then
23847   GST_PRINTF_EXTENSION_POINTER_FORMAT_DEFINE="#define GST_PTR_FORMAT \"P\""
23848   GST_PRINTF_EXTENSION_SEGMENT_FORMAT_DEFINE="#define GST_SEGMENT_FORMAT \"Q\""
23849   GST_USING_PRINTF_EXTENSION_DEFINE="#define GST_USING_PRINTF_EXTENSION"
23850
23851 $as_echo "#define HAVE_PRINTF_EXTENSION 1" >>confdefs.h
23852
23853 else
23854     GST_PRINTF_EXTENSION_POINTER_FORMAT_DEFINE="#define GST_PTR_FORMAT \"p\""
23855     GST_PRINTF_EXTENSION_SEGMENT_FORMAT_DEFINE="#define GST_SEGMENT_FORMAT \"p\""
23856     GST_USING_PRINTF_EXTENSION_DEFINE="#undef GST_USING_PRINTF_EXTENSION"
23857 fi
23858
23859
23860
23861
23862 save_cflags="$CFLAGS"
23863 CFLAGS="$CFLAGS -D_GNU_SOURCE"
23864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dladdr in -ldl" >&5
23865 $as_echo_n "checking for dladdr in -ldl... " >&6; }
23866 if ${ac_cv_lib_dl_dladdr+:} false; then :
23867   $as_echo_n "(cached) " >&6
23868 else
23869   ac_check_lib_save_LIBS=$LIBS
23870 LIBS="-ldl  $LIBS"
23871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23872 /* end confdefs.h.  */
23873
23874 /* Override any GCC internal prototype to avoid an error.
23875    Use char because int might match the return type of a GCC
23876    builtin and then its argument prototype would still apply.  */
23877 #ifdef __cplusplus
23878 extern "C"
23879 #endif
23880 char dladdr ();
23881 int
23882 main ()
23883 {
23884 return dladdr ();
23885   ;
23886   return 0;
23887 }
23888 _ACEOF
23889 if ac_fn_c_try_link "$LINENO"; then :
23890   ac_cv_lib_dl_dladdr=yes
23891 else
23892   ac_cv_lib_dl_dladdr=no
23893 fi
23894 rm -f core conftest.err conftest.$ac_objext \
23895     conftest$ac_exeext conftest.$ac_ext
23896 LIBS=$ac_check_lib_save_LIBS
23897 fi
23898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dladdr" >&5
23899 $as_echo "$ac_cv_lib_dl_dladdr" >&6; }
23900 if test "x$ac_cv_lib_dl_dladdr" = xyes; then :
23901
23902 $as_echo "#define HAVE_DLADDR 1" >>confdefs.h
23903
23904    LIBS="$LIBS -ldl"
23905 fi
23906
23907 CFLAGS="$save_cflags"
23908
23909 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
23910 if test "x$ac_cv_func_socket" = xyes; then :
23911
23912 else
23913   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
23914 $as_echo_n "checking for socket in -lsocket... " >&6; }
23915 if ${ac_cv_lib_socket_socket+:} false; then :
23916   $as_echo_n "(cached) " >&6
23917 else
23918   ac_check_lib_save_LIBS=$LIBS
23919 LIBS="-lsocket  $LIBS"
23920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23921 /* end confdefs.h.  */
23922
23923 /* Override any GCC internal prototype to avoid an error.
23924    Use char because int might match the return type of a GCC
23925    builtin and then its argument prototype would still apply.  */
23926 #ifdef __cplusplus
23927 extern "C"
23928 #endif
23929 char socket ();
23930 int
23931 main ()
23932 {
23933 return socket ();
23934   ;
23935   return 0;
23936 }
23937 _ACEOF
23938 if ac_fn_c_try_link "$LINENO"; then :
23939   ac_cv_lib_socket_socket=yes
23940 else
23941   ac_cv_lib_socket_socket=no
23942 fi
23943 rm -f core conftest.err conftest.$ac_objext \
23944     conftest$ac_exeext conftest.$ac_ext
23945 LIBS=$ac_check_lib_save_LIBS
23946 fi
23947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
23948 $as_echo "$ac_cv_lib_socket_socket" >&6; }
23949 if test "x$ac_cv_lib_socket_socket" = xyes; then :
23950   cat >>confdefs.h <<_ACEOF
23951 #define HAVE_LIBSOCKET 1
23952 _ACEOF
23953
23954   LIBS="-lsocket $LIBS"
23955
23956 fi
23957
23958 fi
23959
23960 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
23961 if test "x$ac_cv_func_gethostbyname" = xyes; then :
23962
23963 else
23964   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
23965 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
23966 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
23967   $as_echo_n "(cached) " >&6
23968 else
23969   ac_check_lib_save_LIBS=$LIBS
23970 LIBS="-lnsl  $LIBS"
23971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23972 /* end confdefs.h.  */
23973
23974 /* Override any GCC internal prototype to avoid an error.
23975    Use char because int might match the return type of a GCC
23976    builtin and then its argument prototype would still apply.  */
23977 #ifdef __cplusplus
23978 extern "C"
23979 #endif
23980 char gethostbyname ();
23981 int
23982 main ()
23983 {
23984 return gethostbyname ();
23985   ;
23986   return 0;
23987 }
23988 _ACEOF
23989 if ac_fn_c_try_link "$LINENO"; then :
23990   ac_cv_lib_nsl_gethostbyname=yes
23991 else
23992   ac_cv_lib_nsl_gethostbyname=no
23993 fi
23994 rm -f core conftest.err conftest.$ac_objext \
23995     conftest$ac_exeext conftest.$ac_ext
23996 LIBS=$ac_check_lib_save_LIBS
23997 fi
23998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
23999 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
24000 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
24001   cat >>confdefs.h <<_ACEOF
24002 #define HAVE_LIBNSL 1
24003 _ACEOF
24004
24005   LIBS="-lnsl $LIBS"
24006
24007 fi
24008
24009 fi
24010
24011
24012 save_libs="$LIBS"
24013 ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
24014 if test "x$ac_cv_func_inet_aton" = xyes; then :
24015
24016 else
24017   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lnsl" >&5
24018 $as_echo_n "checking for inet_aton in -lnsl... " >&6; }
24019 if ${ac_cv_lib_nsl_inet_aton+:} false; then :
24020   $as_echo_n "(cached) " >&6
24021 else
24022   ac_check_lib_save_LIBS=$LIBS
24023 LIBS="-lnsl  $LIBS"
24024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24025 /* end confdefs.h.  */
24026
24027 /* Override any GCC internal prototype to avoid an error.
24028    Use char because int might match the return type of a GCC
24029    builtin and then its argument prototype would still apply.  */
24030 #ifdef __cplusplus
24031 extern "C"
24032 #endif
24033 char inet_aton ();
24034 int
24035 main ()
24036 {
24037 return inet_aton ();
24038   ;
24039   return 0;
24040 }
24041 _ACEOF
24042 if ac_fn_c_try_link "$LINENO"; then :
24043   ac_cv_lib_nsl_inet_aton=yes
24044 else
24045   ac_cv_lib_nsl_inet_aton=no
24046 fi
24047 rm -f core conftest.err conftest.$ac_objext \
24048     conftest$ac_exeext conftest.$ac_ext
24049 LIBS=$ac_check_lib_save_LIBS
24050 fi
24051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_aton" >&5
24052 $as_echo "$ac_cv_lib_nsl_inet_aton" >&6; }
24053 if test "x$ac_cv_lib_nsl_inet_aton" = xyes; then :
24054   cat >>confdefs.h <<_ACEOF
24055 #define HAVE_LIBNSL 1
24056 _ACEOF
24057
24058   LIBS="-lnsl $LIBS"
24059
24060 else
24061   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lsocket" >&5
24062 $as_echo_n "checking for inet_aton in -lsocket... " >&6; }
24063 if ${ac_cv_lib_socket_inet_aton+:} false; then :
24064   $as_echo_n "(cached) " >&6
24065 else
24066   ac_check_lib_save_LIBS=$LIBS
24067 LIBS="-lsocket  $LIBS"
24068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24069 /* end confdefs.h.  */
24070
24071 /* Override any GCC internal prototype to avoid an error.
24072    Use char because int might match the return type of a GCC
24073    builtin and then its argument prototype would still apply.  */
24074 #ifdef __cplusplus
24075 extern "C"
24076 #endif
24077 char inet_aton ();
24078 int
24079 main ()
24080 {
24081 return inet_aton ();
24082   ;
24083   return 0;
24084 }
24085 _ACEOF
24086 if ac_fn_c_try_link "$LINENO"; then :
24087   ac_cv_lib_socket_inet_aton=yes
24088 else
24089   ac_cv_lib_socket_inet_aton=no
24090 fi
24091 rm -f core conftest.err conftest.$ac_objext \
24092     conftest$ac_exeext conftest.$ac_ext
24093 LIBS=$ac_check_lib_save_LIBS
24094 fi
24095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_inet_aton" >&5
24096 $as_echo "$ac_cv_lib_socket_inet_aton" >&6; }
24097 if test "x$ac_cv_lib_socket_inet_aton" = xyes; then :
24098   cat >>confdefs.h <<_ACEOF
24099 #define HAVE_LIBSOCKET 1
24100 _ACEOF
24101
24102   LIBS="-lsocket $LIBS"
24103
24104 else
24105   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5
24106 $as_echo_n "checking for inet_aton in -lresolv... " >&6; }
24107 if ${ac_cv_lib_resolv_inet_aton+:} false; then :
24108   $as_echo_n "(cached) " >&6
24109 else
24110   ac_check_lib_save_LIBS=$LIBS
24111 LIBS="-lresolv  $LIBS"
24112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24113 /* end confdefs.h.  */
24114
24115 /* Override any GCC internal prototype to avoid an error.
24116    Use char because int might match the return type of a GCC
24117    builtin and then its argument prototype would still apply.  */
24118 #ifdef __cplusplus
24119 extern "C"
24120 #endif
24121 char inet_aton ();
24122 int
24123 main ()
24124 {
24125 return inet_aton ();
24126   ;
24127   return 0;
24128 }
24129 _ACEOF
24130 if ac_fn_c_try_link "$LINENO"; then :
24131   ac_cv_lib_resolv_inet_aton=yes
24132 else
24133   ac_cv_lib_resolv_inet_aton=no
24134 fi
24135 rm -f core conftest.err conftest.$ac_objext \
24136     conftest$ac_exeext conftest.$ac_ext
24137 LIBS=$ac_check_lib_save_LIBS
24138 fi
24139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5
24140 $as_echo "$ac_cv_lib_resolv_inet_aton" >&6; }
24141 if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then :
24142   cat >>confdefs.h <<_ACEOF
24143 #define HAVE_LIBRESOLV 1
24144 _ACEOF
24145
24146   LIBS="-lresolv $LIBS"
24147
24148 else
24149
24150 $as_echo "#define NO_INET_ATON 1" >>confdefs.h
24151
24152 fi
24153
24154 fi
24155
24156 fi
24157
24158 fi
24159
24160 INET_ATON_LIBS=$LIBS
24161
24162 LIBS="$save_libs"
24163
24164
24165 GLIB_REQ=2.24
24166
24167
24168
24169
24170     GLIB_REQ=$GLIB_REQ
24171   if test "x$GLIB_REQ" = "x"
24172   then
24173     as_fn_error $? "Please specify a required version for GLib 2.0" "$LINENO" 5
24174   fi
24175
24176
24177
24178   which="glib-2.0 >= $GLIB_REQ gobject-2.0 gthread-2.0 gmodule-no-export-2.0"
24179     required="no"
24180
24181
24182 pkg_failed=no
24183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
24184 $as_echo_n "checking for GLIB... " >&6; }
24185
24186 if test -n "$PKG_CONFIG"; then
24187     if test -n "$GLIB_CFLAGS"; then
24188         pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
24189     else
24190         if test -n "$PKG_CONFIG" && \
24191     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$which\""; } >&5
24192   ($PKG_CONFIG --exists --print-errors "$which") 2>&5
24193   ac_status=$?
24194   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24195   test $ac_status = 0; }; then
24196   pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "$which" 2>/dev/null`
24197 else
24198   pkg_failed=yes
24199 fi
24200     fi
24201 else
24202         pkg_failed=untried
24203 fi
24204 if test -n "$PKG_CONFIG"; then
24205     if test -n "$GLIB_LIBS"; then
24206         pkg_cv_GLIB_LIBS="$GLIB_LIBS"
24207     else
24208         if test -n "$PKG_CONFIG" && \
24209     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$which\""; } >&5
24210   ($PKG_CONFIG --exists --print-errors "$which") 2>&5
24211   ac_status=$?
24212   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24213   test $ac_status = 0; }; then
24214   pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "$which" 2>/dev/null`
24215 else
24216   pkg_failed=yes
24217 fi
24218     fi
24219 else
24220         pkg_failed=untried
24221 fi
24222
24223
24224
24225 if test $pkg_failed = yes; then
24226
24227 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24228         _pkg_short_errors_supported=yes
24229 else
24230         _pkg_short_errors_supported=no
24231 fi
24232         if test $_pkg_short_errors_supported = yes; then
24233                 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$which"`
24234         else
24235                 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$which"`
24236         fi
24237         # Put the nasty error message in config.log where it belongs
24238         echo "$GLIB_PKG_ERRORS" >&5
24239
24240         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24241 $as_echo "no" >&6; }
24242
24243       HAVE_GLIB="no"
24244       if test "x$required" = "xyes"; then
24245         as_fn_error $? "$GLIB_PKG_ERRORS" "$LINENO" 5
24246       else
24247         { $as_echo "$as_me:${as_lineno-$LINENO}: $GLIB_PKG_ERRORS" >&5
24248 $as_echo "$as_me: $GLIB_PKG_ERRORS" >&6;}
24249       fi
24250
24251 elif test $pkg_failed = untried; then
24252
24253       HAVE_GLIB="no"
24254       if test "x$required" = "xyes"; then
24255         as_fn_error $? "$GLIB_PKG_ERRORS" "$LINENO" 5
24256       else
24257         { $as_echo "$as_me:${as_lineno-$LINENO}: $GLIB_PKG_ERRORS" >&5
24258 $as_echo "$as_me: $GLIB_PKG_ERRORS" >&6;}
24259       fi
24260
24261 else
24262         GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
24263         GLIB_LIBS=$pkg_cv_GLIB_LIBS
24264         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24265 $as_echo "yes" >&6; }
24266
24267       HAVE_GLIB="yes"
24268
24269 fi
24270
24271
24272
24273   if test "x$HAVE_GLIB" = "xno"; then
24274     as_fn_error $? "This package requires GLib >= $GLIB_REQ to compile." "$LINENO" 5
24275   fi
24276
24277         GLIB_EXTRA_CFLAGS="$GLIB_EXTRA_CFLAGS -DG_THREADS_MANDATORY"
24278
24279     if test "x$PACKAGE_VERSION_NANO" = "x1"; then
24280     GLIB_EXTRA_CFLAGS="$GLIB_EXTRA_CFLAGS -DG_DISABLE_DEPRECATED"
24281   fi
24282
24283   # Check whether --enable-gobject-cast-checks was given.
24284 if test "${enable_gobject_cast_checks+set}" = set; then :
24285   enableval=$enable_gobject_cast_checks;
24286 else
24287   enable_gobject_cast_checks=auto
24288 fi
24289
24290
24291   if test "x$enable_gobject_cast_checks" = "xauto"; then
24292         if test "x$PACKAGE_VERSION_NANO" = "x1"; then
24293       enable_gobject_cast_checks=yes
24294     else
24295       enable_gobject_cast_checks=no
24296     fi
24297   fi
24298
24299   if test "x$enable_gobject_cast_checks" = "xno"; then
24300     GLIB_EXTRA_CFLAGS="$GLIB_EXTRA_CFLAGS -DG_DISABLE_CAST_CHECKS"
24301   fi
24302
24303   # Check whether --enable-glib-asserts was given.
24304 if test "${enable_glib_asserts+set}" = set; then :
24305   enableval=$enable_glib_asserts;
24306 else
24307   enable_glib_assertions=auto
24308 fi
24309
24310
24311   if test "x$enable_glib_assertions" = "xauto"; then
24312         if test "x$PACKAGE_VERSION_NANO" = "x1"; then
24313       enable_glib_assertions=yes
24314     else
24315       enable_glib_assertions=no
24316     fi
24317   fi
24318
24319   if test "x$enable_glib_assertions" = "xno"; then
24320     GLIB_EXTRA_CFLAGS="$GLIB_EXTRA_CFLAGS -DG_DISABLE_ASSERT"
24321   fi
24322
24323
24324   GIVEN_CFLAGS=$GLIB_CFLAGS
24325   INCLUDE_DIRS=`echo | cpp -v 2>&1`
24326
24327       INCLUDE_DIRS=`echo $INCLUDE_DIRS | sed -e 's/.*<...> search starts here://' | sed -e 's/End of search list.*//'`
24328   for dir in $INCLUDE_DIRS; do
24329         GIVEN_CFLAGS=`echo $GIVEN_CFLAGS | sed -e "s#-I$dir ##"`
24330   done
24331   GLIB_CFLAGS=$GIVEN_CFLAGS
24332
24333
24334
24335
24336
24337 GST_HAVE_GLIB_2_8_DEFINE="#define GST_HAVE_GLIB_2_8 1"
24338
24339
24340
24341 pkg_failed=no
24342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB_ONLY" >&5
24343 $as_echo_n "checking for GLIB_ONLY... " >&6; }
24344
24345 if test -n "$PKG_CONFIG"; then
24346     if test -n "$GLIB_ONLY_CFLAGS"; then
24347         pkg_cv_GLIB_ONLY_CFLAGS="$GLIB_ONLY_CFLAGS"
24348     else
24349         if test -n "$PKG_CONFIG" && \
24350     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= \$GLIB_REQ\""; } >&5
24351   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= $GLIB_REQ") 2>&5
24352   ac_status=$?
24353   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24354   test $ac_status = 0; }; then
24355   pkg_cv_GLIB_ONLY_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= $GLIB_REQ" 2>/dev/null`
24356 else
24357   pkg_failed=yes
24358 fi
24359     fi
24360 else
24361         pkg_failed=untried
24362 fi
24363 if test -n "$PKG_CONFIG"; then
24364     if test -n "$GLIB_ONLY_LIBS"; then
24365         pkg_cv_GLIB_ONLY_LIBS="$GLIB_ONLY_LIBS"
24366     else
24367         if test -n "$PKG_CONFIG" && \
24368     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= \$GLIB_REQ\""; } >&5
24369   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= $GLIB_REQ") 2>&5
24370   ac_status=$?
24371   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24372   test $ac_status = 0; }; then
24373   pkg_cv_GLIB_ONLY_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= $GLIB_REQ" 2>/dev/null`
24374 else
24375   pkg_failed=yes
24376 fi
24377     fi
24378 else
24379         pkg_failed=untried
24380 fi
24381
24382
24383
24384 if test $pkg_failed = yes; then
24385
24386 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24387         _pkg_short_errors_supported=yes
24388 else
24389         _pkg_short_errors_supported=no
24390 fi
24391         if test $_pkg_short_errors_supported = yes; then
24392                 GLIB_ONLY_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glib-2.0 >= $GLIB_REQ"`
24393         else
24394                 GLIB_ONLY_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= $GLIB_REQ"`
24395         fi
24396         # Put the nasty error message in config.log where it belongs
24397         echo "$GLIB_ONLY_PKG_ERRORS" >&5
24398
24399         as_fn_error $? "Package requirements (glib-2.0 >= $GLIB_REQ) were not met:
24400
24401 $GLIB_ONLY_PKG_ERRORS
24402
24403 Consider adjusting the PKG_CONFIG_PATH environment variable if you
24404 installed software in a non-standard prefix.
24405
24406 Alternatively, you may set the environment variables GLIB_ONLY_CFLAGS
24407 and GLIB_ONLY_LIBS to avoid the need to call pkg-config.
24408 See the pkg-config man page for more details.
24409 " "$LINENO" 5
24410 elif test $pkg_failed = untried; then
24411         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24412 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24413 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
24414 is in your PATH or set the PKG_CONFIG environment variable to the full
24415 path to pkg-config.
24416
24417 Alternatively, you may set the environment variables GLIB_ONLY_CFLAGS
24418 and GLIB_ONLY_LIBS to avoid the need to call pkg-config.
24419 See the pkg-config man page for more details.
24420
24421 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
24422 See \`config.log' for more details" "$LINENO" 5; }
24423 else
24424         GLIB_ONLY_CFLAGS=$pkg_cv_GLIB_ONLY_CFLAGS
24425         GLIB_ONLY_LIBS=$pkg_cv_GLIB_ONLY_LIBS
24426         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24427 $as_echo "yes" >&6; }
24428         :
24429 fi
24430
24431 GLIB_PREFIX="`$PKG_CONFIG --variable=prefix glib-2.0`"
24432
24433
24434 if test "x$GST_DISABLE_LOADSAVE" = "xyes"
24435 then
24436   { $as_echo "$as_me:${as_lineno-$LINENO}: XML registry and load/save are disabled, not checking for libxml2" >&5
24437 $as_echo "$as_me: XML registry and load/save are disabled, not checking for libxml2" >&6;}
24438   GST_DISABLE_XML_DEFINE="#define GST_DISABLE_XML 1"
24439 else
24440
24441       LIBXML2_REQ=2.4.9
24442
24443
24444
24445 pkg_failed=no
24446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
24447 $as_echo_n "checking for XML... " >&6; }
24448
24449 if test -n "$PKG_CONFIG"; then
24450     if test -n "$XML_CFLAGS"; then
24451         pkg_cv_XML_CFLAGS="$XML_CFLAGS"
24452     else
24453         if test -n "$PKG_CONFIG" && \
24454     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= \$LIBXML2_REQ\""; } >&5
24455   ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= $LIBXML2_REQ") 2>&5
24456   ac_status=$?
24457   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24458   test $ac_status = 0; }; then
24459   pkg_cv_XML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= $LIBXML2_REQ" 2>/dev/null`
24460 else
24461   pkg_failed=yes
24462 fi
24463     fi
24464 else
24465         pkg_failed=untried
24466 fi
24467 if test -n "$PKG_CONFIG"; then
24468     if test -n "$XML_LIBS"; then
24469         pkg_cv_XML_LIBS="$XML_LIBS"
24470     else
24471         if test -n "$PKG_CONFIG" && \
24472     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= \$LIBXML2_REQ\""; } >&5
24473   ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= $LIBXML2_REQ") 2>&5
24474   ac_status=$?
24475   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24476   test $ac_status = 0; }; then
24477   pkg_cv_XML_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= $LIBXML2_REQ" 2>/dev/null`
24478 else
24479   pkg_failed=yes
24480 fi
24481     fi
24482 else
24483         pkg_failed=untried
24484 fi
24485
24486
24487
24488 if test $pkg_failed = yes; then
24489
24490 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24491         _pkg_short_errors_supported=yes
24492 else
24493         _pkg_short_errors_supported=no
24494 fi
24495         if test $_pkg_short_errors_supported = yes; then
24496                 XML_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libxml-2.0 >= $LIBXML2_REQ"`
24497         else
24498                 XML_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 >= $LIBXML2_REQ"`
24499         fi
24500         # Put the nasty error message in config.log where it belongs
24501         echo "$XML_PKG_ERRORS" >&5
24502
24503         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24504 $as_echo "no" >&6; }
24505
24506                       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24507 $as_echo "no" >&6; }
24508                       HAVE_LIBXML2=no
24509
24510 elif test $pkg_failed = untried; then
24511
24512                       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24513 $as_echo "no" >&6; }
24514                       HAVE_LIBXML2=no
24515
24516 else
24517         XML_CFLAGS=$pkg_cv_XML_CFLAGS
24518         XML_LIBS=$pkg_cv_XML_LIBS
24519         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24520 $as_echo "yes" >&6; }
24521         HAVE_LIBXML2=yes
24522 fi
24523   if test "x$HAVE_LIBXML2" = "xyes"; then
24524
24525 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
24526
24527   else
24528     as_fn_error $? "
24529         Need libxml2 and development headers/files to build GStreamer.
24530
24531         You can do without libxml2 if you pass --disable-loadsave to
24532         configure, but that breaks ABI, so don't do that unless you
24533         are building for an embedded setup and know what you are doing.
24534     " "$LINENO" 5
24535   fi
24536     LIBXML_PKG=', libxml-2.0'
24537
24538
24539
24540
24541       ac_save_CFLAGS=$CFLAGS
24542   ac_save_LIBS=$LIBS
24543   CFLAGS="$CFLAGS $XML_CFLAGS"
24544   LIBS="$LIBS $XML_LIBS"
24545   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24546 /* end confdefs.h.  */
24547
24548 #include <libxml/tree.h>
24549 #include <stdio.h>
24550
24551 int
24552 main ()
24553 {
24554
24555 /* function body */
24556
24557   ;
24558   return 0;
24559 }
24560 _ACEOF
24561 if ac_fn_c_try_link "$LINENO"; then :
24562   { $as_echo "$as_me:${as_lineno-$LINENO}: Test xml2 program linked" >&5
24563 $as_echo "$as_me: Test xml2 program linked" >&6;}
24564 else
24565   as_fn_error $? "Could not link libxml2 test program.  Check if you have the necessary dependencies." "$LINENO" 5
24566
24567 fi
24568 rm -f core conftest.err conftest.$ac_objext \
24569     conftest$ac_exeext conftest.$ac_ext
24570   CFLAGS="$ac_save_CFLAGS"
24571   LIBS="$ac_save_LIBS"
24572
24573   GST_DISABLE_XML_DEFINE="/* #undef GST_DISABLE_XML */"
24574 fi
24575
24576
24577 # Check whether --enable-check was given.
24578 if test "${enable_check+set}" = set; then :
24579   enableval=$enable_check;
24580     case "${enableval}" in
24581       yes) BUILD_CHECK=yes ;;
24582       no)  BUILD_CHECK=no ;;
24583       *)   as_fn_error $? "bad value ${enableval} for --disable-check" "$LINENO" 5 ;;
24584     esac
24585
24586 else
24587
24588         case $host_os in
24589       mingw* | msvc* | mks*) BUILD_CHECK=no ;;
24590       *) BUILD_CHECK=yes ;;
24591     esac
24592
24593 fi
24594
24595  if test "x$BUILD_CHECK" = "xyes"; then
24596   HAVE_CHECK_TRUE=
24597   HAVE_CHECK_FALSE='#'
24598 else
24599   HAVE_CHECK_TRUE='#'
24600   HAVE_CHECK_FALSE=
24601 fi
24602
24603
24604
24605 # Check whether --with-buffer-alignment was given.
24606 if test "${with_buffer_alignment+set}" = set; then :
24607   withval=$with_buffer_alignment;
24608     if test "x$withval" = "xyes"
24609     then
24610
24611 $as_echo "#define BUFFER_ALIGNMENT 32" >>confdefs.h
24612
24613     else
24614       case "${withval}" in
24615         malloc)
24616 $as_echo "#define BUFFER_ALIGNMENT_MALLOC 1" >>confdefs.h
24617  ;;
24618         pagesize)
24619 $as_echo "#define BUFFER_ALIGNMENT_PAGESIZE 1" >>confdefs.h
24620  ;;
24621         *)
24622 cat >>confdefs.h <<_ACEOF
24623 #define BUFFER_ALIGNMENT ${withval}
24624 _ACEOF
24625  ;;
24626       esac
24627     fi
24628
24629 else
24630
24631
24632 $as_echo "#define BUFFER_ALIGNMENT_MALLOC 1" >>confdefs.h
24633
24634
24635
24636 fi
24637
24638
24639 # Check whether --enable-Bsymbolic was given.
24640 if test "${enable_Bsymbolic+set}" = set; then :
24641   enableval=$enable_Bsymbolic;
24642 else
24643   SAVED_LDFLAGS="${LDFLAGS}"
24644                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Bsymbolic-functions linker flag" >&5
24645 $as_echo_n "checking for -Bsymbolic-functions linker flag... " >&6; }
24646                LDFLAGS=-Wl,-Bsymbolic-functions
24647                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24648 /* end confdefs.h.  */
24649
24650 int
24651 main ()
24652 {
24653 int main (void) { return 0; }
24654   ;
24655   return 0;
24656 }
24657 _ACEOF
24658 if ac_fn_c_try_link "$LINENO"; then :
24659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24660 $as_echo "yes" >&6; }
24661                            enable_Bsymbolic=yes
24662 else
24663   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24664 $as_echo "no" >&6; }
24665                            enable_Bsymbolic=no
24666 fi
24667 rm -f core conftest.err conftest.$ac_objext \
24668     conftest$ac_exeext conftest.$ac_ext
24669                LDFLAGS="${SAVED_LDFLAGS}"
24670 fi
24671
24672
24673
24674
24675 GST_LICENSE="LGPL"
24676
24677 cat >>confdefs.h <<_ACEOF
24678 #define GST_LICENSE "$GST_LICENSE"
24679 _ACEOF
24680
24681
24682
24683
24684   EXP_VAR=LIBDIR
24685   FROM_VAR=$libdir
24686
24687     prefix_save=$prefix
24688   exec_prefix_save=$exec_prefix
24689
24690     if test "x$prefix" = "xNONE"; then
24691     prefix="$ac_default_prefix"
24692   fi
24693     if test "x$exec_prefix" = "xNONE"; then
24694     exec_prefix=$prefix
24695   fi
24696
24697   full_var="$FROM_VAR"
24698     while true; do
24699     new_full_var="`eval echo $full_var`"
24700     if test "x$new_full_var" = "x$full_var"; then break; fi
24701     full_var=$new_full_var
24702   done
24703
24704     full_var=$new_full_var
24705   LIBDIR="$full_var"
24706
24707
24708     prefix=$prefix_save
24709   exec_prefix=$exec_prefix_save
24710
24711
24712 cat >>confdefs.h <<_ACEOF
24713 #define LIBDIR "$LIBDIR"
24714 _ACEOF
24715
24716
24717   EXP_VAR=DATADIR
24718   FROM_VAR=$datadir
24719
24720     prefix_save=$prefix
24721   exec_prefix_save=$exec_prefix
24722
24723     if test "x$prefix" = "xNONE"; then
24724     prefix="$ac_default_prefix"
24725   fi
24726     if test "x$exec_prefix" = "xNONE"; then
24727     exec_prefix=$prefix
24728   fi
24729
24730   full_var="$FROM_VAR"
24731     while true; do
24732     new_full_var="`eval echo $full_var`"
24733     if test "x$new_full_var" = "x$full_var"; then break; fi
24734     full_var=$new_full_var
24735   done
24736
24737     full_var=$new_full_var
24738   DATADIR="$full_var"
24739
24740
24741     prefix=$prefix_save
24742   exec_prefix=$exec_prefix_save
24743
24744
24745 cat >>confdefs.h <<_ACEOF
24746 #define GST_DATADIR "$DATADIR"
24747 _ACEOF
24748
24749
24750
24751
24752   EXP_VAR=PLUGINDIR
24753   FROM_VAR=${libdir}/gstreamer-$GST_MAJORMINOR
24754
24755     prefix_save=$prefix
24756   exec_prefix_save=$exec_prefix
24757
24758     if test "x$prefix" = "xNONE"; then
24759     prefix="$ac_default_prefix"
24760   fi
24761     if test "x$exec_prefix" = "xNONE"; then
24762     exec_prefix=$prefix
24763   fi
24764
24765   full_var="$FROM_VAR"
24766     while true; do
24767     new_full_var="`eval echo $full_var`"
24768     if test "x$new_full_var" = "x$full_var"; then break; fi
24769     full_var=$new_full_var
24770   done
24771
24772     full_var=$new_full_var
24773   PLUGINDIR="$full_var"
24774
24775
24776     prefix=$prefix_save
24777   exec_prefix=$exec_prefix_save
24778
24779
24780 cat >>confdefs.h <<_ACEOF
24781 #define PLUGINDIR "$PLUGINDIR"
24782 _ACEOF
24783
24784   { $as_echo "$as_me:${as_lineno-$LINENO}: Using $PLUGINDIR as the plugin install location" >&5
24785 $as_echo "$as_me: Using $PLUGINDIR as the plugin install location" >&6;}
24786
24787     plugindir="\$(libdir)/gstreamer-$GST_MAJORMINOR"
24788
24789
24790
24791 GST_PKG_DEPS="glib-2.0, gobject-2.0, gmodule-no-export-2.0, gthread-2.0"
24792
24793
24794 NO_WARNINGS=""
24795 if test "x${GST_DISABLE_GST_DEBUG}" = "xyes"; then
24796   NO_WARNINGS="-Wno-unused"
24797 fi
24798
24799
24800
24801
24802
24803   WARNING_CFLAGS=""
24804   ERROR_CFLAGS=""
24805
24806
24807   { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if compiler understands -Wall" >&5
24808 $as_echo_n "checking to see if compiler understands -Wall... " >&6; }
24809
24810   save_CFLAGS="$CFLAGS"
24811   CFLAGS="$CFLAGS -Wall"
24812
24813   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24814 /* end confdefs.h.  */
24815
24816 int
24817 main ()
24818 {
24819
24820   ;
24821   return 0;
24822 }
24823 _ACEOF
24824 if ac_fn_c_try_compile "$LINENO"; then :
24825   flag_ok=yes
24826 else
24827   flag_ok=no
24828 fi
24829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24830   CFLAGS="$save_CFLAGS"
24831
24832   if test "X$flag_ok" = Xyes ; then
24833     WARNING_CFLAGS="$WARNING_CFLAGS -Wall"
24834     true
24835   else
24836
24837     true
24838   fi
24839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
24840 $as_echo "$flag_ok" >&6; }
24841
24842
24843
24844   { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if compiler understands -Wdeclaration-after-statement" >&5
24845 $as_echo_n "checking to see if compiler understands -Wdeclaration-after-statement... " >&6; }
24846
24847   save_CFLAGS="$CFLAGS"
24848   CFLAGS="$CFLAGS -Wdeclaration-after-statement"
24849
24850   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24851 /* end confdefs.h.  */
24852
24853 int
24854 main ()
24855 {
24856
24857   ;
24858   return 0;
24859 }
24860 _ACEOF
24861 if ac_fn_c_try_compile "$LINENO"; then :
24862   flag_ok=yes
24863 else
24864   flag_ok=no
24865 fi
24866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24867   CFLAGS="$save_CFLAGS"
24868
24869   if test "X$flag_ok" = Xyes ; then
24870     WARNING_CFLAGS="$WARNING_CFLAGS -Wdeclaration-after-statement"
24871     true
24872   else
24873
24874     true
24875   fi
24876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
24877 $as_echo "$flag_ok" >&6; }
24878
24879
24880
24881   { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if compiler understands -Wvla" >&5
24882 $as_echo_n "checking to see if compiler understands -Wvla... " >&6; }
24883
24884   save_CFLAGS="$CFLAGS"
24885   CFLAGS="$CFLAGS -Wvla"
24886
24887   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24888 /* end confdefs.h.  */
24889
24890 int
24891 main ()
24892 {
24893
24894   ;
24895   return 0;
24896 }
24897 _ACEOF
24898 if ac_fn_c_try_compile "$LINENO"; then :
24899   flag_ok=yes
24900 else
24901   flag_ok=no
24902 fi
24903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24904   CFLAGS="$save_CFLAGS"
24905
24906   if test "X$flag_ok" = Xyes ; then
24907     WARNING_CFLAGS="$WARNING_CFLAGS -Wvla"
24908     true
24909   else
24910
24911     true
24912   fi
24913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
24914 $as_echo "$flag_ok" >&6; }
24915
24916
24917
24918   { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if compiler understands -Wpointer-arith" >&5
24919 $as_echo_n "checking to see if compiler understands -Wpointer-arith... " >&6; }
24920
24921   save_CFLAGS="$CFLAGS"
24922   CFLAGS="$CFLAGS -Wpointer-arith"
24923
24924   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24925 /* end confdefs.h.  */
24926
24927 int
24928 main ()
24929 {
24930
24931   ;
24932   return 0;
24933 }
24934 _ACEOF
24935 if ac_fn_c_try_compile "$LINENO"; then :
24936   flag_ok=yes
24937 else
24938   flag_ok=no
24939 fi
24940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24941   CFLAGS="$save_CFLAGS"
24942
24943   if test "X$flag_ok" = Xyes ; then
24944     WARNING_CFLAGS="$WARNING_CFLAGS -Wpointer-arith"
24945     true
24946   else
24947
24948     true
24949   fi
24950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
24951 $as_echo "$flag_ok" >&6; }
24952
24953
24954     if test "x$GST_GIT" != "xno"
24955   then
24956
24957   { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if compiler understands -Werror" >&5
24958 $as_echo_n "checking to see if compiler understands -Werror... " >&6; }
24959
24960   save_CFLAGS="$CFLAGS"
24961   CFLAGS="$CFLAGS -Werror"
24962
24963   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24964 /* end confdefs.h.  */
24965
24966 int
24967 main ()
24968 {
24969
24970   ;
24971   return 0;
24972 }
24973 _ACEOF
24974 if ac_fn_c_try_compile "$LINENO"; then :
24975   flag_ok=yes
24976 else
24977   flag_ok=no
24978 fi
24979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24980   CFLAGS="$save_CFLAGS"
24981
24982   if test "X$flag_ok" = Xyes ; then
24983     ERROR_CFLAGS="$ERROR_CFLAGS -Werror"
24984     true
24985   else
24986
24987     true
24988   fi
24989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
24990 $as_echo "$flag_ok" >&6; }
24991
24992
24993         if test "x$ERROR_CFLAGS" = "x"
24994     then
24995
24996   { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if compiler understands -errwarn=%all" >&5
24997 $as_echo_n "checking to see if compiler understands -errwarn=%all... " >&6; }
24998
24999   save_CFLAGS="$CFLAGS"
25000   CFLAGS="$CFLAGS -errwarn=%all"
25001
25002   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25003 /* end confdefs.h.  */
25004
25005 int
25006 main ()
25007 {
25008
25009   ;
25010   return 0;
25011 }
25012 _ACEOF
25013 if ac_fn_c_try_compile "$LINENO"; then :
25014   flag_ok=yes
25015 else
25016   flag_ok=no
25017 fi
25018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25019   CFLAGS="$save_CFLAGS"
25020
25021   if test "X$flag_ok" = Xyes ; then
25022
25023           ERROR_CFLAGS="-errwarn=%all"
25024                                                                                 for f in 'no%E_EMPTY_DECLARATION' \
25025                    'no%E_STATEMENT_NOT_REACHED' \
25026                    'no%E_ARGUEMENT_MISMATCH' \
25027                    'no%E_MACRO_REDEFINED' \
25028                    'no%E_LOOP_NOT_ENTERED_AT_TOP'
25029           do
25030
25031   { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if compiler understands -errwarn=%all,$f" >&5
25032 $as_echo_n "checking to see if compiler understands -errwarn=%all,$f... " >&6; }
25033
25034   save_CFLAGS="$CFLAGS"
25035   CFLAGS="$CFLAGS -errwarn=%all,$f"
25036
25037   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25038 /* end confdefs.h.  */
25039
25040 int
25041 main ()
25042 {
25043
25044   ;
25045   return 0;
25046 }
25047 _ACEOF
25048 if ac_fn_c_try_compile "$LINENO"; then :
25049   flag_ok=yes
25050 else
25051   flag_ok=no
25052 fi
25053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25054   CFLAGS="$save_CFLAGS"
25055
25056   if test "X$flag_ok" = Xyes ; then
25057
25058               ERROR_CFLAGS="$ERROR_CFLAGS,$f"
25059
25060     true
25061   else
25062
25063     true
25064   fi
25065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
25066 $as_echo "$flag_ok" >&6; }
25067
25068           done
25069
25070     true
25071   else
25072
25073     true
25074   fi
25075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
25076 $as_echo "$flag_ok" >&6; }
25077
25078     else
25079                         if test -n "$PKG_CONFIG" && \
25080     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 < 2.19.8\""; } >&5
25081   ($PKG_CONFIG --exists --print-errors "glib-2.0 < 2.19.8") 2>&5
25082   ac_status=$?
25083   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25084   test $ac_status = 0; }; then
25085
25086
25087   { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if compiler understands -fno-strict-aliasing" >&5
25088 $as_echo_n "checking to see if compiler understands -fno-strict-aliasing... " >&6; }
25089
25090   save_CFLAGS="$CFLAGS"
25091   CFLAGS="$CFLAGS -fno-strict-aliasing"
25092
25093   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25094 /* end confdefs.h.  */
25095
25096 int
25097 main ()
25098 {
25099
25100   ;
25101   return 0;
25102 }
25103 _ACEOF
25104 if ac_fn_c_try_compile "$LINENO"; then :
25105   flag_ok=yes
25106 else
25107   flag_ok=no
25108 fi
25109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25110   CFLAGS="$save_CFLAGS"
25111
25112   if test "X$flag_ok" = Xyes ; then
25113     ERROR_CFLAGS="$ERROR_CFLAGS -fno-strict-aliasing"
25114     true
25115   else
25116
25117     true
25118   fi
25119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
25120 $as_echo "$flag_ok" >&6; }
25121
25122
25123 fi
25124     fi
25125   fi
25126
25127   if test "x-Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wundef -Wwrite-strings -Wformat-nonliteral -Wformat-security -Wold-style-definition -Winit-self -Wmissing-include-dirs -Waddress -Waggregate-return -Wno-multichar -Wnested-externs $NO_WARNINGS" != "x"
25128   then
25129     UNSUPPORTED=""
25130     list="-Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wundef -Wwrite-strings -Wformat-nonliteral -Wformat-security -Wold-style-definition -Winit-self -Wmissing-include-dirs -Waddress -Waggregate-return -Wno-multichar -Wnested-externs $NO_WARNINGS"
25131     for each in $list
25132     do
25133
25134   { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if compiler understands $each" >&5
25135 $as_echo_n "checking to see if compiler understands $each... " >&6; }
25136
25137   save_CFLAGS="$CFLAGS"
25138   CFLAGS="$CFLAGS $each"
25139
25140   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25141 /* end confdefs.h.  */
25142
25143 int
25144 main ()
25145 {
25146
25147   ;
25148   return 0;
25149 }
25150 _ACEOF
25151 if ac_fn_c_try_compile "$LINENO"; then :
25152   flag_ok=yes
25153 else
25154   flag_ok=no
25155 fi
25156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25157   CFLAGS="$save_CFLAGS"
25158
25159   if test "X$flag_ok" = Xyes ; then
25160     WARNING_CFLAGS="$WARNING_CFLAGS $each"
25161     true
25162   else
25163     UNSUPPORTED="$UNSUPPORTED $each"
25164     true
25165   fi
25166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag_ok" >&5
25167 $as_echo "$flag_ok" >&6; }
25168
25169     done
25170     if test "X$UNSUPPORTED" != X ; then
25171       { $as_echo "$as_me:${as_lineno-$LINENO}: unsupported compiler flags: $UNSUPPORTED" >&5
25172 $as_echo "$as_me: unsupported compiler flags: $UNSUPPORTED" >&6;}
25173     fi
25174   fi
25175
25176
25177
25178   { $as_echo "$as_me:${as_lineno-$LINENO}: set WARNING_CFLAGS to $WARNING_CFLAGS" >&5
25179 $as_echo "$as_me: set WARNING_CFLAGS to $WARNING_CFLAGS" >&6;}
25180   { $as_echo "$as_me:${as_lineno-$LINENO}: set ERROR_CFLAGS to $ERROR_CFLAGS" >&5
25181 $as_echo "$as_me: set ERROR_CFLAGS to $ERROR_CFLAGS" >&6;}
25182
25183
25184
25185       if test "x$GST_GIT" = "xyes"; then
25186     GST_LEVEL_DEFAULT=GST_LEVEL_ERROR
25187   else
25188     GST_LEVEL_DEFAULT=GST_LEVEL_NONE
25189   fi
25190
25191 cat >>confdefs.h <<_ACEOF
25192 #define GST_LEVEL_DEFAULT $GST_LEVEL_DEFAULT
25193 _ACEOF
25194
25195
25196
25197
25198
25199
25200 if test "x$USE_DEBUG" = xyes; then
25201    PROFILE_CFLAGS="-g"
25202 fi
25203
25204
25205 # GST_DISABLE_DEPRECATED: hide the visibility of deprecated
25206 # functionality from the API that gstreamer uses
25207 # GST_REMOVE_DEPRECATED: don't compile deprecated functionality (breaks ABI)
25208 if test "x$PACKAGE_VERSION_NANO" = "x1"; then
25209     DEPRECATED_CFLAGS="-DGST_DISABLE_DEPRECATED"
25210 else
25211   DEPRECATED_CFLAGS=""
25212 fi
25213
25214
25215 GST_OPTION_CFLAGS="\$(WARNING_CFLAGS) \$(DEBUG_CFLAGS) \$(PROFILE_CFLAGS) \$(GCOV_CFLAGS) \$(OPT_CFLAGS) \$(DEPRECATED_CFLAGS)"
25216 GST_OPTION_CXXFLAGS="\$(WARNING_CXXFLAGS) \$(ERROR_CXXFLAGS) \$(DEBUG_CFLAGS) \$(PROFILE_CFLAGS) \$(GCOV_CFLAGS) \$(OPT_CFLAGS) \$(DEPRECATED_CFLAGS)"
25217
25218
25219
25220 GST_ALL_CXXFLAGS="-I\$(top_srcdir)/libs -I\$(top_srcdir) -I\$(top_builddir)/libs -I\$(top_builddir) $GLIB_CFLAGS \$(GLIB_EXTRA_CFLAGS) $XML_CFLAGS \$(GST_OPTION_CXXFLAGS) \$(ERROR_CXXFLAGS)"
25221 GST_ALL_CFLAGS="-I\$(top_srcdir)/libs -I\$(top_srcdir) -I\$(top_builddir)/libs -I\$(top_builddir) $GLIB_CFLAGS \$(GLIB_EXTRA_CFLAGS) $XML_CFLAGS \$(GST_OPTION_CFLAGS) \$(ERROR_CFLAGS)"
25222
25223 GST_ALL_LIBS="$GLIB_LIBS $LTLIBINTL \$(GCOV_LIBS)"
25224
25225 GST_ALL_LDFLAGS="-no-undefined"
25226 if test "x${enable_Bsymbolic}" = "xyes"; then
25227   GST_ALL_LDFLAGS="$GST_ALL_LDFLAGS -Wl,-Bsymbolic-functions"
25228 fi
25229
25230
25231
25232
25233
25234
25235 GST_LIB_LDFLAGS="-export-symbols-regex \^_*\(gst_\|Gst\|GST_\).*"
25236
25237
25238 GST_OBJ_CFLAGS="\$(GST_ALL_CFLAGS)"
25239 GST_OBJ_CXXFLAGS="\$(GST_ALL_CXXFLAGS)"
25240 GST_OBJ_LIBS="\$(top_builddir)/gst/libgstreamer-$GST_MAJORMINOR.la \$(GST_ALL_LIBS)"
25241
25242
25243
25244
25245 GST_PLUGIN_LDFLAGS="-module -avoid-version -export-symbols-regex '^_*gst_plugin_desc.*' $GST_ALL_LDFLAGS"
25246 GST_PLUGIN_LDFLAGS="$GST_PLUGIN_LDFLAGS"
25247
25248
25249
25250   EXP_VAR=GST_PLUGIN_SCANNER_INSTALLED
25251   FROM_VAR=${libexecdir}/gstreamer-$GST_MAJORMINOR/gst-plugin-scanner
25252
25253     prefix_save=$prefix
25254   exec_prefix_save=$exec_prefix
25255
25256     if test "x$prefix" = "xNONE"; then
25257     prefix="$ac_default_prefix"
25258   fi
25259     if test "x$exec_prefix" = "xNONE"; then
25260     exec_prefix=$prefix
25261   fi
25262
25263   full_var="$FROM_VAR"
25264     while true; do
25265     new_full_var="`eval echo $full_var`"
25266     if test "x$new_full_var" = "x$full_var"; then break; fi
25267     full_var=$new_full_var
25268   done
25269
25270     full_var=$new_full_var
25271   GST_PLUGIN_SCANNER_INSTALLED="$full_var"
25272
25273
25274     prefix=$prefix_save
25275   exec_prefix=$exec_prefix_save
25276
25277
25278 cat >>confdefs.h <<_ACEOF
25279 #define GST_PLUGIN_SCANNER_INSTALLED "$GST_PLUGIN_SCANNER_INSTALLED"
25280 _ACEOF
25281
25282
25283
25284
25285 { $as_echo "$as_me:${as_lineno-$LINENO}: Running check unit test framework checks now..." >&5
25286 $as_echo "$as_me: Running check unit test framework checks now..." >&6;}
25287
25288 CHECK_MAJOR_VERSION=0
25289 CHECK_MINOR_VERSION=9
25290 CHECK_MICRO_VERSION=8
25291 CHECK_VERSION=$CHECK_MAJOR_VERSION.$CHECK_MINOR_VERSION.$CHECK_MICRO_VERSION
25292
25293
25294
25295
25296
25297
25298 for ac_header in unistd.h sys/wait.h sys/time.h
25299 do :
25300   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25301 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25302 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25303   cat >>confdefs.h <<_ACEOF
25304 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25305 _ACEOF
25306
25307 fi
25308
25309 done
25310
25311
25312 for ac_func in localtime_r
25313 do :
25314   ac_fn_c_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r"
25315 if test "x$ac_cv_func_localtime_r" = xyes; then :
25316   cat >>confdefs.h <<_ACEOF
25317 #define HAVE_LOCALTIME_R 1
25318 _ACEOF
25319
25320 fi
25321 done
25322
25323
25324
25325 # ------ AX CREATE STDINT H -------------------------------------
25326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint types" >&5
25327 $as_echo_n "checking for stdint types... " >&6; }
25328 ac_stdint_h=`echo _stdint.h`
25329 # try to shortcircuit - if the default include path of the compiler
25330 # can find a "stdint.h" header then we assume that all compilers can.
25331 if ${ac_cv_header_stdint_t+:} false; then :
25332   $as_echo_n "(cached) " >&6
25333 else
25334
25335 old_CXXFLAGS="$CXXFLAGS" ; CXXFLAGS=""
25336 old_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS=""
25337 old_CFLAGS="$CFLAGS"     ; CFLAGS=""
25338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25339 /* end confdefs.h.  */
25340 #include <stdint.h>
25341 int
25342 main ()
25343 {
25344 int_least32_t v = 0;
25345   ;
25346   return 0;
25347 }
25348 _ACEOF
25349 if ac_fn_c_try_compile "$LINENO"; then :
25350   ac_cv_stdint_result="(assuming C99 compatible system)"
25351  ac_cv_header_stdint_t="stdint.h";
25352 else
25353   ac_cv_header_stdint_t=""
25354 fi
25355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25356 if test "$GCC" = "yes" && test ".$ac_cv_header_stdint_t" = "."; then
25357 CFLAGS="-std=c99"
25358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25359 /* end confdefs.h.  */
25360 #include <stdint.h>
25361 int
25362 main ()
25363 {
25364 int_least32_t v = 0;
25365   ;
25366   return 0;
25367 }
25368 _ACEOF
25369 if ac_fn_c_try_compile "$LINENO"; then :
25370   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: your GCC compiler has a defunct stdint.h for its default-mode" >&5
25371 $as_echo "$as_me: WARNING: your GCC compiler has a defunct stdint.h for its default-mode" >&2;}
25372 fi
25373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25374 fi
25375 CXXFLAGS="$old_CXXFLAGS"
25376 CPPFLAGS="$old_CPPFLAGS"
25377 CFLAGS="$old_CFLAGS"
25378 fi
25379
25380
25381 v="... $ac_cv_header_stdint_h"
25382 if test "$ac_stdint_h" = "stdint.h" ; then
25383  { $as_echo "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./stdint.h?)" >&5
25384 $as_echo "(are you sure you want them in ./stdint.h?)" >&6; }
25385 elif test "$ac_stdint_h" = "inttypes.h" ; then
25386  { $as_echo "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./inttypes.h?)" >&5
25387 $as_echo "(are you sure you want them in ./inttypes.h?)" >&6; }
25388 elif test "_$ac_cv_header_stdint_t" = "_" ; then
25389  { $as_echo "$as_me:${as_lineno-$LINENO}: result: (putting them into $ac_stdint_h)$v" >&5
25390 $as_echo "(putting them into $ac_stdint_h)$v" >&6; }
25391 else
25392  ac_cv_header_stdint="$ac_cv_header_stdint_t"
25393  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint (shortcircuit)" >&5
25394 $as_echo "$ac_cv_header_stdint (shortcircuit)" >&6; }
25395 fi
25396
25397 if test "_$ac_cv_header_stdint_t" = "_" ; then # can not shortcircuit..
25398
25399
25400 inttype_headers=`echo  | sed -e 's/,/ /g'`
25401
25402 ac_cv_stdint_result="(no helpful system typedefs seen)"
25403
25404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5
25405 $as_echo_n "checking for stdint uintptr_t... " >&6; }
25406 if ${ac_cv_header_stdint_x+:} false; then :
25407   $as_echo_n "(cached) " >&6
25408 else
25409
25410  ac_cv_header_stdint_x="" # the 1997 typedefs (inttypes.h)
25411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
25412 $as_echo "(..)" >&6; }
25413   for i in    stdint.h inttypes.h sys/inttypes.h $inttype_headers
25414   do
25415    unset ac_cv_type_uintptr_t
25416    unset ac_cv_type_uint64_t
25417    ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <$i>
25418 "
25419 if test "x$ac_cv_type_uintptr_t" = xyes; then :
25420   ac_cv_header_stdint_x=$i
25421 else
25422   continue
25423 fi
25424
25425    ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
25426 "
25427 if test "x$ac_cv_type_uint64_t" = xyes; then :
25428   and64="/uint64_t"
25429 else
25430   and64=""
25431 fi
25432
25433    ac_cv_stdint_result="(seen uintptr_t$and64 in $i)"
25434  break
25435   done
25436   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5
25437 $as_echo_n "checking for stdint uintptr_t... " >&6; }
25438
25439 fi
25440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_x" >&5
25441 $as_echo "$ac_cv_header_stdint_x" >&6; }
25442
25443
25444 if test "_$ac_cv_header_stdint_x" = "_" ; then
25445
25446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5
25447 $as_echo_n "checking for stdint uint32_t... " >&6; }
25448 if ${ac_cv_header_stdint_o+:} false; then :
25449   $as_echo_n "(cached) " >&6
25450 else
25451
25452  ac_cv_header_stdint_o="" # the 1995 typedefs (sys/inttypes.h)
25453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
25454 $as_echo "(..)" >&6; }
25455   for i in    inttypes.h sys/inttypes.h stdint.h $inttype_headers
25456   do
25457    unset ac_cv_type_uint32_t
25458    unset ac_cv_type_uint64_t
25459    ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <$i>
25460 "
25461 if test "x$ac_cv_type_uint32_t" = xyes; then :
25462   ac_cv_header_stdint_o=$i
25463 else
25464   continue
25465 fi
25466
25467    ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
25468 "
25469 if test "x$ac_cv_type_uint64_t" = xyes; then :
25470   and64="/uint64_t"
25471 else
25472   and64=""
25473 fi
25474
25475    ac_cv_stdint_result="(seen uint32_t$and64 in $i)"
25476  break
25477    break;
25478   done
25479   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5
25480 $as_echo_n "checking for stdint uint32_t... " >&6; }
25481
25482 fi
25483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_o" >&5
25484 $as_echo "$ac_cv_header_stdint_o" >&6; }
25485
25486 fi
25487
25488 if test "_$ac_cv_header_stdint_x" = "_" ; then
25489 if test "_$ac_cv_header_stdint_o" = "_" ; then
25490
25491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5
25492 $as_echo_n "checking for stdint u_int32_t... " >&6; }
25493 if ${ac_cv_header_stdint_u+:} false; then :
25494   $as_echo_n "(cached) " >&6
25495 else
25496
25497  ac_cv_header_stdint_u="" # the BSD typedefs (sys/types.h)
25498   { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
25499 $as_echo "(..)" >&6; }
25500   for i in    sys/types.h inttypes.h sys/inttypes.h $inttype_headers ; do
25501    unset ac_cv_type_u_int32_t
25502    unset ac_cv_type_u_int64_t
25503    ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <$i>
25504 "
25505 if test "x$ac_cv_type_u_int32_t" = xyes; then :
25506   ac_cv_header_stdint_u=$i
25507 else
25508   continue
25509 fi
25510
25511    ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include<$i>
25512 "
25513 if test "x$ac_cv_type_u_int64_t" = xyes; then :
25514   and64="/u_int64_t"
25515 else
25516   and64=""
25517 fi
25518
25519    ac_cv_stdint_result="(seen u_int32_t$and64 in $i)"
25520  break
25521    break;
25522   done
25523   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5
25524 $as_echo_n "checking for stdint u_int32_t... " >&6; }
25525
25526 fi
25527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_u" >&5
25528 $as_echo "$ac_cv_header_stdint_u" >&6; }
25529
25530 fi fi
25531
25532 if test "_$ac_cv_header_stdint_x" = "_" ; then
25533    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint datatype model" >&5
25534 $as_echo_n "checking for stdint datatype model... " >&6; }
25535    { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
25536 $as_echo "(..)" >&6; }
25537
25538    # The cast to long int works around a bug in the HP C Compiler
25539 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25540 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25541 # This bug is HP SR number 8606223364.
25542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
25543 $as_echo_n "checking size of char... " >&6; }
25544 if ${ac_cv_sizeof_char+:} false; then :
25545   $as_echo_n "(cached) " >&6
25546 else
25547   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
25548
25549 else
25550   if test "$ac_cv_type_char" = yes; then
25551      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25552 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25553 as_fn_error 77 "cannot compute sizeof (char)
25554 See \`config.log' for more details" "$LINENO" 5; }
25555    else
25556      ac_cv_sizeof_char=0
25557    fi
25558 fi
25559
25560 fi
25561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
25562 $as_echo "$ac_cv_sizeof_char" >&6; }
25563
25564
25565
25566 cat >>confdefs.h <<_ACEOF
25567 #define SIZEOF_CHAR $ac_cv_sizeof_char
25568 _ACEOF
25569
25570
25571    # The cast to long int works around a bug in the HP C Compiler
25572 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25573 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25574 # This bug is HP SR number 8606223364.
25575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
25576 $as_echo_n "checking size of short... " >&6; }
25577 if ${ac_cv_sizeof_short+:} false; then :
25578   $as_echo_n "(cached) " >&6
25579 else
25580   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
25581
25582 else
25583   if test "$ac_cv_type_short" = yes; then
25584      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25585 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25586 as_fn_error 77 "cannot compute sizeof (short)
25587 See \`config.log' for more details" "$LINENO" 5; }
25588    else
25589      ac_cv_sizeof_short=0
25590    fi
25591 fi
25592
25593 fi
25594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
25595 $as_echo "$ac_cv_sizeof_short" >&6; }
25596
25597
25598
25599 cat >>confdefs.h <<_ACEOF
25600 #define SIZEOF_SHORT $ac_cv_sizeof_short
25601 _ACEOF
25602
25603
25604    # The cast to long int works around a bug in the HP C Compiler
25605 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25606 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25607 # This bug is HP SR number 8606223364.
25608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
25609 $as_echo_n "checking size of int... " >&6; }
25610 if ${ac_cv_sizeof_int+:} false; then :
25611   $as_echo_n "(cached) " >&6
25612 else
25613   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
25614
25615 else
25616   if test "$ac_cv_type_int" = yes; then
25617      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25618 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25619 as_fn_error 77 "cannot compute sizeof (int)
25620 See \`config.log' for more details" "$LINENO" 5; }
25621    else
25622      ac_cv_sizeof_int=0
25623    fi
25624 fi
25625
25626 fi
25627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
25628 $as_echo "$ac_cv_sizeof_int" >&6; }
25629
25630
25631
25632 cat >>confdefs.h <<_ACEOF
25633 #define SIZEOF_INT $ac_cv_sizeof_int
25634 _ACEOF
25635
25636
25637    # The cast to long int works around a bug in the HP C Compiler
25638 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25639 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25640 # This bug is HP SR number 8606223364.
25641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
25642 $as_echo_n "checking size of long... " >&6; }
25643 if ${ac_cv_sizeof_long+:} false; then :
25644   $as_echo_n "(cached) " >&6
25645 else
25646   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
25647
25648 else
25649   if test "$ac_cv_type_long" = yes; then
25650      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25651 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25652 as_fn_error 77 "cannot compute sizeof (long)
25653 See \`config.log' for more details" "$LINENO" 5; }
25654    else
25655      ac_cv_sizeof_long=0
25656    fi
25657 fi
25658
25659 fi
25660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
25661 $as_echo "$ac_cv_sizeof_long" >&6; }
25662
25663
25664
25665 cat >>confdefs.h <<_ACEOF
25666 #define SIZEOF_LONG $ac_cv_sizeof_long
25667 _ACEOF
25668
25669
25670    # The cast to long int works around a bug in the HP C Compiler
25671 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25672 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25673 # This bug is HP SR number 8606223364.
25674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
25675 $as_echo_n "checking size of void*... " >&6; }
25676 if ${ac_cv_sizeof_voidp+:} false; then :
25677   $as_echo_n "(cached) " >&6
25678 else
25679   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp"        "$ac_includes_default"; then :
25680
25681 else
25682   if test "$ac_cv_type_voidp" = yes; then
25683      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25684 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25685 as_fn_error 77 "cannot compute sizeof (void*)
25686 See \`config.log' for more details" "$LINENO" 5; }
25687    else
25688      ac_cv_sizeof_voidp=0
25689    fi
25690 fi
25691
25692 fi
25693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
25694 $as_echo "$ac_cv_sizeof_voidp" >&6; }
25695
25696
25697
25698 cat >>confdefs.h <<_ACEOF
25699 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
25700 _ACEOF
25701
25702
25703    ac_cv_char_data_model=""
25704    ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_char"
25705    ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_short"
25706    ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_int"
25707    ac_cv_long_data_model=""
25708    ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_int"
25709    ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_long"
25710    ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_voidp"
25711    { $as_echo "$as_me:${as_lineno-$LINENO}: checking data model" >&5
25712 $as_echo_n "checking data model... " >&6; }
25713    case "$ac_cv_char_data_model/$ac_cv_long_data_model" in
25714     122/242)     ac_cv_data_model="IP16"  ; n="standard 16bit machine" ;;
25715     122/244)     ac_cv_data_model="LP32"  ; n="standard 32bit machine" ;;
25716     122/*)       ac_cv_data_model="i16"   ; n="unusual int16 model" ;;
25717     124/444)     ac_cv_data_model="ILP32" ; n="standard 32bit unixish" ;;
25718     124/488)     ac_cv_data_model="LP64"  ; n="standard 64bit unixish" ;;
25719     124/448)     ac_cv_data_model="LLP64" ; n="unusual 64bit unixish" ;;
25720     124/*)       ac_cv_data_model="i32"   ; n="unusual int32 model" ;;
25721     128/888)     ac_cv_data_model="ILP64" ; n="unusual 64bit numeric" ;;
25722     128/*)       ac_cv_data_model="i64"   ; n="unusual int64 model" ;;
25723     222/*2)      ac_cv_data_model="DSP16" ; n="strict 16bit dsptype" ;;
25724     333/*3)      ac_cv_data_model="DSP24" ; n="strict 24bit dsptype" ;;
25725     444/*4)      ac_cv_data_model="DSP32" ; n="strict 32bit dsptype" ;;
25726     666/*6)      ac_cv_data_model="DSP48" ; n="strict 48bit dsptype" ;;
25727     888/*8)      ac_cv_data_model="DSP64" ; n="strict 64bit dsptype" ;;
25728     222/*|333/*|444/*|666/*|888/*) :
25729                  ac_cv_data_model="iDSP"  ; n="unusual dsptype" ;;
25730      *)          ac_cv_data_model="none"  ; n="very unusual model" ;;
25731    esac
25732    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_data_model ($ac_cv_long_data_model, $n)" >&5
25733 $as_echo "$ac_cv_data_model ($ac_cv_long_data_model, $n)" >&6; }
25734
25735 fi
25736
25737 if test "_$ac_cv_header_stdint_x" != "_" ; then
25738    ac_cv_header_stdint="$ac_cv_header_stdint_x"
25739 elif  test "_$ac_cv_header_stdint_o" != "_" ; then
25740    ac_cv_header_stdint="$ac_cv_header_stdint_o"
25741 elif  test "_$ac_cv_header_stdint_u" != "_" ; then
25742    ac_cv_header_stdint="$ac_cv_header_stdint_u"
25743 else
25744    ac_cv_header_stdint="stddef.h"
25745 fi
25746
25747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra inttypes in chosen header" >&5
25748 $as_echo_n "checking for extra inttypes in chosen header... " >&6; }
25749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($ac_cv_header_stdint)" >&5
25750 $as_echo "($ac_cv_header_stdint)" >&6; }
25751 unset ac_cv_type_int_least32_t
25752 unset ac_cv_type_int_fast32_t
25753 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <$ac_cv_header_stdint>
25754 "
25755 if test "x$ac_cv_type_int_least32_t" = xyes; then :
25756
25757 fi
25758
25759 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include<$ac_cv_header_stdint>
25760 "
25761 if test "x$ac_cv_type_int_fast32_t" = xyes; then :
25762
25763 fi
25764
25765 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "#include <$ac_cv_header_stdint>
25766 "
25767 if test "x$ac_cv_type_intmax_t" = xyes; then :
25768
25769 fi
25770
25771
25772 fi # shortcircut to system "stdint.h"
25773 # ------------------ PREPARE VARIABLES ------------------------------
25774 if test "$GCC" = "yes" ; then
25775 ac_cv_stdint_message="using gnu compiler "`$CC --version | head -1`
25776 else
25777 ac_cv_stdint_message="using $CC"
25778 fi
25779
25780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&5
25781 $as_echo "make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&6; }
25782
25783 # ----------------- DONE inttypes.h checks START header -------------
25784 ac_config_commands="$ac_config_commands $ac_stdint_h"
25785
25786
25787
25788 enable_subunit=false
25789
25790 if test xfalse = x"$enable_subunit"; then
25791 ENABLE_SUBUNIT="0"
25792 else
25793 ENABLE_SUBUNIT="1"
25794 fi
25795
25796
25797 cat >>confdefs.h <<_ACEOF
25798 #define ENABLE_SUBUNIT $ENABLE_SUBUNIT
25799 _ACEOF
25800
25801
25802  if test x"$enable_subunit" != "xfalse"; then
25803   SUBUNIT_TRUE=
25804   SUBUNIT_FALSE='#'
25805 else
25806   SUBUNIT_TRUE='#'
25807   SUBUNIT_FALSE=
25808 fi
25809
25810
25811
25812
25813 ac_config_files="$ac_config_files Makefile gst/Makefile gst/gstconfig.h gst/gstversion.h gst/parse/Makefile libs/Makefile libs/gst/Makefile libs/gst/base/Makefile libs/gst/check/Makefile libs/gst/check/libcheck/Makefile libs/gst/check/libcheck/check.h libs/gst/controller/Makefile libs/gst/dataprotocol/Makefile libs/gst/helpers/Makefile libs/gst/net/Makefile plugins/Makefile plugins/indexers/Makefile plugins/elements/Makefile po/Makefile.in tests/Makefile tests/benchmarks/Makefile tests/check/Makefile tests/misc/Makefile tests/examples/Makefile tests/examples/adapter/Makefile tests/examples/controller/Makefile tests/examples/stepping/Makefile tests/examples/helloworld/Makefile tests/examples/launch/Makefile tests/examples/manual/Makefile tests/examples/metadata/Makefile tests/examples/queue/Makefile tests/examples/streams/Makefile tests/examples/typefind/Makefile tools/Makefile common/Makefile common/m4/Makefile docs/Makefile docs/design/Makefile docs/faq/Makefile docs/gst/Makefile docs/gst/gstreamer.types docs/libs/Makefile docs/plugins/Makefile docs/manual/Makefile docs/pwg/Makefile docs/slides/Makefile docs/xsl/Makefile docs/version.entities m4/Makefile pkgconfig/Makefile stamp.h pkgconfig/gstreamer.pc pkgconfig/gstreamer-uninstalled.pc pkgconfig/gstreamer-base.pc pkgconfig/gstreamer-base-uninstalled.pc pkgconfig/gstreamer-check.pc pkgconfig/gstreamer-check-uninstalled.pc pkgconfig/gstreamer-controller.pc pkgconfig/gstreamer-controller-uninstalled.pc pkgconfig/gstreamer-dataprotocol.pc pkgconfig/gstreamer-dataprotocol-uninstalled.pc pkgconfig/gstreamer-net.pc pkgconfig/gstreamer-net-uninstalled.pc gst-element-check.m4 gstreamer.spec"
25814
25815
25816 sed \
25817     -e 's/.*config.h.in.*autoheader.*/\/* Autogenerated config.h created for win32 Visual Studio builds *\/\n\n\/* PREFIX -- specifically added for Windows for easier moving *\/\n#define PREFIX "C:\\\\gstreamer"/' \
25818     -e 's/.* GETTEXT_PACKAGE$/#define GETTEXT_PACKAGE "'$GETTEXT_PACKAGE'"/' \
25819     -e 's/.* GST_DATADIR$/#define GST_DATADIR PREFIX "\\\\share"/' \
25820     -e 's/.* GST_LEVEL_DEFAULT$/#define GST_LEVEL_DEFAULT GST_LEVEL_ERROR/' \
25821     -e 's/.* GST_LICENSE$/#define GST_LICENSE "'$GST_LICENSE'"/' \
25822     -e 's/.* GST_MAJORMINOR$/#define GST_MAJORMINOR "'$GST_MAJORMINOR'"/' \
25823     -e "s,.* GST_PACKAGE_NAME$,#define GST_PACKAGE_NAME \"${GST_PACKAGE_NAME}\"," \
25824     -e 's/.* GST_PACKAGE_ORIGIN$/#define GST_PACKAGE_ORIGIN "Unknown package origin"/' \
25825     -e "s,.* GST_PACKAGE_RELEASE_DATETIME$,#define GST_PACKAGE_RELEASE_DATETIME \"${GST_PACKAGE_RELEASE_DATETIME}\"," \
25826     -e 's/.* HAVE_CPU_I386$/#define HAVE_CPU_I386 1/' \
25827     -e 's/.* HAVE_FGETPOS$/#define HAVE_FGETPOS 1/' \
25828     -e 's/.* HAVE_FSETPOS$/#define HAVE_FSETPOS 1/' \
25829     -e 's/.* HAVE_LIBXML2$/#define HAVE_LIBXML2 1/' \
25830     -e 's/.* HAVE_PROCESS_H$/#define HAVE_PROCESS_H 1/' \
25831     -e 's/.* HAVE_STDLIB_H$/#define HAVE_STDLIB_H 1/' \
25832     -e 's/.* HAVE_STRING_H$/#define HAVE_STRING_H 1/' \
25833     -e 's/.* HAVE_SYS_STAT_H$/#define HAVE_SYS_STAT_H 1/' \
25834     -e 's/.* HAVE_SYS_TYPES_H$/#define HAVE_SYS_TYPES_H 1/' \
25835     -e 's/.* HAVE_WIN32$/#define HAVE_WIN32 1/' \
25836     -e 's/.* HAVE_WINSOCK2_H$/#define HAVE_WINSOCK2_H 1/' \
25837     -e 's/.* HOST_CPU$/#define HOST_CPU "i686"/' \
25838     -e 's/.* BUFFER_ALIGNMENT_MALLOC/#define BUFFER_ALIGNMENT_MALLOC 1/' \
25839     -e 's/.* LIBDIR$/#ifdef _DEBUG\n#  define LIBDIR PREFIX "\\\\debug\\\\lib"\n#else\n#  define LIBDIR PREFIX "\\\\lib"\n#endif/' \
25840     -e 's/.* LOCALEDIR$/#define LOCALEDIR PREFIX "\\\\share\\\\locale"/' \
25841     -e 's/.* PACKAGE$/#define PACKAGE "gstreamer"/' \
25842     -e 's/.* PACKAGE_BUGREPORT$/#define PACKAGE_BUGREPORT "http:\/\/bugzilla.gnome.org\/enter_bug.cgi?product=GStreamer"/' \
25843     -e 's/.* PACKAGE_NAME$/#define PACKAGE_NAME "'$PACKAGE_NAME'"/' \
25844     -e "s/.* PACKAGE_STRING$/#define PACKAGE_STRING \"$PACKAGE_STRING\"/" \
25845     -e 's/.* PACKAGE_TARNAME$/#define PACKAGE_TARNAME "'$PACKAGE_TARNAME'"/' \
25846     -e 's/.* PACKAGE_VERSION$/#define PACKAGE_VERSION "'$PACKAGE_VERSION'"/' \
25847     -e 's/.* PLUGINDIR$/#ifdef _DEBUG\n#  define PLUGINDIR PREFIX "\\\\debug\\\\lib\\\\gstreamer-0.10"\n#else\n#  define PLUGINDIR PREFIX "\\\\lib\\\\gstreamer-0.10"\n#endif/' \
25848     -e 's/.* GST_PLUGIN_SCANNER_INSTALLED$/#define GST_PLUGIN_SCANNER_INSTALLED LIBDIR "\\\\gst-plugin-scanner"/' \
25849     -e 's/.* VERSION$/#define VERSION "'$VERSION'"/' \
25850     config.h.in >win32/common/config.h-new
25851
25852 cat >confcache <<\_ACEOF
25853 # This file is a shell script that caches the results of configure
25854 # tests run on this system so they can be shared between configure
25855 # scripts and configure runs, see configure's option --config-cache.
25856 # It is not useful on other systems.  If it contains results you don't
25857 # want to keep, you may remove or edit it.
25858 #
25859 # config.status only pays attention to the cache file if you give it
25860 # the --recheck option to rerun configure.
25861 #
25862 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25863 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25864 # following values.
25865
25866 _ACEOF
25867
25868 # The following way of writing the cache mishandles newlines in values,
25869 # but we know of no workaround that is simple, portable, and efficient.
25870 # So, we kill variables containing newlines.
25871 # Ultrix sh set writes to stderr and can't be redirected directly,
25872 # and sets the high bit in the cache file unless we assign to the vars.
25873 (
25874   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25875     eval ac_val=\$$ac_var
25876     case $ac_val in #(
25877     *${as_nl}*)
25878       case $ac_var in #(
25879       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
25880 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
25881       esac
25882       case $ac_var in #(
25883       _ | IFS | as_nl) ;; #(
25884       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
25885       *) { eval $ac_var=; unset $ac_var;} ;;
25886       esac ;;
25887     esac
25888   done
25889
25890   (set) 2>&1 |
25891     case $as_nl`(ac_space=' '; set) 2>&1` in #(
25892     *${as_nl}ac_space=\ *)
25893       # `set' does not quote correctly, so add quotes: double-quote
25894       # substitution turns \\\\ into \\, and sed turns \\ into \.
25895       sed -n \
25896         "s/'/'\\\\''/g;
25897           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25898       ;; #(
25899     *)
25900       # `set' quotes correctly as required by POSIX, so do not add quotes.
25901       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25902       ;;
25903     esac |
25904     sort
25905 ) |
25906   sed '
25907      /^ac_cv_env_/b end
25908      t clear
25909      :clear
25910      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25911      t end
25912      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25913      :end' >>confcache
25914 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25915   if test -w "$cache_file"; then
25916     if test "x$cache_file" != "x/dev/null"; then
25917       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
25918 $as_echo "$as_me: updating cache $cache_file" >&6;}
25919       if test ! -f "$cache_file" || test -h "$cache_file"; then
25920         cat confcache >"$cache_file"
25921       else
25922         case $cache_file in #(
25923         */* | ?:*)
25924           mv -f confcache "$cache_file"$$ &&
25925           mv -f "$cache_file"$$ "$cache_file" ;; #(
25926         *)
25927           mv -f confcache "$cache_file" ;;
25928         esac
25929       fi
25930     fi
25931   else
25932     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
25933 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25934   fi
25935 fi
25936 rm -f confcache
25937
25938 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25939 # Let make expand exec_prefix.
25940 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25941
25942 DEFS=-DHAVE_CONFIG_H
25943
25944 ac_libobjs=
25945 ac_ltlibobjs=
25946 U=
25947 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25948   # 1. Remove the extension, and $U if already installed.
25949   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25950   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
25951   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
25952   #    will be set to the directory where LIBOBJS objects are built.
25953   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25954   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
25955 done
25956 LIBOBJS=$ac_libobjs
25957
25958 LTLIBOBJS=$ac_ltlibobjs
25959
25960
25961  if test -n "$EXEEXT"; then
25962   am__EXEEXT_TRUE=
25963   am__EXEEXT_FALSE='#'
25964 else
25965   am__EXEEXT_TRUE='#'
25966   am__EXEEXT_FALSE=
25967 fi
25968
25969 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
25970   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
25971 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25972 fi
25973 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25974   as_fn_error $? "conditional \"AMDEP\" was never defined.
25975 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25976 fi
25977 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25978   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
25979 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25980 fi
25981 if test -z "${GST_DISABLE_GST_DEBUG_TRUE}" && test -z "${GST_DISABLE_GST_DEBUG_FALSE}"; then
25982   as_fn_error $? "conditional \"GST_DISABLE_GST_DEBUG\" was never defined.
25983 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25984 fi
25985 if test -z "${GST_DISABLE_LOADSAVE_TRUE}" && test -z "${GST_DISABLE_LOADSAVE_FALSE}"; then
25986   as_fn_error $? "conditional \"GST_DISABLE_LOADSAVE\" was never defined.
25987 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25988 fi
25989 if test -z "${GST_DISABLE_PARSE_TRUE}" && test -z "${GST_DISABLE_PARSE_FALSE}"; then
25990   as_fn_error $? "conditional \"GST_DISABLE_PARSE\" was never defined.
25991 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25992 fi
25993 if test -z "${GST_DISABLE_OPTION_PARSING_TRUE}" && test -z "${GST_DISABLE_OPTION_PARSING_FALSE}"; then
25994   as_fn_error $? "conditional \"GST_DISABLE_OPTION_PARSING\" was never defined.
25995 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25996 fi
25997 if test -z "${GST_DISABLE_TRACE_TRUE}" && test -z "${GST_DISABLE_TRACE_FALSE}"; then
25998   as_fn_error $? "conditional \"GST_DISABLE_TRACE\" was never defined.
25999 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26000 fi
26001 if test -z "${GST_DISABLE_ALLOC_TRACE_TRUE}" && test -z "${GST_DISABLE_ALLOC_TRACE_FALSE}"; then
26002   as_fn_error $? "conditional \"GST_DISABLE_ALLOC_TRACE\" was never defined.
26003 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26004 fi
26005 if test -z "${GST_DISABLE_REGISTRY_TRUE}" && test -z "${GST_DISABLE_REGISTRY_FALSE}"; then
26006   as_fn_error $? "conditional \"GST_DISABLE_REGISTRY\" was never defined.
26007 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26008 fi
26009 if test -z "${GST_DISABLE_NET_TRUE}" && test -z "${GST_DISABLE_NET_FALSE}"; then
26010   as_fn_error $? "conditional \"GST_DISABLE_NET\" was never defined.
26011 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26012 fi
26013 if test -z "${GST_DISABLE_PLUGIN_TRUE}" && test -z "${GST_DISABLE_PLUGIN_FALSE}"; then
26014   as_fn_error $? "conditional \"GST_DISABLE_PLUGIN\" was never defined.
26015 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26016 fi
26017 if test -z "${GST_GCOV_ENABLED_TRUE}" && test -z "${GST_GCOV_ENABLED_FALSE}"; then
26018   as_fn_error $? "conditional \"GST_GCOV_ENABLED\" was never defined.
26019 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26020 fi
26021 if test -z "${BUILD_EXAMPLES_TRUE}" && test -z "${BUILD_EXAMPLES_FALSE}"; then
26022   as_fn_error $? "conditional \"BUILD_EXAMPLES\" was never defined.
26023 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26024 fi
26025 if test -z "${BUILD_TESTS_TRUE}" && test -z "${BUILD_TESTS_FALSE}"; then
26026   as_fn_error $? "conditional \"BUILD_TESTS\" was never defined.
26027 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26028 fi
26029 if test -z "${BUILD_FAILING_TESTS_TRUE}" && test -z "${BUILD_FAILING_TESTS_FALSE}"; then
26030   as_fn_error $? "conditional \"BUILD_FAILING_TESTS\" was never defined.
26031 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26032 fi
26033
26034 if test -z "${HAVE_CPU_I386_TRUE}" && test -z "${HAVE_CPU_I386_FALSE}"; then
26035   as_fn_error $? "conditional \"HAVE_CPU_I386\" was never defined.
26036 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26037 fi
26038 if test -z "${HAVE_CPU_PPC_TRUE}" && test -z "${HAVE_CPU_PPC_FALSE}"; then
26039   as_fn_error $? "conditional \"HAVE_CPU_PPC\" was never defined.
26040 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26041 fi
26042 if test -z "${HAVE_CPU_PPC64_TRUE}" && test -z "${HAVE_CPU_PPC64_FALSE}"; then
26043   as_fn_error $? "conditional \"HAVE_CPU_PPC64\" was never defined.
26044 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26045 fi
26046 if test -z "${HAVE_CPU_ALPHA_TRUE}" && test -z "${HAVE_CPU_ALPHA_FALSE}"; then
26047   as_fn_error $? "conditional \"HAVE_CPU_ALPHA\" was never defined.
26048 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26049 fi
26050 if test -z "${HAVE_CPU_ARM_TRUE}" && test -z "${HAVE_CPU_ARM_FALSE}"; then
26051   as_fn_error $? "conditional \"HAVE_CPU_ARM\" was never defined.
26052 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26053 fi
26054 if test -z "${HAVE_CPU_SPARC_TRUE}" && test -z "${HAVE_CPU_SPARC_FALSE}"; then
26055   as_fn_error $? "conditional \"HAVE_CPU_SPARC\" was never defined.
26056 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26057 fi
26058 if test -z "${HAVE_CPU_HPPA_TRUE}" && test -z "${HAVE_CPU_HPPA_FALSE}"; then
26059   as_fn_error $? "conditional \"HAVE_CPU_HPPA\" was never defined.
26060 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26061 fi
26062 if test -z "${HAVE_CPU_MIPS_TRUE}" && test -z "${HAVE_CPU_MIPS_FALSE}"; then
26063   as_fn_error $? "conditional \"HAVE_CPU_MIPS\" was never defined.
26064 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26065 fi
26066 if test -z "${HAVE_CPU_S390_TRUE}" && test -z "${HAVE_CPU_S390_FALSE}"; then
26067   as_fn_error $? "conditional \"HAVE_CPU_S390\" was never defined.
26068 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26069 fi
26070 if test -z "${HAVE_CPU_IA64_TRUE}" && test -z "${HAVE_CPU_IA64_FALSE}"; then
26071   as_fn_error $? "conditional \"HAVE_CPU_IA64\" was never defined.
26072 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26073 fi
26074 if test -z "${HAVE_CPU_M68K_TRUE}" && test -z "${HAVE_CPU_M68K_FALSE}"; then
26075   as_fn_error $? "conditional \"HAVE_CPU_M68K\" was never defined.
26076 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26077 fi
26078 if test -z "${HAVE_CPU_X86_64_TRUE}" && test -z "${HAVE_CPU_X86_64_FALSE}"; then
26079   as_fn_error $? "conditional \"HAVE_CPU_X86_64\" was never defined.
26080 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26081 fi
26082 if test -z "${HAVE_CPU_CRIS_TRUE}" && test -z "${HAVE_CPU_CRIS_FALSE}"; then
26083   as_fn_error $? "conditional \"HAVE_CPU_CRIS\" was never defined.
26084 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26085 fi
26086 if test -z "${HAVE_CPU_CRISV32_TRUE}" && test -z "${HAVE_CPU_CRISV32_FALSE}"; then
26087   as_fn_error $? "conditional \"HAVE_CPU_CRISV32\" was never defined.
26088 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26089 fi
26090 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26091   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
26092 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26093 fi
26094 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
26095   as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
26096 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26097 fi
26098 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
26099   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
26100 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26101 fi
26102 if test -z "${HAVE_CXX_TRUE}" && test -z "${HAVE_CXX_FALSE}"; then
26103   as_fn_error $? "conditional \"HAVE_CXX\" was never defined.
26104 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26105 fi
26106 if test -z "${HAVE_VALGRIND_TRUE}" && test -z "${HAVE_VALGRIND_FALSE}"; then
26107   as_fn_error $? "conditional \"HAVE_VALGRIND\" was never defined.
26108 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26109 fi
26110 if test -z "${HAVE_INTROSPECTION_TRUE}" && test -z "${HAVE_INTROSPECTION_FALSE}"; then
26111   as_fn_error $? "conditional \"HAVE_INTROSPECTION\" was never defined.
26112 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26113 fi
26114 if test -z "${ENABLE_DOCBOOK_TRUE}" && test -z "${ENABLE_DOCBOOK_FALSE}"; then
26115   as_fn_error $? "conditional \"ENABLE_DOCBOOK\" was never defined.
26116 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26117 fi
26118 if test -z "${DOC_HTML_TRUE}" && test -z "${DOC_HTML_FALSE}"; then
26119   as_fn_error $? "conditional \"DOC_HTML\" was never defined.
26120 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26121 fi
26122 if test -z "${DOC_PDF_TRUE}" && test -z "${DOC_PDF_FALSE}"; then
26123   as_fn_error $? "conditional \"DOC_PDF\" was never defined.
26124 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26125 fi
26126 if test -z "${DOC_PS_TRUE}" && test -z "${DOC_PS_FALSE}"; then
26127   as_fn_error $? "conditional \"DOC_PS\" was never defined.
26128 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26129 fi
26130 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
26131   as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
26132 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26133 fi
26134 if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
26135   as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
26136 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26137 fi
26138 if test -z "${ENABLE_PLUGIN_DOCS_TRUE}" && test -z "${ENABLE_PLUGIN_DOCS_FALSE}"; then
26139   as_fn_error $? "conditional \"ENABLE_PLUGIN_DOCS\" was never defined.
26140 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26141 fi
26142 if test -z "${HAVE_SYS_SOCKET_H_TRUE}" && test -z "${HAVE_SYS_SOCKET_H_FALSE}"; then
26143   as_fn_error $? "conditional \"HAVE_SYS_SOCKET_H\" was never defined.
26144 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26145 fi
26146 if test -z "${HAVE_SYS_TIMES_H_AND_UNISTD_H_TRUE}" && test -z "${HAVE_SYS_TIMES_H_AND_UNISTD_H_FALSE}"; then
26147   as_fn_error $? "conditional \"HAVE_SYS_TIMES_H_AND_UNISTD_H\" was never defined.
26148 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26149 fi
26150 if test -z "${HAVE_PTHREAD_H_TRUE}" && test -z "${HAVE_PTHREAD_H_FALSE}"; then
26151   as_fn_error $? "conditional \"HAVE_PTHREAD_H\" was never defined.
26152 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26153 fi
26154 if test -z "${HAVE_WINSOCK2_H_TRUE}" && test -z "${HAVE_WINSOCK2_H_FALSE}"; then
26155   as_fn_error $? "conditional \"HAVE_WINSOCK2_H\" was never defined.
26156 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26157 fi
26158 if test -z "${HAVE_MMAP_TRUE}" && test -z "${HAVE_MMAP_FALSE}"; then
26159   as_fn_error $? "conditional \"HAVE_MMAP\" was never defined.
26160 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26161 fi
26162 if test -z "${GST_HAVE_POSIX_TIMERS_TRUE}" && test -z "${GST_HAVE_POSIX_TIMERS_FALSE}"; then
26163   as_fn_error $? "conditional \"GST_HAVE_POSIX_TIMERS\" was never defined.
26164 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26165 fi
26166 if test -z "${GST_HAVE_MONOTONIC_CLOCK_TRUE}" && test -z "${GST_HAVE_MONOTONIC_CLOCK_FALSE}"; then
26167   as_fn_error $? "conditional \"GST_HAVE_MONOTONIC_CLOCK\" was never defined.
26168 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26169 fi
26170 if test -z "${HAVE_CHECK_TRUE}" && test -z "${HAVE_CHECK_FALSE}"; then
26171   as_fn_error $? "conditional \"HAVE_CHECK\" was never defined.
26172 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26173 fi
26174 if test -z "${SUBUNIT_TRUE}" && test -z "${SUBUNIT_FALSE}"; then
26175   as_fn_error $? "conditional \"SUBUNIT\" was never defined.
26176 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26177 fi
26178
26179 : "${CONFIG_STATUS=./config.status}"
26180 ac_write_fail=0
26181 ac_clean_files_save=$ac_clean_files
26182 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26183 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
26184 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26185 as_write_fail=0
26186 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
26187 #! $SHELL
26188 # Generated by $as_me.
26189 # Run this file to recreate the current configuration.
26190 # Compiler output produced by configure, useful for debugging
26191 # configure, is in config.log if it exists.
26192
26193 debug=false
26194 ac_cs_recheck=false
26195 ac_cs_silent=false
26196
26197 SHELL=\${CONFIG_SHELL-$SHELL}
26198 export SHELL
26199 _ASEOF
26200 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
26201 ## -------------------- ##
26202 ## M4sh Initialization. ##
26203 ## -------------------- ##
26204
26205 # Be more Bourne compatible
26206 DUALCASE=1; export DUALCASE # for MKS sh
26207 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
26208   emulate sh
26209   NULLCMD=:
26210   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26211   # is contrary to our usage.  Disable this feature.
26212   alias -g '${1+"$@"}'='"$@"'
26213   setopt NO_GLOB_SUBST
26214 else
26215   case `(set -o) 2>/dev/null` in #(
26216   *posix*) :
26217     set -o posix ;; #(
26218   *) :
26219      ;;
26220 esac
26221 fi
26222
26223
26224 as_nl='
26225 '
26226 export as_nl
26227 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26228 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26229 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26230 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26231 # Prefer a ksh shell builtin over an external printf program on Solaris,
26232 # but without wasting forks for bash or zsh.
26233 if test -z "$BASH_VERSION$ZSH_VERSION" \
26234     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
26235   as_echo='print -r --'
26236   as_echo_n='print -rn --'
26237 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26238   as_echo='printf %s\n'
26239   as_echo_n='printf %s'
26240 else
26241   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26242     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26243     as_echo_n='/usr/ucb/echo -n'
26244   else
26245     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26246     as_echo_n_body='eval
26247       arg=$1;
26248       case $arg in #(
26249       *"$as_nl"*)
26250         expr "X$arg" : "X\\(.*\\)$as_nl";
26251         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26252       esac;
26253       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26254     '
26255     export as_echo_n_body
26256     as_echo_n='sh -c $as_echo_n_body as_echo'
26257   fi
26258   export as_echo_body
26259   as_echo='sh -c $as_echo_body as_echo'
26260 fi
26261
26262 # The user is always right.
26263 if test "${PATH_SEPARATOR+set}" != set; then
26264   PATH_SEPARATOR=:
26265   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26266     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26267       PATH_SEPARATOR=';'
26268   }
26269 fi
26270
26271
26272 # IFS
26273 # We need space, tab and new line, in precisely that order.  Quoting is
26274 # there to prevent editors from complaining about space-tab.
26275 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26276 # splitting by setting IFS to empty value.)
26277 IFS=" ""        $as_nl"
26278
26279 # Find who we are.  Look in the path if we contain no directory separator.
26280 as_myself=
26281 case $0 in #((
26282   *[\\/]* ) as_myself=$0 ;;
26283   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26284 for as_dir in $PATH
26285 do
26286   IFS=$as_save_IFS
26287   test -z "$as_dir" && as_dir=.
26288     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26289   done
26290 IFS=$as_save_IFS
26291
26292      ;;
26293 esac
26294 # We did not find ourselves, most probably we were run as `sh COMMAND'
26295 # in which case we are not to be found in the path.
26296 if test "x$as_myself" = x; then
26297   as_myself=$0
26298 fi
26299 if test ! -f "$as_myself"; then
26300   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26301   exit 1
26302 fi
26303
26304 # Unset variables that we do not need and which cause bugs (e.g. in
26305 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
26306 # suppresses any "Segmentation fault" message there.  '((' could
26307 # trigger a bug in pdksh 5.2.14.
26308 for as_var in BASH_ENV ENV MAIL MAILPATH
26309 do eval test x\${$as_var+set} = xset \
26310   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26311 done
26312 PS1='$ '
26313 PS2='> '
26314 PS4='+ '
26315
26316 # NLS nuisances.
26317 LC_ALL=C
26318 export LC_ALL
26319 LANGUAGE=C
26320 export LANGUAGE
26321
26322 # CDPATH.
26323 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26324
26325
26326 # as_fn_error STATUS ERROR [LINENO LOG_FD]
26327 # ----------------------------------------
26328 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26329 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26330 # script with STATUS, using 1 if that was 0.
26331 as_fn_error ()
26332 {
26333   as_status=$1; test $as_status -eq 0 && as_status=1
26334   if test "$4"; then
26335     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
26336     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
26337   fi
26338   $as_echo "$as_me: error: $2" >&2
26339   as_fn_exit $as_status
26340 } # as_fn_error
26341
26342
26343 # as_fn_set_status STATUS
26344 # -----------------------
26345 # Set $? to STATUS, without forking.
26346 as_fn_set_status ()
26347 {
26348   return $1
26349 } # as_fn_set_status
26350
26351 # as_fn_exit STATUS
26352 # -----------------
26353 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26354 as_fn_exit ()
26355 {
26356   set +e
26357   as_fn_set_status $1
26358   exit $1
26359 } # as_fn_exit
26360
26361 # as_fn_unset VAR
26362 # ---------------
26363 # Portably unset VAR.
26364 as_fn_unset ()
26365 {
26366   { eval $1=; unset $1;}
26367 }
26368 as_unset=as_fn_unset
26369 # as_fn_append VAR VALUE
26370 # ----------------------
26371 # Append the text in VALUE to the end of the definition contained in VAR. Take
26372 # advantage of any shell optimizations that allow amortized linear growth over
26373 # repeated appends, instead of the typical quadratic growth present in naive
26374 # implementations.
26375 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
26376   eval 'as_fn_append ()
26377   {
26378     eval $1+=\$2
26379   }'
26380 else
26381   as_fn_append ()
26382   {
26383     eval $1=\$$1\$2
26384   }
26385 fi # as_fn_append
26386
26387 # as_fn_arith ARG...
26388 # ------------------
26389 # Perform arithmetic evaluation on the ARGs, and store the result in the
26390 # global $as_val. Take advantage of shells that can avoid forks. The arguments
26391 # must be portable across $(()) and expr.
26392 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
26393   eval 'as_fn_arith ()
26394   {
26395     as_val=$(( $* ))
26396   }'
26397 else
26398   as_fn_arith ()
26399   {
26400     as_val=`expr "$@" || test $? -eq 1`
26401   }
26402 fi # as_fn_arith
26403
26404
26405 if expr a : '\(a\)' >/dev/null 2>&1 &&
26406    test "X`expr 00001 : '.*\(...\)'`" = X001; then
26407   as_expr=expr
26408 else
26409   as_expr=false
26410 fi
26411
26412 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26413   as_basename=basename
26414 else
26415   as_basename=false
26416 fi
26417
26418 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26419   as_dirname=dirname
26420 else
26421   as_dirname=false
26422 fi
26423
26424 as_me=`$as_basename -- "$0" ||
26425 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26426          X"$0" : 'X\(//\)$' \| \
26427          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26428 $as_echo X/"$0" |
26429     sed '/^.*\/\([^/][^/]*\)\/*$/{
26430             s//\1/
26431             q
26432           }
26433           /^X\/\(\/\/\)$/{
26434             s//\1/
26435             q
26436           }
26437           /^X\/\(\/\).*/{
26438             s//\1/
26439             q
26440           }
26441           s/.*/./; q'`
26442
26443 # Avoid depending upon Character Ranges.
26444 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26445 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26446 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26447 as_cr_digits='0123456789'
26448 as_cr_alnum=$as_cr_Letters$as_cr_digits
26449
26450 ECHO_C= ECHO_N= ECHO_T=
26451 case `echo -n x` in #(((((
26452 -n*)
26453   case `echo 'xy\c'` in
26454   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
26455   xy)  ECHO_C='\c';;
26456   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
26457        ECHO_T=' ';;
26458   esac;;
26459 *)
26460   ECHO_N='-n';;
26461 esac
26462
26463 rm -f conf$$ conf$$.exe conf$$.file
26464 if test -d conf$$.dir; then
26465   rm -f conf$$.dir/conf$$.file
26466 else
26467   rm -f conf$$.dir
26468   mkdir conf$$.dir 2>/dev/null
26469 fi
26470 if (echo >conf$$.file) 2>/dev/null; then
26471   if ln -s conf$$.file conf$$ 2>/dev/null; then
26472     as_ln_s='ln -s'
26473     # ... but there are two gotchas:
26474     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26475     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26476     # In both cases, we have to default to `cp -p'.
26477     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26478       as_ln_s='cp -p'
26479   elif ln conf$$.file conf$$ 2>/dev/null; then
26480     as_ln_s=ln
26481   else
26482     as_ln_s='cp -p'
26483   fi
26484 else
26485   as_ln_s='cp -p'
26486 fi
26487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26488 rmdir conf$$.dir 2>/dev/null
26489
26490
26491 # as_fn_mkdir_p
26492 # -------------
26493 # Create "$as_dir" as a directory, including parents if necessary.
26494 as_fn_mkdir_p ()
26495 {
26496
26497   case $as_dir in #(
26498   -*) as_dir=./$as_dir;;
26499   esac
26500   test -d "$as_dir" || eval $as_mkdir_p || {
26501     as_dirs=
26502     while :; do
26503       case $as_dir in #(
26504       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26505       *) as_qdir=$as_dir;;
26506       esac
26507       as_dirs="'$as_qdir' $as_dirs"
26508       as_dir=`$as_dirname -- "$as_dir" ||
26509 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26510          X"$as_dir" : 'X\(//\)[^/]' \| \
26511          X"$as_dir" : 'X\(//\)$' \| \
26512          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26513 $as_echo X"$as_dir" |
26514     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26515             s//\1/
26516             q
26517           }
26518           /^X\(\/\/\)[^/].*/{
26519             s//\1/
26520             q
26521           }
26522           /^X\(\/\/\)$/{
26523             s//\1/
26524             q
26525           }
26526           /^X\(\/\).*/{
26527             s//\1/
26528             q
26529           }
26530           s/.*/./; q'`
26531       test -d "$as_dir" && break
26532     done
26533     test -z "$as_dirs" || eval "mkdir $as_dirs"
26534   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
26535
26536
26537 } # as_fn_mkdir_p
26538 if mkdir -p . 2>/dev/null; then
26539   as_mkdir_p='mkdir -p "$as_dir"'
26540 else
26541   test -d ./-p && rmdir ./-p
26542   as_mkdir_p=false
26543 fi
26544
26545 if test -x / >/dev/null 2>&1; then
26546   as_test_x='test -x'
26547 else
26548   if ls -dL / >/dev/null 2>&1; then
26549     as_ls_L_option=L
26550   else
26551     as_ls_L_option=
26552   fi
26553   as_test_x='
26554     eval sh -c '\''
26555       if test -d "$1"; then
26556         test -d "$1/.";
26557       else
26558         case $1 in #(
26559         -*)set "./$1";;
26560         esac;
26561         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
26562         ???[sx]*):;;*)false;;esac;fi
26563     '\'' sh
26564   '
26565 fi
26566 as_executable_p=$as_test_x
26567
26568 # Sed expression to map a string onto a valid CPP name.
26569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26570
26571 # Sed expression to map a string onto a valid variable name.
26572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26573
26574
26575 exec 6>&1
26576 ## ----------------------------------- ##
26577 ## Main body of $CONFIG_STATUS script. ##
26578 ## ----------------------------------- ##
26579 _ASEOF
26580 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
26581
26582 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26583 # Save the log message, to keep $0 and so on meaningful, and to
26584 # report actual input values of CONFIG_FILES etc. instead of their
26585 # values after options handling.
26586 ac_log="
26587 This file was extended by GStreamer $as_me 0.10.36, which was
26588 generated by GNU Autoconf 2.68.  Invocation command line was
26589
26590   CONFIG_FILES    = $CONFIG_FILES
26591   CONFIG_HEADERS  = $CONFIG_HEADERS
26592   CONFIG_LINKS    = $CONFIG_LINKS
26593   CONFIG_COMMANDS = $CONFIG_COMMANDS
26594   $ $0 $@
26595
26596 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26597 "
26598
26599 _ACEOF
26600
26601 case $ac_config_files in *"
26602 "*) set x $ac_config_files; shift; ac_config_files=$*;;
26603 esac
26604
26605 case $ac_config_headers in *"
26606 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
26607 esac
26608
26609
26610 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26611 # Files that config.status was made for.
26612 config_files="$ac_config_files"
26613 config_headers="$ac_config_headers"
26614 config_commands="$ac_config_commands"
26615
26616 _ACEOF
26617
26618 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26619 ac_cs_usage="\
26620 \`$as_me' instantiates files and other configuration actions
26621 from templates according to the current configuration.  Unless the files
26622 and actions are specified as TAGs, all are instantiated by default.
26623
26624 Usage: $0 [OPTION]... [TAG]...
26625
26626   -h, --help       print this help, then exit
26627   -V, --version    print version number and configuration settings, then exit
26628       --config     print configuration, then exit
26629   -q, --quiet, --silent
26630                    do not print progress messages
26631   -d, --debug      don't remove temporary files
26632       --recheck    update $as_me by reconfiguring in the same conditions
26633       --file=FILE[:TEMPLATE]
26634                    instantiate the configuration file FILE
26635       --header=FILE[:TEMPLATE]
26636                    instantiate the configuration header FILE
26637
26638 Configuration files:
26639 $config_files
26640
26641 Configuration headers:
26642 $config_headers
26643
26644 Configuration commands:
26645 $config_commands
26646
26647 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer>."
26648
26649 _ACEOF
26650 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26651 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
26652 ac_cs_version="\\
26653 GStreamer config.status 0.10.36
26654 configured by $0, generated by GNU Autoconf 2.68,
26655   with options \\"\$ac_cs_config\\"
26656
26657 Copyright (C) 2010 Free Software Foundation, Inc.
26658 This config.status script is free software; the Free Software Foundation
26659 gives unlimited permission to copy, distribute and modify it."
26660
26661 ac_pwd='$ac_pwd'
26662 srcdir='$srcdir'
26663 INSTALL='$INSTALL'
26664 MKDIR_P='$MKDIR_P'
26665 AWK='$AWK'
26666 test -n "\$AWK" || AWK=awk
26667 _ACEOF
26668
26669 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26670 # The default lists apply if the user does not specify any file.
26671 ac_need_defaults=:
26672 while test $# != 0
26673 do
26674   case $1 in
26675   --*=?*)
26676     ac_option=`expr "X$1" : 'X\([^=]*\)='`
26677     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26678     ac_shift=:
26679     ;;
26680   --*=)
26681     ac_option=`expr "X$1" : 'X\([^=]*\)='`
26682     ac_optarg=
26683     ac_shift=:
26684     ;;
26685   *)
26686     ac_option=$1
26687     ac_optarg=$2
26688     ac_shift=shift
26689     ;;
26690   esac
26691
26692   case $ac_option in
26693   # Handling of the options.
26694   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26695     ac_cs_recheck=: ;;
26696   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26697     $as_echo "$ac_cs_version"; exit ;;
26698   --config | --confi | --conf | --con | --co | --c )
26699     $as_echo "$ac_cs_config"; exit ;;
26700   --debug | --debu | --deb | --de | --d | -d )
26701     debug=: ;;
26702   --file | --fil | --fi | --f )
26703     $ac_shift
26704     case $ac_optarg in
26705     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26706     '') as_fn_error $? "missing file argument" ;;
26707     esac
26708     as_fn_append CONFIG_FILES " '$ac_optarg'"
26709     ac_need_defaults=false;;
26710   --header | --heade | --head | --hea )
26711     $ac_shift
26712     case $ac_optarg in
26713     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26714     esac
26715     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
26716     ac_need_defaults=false;;
26717   --he | --h)
26718     # Conflict between --help and --header
26719     as_fn_error $? "ambiguous option: \`$1'
26720 Try \`$0 --help' for more information.";;
26721   --help | --hel | -h )
26722     $as_echo "$ac_cs_usage"; exit ;;
26723   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26724   | -silent | --silent | --silen | --sile | --sil | --si | --s)
26725     ac_cs_silent=: ;;
26726
26727   # This is an error.
26728   -*) as_fn_error $? "unrecognized option: \`$1'
26729 Try \`$0 --help' for more information." ;;
26730
26731   *) as_fn_append ac_config_targets " $1"
26732      ac_need_defaults=false ;;
26733
26734   esac
26735   shift
26736 done
26737
26738 ac_configure_extra_args=
26739
26740 if $ac_cs_silent; then
26741   exec 6>/dev/null
26742   ac_configure_extra_args="$ac_configure_extra_args --silent"
26743 fi
26744
26745 _ACEOF
26746 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26747 if \$ac_cs_recheck; then
26748   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26749   shift
26750   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26751   CONFIG_SHELL='$SHELL'
26752   export CONFIG_SHELL
26753   exec "\$@"
26754 fi
26755
26756 _ACEOF
26757 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26758 exec 5>>config.log
26759 {
26760   echo
26761   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26762 ## Running $as_me. ##
26763 _ASBOX
26764   $as_echo "$ac_log"
26765 } >&5
26766
26767 _ACEOF
26768 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26769 #
26770 # INIT-COMMANDS
26771 #
26772 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26773
26774
26775 # The HP-UX ksh and POSIX shell print the target directory to stdout
26776 # if CDPATH is set.
26777 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26778
26779 sed_quote_subst='$sed_quote_subst'
26780 double_quote_subst='$double_quote_subst'
26781 delay_variable_subst='$delay_variable_subst'
26782 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
26783 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
26784 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
26785 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
26786 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
26787 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
26788 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
26789 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
26790 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
26791 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
26792 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
26793 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
26794 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
26795 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
26796 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
26797 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
26798 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
26799 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
26800 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
26801 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
26802 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
26803 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
26804 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
26805 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
26806 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
26807 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
26808 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
26809 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
26810 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
26811 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
26812 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
26813 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
26814 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
26815 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
26816 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
26817 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
26818 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
26819 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
26820 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
26821 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
26822 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
26823 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
26824 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
26825 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
26826 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
26827 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
26828 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
26829 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
26830 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
26831 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
26832 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
26833 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
26834 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
26835 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
26836 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
26837 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
26838 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
26839 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"`'
26840 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
26841 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
26842 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
26843 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
26844 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
26845 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
26846 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
26847 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
26848 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
26849 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
26850 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
26851 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
26852 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
26853 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
26854 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
26855 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
26856 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
26857 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
26858 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
26859 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
26860 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
26861 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
26862 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
26863 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
26864 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
26865 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
26866 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
26867 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
26868 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
26869 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
26870 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
26871 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
26872 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
26873 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
26874 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
26875 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
26876 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
26877 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
26878 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
26879 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
26880 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
26881 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
26882 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
26883 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
26884 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
26885 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
26886 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
26887 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
26888 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
26889 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
26890 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
26891 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
26892 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
26893 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
26894 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
26895 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
26896 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
26897 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
26898 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
26899 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
26900 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
26901 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
26902 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
26903 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
26904 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
26905 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
26906 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
26907 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
26908 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
26909 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
26910 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
26911 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
26912 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
26913 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
26914 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
26915 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
26916 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
26917 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
26918 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
26919 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
26920 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
26921 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26922 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26923 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
26924 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
26925 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
26926 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
26927 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
26928 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
26929 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
26930 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
26931 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
26932 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
26933 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
26934 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
26935 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26936 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26937 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26938 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26939 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26940 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26941 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
26942 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
26943 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
26944 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
26945 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
26946 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
26947 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
26948 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
26949 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
26950 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
26951 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
26952 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
26953 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
26954 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26955 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
26956 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
26957 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26958 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26959 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
26960 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
26961 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
26962 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
26963 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
26964 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
26965 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
26966 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
26967
26968 LTCC='$LTCC'
26969 LTCFLAGS='$LTCFLAGS'
26970 compiler='$compiler_DEFAULT'
26971
26972 # A function that is used when there is no print builtin or printf.
26973 func_fallback_echo ()
26974 {
26975   eval 'cat <<_LTECHO_EOF
26976 \$1
26977 _LTECHO_EOF'
26978 }
26979
26980 # Quote evaled strings.
26981 for var in AS \
26982 DLLTOOL \
26983 OBJDUMP \
26984 SHELL \
26985 ECHO \
26986 PATH_SEPARATOR \
26987 SED \
26988 GREP \
26989 EGREP \
26990 FGREP \
26991 LD \
26992 NM \
26993 LN_S \
26994 lt_SP2NL \
26995 lt_NL2SP \
26996 reload_flag \
26997 deplibs_check_method \
26998 file_magic_cmd \
26999 file_magic_glob \
27000 want_nocaseglob \
27001 sharedlib_from_linklib_cmd \
27002 AR \
27003 AR_FLAGS \
27004 archiver_list_spec \
27005 STRIP \
27006 RANLIB \
27007 CC \
27008 CFLAGS \
27009 compiler \
27010 lt_cv_sys_global_symbol_pipe \
27011 lt_cv_sys_global_symbol_to_cdecl \
27012 lt_cv_sys_global_symbol_to_c_name_address \
27013 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
27014 nm_file_list_spec \
27015 lt_prog_compiler_no_builtin_flag \
27016 lt_prog_compiler_pic \
27017 lt_prog_compiler_wl \
27018 lt_prog_compiler_static \
27019 lt_cv_prog_compiler_c_o \
27020 need_locks \
27021 MANIFEST_TOOL \
27022 DSYMUTIL \
27023 NMEDIT \
27024 LIPO \
27025 OTOOL \
27026 OTOOL64 \
27027 shrext_cmds \
27028 export_dynamic_flag_spec \
27029 whole_archive_flag_spec \
27030 compiler_needs_object \
27031 with_gnu_ld \
27032 allow_undefined_flag \
27033 no_undefined_flag \
27034 hardcode_libdir_flag_spec \
27035 hardcode_libdir_separator \
27036 exclude_expsyms \
27037 include_expsyms \
27038 file_list_spec \
27039 variables_saved_for_relink \
27040 libname_spec \
27041 library_names_spec \
27042 soname_spec \
27043 install_override_mode \
27044 finish_eval \
27045 old_striplib \
27046 striplib \
27047 compiler_lib_search_dirs \
27048 predep_objects \
27049 postdep_objects \
27050 predeps \
27051 postdeps \
27052 compiler_lib_search_path \
27053 LD_CXX \
27054 reload_flag_CXX \
27055 compiler_CXX \
27056 lt_prog_compiler_no_builtin_flag_CXX \
27057 lt_prog_compiler_pic_CXX \
27058 lt_prog_compiler_wl_CXX \
27059 lt_prog_compiler_static_CXX \
27060 lt_cv_prog_compiler_c_o_CXX \
27061 export_dynamic_flag_spec_CXX \
27062 whole_archive_flag_spec_CXX \
27063 compiler_needs_object_CXX \
27064 with_gnu_ld_CXX \
27065 allow_undefined_flag_CXX \
27066 no_undefined_flag_CXX \
27067 hardcode_libdir_flag_spec_CXX \
27068 hardcode_libdir_separator_CXX \
27069 exclude_expsyms_CXX \
27070 include_expsyms_CXX \
27071 file_list_spec_CXX \
27072 compiler_lib_search_dirs_CXX \
27073 predep_objects_CXX \
27074 postdep_objects_CXX \
27075 predeps_CXX \
27076 postdeps_CXX \
27077 compiler_lib_search_path_CXX; do
27078     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27079     *[\\\\\\\`\\"\\\$]*)
27080       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
27081       ;;
27082     *)
27083       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27084       ;;
27085     esac
27086 done
27087
27088 # Double-quote double-evaled strings.
27089 for var in reload_cmds \
27090 old_postinstall_cmds \
27091 old_postuninstall_cmds \
27092 old_archive_cmds \
27093 extract_expsyms_cmds \
27094 old_archive_from_new_cmds \
27095 old_archive_from_expsyms_cmds \
27096 archive_cmds \
27097 archive_expsym_cmds \
27098 module_cmds \
27099 module_expsym_cmds \
27100 export_symbols_cmds \
27101 prelink_cmds \
27102 postlink_cmds \
27103 postinstall_cmds \
27104 postuninstall_cmds \
27105 finish_cmds \
27106 sys_lib_search_path_spec \
27107 sys_lib_dlsearch_path_spec \
27108 reload_cmds_CXX \
27109 old_archive_cmds_CXX \
27110 old_archive_from_new_cmds_CXX \
27111 old_archive_from_expsyms_cmds_CXX \
27112 archive_cmds_CXX \
27113 archive_expsym_cmds_CXX \
27114 module_cmds_CXX \
27115 module_expsym_cmds_CXX \
27116 export_symbols_cmds_CXX \
27117 prelink_cmds_CXX \
27118 postlink_cmds_CXX; do
27119     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27120     *[\\\\\\\`\\"\\\$]*)
27121       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
27122       ;;
27123     *)
27124       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27125       ;;
27126     esac
27127 done
27128
27129 ac_aux_dir='$ac_aux_dir'
27130 xsi_shell='$xsi_shell'
27131 lt_shell_append='$lt_shell_append'
27132
27133 # See if we are running on zsh, and set the options which allow our
27134 # commands through without removal of \ escapes INIT.
27135 if test -n "\${ZSH_VERSION+set}" ; then
27136    setopt NO_GLOB_SUBST
27137 fi
27138
27139
27140     PACKAGE='$PACKAGE'
27141     VERSION='$VERSION'
27142     TIMESTAMP='$TIMESTAMP'
27143     RM='$RM'
27144     ofile='$ofile'
27145
27146
27147
27148
27149
27150 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
27151     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
27152     # from automake < 1.5.
27153     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
27154     # Capture the value of LINGUAS because we need it to compute CATALOGS.
27155     LINGUAS="${LINGUAS-%UNSET%}"
27156
27157 # variables for create stdint.h replacement
27158 PACKAGE="$PACKAGE"
27159 VERSION="$VERSION"
27160 ac_stdint_h="$ac_stdint_h"
27161 _ac_stdint_h=`$as_echo "_$PACKAGE-$ac_stdint_h" | $as_tr_cpp`
27162 ac_cv_stdint_message="$ac_cv_stdint_message"
27163 ac_cv_header_stdint_t="$ac_cv_header_stdint_t"
27164 ac_cv_header_stdint_x="$ac_cv_header_stdint_x"
27165 ac_cv_header_stdint_o="$ac_cv_header_stdint_o"
27166 ac_cv_header_stdint_u="$ac_cv_header_stdint_u"
27167 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
27168 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
27169 ac_cv_char_data_model="$ac_cv_char_data_model"
27170 ac_cv_long_data_model="$ac_cv_long_data_model"
27171 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
27172 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
27173 ac_cv_type_intmax_t="$ac_cv_type_intmax_t"
27174
27175
27176 _ACEOF
27177
27178 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27179
27180 # Handling of arguments.
27181 for ac_config_target in $ac_config_targets
27182 do
27183   case $ac_config_target in
27184     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
27185     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27186     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
27187     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
27188     "$ac_stdint_h") CONFIG_COMMANDS="$CONFIG_COMMANDS $ac_stdint_h" ;;
27189     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27190     "gst/Makefile") CONFIG_FILES="$CONFIG_FILES gst/Makefile" ;;
27191     "gst/gstconfig.h") CONFIG_FILES="$CONFIG_FILES gst/gstconfig.h" ;;
27192     "gst/gstversion.h") CONFIG_FILES="$CONFIG_FILES gst/gstversion.h" ;;
27193     "gst/parse/Makefile") CONFIG_FILES="$CONFIG_FILES gst/parse/Makefile" ;;
27194     "libs/Makefile") CONFIG_FILES="$CONFIG_FILES libs/Makefile" ;;
27195     "libs/gst/Makefile") CONFIG_FILES="$CONFIG_FILES libs/gst/Makefile" ;;
27196     "libs/gst/base/Makefile") CONFIG_FILES="$CONFIG_FILES libs/gst/base/Makefile" ;;
27197     "libs/gst/check/Makefile") CONFIG_FILES="$CONFIG_FILES libs/gst/check/Makefile" ;;
27198     "libs/gst/check/libcheck/Makefile") CONFIG_FILES="$CONFIG_FILES libs/gst/check/libcheck/Makefile" ;;
27199     "libs/gst/check/libcheck/check.h") CONFIG_FILES="$CONFIG_FILES libs/gst/check/libcheck/check.h" ;;
27200     "libs/gst/controller/Makefile") CONFIG_FILES="$CONFIG_FILES libs/gst/controller/Makefile" ;;
27201     "libs/gst/dataprotocol/Makefile") CONFIG_FILES="$CONFIG_FILES libs/gst/dataprotocol/Makefile" ;;
27202     "libs/gst/helpers/Makefile") CONFIG_FILES="$CONFIG_FILES libs/gst/helpers/Makefile" ;;
27203     "libs/gst/net/Makefile") CONFIG_FILES="$CONFIG_FILES libs/gst/net/Makefile" ;;
27204     "plugins/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/Makefile" ;;
27205     "plugins/indexers/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/indexers/Makefile" ;;
27206     "plugins/elements/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/elements/Makefile" ;;
27207     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
27208     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
27209     "tests/benchmarks/Makefile") CONFIG_FILES="$CONFIG_FILES tests/benchmarks/Makefile" ;;
27210     "tests/check/Makefile") CONFIG_FILES="$CONFIG_FILES tests/check/Makefile" ;;
27211     "tests/misc/Makefile") CONFIG_FILES="$CONFIG_FILES tests/misc/Makefile" ;;
27212     "tests/examples/Makefile") CONFIG_FILES="$CONFIG_FILES tests/examples/Makefile" ;;
27213     "tests/examples/adapter/Makefile") CONFIG_FILES="$CONFIG_FILES tests/examples/adapter/Makefile" ;;
27214     "tests/examples/controller/Makefile") CONFIG_FILES="$CONFIG_FILES tests/examples/controller/Makefile" ;;
27215     "tests/examples/stepping/Makefile") CONFIG_FILES="$CONFIG_FILES tests/examples/stepping/Makefile" ;;
27216     "tests/examples/helloworld/Makefile") CONFIG_FILES="$CONFIG_FILES tests/examples/helloworld/Makefile" ;;
27217     "tests/examples/launch/Makefile") CONFIG_FILES="$CONFIG_FILES tests/examples/launch/Makefile" ;;
27218     "tests/examples/manual/Makefile") CONFIG_FILES="$CONFIG_FILES tests/examples/manual/Makefile" ;;
27219     "tests/examples/metadata/Makefile") CONFIG_FILES="$CONFIG_FILES tests/examples/metadata/Makefile" ;;
27220     "tests/examples/queue/Makefile") CONFIG_FILES="$CONFIG_FILES tests/examples/queue/Makefile" ;;
27221     "tests/examples/streams/Makefile") CONFIG_FILES="$CONFIG_FILES tests/examples/streams/Makefile" ;;
27222     "tests/examples/typefind/Makefile") CONFIG_FILES="$CONFIG_FILES tests/examples/typefind/Makefile" ;;
27223     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
27224     "common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;;
27225     "common/m4/Makefile") CONFIG_FILES="$CONFIG_FILES common/m4/Makefile" ;;
27226     "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
27227     "docs/design/Makefile") CONFIG_FILES="$CONFIG_FILES docs/design/Makefile" ;;
27228     "docs/faq/Makefile") CONFIG_FILES="$CONFIG_FILES docs/faq/Makefile" ;;
27229     "docs/gst/Makefile") CONFIG_FILES="$CONFIG_FILES docs/gst/Makefile" ;;
27230     "docs/gst/gstreamer.types") CONFIG_FILES="$CONFIG_FILES docs/gst/gstreamer.types" ;;
27231     "docs/libs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libs/Makefile" ;;
27232     "docs/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES docs/plugins/Makefile" ;;
27233     "docs/manual/Makefile") CONFIG_FILES="$CONFIG_FILES docs/manual/Makefile" ;;
27234     "docs/pwg/Makefile") CONFIG_FILES="$CONFIG_FILES docs/pwg/Makefile" ;;
27235     "docs/slides/Makefile") CONFIG_FILES="$CONFIG_FILES docs/slides/Makefile" ;;
27236     "docs/xsl/Makefile") CONFIG_FILES="$CONFIG_FILES docs/xsl/Makefile" ;;
27237     "docs/version.entities") CONFIG_FILES="$CONFIG_FILES docs/version.entities" ;;
27238     "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
27239     "pkgconfig/Makefile") CONFIG_FILES="$CONFIG_FILES pkgconfig/Makefile" ;;
27240     "stamp.h") CONFIG_FILES="$CONFIG_FILES stamp.h" ;;
27241     "pkgconfig/gstreamer.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/gstreamer.pc" ;;
27242     "pkgconfig/gstreamer-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/gstreamer-uninstalled.pc" ;;
27243     "pkgconfig/gstreamer-base.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/gstreamer-base.pc" ;;
27244     "pkgconfig/gstreamer-base-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/gstreamer-base-uninstalled.pc" ;;
27245     "pkgconfig/gstreamer-check.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/gstreamer-check.pc" ;;
27246     "pkgconfig/gstreamer-check-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/gstreamer-check-uninstalled.pc" ;;
27247     "pkgconfig/gstreamer-controller.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/gstreamer-controller.pc" ;;
27248     "pkgconfig/gstreamer-controller-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/gstreamer-controller-uninstalled.pc" ;;
27249     "pkgconfig/gstreamer-dataprotocol.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/gstreamer-dataprotocol.pc" ;;
27250     "pkgconfig/gstreamer-dataprotocol-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/gstreamer-dataprotocol-uninstalled.pc" ;;
27251     "pkgconfig/gstreamer-net.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/gstreamer-net.pc" ;;
27252     "pkgconfig/gstreamer-net-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/gstreamer-net-uninstalled.pc" ;;
27253     "gst-element-check.m4") CONFIG_FILES="$CONFIG_FILES gst-element-check.m4" ;;
27254     "gstreamer.spec") CONFIG_FILES="$CONFIG_FILES gstreamer.spec" ;;
27255
27256   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27257   esac
27258 done
27259
27260
27261 # If the user did not use the arguments to specify the items to instantiate,
27262 # then the envvar interface is used.  Set only those that are not.
27263 # We use the long form for the default assignment because of an extremely
27264 # bizarre bug on SunOS 4.1.3.
27265 if $ac_need_defaults; then
27266   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27267   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27268   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27269 fi
27270
27271 # Have a temporary directory for convenience.  Make it in the build tree
27272 # simply because there is no reason against having it here, and in addition,
27273 # creating and moving files from /tmp can sometimes cause problems.
27274 # Hook for its removal unless debugging.
27275 # Note that there is a small window in which the directory will not be cleaned:
27276 # after its creation but before its name has been assigned to `$tmp'.
27277 $debug ||
27278 {
27279   tmp= ac_tmp=
27280   trap 'exit_status=$?
27281   : "${ac_tmp:=$tmp}"
27282   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
27283 ' 0
27284   trap 'as_fn_exit 1' 1 2 13 15
27285 }
27286 # Create a (secure) tmp directory for tmp files.
27287
27288 {
27289   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27290   test -d "$tmp"
27291 }  ||
27292 {
27293   tmp=./conf$$-$RANDOM
27294   (umask 077 && mkdir "$tmp")
27295 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
27296 ac_tmp=$tmp
27297
27298 # Set up the scripts for CONFIG_FILES section.
27299 # No need to generate them if there are no CONFIG_FILES.
27300 # This happens for instance with `./config.status config.h'.
27301 if test -n "$CONFIG_FILES"; then
27302
27303
27304 ac_cr=`echo X | tr X '\015'`
27305 # On cygwin, bash can eat \r inside `` if the user requested igncr.
27306 # But we know of no other shell where ac_cr would be empty at this
27307 # point, so we can use a bashism as a fallback.
27308 if test "x$ac_cr" = x; then
27309   eval ac_cr=\$\'\\r\'
27310 fi
27311 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27312 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27313   ac_cs_awk_cr='\\r'
27314 else
27315   ac_cs_awk_cr=$ac_cr
27316 fi
27317
27318 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
27319 _ACEOF
27320
27321
27322 {
27323   echo "cat >conf$$subs.awk <<_ACEOF" &&
27324   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27325   echo "_ACEOF"
27326 } >conf$$subs.sh ||
27327   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27328 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
27329 ac_delim='%!_!# '
27330 for ac_last_try in false false false false false :; do
27331   . ./conf$$subs.sh ||
27332     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27333
27334   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
27335   if test $ac_delim_n = $ac_delim_num; then
27336     break
27337   elif $ac_last_try; then
27338     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27339   else
27340     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27341   fi
27342 done
27343 rm -f conf$$subs.sh
27344
27345 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27346 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
27347 _ACEOF
27348 sed -n '
27349 h
27350 s/^/S["/; s/!.*/"]=/
27351 p
27352 g
27353 s/^[^!]*!//
27354 :repl
27355 t repl
27356 s/'"$ac_delim"'$//
27357 t delim
27358 :nl
27359 h
27360 s/\(.\{148\}\)..*/\1/
27361 t more1
27362 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27363 p
27364 n
27365 b repl
27366 :more1
27367 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27368 p
27369 g
27370 s/.\{148\}//
27371 t nl
27372 :delim
27373 h
27374 s/\(.\{148\}\)..*/\1/
27375 t more2
27376 s/["\\]/\\&/g; s/^/"/; s/$/"/
27377 p
27378 b
27379 :more2
27380 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27381 p
27382 g
27383 s/.\{148\}//
27384 t delim
27385 ' <conf$$subs.awk | sed '
27386 /^[^""]/{
27387   N
27388   s/\n//
27389 }
27390 ' >>$CONFIG_STATUS || ac_write_fail=1
27391 rm -f conf$$subs.awk
27392 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27393 _ACAWK
27394 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
27395   for (key in S) S_is_set[key] = 1
27396   FS = "\a"
27397
27398 }
27399 {
27400   line = $ 0
27401   nfields = split(line, field, "@")
27402   substed = 0
27403   len = length(field[1])
27404   for (i = 2; i < nfields; i++) {
27405     key = field[i]
27406     keylen = length(key)
27407     if (S_is_set[key]) {
27408       value = S[key]
27409       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27410       len += length(value) + length(field[++i])
27411       substed = 1
27412     } else
27413       len += 1 + keylen
27414   }
27415
27416   print line
27417 }
27418
27419 _ACAWK
27420 _ACEOF
27421 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27422 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27423   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27424 else
27425   cat
27426 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
27427   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
27428 _ACEOF
27429
27430 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
27431 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
27432 # trailing colons and then remove the whole line if VPATH becomes empty
27433 # (actually we leave an empty line to preserve line numbers).
27434 if test "x$srcdir" = x.; then
27435   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
27436 h
27437 s///
27438 s/^/:/
27439 s/[      ]*$/:/
27440 s/:\$(srcdir):/:/g
27441 s/:\${srcdir}:/:/g
27442 s/:@srcdir@:/:/g
27443 s/^:*//
27444 s/:*$//
27445 x
27446 s/\(=[   ]*\).*/\1/
27447 G
27448 s/\n//
27449 s/^[^=]*=[       ]*$//
27450 }'
27451 fi
27452
27453 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27454 fi # test -n "$CONFIG_FILES"
27455
27456 # Set up the scripts for CONFIG_HEADERS section.
27457 # No need to generate them if there are no CONFIG_HEADERS.
27458 # This happens for instance with `./config.status Makefile'.
27459 if test -n "$CONFIG_HEADERS"; then
27460 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
27461 BEGIN {
27462 _ACEOF
27463
27464 # Transform confdefs.h into an awk script `defines.awk', embedded as
27465 # here-document in config.status, that substitutes the proper values into
27466 # config.h.in to produce config.h.
27467
27468 # Create a delimiter string that does not exist in confdefs.h, to ease
27469 # handling of long lines.
27470 ac_delim='%!_!# '
27471 for ac_last_try in false false :; do
27472   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
27473   if test -z "$ac_tt"; then
27474     break
27475   elif $ac_last_try; then
27476     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
27477   else
27478     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27479   fi
27480 done
27481
27482 # For the awk script, D is an array of macro values keyed by name,
27483 # likewise P contains macro parameters if any.  Preserve backslash
27484 # newline sequences.
27485
27486 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27487 sed -n '
27488 s/.\{148\}/&'"$ac_delim"'/g
27489 t rset
27490 :rset
27491 s/^[     ]*#[    ]*define[       ][      ]*/ /
27492 t def
27493 d
27494 :def
27495 s/\\$//
27496 t bsnl
27497 s/["\\]/\\&/g
27498 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
27499 D["\1"]=" \3"/p
27500 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
27501 d
27502 :bsnl
27503 s/["\\]/\\&/g
27504 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
27505 D["\1"]=" \3\\\\\\n"\\/p
27506 t cont
27507 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27508 t cont
27509 d
27510 :cont
27511 n
27512 s/.\{148\}/&'"$ac_delim"'/g
27513 t clear
27514 :clear
27515 s/\\$//
27516 t bsnlc
27517 s/["\\]/\\&/g; s/^/"/; s/$/"/p
27518 d
27519 :bsnlc
27520 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27521 b cont
27522 ' <confdefs.h | sed '
27523 s/'"$ac_delim"'/"\\\
27524 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27525
27526 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27527   for (key in D) D_is_set[key] = 1
27528   FS = "\a"
27529 }
27530 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27531   line = \$ 0
27532   split(line, arg, " ")
27533   if (arg[1] == "#") {
27534     defundef = arg[2]
27535     mac1 = arg[3]
27536   } else {
27537     defundef = substr(arg[1], 2)
27538     mac1 = arg[2]
27539   }
27540   split(mac1, mac2, "(") #)
27541   macro = mac2[1]
27542   prefix = substr(line, 1, index(line, defundef) - 1)
27543   if (D_is_set[macro]) {
27544     # Preserve the white space surrounding the "#".
27545     print prefix "define", macro P[macro] D[macro]
27546     next
27547   } else {
27548     # Replace #undef with comments.  This is necessary, for example,
27549     # in the case of _POSIX_SOURCE, which is predefined and required
27550     # on some systems where configure will not decide to define it.
27551     if (defundef == "undef") {
27552       print "/*", prefix defundef, macro, "*/"
27553       next
27554     }
27555   }
27556 }
27557 { print }
27558 _ACAWK
27559 _ACEOF
27560 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27561   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
27562 fi # test -n "$CONFIG_HEADERS"
27563
27564
27565 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
27566 shift
27567 for ac_tag
27568 do
27569   case $ac_tag in
27570   :[FHLC]) ac_mode=$ac_tag; continue;;
27571   esac
27572   case $ac_mode$ac_tag in
27573   :[FHL]*:*);;
27574   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
27575   :[FH]-) ac_tag=-:-;;
27576   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27577   esac
27578   ac_save_IFS=$IFS
27579   IFS=:
27580   set x $ac_tag
27581   IFS=$ac_save_IFS
27582   shift
27583   ac_file=$1
27584   shift
27585
27586   case $ac_mode in
27587   :L) ac_source=$1;;
27588   :[FH])
27589     ac_file_inputs=
27590     for ac_f
27591     do
27592       case $ac_f in
27593       -) ac_f="$ac_tmp/stdin";;
27594       *) # Look for the file first in the build tree, then in the source tree
27595          # (if the path is not absolute).  The absolute path cannot be DOS-style,
27596          # because $ac_f cannot contain `:'.
27597          test -f "$ac_f" ||
27598            case $ac_f in
27599            [\\/$]*) false;;
27600            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27601            esac ||
27602            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
27603       esac
27604       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27605       as_fn_append ac_file_inputs " '$ac_f'"
27606     done
27607
27608     # Let's still pretend it is `configure' which instantiates (i.e., don't
27609     # use $as_me), people would be surprised to read:
27610     #    /* config.h.  Generated by config.status.  */
27611     configure_input='Generated from '`
27612           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27613         `' by configure.'
27614     if test x"$ac_file" != x-; then
27615       configure_input="$ac_file.  $configure_input"
27616       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
27617 $as_echo "$as_me: creating $ac_file" >&6;}
27618     fi
27619     # Neutralize special characters interpreted by sed in replacement strings.
27620     case $configure_input in #(
27621     *\&* | *\|* | *\\* )
27622        ac_sed_conf_input=`$as_echo "$configure_input" |
27623        sed 's/[\\\\&|]/\\\\&/g'`;; #(
27624     *) ac_sed_conf_input=$configure_input;;
27625     esac
27626
27627     case $ac_tag in
27628     *:-:* | *:-) cat >"$ac_tmp/stdin" \
27629       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
27630     esac
27631     ;;
27632   esac
27633
27634   ac_dir=`$as_dirname -- "$ac_file" ||
27635 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27636          X"$ac_file" : 'X\(//\)[^/]' \| \
27637          X"$ac_file" : 'X\(//\)$' \| \
27638          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27639 $as_echo X"$ac_file" |
27640     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27641             s//\1/
27642             q
27643           }
27644           /^X\(\/\/\)[^/].*/{
27645             s//\1/
27646             q
27647           }
27648           /^X\(\/\/\)$/{
27649             s//\1/
27650             q
27651           }
27652           /^X\(\/\).*/{
27653             s//\1/
27654             q
27655           }
27656           s/.*/./; q'`
27657   as_dir="$ac_dir"; as_fn_mkdir_p
27658   ac_builddir=.
27659
27660 case "$ac_dir" in
27661 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27662 *)
27663   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27664   # A ".." for each directory in $ac_dir_suffix.
27665   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27666   case $ac_top_builddir_sub in
27667   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27668   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27669   esac ;;
27670 esac
27671 ac_abs_top_builddir=$ac_pwd
27672 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27673 # for backward compatibility:
27674 ac_top_builddir=$ac_top_build_prefix
27675
27676 case $srcdir in
27677   .)  # We are building in place.
27678     ac_srcdir=.
27679     ac_top_srcdir=$ac_top_builddir_sub
27680     ac_abs_top_srcdir=$ac_pwd ;;
27681   [\\/]* | ?:[\\/]* )  # Absolute name.
27682     ac_srcdir=$srcdir$ac_dir_suffix;
27683     ac_top_srcdir=$srcdir
27684     ac_abs_top_srcdir=$srcdir ;;
27685   *) # Relative name.
27686     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27687     ac_top_srcdir=$ac_top_build_prefix$srcdir
27688     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27689 esac
27690 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27691
27692
27693   case $ac_mode in
27694   :F)
27695   #
27696   # CONFIG_FILE
27697   #
27698
27699   case $INSTALL in
27700   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27701   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27702   esac
27703   ac_MKDIR_P=$MKDIR_P
27704   case $MKDIR_P in
27705   [\\/$]* | ?:[\\/]* ) ;;
27706   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
27707   esac
27708 _ACEOF
27709
27710 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27711 # If the template does not know about datarootdir, expand it.
27712 # FIXME: This hack should be removed a few years after 2.60.
27713 ac_datarootdir_hack=; ac_datarootdir_seen=
27714 ac_sed_dataroot='
27715 /datarootdir/ {
27716   p
27717   q
27718 }
27719 /@datadir@/p
27720 /@docdir@/p
27721 /@infodir@/p
27722 /@localedir@/p
27723 /@mandir@/p'
27724 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27725 *datarootdir*) ac_datarootdir_seen=yes;;
27726 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27727   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27728 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27729 _ACEOF
27730 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27731   ac_datarootdir_hack='
27732   s&@datadir@&$datadir&g
27733   s&@docdir@&$docdir&g
27734   s&@infodir@&$infodir&g
27735   s&@localedir@&$localedir&g
27736   s&@mandir@&$mandir&g
27737   s&\\\${datarootdir}&$datarootdir&g' ;;
27738 esac
27739 _ACEOF
27740
27741 # Neutralize VPATH when `$srcdir' = `.'.
27742 # Shell code in configure.ac might set extrasub.
27743 # FIXME: do we really want to maintain this feature?
27744 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27745 ac_sed_extra="$ac_vpsub
27746 $extrasub
27747 _ACEOF
27748 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27749 :t
27750 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27751 s|@configure_input@|$ac_sed_conf_input|;t t
27752 s&@top_builddir@&$ac_top_builddir_sub&;t t
27753 s&@top_build_prefix@&$ac_top_build_prefix&;t t
27754 s&@srcdir@&$ac_srcdir&;t t
27755 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27756 s&@top_srcdir@&$ac_top_srcdir&;t t
27757 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27758 s&@builddir@&$ac_builddir&;t t
27759 s&@abs_builddir@&$ac_abs_builddir&;t t
27760 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27761 s&@INSTALL@&$ac_INSTALL&;t t
27762 s&@MKDIR_P@&$ac_MKDIR_P&;t t
27763 $ac_datarootdir_hack
27764 "
27765 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
27766   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27767
27768 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27769   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
27770   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
27771       "$ac_tmp/out"`; test -z "$ac_out"; } &&
27772   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27773 which seems to be undefined.  Please make sure it is defined" >&5
27774 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27775 which seems to be undefined.  Please make sure it is defined" >&2;}
27776
27777   rm -f "$ac_tmp/stdin"
27778   case $ac_file in
27779   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
27780   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
27781   esac \
27782   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27783  ;;
27784   :H)
27785   #
27786   # CONFIG_HEADER
27787   #
27788   if test x"$ac_file" != x-; then
27789     {
27790       $as_echo "/* $configure_input  */" \
27791       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
27792     } >"$ac_tmp/config.h" \
27793       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27794     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
27795       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
27796 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27797     else
27798       rm -f "$ac_file"
27799       mv "$ac_tmp/config.h" "$ac_file" \
27800         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27801     fi
27802   else
27803     $as_echo "/* $configure_input  */" \
27804       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
27805       || as_fn_error $? "could not create -" "$LINENO" 5
27806   fi
27807 # Compute "$ac_file"'s index in $config_headers.
27808 _am_arg="$ac_file"
27809 _am_stamp_count=1
27810 for _am_header in $config_headers :; do
27811   case $_am_header in
27812     $_am_arg | $_am_arg:* )
27813       break ;;
27814     * )
27815       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
27816   esac
27817 done
27818 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
27819 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27820          X"$_am_arg" : 'X\(//\)[^/]' \| \
27821          X"$_am_arg" : 'X\(//\)$' \| \
27822          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
27823 $as_echo X"$_am_arg" |
27824     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27825             s//\1/
27826             q
27827           }
27828           /^X\(\/\/\)[^/].*/{
27829             s//\1/
27830             q
27831           }
27832           /^X\(\/\/\)$/{
27833             s//\1/
27834             q
27835           }
27836           /^X\(\/\).*/{
27837             s//\1/
27838             q
27839           }
27840           s/.*/./; q'`/stamp-h$_am_stamp_count
27841  ;;
27842
27843   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
27844 $as_echo "$as_me: executing $ac_file commands" >&6;}
27845  ;;
27846   esac
27847
27848
27849   case $ac_file$ac_mode in
27850     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
27851   # Autoconf 2.62 quotes --file arguments for eval, but not when files
27852   # are listed without --file.  Let's play safe and only enable the eval
27853   # if we detect the quoting.
27854   case $CONFIG_FILES in
27855   *\'*) eval set x "$CONFIG_FILES" ;;
27856   *)   set x $CONFIG_FILES ;;
27857   esac
27858   shift
27859   for mf
27860   do
27861     # Strip MF so we end up with the name of the file.
27862     mf=`echo "$mf" | sed -e 's/:.*$//'`
27863     # Check whether this is an Automake generated Makefile or not.
27864     # We used to match only the files named `Makefile.in', but
27865     # some people rename them; so instead we look at the file content.
27866     # Grep'ing the first line is not enough: some people post-process
27867     # each Makefile.in and add a new line on top of each file to say so.
27868     # Grep'ing the whole file is not good either: AIX grep has a line
27869     # limit of 2048, but all sed's we know have understand at least 4000.
27870     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
27871       dirpart=`$as_dirname -- "$mf" ||
27872 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27873          X"$mf" : 'X\(//\)[^/]' \| \
27874          X"$mf" : 'X\(//\)$' \| \
27875          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
27876 $as_echo X"$mf" |
27877     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27878             s//\1/
27879             q
27880           }
27881           /^X\(\/\/\)[^/].*/{
27882             s//\1/
27883             q
27884           }
27885           /^X\(\/\/\)$/{
27886             s//\1/
27887             q
27888           }
27889           /^X\(\/\).*/{
27890             s//\1/
27891             q
27892           }
27893           s/.*/./; q'`
27894     else
27895       continue
27896     fi
27897     # Extract the definition of DEPDIR, am__include, and am__quote
27898     # from the Makefile without running `make'.
27899     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
27900     test -z "$DEPDIR" && continue
27901     am__include=`sed -n 's/^am__include = //p' < "$mf"`
27902     test -z "am__include" && continue
27903     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
27904     # When using ansi2knr, U may be empty or an underscore; expand it
27905     U=`sed -n 's/^U = //p' < "$mf"`
27906     # Find all dependency output files, they are included files with
27907     # $(DEPDIR) in their names.  We invoke sed twice because it is the
27908     # simplest approach to changing $(DEPDIR) to its actual value in the
27909     # expansion.
27910     for file in `sed -n "
27911       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27912          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
27913       # Make sure the directory exists.
27914       test -f "$dirpart/$file" && continue
27915       fdir=`$as_dirname -- "$file" ||
27916 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27917          X"$file" : 'X\(//\)[^/]' \| \
27918          X"$file" : 'X\(//\)$' \| \
27919          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
27920 $as_echo X"$file" |
27921     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27922             s//\1/
27923             q
27924           }
27925           /^X\(\/\/\)[^/].*/{
27926             s//\1/
27927             q
27928           }
27929           /^X\(\/\/\)$/{
27930             s//\1/
27931             q
27932           }
27933           /^X\(\/\).*/{
27934             s//\1/
27935             q
27936           }
27937           s/.*/./; q'`
27938       as_dir=$dirpart/$fdir; as_fn_mkdir_p
27939       # echo "creating $dirpart/$file"
27940       echo '# dummy' > "$dirpart/$file"
27941     done
27942   done
27943 }
27944  ;;
27945     "libtool":C)
27946
27947     # See if we are running on zsh, and set the options which allow our
27948     # commands through without removal of \ escapes.
27949     if test -n "${ZSH_VERSION+set}" ; then
27950       setopt NO_GLOB_SUBST
27951     fi
27952
27953     cfgfile="${ofile}T"
27954     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
27955     $RM "$cfgfile"
27956
27957     cat <<_LT_EOF >> "$cfgfile"
27958 #! $SHELL
27959
27960 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
27961 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
27962 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
27963 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
27964 #
27965 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
27966 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
27967 #                 Foundation, Inc.
27968 #   Written by Gordon Matzigkeit, 1996
27969 #
27970 #   This file is part of GNU Libtool.
27971 #
27972 # GNU Libtool is free software; you can redistribute it and/or
27973 # modify it under the terms of the GNU General Public License as
27974 # published by the Free Software Foundation; either version 2 of
27975 # the License, or (at your option) any later version.
27976 #
27977 # As a special exception to the GNU General Public License,
27978 # if you distribute this file as part of a program or library that
27979 # is built using GNU Libtool, you may include this file under the
27980 # same distribution terms that you use for the rest of that program.
27981 #
27982 # GNU Libtool is distributed in the hope that it will be useful,
27983 # but WITHOUT ANY WARRANTY; without even the implied warranty of
27984 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
27985 # GNU General Public License for more details.
27986 #
27987 # You should have received a copy of the GNU General Public License
27988 # along with GNU Libtool; see the file COPYING.  If not, a copy
27989 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
27990 # obtained by writing to the Free Software Foundation, Inc.,
27991 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
27992
27993
27994 # The names of the tagged configurations supported by this script.
27995 available_tags="CXX "
27996
27997 # ### BEGIN LIBTOOL CONFIG
27998
27999 # Assembler program.
28000 AS=$lt_AS
28001
28002 # DLL creation program.
28003 DLLTOOL=$lt_DLLTOOL
28004
28005 # Object dumper program.
28006 OBJDUMP=$lt_OBJDUMP
28007
28008 # Which release of libtool.m4 was used?
28009 macro_version=$macro_version
28010 macro_revision=$macro_revision
28011
28012 # Whether or not to build shared libraries.
28013 build_libtool_libs=$enable_shared
28014
28015 # Whether or not to build static libraries.
28016 build_old_libs=$enable_static
28017
28018 # What type of objects to build.
28019 pic_mode=$pic_mode
28020
28021 # Whether or not to optimize for fast installation.
28022 fast_install=$enable_fast_install
28023
28024 # Shell to use when invoking shell scripts.
28025 SHELL=$lt_SHELL
28026
28027 # An echo program that protects backslashes.
28028 ECHO=$lt_ECHO
28029
28030 # The PATH separator for the build system.
28031 PATH_SEPARATOR=$lt_PATH_SEPARATOR
28032
28033 # The host system.
28034 host_alias=$host_alias
28035 host=$host
28036 host_os=$host_os
28037
28038 # The build system.
28039 build_alias=$build_alias
28040 build=$build
28041 build_os=$build_os
28042
28043 # A sed program that does not truncate output.
28044 SED=$lt_SED
28045
28046 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
28047 Xsed="\$SED -e 1s/^X//"
28048
28049 # A grep program that handles long lines.
28050 GREP=$lt_GREP
28051
28052 # An ERE matcher.
28053 EGREP=$lt_EGREP
28054
28055 # A literal string matcher.
28056 FGREP=$lt_FGREP
28057
28058 # A BSD- or MS-compatible name lister.
28059 NM=$lt_NM
28060
28061 # Whether we need soft or hard links.
28062 LN_S=$lt_LN_S
28063
28064 # What is the maximum length of a command?
28065 max_cmd_len=$max_cmd_len
28066
28067 # Object file suffix (normally "o").
28068 objext=$ac_objext
28069
28070 # Executable file suffix (normally "").
28071 exeext=$exeext
28072
28073 # whether the shell understands "unset".
28074 lt_unset=$lt_unset
28075
28076 # turn spaces into newlines.
28077 SP2NL=$lt_lt_SP2NL
28078
28079 # turn newlines into spaces.
28080 NL2SP=$lt_lt_NL2SP
28081
28082 # convert \$build file names to \$host format.
28083 to_host_file_cmd=$lt_cv_to_host_file_cmd
28084
28085 # convert \$build files to toolchain format.
28086 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
28087
28088 # Method to check whether dependent libraries are shared objects.
28089 deplibs_check_method=$lt_deplibs_check_method
28090
28091 # Command to use when deplibs_check_method = "file_magic".
28092 file_magic_cmd=$lt_file_magic_cmd
28093
28094 # How to find potential files when deplibs_check_method = "file_magic".
28095 file_magic_glob=$lt_file_magic_glob
28096
28097 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
28098 want_nocaseglob=$lt_want_nocaseglob
28099
28100 # Command to associate shared and link libraries.
28101 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
28102
28103 # The archiver.
28104 AR=$lt_AR
28105
28106 # Flags to create an archive.
28107 AR_FLAGS=$lt_AR_FLAGS
28108
28109 # How to feed a file listing to the archiver.
28110 archiver_list_spec=$lt_archiver_list_spec
28111
28112 # A symbol stripping program.
28113 STRIP=$lt_STRIP
28114
28115 # Commands used to install an old-style archive.
28116 RANLIB=$lt_RANLIB
28117 old_postinstall_cmds=$lt_old_postinstall_cmds
28118 old_postuninstall_cmds=$lt_old_postuninstall_cmds
28119
28120 # Whether to use a lock for old archive extraction.
28121 lock_old_archive_extraction=$lock_old_archive_extraction
28122
28123 # A C compiler.
28124 LTCC=$lt_CC
28125
28126 # LTCC compiler flags.
28127 LTCFLAGS=$lt_CFLAGS
28128
28129 # Take the output of nm and produce a listing of raw symbols and C names.
28130 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
28131
28132 # Transform the output of nm in a proper C declaration.
28133 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
28134
28135 # Transform the output of nm in a C name address pair.
28136 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
28137
28138 # Transform the output of nm in a C name address pair when lib prefix is needed.
28139 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
28140
28141 # Specify filename containing input files for \$NM.
28142 nm_file_list_spec=$lt_nm_file_list_spec
28143
28144 # The root where to search for dependent libraries,and in which our libraries should be installed.
28145 lt_sysroot=$lt_sysroot
28146
28147 # The name of the directory that contains temporary libtool files.
28148 objdir=$objdir
28149
28150 # Used to examine libraries when file_magic_cmd begins with "file".
28151 MAGIC_CMD=$MAGIC_CMD
28152
28153 # Must we lock files when doing compilation?
28154 need_locks=$lt_need_locks
28155
28156 # Manifest tool.
28157 MANIFEST_TOOL=$lt_MANIFEST_TOOL
28158
28159 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
28160 DSYMUTIL=$lt_DSYMUTIL
28161
28162 # Tool to change global to local symbols on Mac OS X.
28163 NMEDIT=$lt_NMEDIT
28164
28165 # Tool to manipulate fat objects and archives on Mac OS X.
28166 LIPO=$lt_LIPO
28167
28168 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
28169 OTOOL=$lt_OTOOL
28170
28171 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
28172 OTOOL64=$lt_OTOOL64
28173
28174 # Old archive suffix (normally "a").
28175 libext=$libext
28176
28177 # Shared library suffix (normally ".so").
28178 shrext_cmds=$lt_shrext_cmds
28179
28180 # The commands to extract the exported symbol list from a shared archive.
28181 extract_expsyms_cmds=$lt_extract_expsyms_cmds
28182
28183 # Variables whose values should be saved in libtool wrapper scripts and
28184 # restored at link time.
28185 variables_saved_for_relink=$lt_variables_saved_for_relink
28186
28187 # Do we need the "lib" prefix for modules?
28188 need_lib_prefix=$need_lib_prefix
28189
28190 # Do we need a version for libraries?
28191 need_version=$need_version
28192
28193 # Library versioning type.
28194 version_type=$version_type
28195
28196 # Shared library runtime path variable.
28197 runpath_var=$runpath_var
28198
28199 # Shared library path variable.
28200 shlibpath_var=$shlibpath_var
28201
28202 # Is shlibpath searched before the hard-coded library search path?
28203 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
28204
28205 # Format of library name prefix.
28206 libname_spec=$lt_libname_spec
28207
28208 # List of archive names.  First name is the real one, the rest are links.
28209 # The last name is the one that the linker finds with -lNAME
28210 library_names_spec=$lt_library_names_spec
28211
28212 # The coded name of the library, if different from the real name.
28213 soname_spec=$lt_soname_spec
28214
28215 # Permission mode override for installation of shared libraries.
28216 install_override_mode=$lt_install_override_mode
28217
28218 # Command to use after installation of a shared archive.
28219 postinstall_cmds=$lt_postinstall_cmds
28220
28221 # Command to use after uninstallation of a shared archive.
28222 postuninstall_cmds=$lt_postuninstall_cmds
28223
28224 # Commands used to finish a libtool library installation in a directory.
28225 finish_cmds=$lt_finish_cmds
28226
28227 # As "finish_cmds", except a single script fragment to be evaled but
28228 # not shown.
28229 finish_eval=$lt_finish_eval
28230
28231 # Whether we should hardcode library paths into libraries.
28232 hardcode_into_libs=$hardcode_into_libs
28233
28234 # Compile-time system search path for libraries.
28235 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
28236
28237 # Run-time system search path for libraries.
28238 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
28239
28240 # Whether dlopen is supported.
28241 dlopen_support=$enable_dlopen
28242
28243 # Whether dlopen of programs is supported.
28244 dlopen_self=$enable_dlopen_self
28245
28246 # Whether dlopen of statically linked programs is supported.
28247 dlopen_self_static=$enable_dlopen_self_static
28248
28249 # Commands to strip libraries.
28250 old_striplib=$lt_old_striplib
28251 striplib=$lt_striplib
28252
28253
28254 # The linker used to build libraries.
28255 LD=$lt_LD
28256
28257 # How to create reloadable object files.
28258 reload_flag=$lt_reload_flag
28259 reload_cmds=$lt_reload_cmds
28260
28261 # Commands used to build an old-style archive.
28262 old_archive_cmds=$lt_old_archive_cmds
28263
28264 # A language specific compiler.
28265 CC=$lt_compiler
28266
28267 # Is the compiler the GNU compiler?
28268 with_gcc=$GCC
28269
28270 # Compiler flag to turn off builtin functions.
28271 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
28272
28273 # Additional compiler flags for building library objects.
28274 pic_flag=$lt_lt_prog_compiler_pic
28275
28276 # How to pass a linker flag through the compiler.
28277 wl=$lt_lt_prog_compiler_wl
28278
28279 # Compiler flag to prevent dynamic linking.
28280 link_static_flag=$lt_lt_prog_compiler_static
28281
28282 # Does compiler simultaneously support -c and -o options?
28283 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
28284
28285 # Whether or not to add -lc for building shared libraries.
28286 build_libtool_need_lc=$archive_cmds_need_lc
28287
28288 # Whether or not to disallow shared libs when runtime libs are static.
28289 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
28290
28291 # Compiler flag to allow reflexive dlopens.
28292 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
28293
28294 # Compiler flag to generate shared objects directly from archives.
28295 whole_archive_flag_spec=$lt_whole_archive_flag_spec
28296
28297 # Whether the compiler copes with passing no objects directly.
28298 compiler_needs_object=$lt_compiler_needs_object
28299
28300 # Create an old-style archive from a shared archive.
28301 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
28302
28303 # Create a temporary old-style archive to link instead of a shared archive.
28304 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
28305
28306 # Commands used to build a shared archive.
28307 archive_cmds=$lt_archive_cmds
28308 archive_expsym_cmds=$lt_archive_expsym_cmds
28309
28310 # Commands used to build a loadable module if different from building
28311 # a shared archive.
28312 module_cmds=$lt_module_cmds
28313 module_expsym_cmds=$lt_module_expsym_cmds
28314
28315 # Whether we are building with GNU ld or not.
28316 with_gnu_ld=$lt_with_gnu_ld
28317
28318 # Flag that allows shared libraries with undefined symbols to be built.
28319 allow_undefined_flag=$lt_allow_undefined_flag
28320
28321 # Flag that enforces no undefined symbols.
28322 no_undefined_flag=$lt_no_undefined_flag
28323
28324 # Flag to hardcode \$libdir into a binary during linking.
28325 # This must work even if \$libdir does not exist
28326 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
28327
28328 # Whether we need a single "-rpath" flag with a separated argument.
28329 hardcode_libdir_separator=$lt_hardcode_libdir_separator
28330
28331 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28332 # DIR into the resulting binary.
28333 hardcode_direct=$hardcode_direct
28334
28335 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28336 # DIR into the resulting binary and the resulting library dependency is
28337 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
28338 # library is relocated.
28339 hardcode_direct_absolute=$hardcode_direct_absolute
28340
28341 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
28342 # into the resulting binary.
28343 hardcode_minus_L=$hardcode_minus_L
28344
28345 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
28346 # into the resulting binary.
28347 hardcode_shlibpath_var=$hardcode_shlibpath_var
28348
28349 # Set to "yes" if building a shared library automatically hardcodes DIR
28350 # into the library and all subsequent libraries and executables linked
28351 # against it.
28352 hardcode_automatic=$hardcode_automatic
28353
28354 # Set to yes if linker adds runtime paths of dependent libraries
28355 # to runtime path list.
28356 inherit_rpath=$inherit_rpath
28357
28358 # Whether libtool must link a program against all its dependency libraries.
28359 link_all_deplibs=$link_all_deplibs
28360
28361 # Set to "yes" if exported symbols are required.
28362 always_export_symbols=$always_export_symbols
28363
28364 # The commands to list exported symbols.
28365 export_symbols_cmds=$lt_export_symbols_cmds
28366
28367 # Symbols that should not be listed in the preloaded symbols.
28368 exclude_expsyms=$lt_exclude_expsyms
28369
28370 # Symbols that must always be exported.
28371 include_expsyms=$lt_include_expsyms
28372
28373 # Commands necessary for linking programs (against libraries) with templates.
28374 prelink_cmds=$lt_prelink_cmds
28375
28376 # Commands necessary for finishing linking programs.
28377 postlink_cmds=$lt_postlink_cmds
28378
28379 # Specify filename containing input files.
28380 file_list_spec=$lt_file_list_spec
28381
28382 # How to hardcode a shared library path into an executable.
28383 hardcode_action=$hardcode_action
28384
28385 # The directories searched by this compiler when creating a shared library.
28386 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
28387
28388 # Dependencies to place before and after the objects being linked to
28389 # create a shared library.
28390 predep_objects=$lt_predep_objects
28391 postdep_objects=$lt_postdep_objects
28392 predeps=$lt_predeps
28393 postdeps=$lt_postdeps
28394
28395 # The library search path used internally by the compiler when linking
28396 # a shared library.
28397 compiler_lib_search_path=$lt_compiler_lib_search_path
28398
28399 # ### END LIBTOOL CONFIG
28400
28401 _LT_EOF
28402
28403   case $host_os in
28404   aix3*)
28405     cat <<\_LT_EOF >> "$cfgfile"
28406 # AIX sometimes has problems with the GCC collect2 program.  For some
28407 # reason, if we set the COLLECT_NAMES environment variable, the problems
28408 # vanish in a puff of smoke.
28409 if test "X${COLLECT_NAMES+set}" != Xset; then
28410   COLLECT_NAMES=
28411   export COLLECT_NAMES
28412 fi
28413 _LT_EOF
28414     ;;
28415   esac
28416
28417
28418 ltmain="$ac_aux_dir/ltmain.sh"
28419
28420
28421   # We use sed instead of cat because bash on DJGPP gets confused if
28422   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
28423   # text mode, it properly converts lines to CR/LF.  This bash problem
28424   # is reportedly fixed, but why not run on old versions too?
28425   sed '$q' "$ltmain" >> "$cfgfile" \
28426      || (rm -f "$cfgfile"; exit 1)
28427
28428   if test x"$xsi_shell" = xyes; then
28429   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
28430 func_dirname ()\
28431 {\
28432 \    case ${1} in\
28433 \      */*) func_dirname_result="${1%/*}${2}" ;;\
28434 \      *  ) func_dirname_result="${3}" ;;\
28435 \    esac\
28436 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
28437   && mv -f "$cfgfile.tmp" "$cfgfile" \
28438     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28439 test 0 -eq $? || _lt_function_replace_fail=:
28440
28441
28442   sed -e '/^func_basename ()$/,/^} # func_basename /c\
28443 func_basename ()\
28444 {\
28445 \    func_basename_result="${1##*/}"\
28446 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
28447   && mv -f "$cfgfile.tmp" "$cfgfile" \
28448     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28449 test 0 -eq $? || _lt_function_replace_fail=:
28450
28451
28452   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
28453 func_dirname_and_basename ()\
28454 {\
28455 \    case ${1} in\
28456 \      */*) func_dirname_result="${1%/*}${2}" ;;\
28457 \      *  ) func_dirname_result="${3}" ;;\
28458 \    esac\
28459 \    func_basename_result="${1##*/}"\
28460 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
28461   && mv -f "$cfgfile.tmp" "$cfgfile" \
28462     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28463 test 0 -eq $? || _lt_function_replace_fail=:
28464
28465
28466   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
28467 func_stripname ()\
28468 {\
28469 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
28470 \    # positional parameters, so assign one to ordinary parameter first.\
28471 \    func_stripname_result=${3}\
28472 \    func_stripname_result=${func_stripname_result#"${1}"}\
28473 \    func_stripname_result=${func_stripname_result%"${2}"}\
28474 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
28475   && mv -f "$cfgfile.tmp" "$cfgfile" \
28476     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28477 test 0 -eq $? || _lt_function_replace_fail=:
28478
28479
28480   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
28481 func_split_long_opt ()\
28482 {\
28483 \    func_split_long_opt_name=${1%%=*}\
28484 \    func_split_long_opt_arg=${1#*=}\
28485 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
28486   && mv -f "$cfgfile.tmp" "$cfgfile" \
28487     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28488 test 0 -eq $? || _lt_function_replace_fail=:
28489
28490
28491   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
28492 func_split_short_opt ()\
28493 {\
28494 \    func_split_short_opt_arg=${1#??}\
28495 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
28496 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
28497   && mv -f "$cfgfile.tmp" "$cfgfile" \
28498     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28499 test 0 -eq $? || _lt_function_replace_fail=:
28500
28501
28502   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
28503 func_lo2o ()\
28504 {\
28505 \    case ${1} in\
28506 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
28507 \      *)    func_lo2o_result=${1} ;;\
28508 \    esac\
28509 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
28510   && mv -f "$cfgfile.tmp" "$cfgfile" \
28511     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28512 test 0 -eq $? || _lt_function_replace_fail=:
28513
28514
28515   sed -e '/^func_xform ()$/,/^} # func_xform /c\
28516 func_xform ()\
28517 {\
28518     func_xform_result=${1%.*}.lo\
28519 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
28520   && mv -f "$cfgfile.tmp" "$cfgfile" \
28521     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28522 test 0 -eq $? || _lt_function_replace_fail=:
28523
28524
28525   sed -e '/^func_arith ()$/,/^} # func_arith /c\
28526 func_arith ()\
28527 {\
28528     func_arith_result=$(( $* ))\
28529 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
28530   && mv -f "$cfgfile.tmp" "$cfgfile" \
28531     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28532 test 0 -eq $? || _lt_function_replace_fail=:
28533
28534
28535   sed -e '/^func_len ()$/,/^} # func_len /c\
28536 func_len ()\
28537 {\
28538     func_len_result=${#1}\
28539 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
28540   && mv -f "$cfgfile.tmp" "$cfgfile" \
28541     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28542 test 0 -eq $? || _lt_function_replace_fail=:
28543
28544 fi
28545
28546 if test x"$lt_shell_append" = xyes; then
28547   sed -e '/^func_append ()$/,/^} # func_append /c\
28548 func_append ()\
28549 {\
28550     eval "${1}+=\\${2}"\
28551 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
28552   && mv -f "$cfgfile.tmp" "$cfgfile" \
28553     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28554 test 0 -eq $? || _lt_function_replace_fail=:
28555
28556
28557   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
28558 func_append_quoted ()\
28559 {\
28560 \    func_quote_for_eval "${2}"\
28561 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
28562 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
28563   && mv -f "$cfgfile.tmp" "$cfgfile" \
28564     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28565 test 0 -eq $? || _lt_function_replace_fail=:
28566
28567
28568   # Save a `func_append' function call where possible by direct use of '+='
28569   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
28570     && mv -f "$cfgfile.tmp" "$cfgfile" \
28571       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28572   test 0 -eq $? || _lt_function_replace_fail=:
28573 else
28574   # Save a `func_append' function call even when '+=' is not available
28575   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
28576     && mv -f "$cfgfile.tmp" "$cfgfile" \
28577       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28578   test 0 -eq $? || _lt_function_replace_fail=:
28579 fi
28580
28581 if test x"$_lt_function_replace_fail" = x":"; then
28582   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
28583 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
28584 fi
28585
28586
28587    mv -f "$cfgfile" "$ofile" ||
28588     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
28589   chmod +x "$ofile"
28590
28591
28592     cat <<_LT_EOF >> "$ofile"
28593
28594 # ### BEGIN LIBTOOL TAG CONFIG: CXX
28595
28596 # The linker used to build libraries.
28597 LD=$lt_LD_CXX
28598
28599 # How to create reloadable object files.
28600 reload_flag=$lt_reload_flag_CXX
28601 reload_cmds=$lt_reload_cmds_CXX
28602
28603 # Commands used to build an old-style archive.
28604 old_archive_cmds=$lt_old_archive_cmds_CXX
28605
28606 # A language specific compiler.
28607 CC=$lt_compiler_CXX
28608
28609 # Is the compiler the GNU compiler?
28610 with_gcc=$GCC_CXX
28611
28612 # Compiler flag to turn off builtin functions.
28613 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
28614
28615 # Additional compiler flags for building library objects.
28616 pic_flag=$lt_lt_prog_compiler_pic_CXX
28617
28618 # How to pass a linker flag through the compiler.
28619 wl=$lt_lt_prog_compiler_wl_CXX
28620
28621 # Compiler flag to prevent dynamic linking.
28622 link_static_flag=$lt_lt_prog_compiler_static_CXX
28623
28624 # Does compiler simultaneously support -c and -o options?
28625 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
28626
28627 # Whether or not to add -lc for building shared libraries.
28628 build_libtool_need_lc=$archive_cmds_need_lc_CXX
28629
28630 # Whether or not to disallow shared libs when runtime libs are static.
28631 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
28632
28633 # Compiler flag to allow reflexive dlopens.
28634 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
28635
28636 # Compiler flag to generate shared objects directly from archives.
28637 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
28638
28639 # Whether the compiler copes with passing no objects directly.
28640 compiler_needs_object=$lt_compiler_needs_object_CXX
28641
28642 # Create an old-style archive from a shared archive.
28643 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
28644
28645 # Create a temporary old-style archive to link instead of a shared archive.
28646 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
28647
28648 # Commands used to build a shared archive.
28649 archive_cmds=$lt_archive_cmds_CXX
28650 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
28651
28652 # Commands used to build a loadable module if different from building
28653 # a shared archive.
28654 module_cmds=$lt_module_cmds_CXX
28655 module_expsym_cmds=$lt_module_expsym_cmds_CXX
28656
28657 # Whether we are building with GNU ld or not.
28658 with_gnu_ld=$lt_with_gnu_ld_CXX
28659
28660 # Flag that allows shared libraries with undefined symbols to be built.
28661 allow_undefined_flag=$lt_allow_undefined_flag_CXX
28662
28663 # Flag that enforces no undefined symbols.
28664 no_undefined_flag=$lt_no_undefined_flag_CXX
28665
28666 # Flag to hardcode \$libdir into a binary during linking.
28667 # This must work even if \$libdir does not exist
28668 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
28669
28670 # Whether we need a single "-rpath" flag with a separated argument.
28671 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
28672
28673 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28674 # DIR into the resulting binary.
28675 hardcode_direct=$hardcode_direct_CXX
28676
28677 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28678 # DIR into the resulting binary and the resulting library dependency is
28679 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
28680 # library is relocated.
28681 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
28682
28683 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
28684 # into the resulting binary.
28685 hardcode_minus_L=$hardcode_minus_L_CXX
28686
28687 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
28688 # into the resulting binary.
28689 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
28690
28691 # Set to "yes" if building a shared library automatically hardcodes DIR
28692 # into the library and all subsequent libraries and executables linked
28693 # against it.
28694 hardcode_automatic=$hardcode_automatic_CXX
28695
28696 # Set to yes if linker adds runtime paths of dependent libraries
28697 # to runtime path list.
28698 inherit_rpath=$inherit_rpath_CXX
28699
28700 # Whether libtool must link a program against all its dependency libraries.
28701 link_all_deplibs=$link_all_deplibs_CXX
28702
28703 # Set to "yes" if exported symbols are required.
28704 always_export_symbols=$always_export_symbols_CXX
28705
28706 # The commands to list exported symbols.
28707 export_symbols_cmds=$lt_export_symbols_cmds_CXX
28708
28709 # Symbols that should not be listed in the preloaded symbols.
28710 exclude_expsyms=$lt_exclude_expsyms_CXX
28711
28712 # Symbols that must always be exported.
28713 include_expsyms=$lt_include_expsyms_CXX
28714
28715 # Commands necessary for linking programs (against libraries) with templates.
28716 prelink_cmds=$lt_prelink_cmds_CXX
28717
28718 # Commands necessary for finishing linking programs.
28719 postlink_cmds=$lt_postlink_cmds_CXX
28720
28721 # Specify filename containing input files.
28722 file_list_spec=$lt_file_list_spec_CXX
28723
28724 # How to hardcode a shared library path into an executable.
28725 hardcode_action=$hardcode_action_CXX
28726
28727 # The directories searched by this compiler when creating a shared library.
28728 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
28729
28730 # Dependencies to place before and after the objects being linked to
28731 # create a shared library.
28732 predep_objects=$lt_predep_objects_CXX
28733 postdep_objects=$lt_postdep_objects_CXX
28734 predeps=$lt_predeps_CXX
28735 postdeps=$lt_postdeps_CXX
28736
28737 # The library search path used internally by the compiler when linking
28738 # a shared library.
28739 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
28740
28741 # ### END LIBTOOL TAG CONFIG: CXX
28742 _LT_EOF
28743
28744  ;;
28745     "po-directories":C)
28746     for ac_file in $CONFIG_FILES; do
28747       # Support "outfile[:infile[:infile...]]"
28748       case "$ac_file" in
28749         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
28750       esac
28751       # PO directories have a Makefile.in generated from Makefile.in.in.
28752       case "$ac_file" in */Makefile.in)
28753         # Adjust a relative srcdir.
28754         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
28755         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
28756         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
28757         # In autoconf-2.13 it is called $ac_given_srcdir.
28758         # In autoconf-2.50 it is called $srcdir.
28759         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
28760         case "$ac_given_srcdir" in
28761           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
28762           /*) top_srcdir="$ac_given_srcdir" ;;
28763           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
28764         esac
28765         # Treat a directory as a PO directory if and only if it has a
28766         # POTFILES.in file. This allows packages to have multiple PO
28767         # directories under different names or in different locations.
28768         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
28769           rm -f "$ac_dir/POTFILES"
28770           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
28771           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
28772           POMAKEFILEDEPS="POTFILES.in"
28773           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
28774           # on $ac_dir but don't depend on user-specified configuration
28775           # parameters.
28776           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
28777             # The LINGUAS file contains the set of available languages.
28778             if test -n "$OBSOLETE_ALL_LINGUAS"; then
28779               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
28780             fi
28781             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
28782             # Hide the ALL_LINGUAS assigment from automake < 1.5.
28783             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
28784             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
28785           else
28786             # The set of available languages was given in configure.in.
28787             # Hide the ALL_LINGUAS assigment from automake < 1.5.
28788             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
28789           fi
28790           # Compute POFILES
28791           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
28792           # Compute UPDATEPOFILES
28793           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
28794           # Compute DUMMYPOFILES
28795           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
28796           # Compute GMOFILES
28797           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
28798           case "$ac_given_srcdir" in
28799             .) srcdirpre= ;;
28800             *) srcdirpre='$(srcdir)/' ;;
28801           esac
28802           POFILES=
28803           UPDATEPOFILES=
28804           DUMMYPOFILES=
28805           GMOFILES=
28806           for lang in $ALL_LINGUAS; do
28807             POFILES="$POFILES $srcdirpre$lang.po"
28808             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
28809             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
28810             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
28811           done
28812           # CATALOGS depends on both $ac_dir and the user's LINGUAS
28813           # environment variable.
28814           INST_LINGUAS=
28815           if test -n "$ALL_LINGUAS"; then
28816             for presentlang in $ALL_LINGUAS; do
28817               useit=no
28818               if test "%UNSET%" != "$LINGUAS"; then
28819                 desiredlanguages="$LINGUAS"
28820               else
28821                 desiredlanguages="$ALL_LINGUAS"
28822               fi
28823               for desiredlang in $desiredlanguages; do
28824                 # Use the presentlang catalog if desiredlang is
28825                 #   a. equal to presentlang, or
28826                 #   b. a variant of presentlang (because in this case,
28827                 #      presentlang can be used as a fallback for messages
28828                 #      which are not translated in the desiredlang catalog).
28829                 case "$desiredlang" in
28830                   "$presentlang"*) useit=yes;;
28831                 esac
28832               done
28833               if test $useit = yes; then
28834                 INST_LINGUAS="$INST_LINGUAS $presentlang"
28835               fi
28836             done
28837           fi
28838           CATALOGS=
28839           if test -n "$INST_LINGUAS"; then
28840             for lang in $INST_LINGUAS; do
28841               CATALOGS="$CATALOGS $lang.gmo"
28842             done
28843           fi
28844           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
28845           sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
28846           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
28847             if test -f "$f"; then
28848               case "$f" in
28849                 *.orig | *.bak | *~) ;;
28850                 *) cat "$f" >> "$ac_dir/Makefile" ;;
28851               esac
28852             fi
28853           done
28854         fi
28855         ;;
28856       esac
28857     done ;;
28858     "$ac_stdint_h":C)
28859 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_stdint_h : $_ac_stdint_h" >&5
28860 $as_echo "$as_me: creating $ac_stdint_h : $_ac_stdint_h" >&6;}
28861 ac_stdint=$tmp/_stdint.h
28862
28863 echo "#ifndef" $_ac_stdint_h >$ac_stdint
28864 echo "#define" $_ac_stdint_h "1" >>$ac_stdint
28865 echo "#ifndef" _GENERATED_STDINT_H >>$ac_stdint
28866 echo "#define" _GENERATED_STDINT_H '"'$PACKAGE $VERSION'"' >>$ac_stdint
28867 echo "/* generated $ac_cv_stdint_message */" >>$ac_stdint
28868 if test "_$ac_cv_header_stdint_t" != "_" ; then
28869 echo "#define _STDINT_HAVE_STDINT_H" "1" >>$ac_stdint
28870 echo "#include <stdint.h>" >>$ac_stdint
28871 echo "#endif" >>$ac_stdint
28872 echo "#endif" >>$ac_stdint
28873 else
28874
28875 cat >>$ac_stdint <<STDINT_EOF
28876
28877 /* ................... shortcircuit part ........................... */
28878
28879 #if defined HAVE_STDINT_H || defined _STDINT_HAVE_STDINT_H
28880 #include <stdint.h>
28881 #else
28882 #include <stddef.h>
28883
28884 /* .................... configured part ............................ */
28885
28886 STDINT_EOF
28887
28888 echo "/* whether we have a C99 compatible stdint header file */" >>$ac_stdint
28889 if test "_$ac_cv_header_stdint_x" != "_" ; then
28890   ac_header="$ac_cv_header_stdint_x"
28891   echo "#define _STDINT_HEADER_INTPTR" '"'"$ac_header"'"' >>$ac_stdint
28892 else
28893   echo "/* #undef _STDINT_HEADER_INTPTR */" >>$ac_stdint
28894 fi
28895
28896 echo "/* whether we have a C96 compatible inttypes header file */" >>$ac_stdint
28897 if  test "_$ac_cv_header_stdint_o" != "_" ; then
28898   ac_header="$ac_cv_header_stdint_o"
28899   echo "#define _STDINT_HEADER_UINT32" '"'"$ac_header"'"' >>$ac_stdint
28900 else
28901   echo "/* #undef _STDINT_HEADER_UINT32 */" >>$ac_stdint
28902 fi
28903
28904 echo "/* whether we have a BSD compatible inet types header */" >>$ac_stdint
28905 if  test "_$ac_cv_header_stdint_u" != "_" ; then
28906   ac_header="$ac_cv_header_stdint_u"
28907   echo "#define _STDINT_HEADER_U_INT32" '"'"$ac_header"'"' >>$ac_stdint
28908 else
28909   echo "/* #undef _STDINT_HEADER_U_INT32 */" >>$ac_stdint
28910 fi
28911
28912 echo "" >>$ac_stdint
28913
28914 if test "_$ac_header" != "_" ; then if test "$ac_header" != "stddef.h" ; then
28915   echo "#include <$ac_header>" >>$ac_stdint
28916   echo "" >>$ac_stdint
28917 fi fi
28918
28919 echo "/* which 64bit typedef has been found */" >>$ac_stdint
28920 if test "$ac_cv_type_uint64_t" = "yes" ; then
28921 echo "#define   _STDINT_HAVE_UINT64_T" "1"  >>$ac_stdint
28922 else
28923 echo "/* #undef _STDINT_HAVE_UINT64_T */" >>$ac_stdint
28924 fi
28925 if test "$ac_cv_type_u_int64_t" = "yes" ; then
28926 echo "#define   _STDINT_HAVE_U_INT64_T" "1"  >>$ac_stdint
28927 else
28928 echo "/* #undef _STDINT_HAVE_U_INT64_T */" >>$ac_stdint
28929 fi
28930 echo "" >>$ac_stdint
28931
28932 echo "/* which type model has been detected */" >>$ac_stdint
28933 if test "_$ac_cv_char_data_model" != "_" ; then
28934 echo "#define   _STDINT_CHAR_MODEL" "$ac_cv_char_data_model" >>$ac_stdint
28935 echo "#define   _STDINT_LONG_MODEL" "$ac_cv_long_data_model" >>$ac_stdint
28936 else
28937 echo "/* #undef _STDINT_CHAR_MODEL // skipped */" >>$ac_stdint
28938 echo "/* #undef _STDINT_LONG_MODEL // skipped */" >>$ac_stdint
28939 fi
28940 echo "" >>$ac_stdint
28941
28942 echo "/* whether int_least types were detected */" >>$ac_stdint
28943 if test "$ac_cv_type_int_least32_t" = "yes"; then
28944 echo "#define   _STDINT_HAVE_INT_LEAST32_T" "1"  >>$ac_stdint
28945 else
28946 echo "/* #undef _STDINT_HAVE_INT_LEAST32_T */" >>$ac_stdint
28947 fi
28948 echo "/* whether int_fast types were detected */" >>$ac_stdint
28949 if test "$ac_cv_type_int_fast32_t" = "yes"; then
28950 echo "#define   _STDINT_HAVE_INT_FAST32_T" "1" >>$ac_stdint
28951 else
28952 echo "/* #undef _STDINT_HAVE_INT_FAST32_T */" >>$ac_stdint
28953 fi
28954 echo "/* whether intmax_t type was detected */" >>$ac_stdint
28955 if test "$ac_cv_type_intmax_t" = "yes"; then
28956 echo "#define   _STDINT_HAVE_INTMAX_T" "1" >>$ac_stdint
28957 else
28958 echo "/* #undef _STDINT_HAVE_INTMAX_T */" >>$ac_stdint
28959 fi
28960 echo "" >>$ac_stdint
28961
28962   cat >>$ac_stdint <<STDINT_EOF
28963 /* .................... detections part ............................ */
28964
28965 /* whether we need to define bitspecific types from compiler base types */
28966 #ifndef _STDINT_HEADER_INTPTR
28967 #ifndef _STDINT_HEADER_UINT32
28968 #ifndef _STDINT_HEADER_U_INT32
28969 #define _STDINT_NEED_INT_MODEL_T
28970 #else
28971 #define _STDINT_HAVE_U_INT_TYPES
28972 #endif
28973 #endif
28974 #endif
28975
28976 #ifdef _STDINT_HAVE_U_INT_TYPES
28977 #undef _STDINT_NEED_INT_MODEL_T
28978 #endif
28979
28980 #ifdef  _STDINT_CHAR_MODEL
28981 #if     _STDINT_CHAR_MODEL+0 == 122 || _STDINT_CHAR_MODEL+0 == 124
28982 #ifndef _STDINT_BYTE_MODEL
28983 #define _STDINT_BYTE_MODEL 12
28984 #endif
28985 #endif
28986 #endif
28987
28988 #ifndef _STDINT_HAVE_INT_LEAST32_T
28989 #define _STDINT_NEED_INT_LEAST_T
28990 #endif
28991
28992 #ifndef _STDINT_HAVE_INT_FAST32_T
28993 #define _STDINT_NEED_INT_FAST_T
28994 #endif
28995
28996 #ifndef _STDINT_HEADER_INTPTR
28997 #define _STDINT_NEED_INTPTR_T
28998 #ifndef _STDINT_HAVE_INTMAX_T
28999 #define _STDINT_NEED_INTMAX_T
29000 #endif
29001 #endif
29002
29003
29004 /* .................... definition part ............................ */
29005
29006 /* some system headers have good uint64_t */
29007 #ifndef _HAVE_UINT64_T
29008 #if     defined _STDINT_HAVE_UINT64_T  || defined HAVE_UINT64_T
29009 #define _HAVE_UINT64_T
29010 #elif   defined _STDINT_HAVE_U_INT64_T || defined HAVE_U_INT64_T
29011 #define _HAVE_UINT64_T
29012 typedef u_int64_t uint64_t;
29013 #endif
29014 #endif
29015
29016 #ifndef _HAVE_UINT64_T
29017 /* .. here are some common heuristics using compiler runtime specifics */
29018 #if defined __STDC_VERSION__ && defined __STDC_VERSION__ >= 199901L
29019 #define _HAVE_UINT64_T
29020 #define _HAVE_LONGLONG_UINT64_T
29021 typedef long long int64_t;
29022 typedef unsigned long long uint64_t;
29023
29024 #elif !defined __STRICT_ANSI__
29025 #if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
29026 #define _HAVE_UINT64_T
29027 typedef __int64 int64_t;
29028 typedef unsigned __int64 uint64_t;
29029
29030 #elif defined __GNUC__ || defined __MWERKS__ || defined __ELF__
29031 /* note: all ELF-systems seem to have loff-support which needs 64-bit */
29032 #if !defined _NO_LONGLONG
29033 #define _HAVE_UINT64_T
29034 #define _HAVE_LONGLONG_UINT64_T
29035 typedef long long int64_t;
29036 typedef unsigned long long uint64_t;
29037 #endif
29038
29039 #elif defined __alpha || (defined __mips && defined _ABIN32)
29040 #if !defined _NO_LONGLONG
29041 typedef long int64_t;
29042 typedef unsigned long uint64_t;
29043 #endif
29044   /* compiler/cpu type to define int64_t */
29045 #endif
29046 #endif
29047 #endif
29048
29049 #if defined _STDINT_HAVE_U_INT_TYPES
29050 /* int8_t int16_t int32_t defined by inet code, redeclare the u_intXX types */
29051 typedef u_int8_t uint8_t;
29052 typedef u_int16_t uint16_t;
29053 typedef u_int32_t uint32_t;
29054
29055 /* glibc compatibility */
29056 #ifndef __int8_t_defined
29057 #define __int8_t_defined
29058 #endif
29059 #endif
29060
29061 #ifdef _STDINT_NEED_INT_MODEL_T
29062 /* we must guess all the basic types. Apart from byte-adressable system, */
29063 /* there a few 32-bit-only dsp-systems that we guard with BYTE_MODEL 8-} */
29064 /* (btw, those nibble-addressable systems are way off, or so we assume) */
29065
29066
29067 #if defined _STDINT_BYTE_MODEL
29068 #if _STDINT_LONG_MODEL+0 == 242
29069 /* 2:4:2 =  IP16 = a normal 16-bit system                */
29070 typedef unsigned char   uint8_t;
29071 typedef unsigned short  uint16_t;
29072 typedef unsigned long   uint32_t;
29073 #ifndef __int8_t_defined
29074 #define __int8_t_defined
29075 typedef          char    int8_t;
29076 typedef          short   int16_t;
29077 typedef          long    int32_t;
29078 #endif
29079 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL == 444
29080 /* 2:4:4 =  LP32 = a 32-bit system derived from a 16-bit */
29081 /* 4:4:4 = ILP32 = a normal 32-bit system                */
29082 typedef unsigned char   uint8_t;
29083 typedef unsigned short  uint16_t;
29084 typedef unsigned int    uint32_t;
29085 #ifndef __int8_t_defined
29086 #define __int8_t_defined
29087 typedef          char    int8_t;
29088 typedef          short   int16_t;
29089 typedef          int     int32_t;
29090 #endif
29091 #elif _STDINT_LONG_MODEL+0 == 484 || _STDINT_LONG_MODEL+0 == 488
29092 /* 4:8:4 =  IP32 = a 32-bit system prepared for 64-bit    */
29093 /* 4:8:8 =  LP64 = a normal 64-bit system                 */
29094 typedef unsigned char   uint8_t;
29095 typedef unsigned short  uint16_t;
29096 typedef unsigned int    uint32_t;
29097 #ifndef __int8_t_defined
29098 #define __int8_t_defined
29099 typedef          char    int8_t;
29100 typedef          short   int16_t;
29101 typedef          int     int32_t;
29102 #endif
29103 /* this system has a "long" of 64bit */
29104 #ifndef _HAVE_UINT64_T
29105 #define _HAVE_UINT64_T
29106 typedef unsigned long   uint64_t;
29107 typedef          long    int64_t;
29108 #endif
29109 #elif _STDINT_LONG_MODEL+0 == 448
29110 /*      LLP64   a 64-bit system derived from a 32-bit system */
29111 typedef unsigned char   uint8_t;
29112 typedef unsigned short  uint16_t;
29113 typedef unsigned int    uint32_t;
29114 #ifndef __int8_t_defined
29115 #define __int8_t_defined
29116 typedef          char    int8_t;
29117 typedef          short   int16_t;
29118 typedef          int     int32_t;
29119 #endif
29120 /* assuming the system has a "long long" */
29121 #ifndef _HAVE_UINT64_T
29122 #define _HAVE_UINT64_T
29123 #define _HAVE_LONGLONG_UINT64_T
29124 typedef unsigned long long uint64_t;
29125 typedef          long long  int64_t;
29126 #endif
29127 #else
29128 #define _STDINT_NO_INT32_T
29129 #endif
29130 #else
29131 #define _STDINT_NO_INT8_T
29132 #define _STDINT_NO_INT32_T
29133 #endif
29134 #endif
29135
29136 /*
29137  * quote from SunOS-5.8 sys/inttypes.h:
29138  * Use at your own risk.  As of February 1996, the committee is squarely
29139  * behind the fixed sized types; the "least" and "fast" types are still being
29140  * discussed.  The probability that the "fast" types may be removed before
29141  * the standard is finalized is high enough that they are not currently
29142  * implemented.
29143  */
29144
29145 #if defined _STDINT_NEED_INT_LEAST_T
29146 typedef  int8_t    int_least8_t;
29147 typedef  int16_t   int_least16_t;
29148 typedef  int32_t   int_least32_t;
29149 #ifdef _HAVE_UINT64_T
29150 typedef  int64_t   int_least64_t;
29151 #endif
29152
29153 typedef uint8_t   uint_least8_t;
29154 typedef uint16_t  uint_least16_t;
29155 typedef uint32_t  uint_least32_t;
29156 #ifdef _HAVE_UINT64_T
29157 typedef uint64_t  uint_least64_t;
29158 #endif
29159   /* least types */
29160 #endif
29161
29162 #if defined _STDINT_NEED_INT_FAST_T
29163 typedef  int8_t    int_fast8_t;
29164 typedef  int       int_fast16_t;
29165 typedef  int32_t   int_fast32_t;
29166 #ifdef _HAVE_UINT64_T
29167 typedef  int64_t   int_fast64_t;
29168 #endif
29169
29170 typedef uint8_t   uint_fast8_t;
29171 typedef unsigned  uint_fast16_t;
29172 typedef uint32_t  uint_fast32_t;
29173 #ifdef _HAVE_UINT64_T
29174 typedef uint64_t  uint_fast64_t;
29175 #endif
29176   /* fast types */
29177 #endif
29178
29179 #ifdef _STDINT_NEED_INTMAX_T
29180 #ifdef _HAVE_UINT64_T
29181 typedef  int64_t       intmax_t;
29182 typedef uint64_t      uintmax_t;
29183 #else
29184 typedef          long  intmax_t;
29185 typedef unsigned long uintmax_t;
29186 #endif
29187 #endif
29188
29189 #ifdef _STDINT_NEED_INTPTR_T
29190 #ifndef __intptr_t_defined
29191 #define __intptr_t_defined
29192 /* we encourage using "long" to store pointer values, never use "int" ! */
29193 #if   _STDINT_LONG_MODEL+0 == 242 || _STDINT_LONG_MODEL+0 == 484
29194 typedef  unsigned int   uintptr_t;
29195 typedef           int    intptr_t;
29196 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL+0 == 444
29197 typedef  unsigned long  uintptr_t;
29198 typedef           long   intptr_t;
29199 #elif _STDINT_LONG_MODEL+0 == 448 && defined _HAVE_UINT64_T
29200 typedef        uint64_t uintptr_t;
29201 typedef         int64_t  intptr_t;
29202 #else /* matches typical system types ILP32 and LP64 - but not IP16 or LLP64 */
29203 typedef  unsigned long  uintptr_t;
29204 typedef           long   intptr_t;
29205 #endif
29206 #endif
29207 #endif
29208
29209 /* The ISO C99 standard specifies that in C++ implementations these
29210    should only be defined if explicitly requested.  */
29211 #if !defined __cplusplus || defined __STDC_CONSTANT_MACROS
29212 #ifndef UINT32_C
29213
29214 /* Signed.  */
29215 # define INT8_C(c)      c
29216 # define INT16_C(c)     c
29217 # define INT32_C(c)     c
29218 # ifdef _HAVE_LONGLONG_UINT64_T
29219 #  define INT64_C(c)    c ## L
29220 # else
29221 #  define INT64_C(c)    c ## LL
29222 # endif
29223
29224 /* Unsigned.  */
29225 # define UINT8_C(c)     c ## U
29226 # define UINT16_C(c)    c ## U
29227 # define UINT32_C(c)    c ## U
29228 # ifdef _HAVE_LONGLONG_UINT64_T
29229 #  define UINT64_C(c)   c ## UL
29230 # else
29231 #  define UINT64_C(c)   c ## ULL
29232 # endif
29233
29234 /* Maximal type.  */
29235 # ifdef _HAVE_LONGLONG_UINT64_T
29236 #  define INTMAX_C(c)   c ## L
29237 #  define UINTMAX_C(c)  c ## UL
29238 # else
29239 #  define INTMAX_C(c)   c ## LL
29240 #  define UINTMAX_C(c)  c ## ULL
29241 # endif
29242
29243   /* literalnumbers */
29244 #endif
29245 #endif
29246
29247 /* These limits are merily those of a two complement byte-oriented system */
29248
29249 /* Minimum of signed integral types.  */
29250 # define INT8_MIN               (-128)
29251 # define INT16_MIN              (-32767-1)
29252 # define INT32_MIN              (-2147483647-1)
29253 # define INT64_MIN              (-__INT64_C(9223372036854775807)-1)
29254 /* Maximum of signed integral types.  */
29255 # define INT8_MAX               (127)
29256 # define INT16_MAX              (32767)
29257 # define INT32_MAX              (2147483647)
29258 # define INT64_MAX              (__INT64_C(9223372036854775807))
29259
29260 /* Maximum of unsigned integral types.  */
29261 # define UINT8_MAX              (255)
29262 # define UINT16_MAX             (65535)
29263 # define UINT32_MAX             (4294967295U)
29264 # define UINT64_MAX             (__UINT64_C(18446744073709551615))
29265
29266 /* Minimum of signed integral types having a minimum size.  */
29267 # define INT_LEAST8_MIN         INT8_MIN
29268 # define INT_LEAST16_MIN        INT16_MIN
29269 # define INT_LEAST32_MIN        INT32_MIN
29270 # define INT_LEAST64_MIN        INT64_MIN
29271 /* Maximum of signed integral types having a minimum size.  */
29272 # define INT_LEAST8_MAX         INT8_MAX
29273 # define INT_LEAST16_MAX        INT16_MAX
29274 # define INT_LEAST32_MAX        INT32_MAX
29275 # define INT_LEAST64_MAX        INT64_MAX
29276
29277 /* Maximum of unsigned integral types having a minimum size.  */
29278 # define UINT_LEAST8_MAX        UINT8_MAX
29279 # define UINT_LEAST16_MAX       UINT16_MAX
29280 # define UINT_LEAST32_MAX       UINT32_MAX
29281 # define UINT_LEAST64_MAX       UINT64_MAX
29282
29283   /* shortcircuit*/
29284 #endif
29285   /* once */
29286 #endif
29287 #endif
29288 STDINT_EOF
29289 fi
29290     if cmp -s $ac_stdint_h $ac_stdint 2>/dev/null; then
29291       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_stdint_h is unchanged" >&5
29292 $as_echo "$as_me: $ac_stdint_h is unchanged" >&6;}
29293     else
29294       ac_dir=`$as_dirname -- "$ac_stdint_h" ||
29295 $as_expr X"$ac_stdint_h" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29296          X"$ac_stdint_h" : 'X\(//\)[^/]' \| \
29297          X"$ac_stdint_h" : 'X\(//\)$' \| \
29298          X"$ac_stdint_h" : 'X\(/\)' \| . 2>/dev/null ||
29299 $as_echo X"$ac_stdint_h" |
29300     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29301             s//\1/
29302             q
29303           }
29304           /^X\(\/\/\)[^/].*/{
29305             s//\1/
29306             q
29307           }
29308           /^X\(\/\/\)$/{
29309             s//\1/
29310             q
29311           }
29312           /^X\(\/\).*/{
29313             s//\1/
29314             q
29315           }
29316           s/.*/./; q'`
29317       as_dir="$ac_dir"; as_fn_mkdir_p
29318       rm -f $ac_stdint_h
29319       mv $ac_stdint $ac_stdint_h
29320     fi
29321  ;;
29322
29323   esac
29324 done # for ac_tag
29325
29326
29327 as_fn_exit 0
29328 _ACEOF
29329 ac_clean_files=$ac_clean_files_save
29330
29331 test $ac_write_fail = 0 ||
29332   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
29333
29334
29335 # configure is writing to config.log, and then calls config.status.
29336 # config.status does its own redirection, appending to config.log.
29337 # Unfortunately, on DOS this fails, as config.log is still kept open
29338 # by configure, so config.status won't be able to write to it; its
29339 # output is simply discarded.  So we exec the FD to /dev/null,
29340 # effectively closing config.log, so it can be properly (re)opened and
29341 # appended to by config.status.  When coming back to configure, we
29342 # need to make the FD available again.
29343 if test "$no_create" != yes; then
29344   ac_cs_success=:
29345   ac_config_status_args=
29346   test "$silent" = yes &&
29347     ac_config_status_args="$ac_config_status_args --quiet"
29348   exec 5>/dev/null
29349   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29350   exec 5>>config.log
29351   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29352   # would make configure fail if this is the last instruction.
29353   $ac_cs_success || as_fn_exit 1
29354 fi
29355 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
29356   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29357 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
29358 fi
29359
29360
29361 if test "x${GST_DISABLE_GST_DEBUG}" = "xno"; then enable_gst_debug="yes"; fi
29362 if test "x${GST_DISABLE_LOADSAVE}" = "xno"; then enable_loadsave="yes"; fi
29363 if test "x${GST_DISABLE_PARSE}" = "xno"; then enable_parse="yes"; fi
29364 if test "x${GST_DISABLE_OPTION_PARSING}" = "xno"; then enable_option_parsing="yes"; fi
29365 if test "x${GST_DISABLE_TRACE}" = "xno"; then enable_trace="yes"; fi
29366 if test "x${GST_DISABLE_ALLOC_TRACE}" = "xno"; then enable_alloc_trace="yes"; fi
29367 if test "x${GST_DISABLE_PLUGIN}" = "xno"; then enable_plugin="yes"; fi
29368 if test "x${GST_DISABLE_REGISTRY}" = "xno"; then enable_registry="yes"; fi
29369 if test "x${GST_DISABLE_NET}" = "xno"; then enable_net="yes"; fi
29370
29371 echo "
29372
29373 Configuration
29374         Version                    : ${VERSION}
29375         Source code location       : ${srcdir}
29376         Prefix                     : ${prefix}
29377         Compiler                   : ${CC}
29378         Package name               : ${GST_PACKAGE_NAME}
29379         Package origin             : ${GST_PACKAGE_ORIGIN}
29380
29381         Documentation (manuals)    : ${enable_docbook}
29382         Documentation (API)        : ${enable_gtk_doc}
29383
29384         Debug Logging              : ${enable_gst_debug}
29385         Pipeline XML load/save     : ${enable_loadsave}
29386         Command-line parser        : ${enable_parse}
29387         Option parsing in gst_init : ${enable_option_parsing}
29388         Tracing subsystem          : ${enable_trace}
29389         Allocation tracing         : ${enable_alloc_trace}
29390         Plugin registry            : ${enable_registry}
29391         Plugin support             : ${enable_plugin}
29392         Network support            : ${enable_net}
29393         Unit testing support       : ${BUILD_CHECK}
29394
29395         Debug                      : ${USE_DEBUG}
29396         Profiling                  : ${USE_PROFILING}
29397
29398         Building examples          : ${BUILD_EXAMPLES}
29399         Building test apps         : ${BUILD_TESTS}
29400         Building tests that fail   : ${BUILD_FAILING_TESTS}
29401 "